Page 1 of 1

Problem with map loading trigger

Posted: May 7th, 2011, 12:01 pm
by Rueppells-Fox
I used the wiki article as an outline http://sandboxgamemaker.com/wiki/index. ... nother_map. I'm using version 2.6
My .cfg file looks like this:

Code: Select all

level_trigger_0 = [
 echo "Teleporting..."
 echo "Location found."
 echo "Welcome home!"
 sleep 5000
 map Game1map2 map
 ]
It's saved under C:\Users\Emily\My Documents\Platinum Arts Sandbox\PlatinumArtsSandbox2.6\my_stuff\packages\base\Game1map1.cfg

I tried this with the level trigger as 1, and as 0, and I tried using different map models, this did nothing. Is there something else I should be doing?

Re: Problem with map loading trigger

Posted: May 7th, 2011, 12:53 pm
by arcones
Level triggers can be used 1-99 (if I remember correctly). Therefore the 0 wouldn't work. But just make sure that the mapmodel itself also has the same level trigger, otherwise it won't work.

Re: Problem with map loading trigger

Posted: May 7th, 2011, 3:08 pm
by Rueppells-Fox
Thanks! I'll give that a try.
I'm still having trouble with it. I set the map model to:

Yaw: 269
Model: (null) -1
Trigger Type: 1
Tag: level_trigger_1
Radius: 30
Colour: 0 0 0

And I used ConText to write the trigger script as:

Code: Select all

level_trigger_1 = [
 echo "Teleporting..."
 echo "Location found."
 echo "Welcome home!"
 sleep 5000
 map Game1map2 map
]
I also tried different trigger levels, adding "fps/" in front of the map name, and making the radius of the model trigger larger.

Re: Problem with map loading trigger

Posted: May 7th, 2011, 5:31 pm
by arcones
I'd just change the trigger type depending on what it is. But that shouldn't affect the load. It seems it may be something on your end, either the mapname itself, or something else.

Try using the in-game config editor (if you haven't already). And if that doesn't work, just do it through the my_stuff folder.

Re: Problem with map loading trigger

Posted: May 8th, 2011, 12:10 pm
by Rueppells-Fox
:oops: Thanks, I figured it out. It was actually a really stupid mistake on my part, I asked it to load the map I was already in - which would explain why it did nothing.

Re: Problem with map loading trigger

Posted: May 8th, 2011, 4:26 pm
by arcones
Okay then ;)