Product Chat / goindoor.lua (help)

Author
Message
arizona003
8
Years of Service
User Offline
Joined: 10th Jul 2015
Location:
Posted: 26th Nov 2015 14:06
When i placed a waypoint and set the script to goindoor.lua,
and suddenly my terrain goes transparent.
when i delete the waypoint, all goes normal.
.
Any help? i want to increase the fps
Thanks

Attachments

Login to view attachments
PM
Jerry Tremble
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 26th Nov 2015 14:32 Edited at: 26th Nov 2015 14:55
I've never used it, but goindoors.lua hides the terrain, meaning since you are indoors, you don't need the extra weight of the terrain on your level (you can put more objects in your indoor level). If you open goindoors.lua, you will see the lines "HideTerrain()" and "HideWater()". The rest should be pretty self explanatory at that point.


EDIT: BTW, although I've never used it, I don't think attaching that script to a waypoint is the best way to go. Perhaps attach to a trigger zone upon entering a building might be best. BTW, Happy Thanksgiving! Nice to see another game creator from AZ! (I'm assuming you are from AZ based on your name, but even if you're not, Happy Thanksgiving anyway!)
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
arizona003
8
Years of Service
User Offline
Joined: 10th Jul 2015
Location:
Posted: 26th Nov 2015 14:45
Hello,
Okay now i get it, Thanks anyway
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 26th Nov 2015 21:17
Yes you attach to a trigger zone so the Terrain can be turned off when not required to be seen ( Indoors )
Then you can use gooutdoors.lua on another triggerzone to switch it back on when you go outside again
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 26th Nov 2015 21:46 Edited at: 26th Nov 2015 22:11
Remember:
"goindoors.lua" it's a option to hide terrain & water, or just one of this.
Examples:
1 - noterrain.lua

2- for "nowater.lua" use the same lua script and just change the "noterrain.lua" (the same "noterrain_init" & "noterrain_main" too)
in "nowater.lua" and "HideTerrain" with "HideWater"
3- for "goindoor" use the both of those (noterrain & nowater)
As example:


BTW: to reverse on "Show" (the terrain or water) just change the "Hide" with "Show" in all of those examples
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."
arizona003
8
Years of Service
User Offline
Joined: 10th Jul 2015
Location:
Posted: 27th Nov 2015 04:47
Thanks for the Helps!!
i want to know if there is a Model Tile that the texture like a terrain?
i wanna increase fps because my scenery is too lag,

*sorry bad grammar
PM
arizona003
8
Years of Service
User Offline
Joined: 10th Jul 2015
Location:
Posted: 27th Nov 2015 04:51
Jerry Tremble
Quote: " BTW, Happy Thanksgiving! Nice to see another game creator from AZ! (I'm assuming you are from AZ based on your name, but even if you're not, Happy Thanksgiving anyway!) "


Thanks , Honestly 'Arizona' is my first name xD
PM
Jerry Tremble
GameGuru TGC Backer
11
Years of Service
User Offline
Joined: 5th Nov 2012
Location: Sonoran Desert
Posted: 27th Nov 2015 05:53
LOL, cool name!
MAME Cab PC: i7 4770@3.4Ghz (passmark 9945), 12GB RAM, Win 8.1/64, GeForce GTX645 (passmark 1898); Shiny new laptop: i7 4800MQ@2.7Ghz (passmark 8586), 16GB RAM, Win 8.1/64, GeForce GTX870M (passmark 3598); Old laptop: i5@2.3Ghz, 8GB RAM, Win 7/64, Intel 3000 graphics
PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 6th Dec 2015 15:11
arizona003 wrote: "i wanna increase fps because my scenery is too lag,"

Reduce the camera distance to 8 or 10 (as one plus setting of your map) , and another good point is
to you make some of few short levels for your game, not just only one hugest level
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-05-05 05:15:16
Your offset time is: 2024-05-05 05:15:16