Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Map change problems
Venom Fox Offline
Junior Member

Posts: 32
Threads: 9
Joined: Mar 2016
Reputation: 0
#7
RE: Map change problems

(03-12-2016, 02:12 AM)Romulator Wrote: In terms of the Level Editor, what happens when you do remove the folder prefix? Try that, then after, try what I mentioned below :3

------

Well, in SOMA personally, I haven't done a map change before. SOMA tries to ease the load of coming maps by preloading them. Have you specified an area say, approximately a minute before the map change where you call the Map_Preload() code block? If not, try creating a trigger area around that position, and when the player collides with it, call the Map_Preload() code.

PHP Code: (Select All)
void Map_Preload(const tString &in asMapNameeWorldStreamPriority aPrio=eWorldStreamPriority_Normal); 

Contextually, you would use this:

PHP Code: (Select All)
void Map_Preload("02_hospital.hpm"); 

And there's no problems with your folder structure. SOMA is pretty clever with locating maps, and in general, is a lot more organised than having one folder with every map. Frictional Games followed the same approach with their maps in the base game. Smile

Those were some really cool tips, thanks! .. But I'm afraid they didn't work :S

HOWEVER, I put a triggerarea in front of the leveldoor and used PlayerInteractCallBack to change the level, which suprisingly worked! (Still looks a bit clumsy, though, but better than nothing!) But thanks anyways, now I can continue working on my mod until a next major problem shows up! Smile
03-12-2016, 12:41 PM
Find


Messages In This Thread
Map change problems - by Venom Fox - 03-10-2016, 07:19 PM
RE: Map change problems - by Abion47 - 03-10-2016, 11:05 PM
RE: Map change problems - by Guest - 03-11-2016, 06:48 AM
RE: Map change problems - by Romulator - 03-11-2016, 08:52 AM
RE: Map change problems - by Venom Fox - 03-11-2016, 03:03 PM
RE: Map change problems - by Romulator - 03-12-2016, 02:12 AM
RE: Map change problems - by Venom Fox - 03-12-2016, 12:41 PM



Users browsing this thread: 1 Guest(s)