Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Problem with map loading trigger

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
Rueppells-Fox
Member
Member
Posts: 13
Joined: March 31st, 2011, 9:12 pm
Name: Emily

Problem with map loading trigger

Post 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?
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Problem with map loading trigger

Post 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.
Image
Want a user bar like this one? PM Leo!
Rueppells-Fox
Member
Member
Posts: 13
Joined: March 31st, 2011, 9:12 pm
Name: Emily

Re: Problem with map loading trigger

Post 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.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Problem with map loading trigger

Post 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.
Image
Want a user bar like this one? PM Leo!
Rueppells-Fox
Member
Member
Posts: 13
Joined: March 31st, 2011, 9:12 pm
Name: Emily

Re: Problem with map loading trigger

Post 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.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Problem with map loading trigger

Post by arcones »

Okay then ;)
Image
Want a user bar like this one? PM Leo!
Locked