Product Chat / TurnOffTerrain ... no physics!?

Author
Message
PartTimeCoder
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location:
Posted: 18th Jul 2016 23:30
my plan was to make an underground base and sink most of it into the terrain and turn the terrain off once the player enters the building but the player can not go down the stairs past where the terrain once was, I cant find anything in Lua about physics, is this static behavior or is there a workaround?
PM
wermer
9
Years of Service
User Offline
Joined: 18th Sep 2015
Location:
Posted: 19th Jul 2016 03:29
If you didn't see it in one of the demo games, then it will probably require a workaround. HideTerrain doesn't remove the terrain, lower it, or make it flat, so I think the behavior is normal and intended to work that way. The terrain editor is great for landscapes, but not for making basements, so it would be near impossible to make clean square hole to drop your building into. My immediate thought is that instead of "turning off terrain" you simply load another map for the underground base using JumpToLevel. When you enter the stairs leading down use JumpToLevel and start the underground level at the bottom of the stairs, or use an elevator so that it doesn't feel so much like loading another level to the player.
Windows 10 Home 64-bit / Intel i5 2500k @ 4.4Ghz + Asetek 510LC / Intel DP67DE / Intel 530 Series 240GB SSD / 16GB Kingston KVR 1333 / XFX Radeon R9 380X / Corsair TX 650 / Antec 300
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 19th Jul 2016 06:30
Hide Terrain does not turn off the physics for terrain.

What you can do is paint the terrain to the lowest point just above the water so AI will work and build your level above the terrain so your floor sits on what would be the terrain. You (the player) should be able to access all areas of your map and AI will walk and traverse on the terrain level.

AI walking on other then terrain should be getting started after the EBE is complete.

Defiantly a work around.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

unfamillia
Forum Support
14
Years of Service
User Offline
Joined: 26th Jul 2010
Location: Preston, Lancashire
Posted: 19th Jul 2016 10:53
If you want to turn off the terrain for a bunker section, you would be best to carve the shape of the bunker into the terrain, then, place your bunker inside the cutouts. Then, once your player enters the bunker, you can have a trigger zone with a script attached to remove the terrain. The script would be goindoors.lua. Make sure you have another script at the exit points of the bunker (gooutdoors.lua). Both of these scripts are default and should be able to found in the scriptbank folder.

Hope this helps.

Cheers

Jay.




synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 19th Jul 2016 12:01 Edited at: 19th Jul 2016 12:03
Don't know if this will help but if you check out my Die Glocke thread I managed to get AI on different levels by raising the ground to the floor levels giving the impression of an underground level ( not an easy task ) ..... Its all explained here ...and a demo to try ..

https://forum.game-guru.com/thread/215536



The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 19th Jul 2016 12:46
You can use the transport feature to transport yourself to the underground base. I would build your base somewhere away from your main map where it can't be seen. Have an entrance to the base and when you enter it, transport to the underground section. it doesn't need to be underground, but it will give the impression of it. You can hide your underground map behind terrain or billboards etc. I have done this before and as far as the player is concerned works fine. I used it in Subterranean Secret (a compo entry) ages ago, to help keep speed up in the main level by separating the interior of a building to a different location miles away on the map, so avoiding dropping lots of items in an already busy area.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 19th Jul 2016 12:59
Quote: "You can use the transport feature to transport yourself to the underground base."


That's exactly what I plan to do with my WIP, leading up to the bunker in my game is a wooded area with a few log buildings where you find the clues to locate the bunker entrance, once you get to the entrance you have to work out how to get in, at which point you're transported to the interior which is actually physically located on the far side of the map, helps with FPS and makes it so your entrance doesn't have to be on a mile high chunk of terrain.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 19th Jul 2016 13:11 Edited at: 19th Jul 2016 13:21
Quote: "you're transported to the interior which is actually physically located on the far side of the map, helps with FPS"


Why not just have a level jump to a new map so only the entrance is on the first level .... that way you will have a clean map to make your bunker interior saving even more fps ..

And the nice thing is ...you can always jump back again to the original map with another level jump
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 19th Jul 2016 13:26
Quote: "Why not just have a level jump to a new map so only the entrance is on the first level .... that way you will have a clean map to make your bunker interior saving even more fps .."


Because players don't like loading screens, the more loading screens and smaller levels you have the more people get frustrated

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 19th Jul 2016 13:32 Edited at: 19th Jul 2016 13:34
Ye I guess so ..... I suppose it depends on how long it takes to get to the bunker ..... if its a good 30 mins to an hour of playing then a level load wouldn't really bother me to much...In fact I find it as YES !! achieved the first level .... Just idea's .... you can never have to many options
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM

Login to post a reply

Server time is: 2024-09-28 23:02:12
Your offset time is: 2024-09-28 23:02:12