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.

GUI Error shows each time i run the cfg

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
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

GUI Error shows each time i run the cfg

Post by Leo_V117 »

each time i run my code, the console keeps saying "Missing ]" yet i dont know where it goes, heres the code below.

Code: Select all


mapsoundreset

//mapsound "cemetary/main" 255 32767 // 0
mapsound "cemetary/main" 200 32767 // 0
mapsound "cemetarysounds/song1" 200 32767 // 1
mapsound "cemetarysounds/song2" 255 32767 // 2
mapsound "cemetarysounds/easteregg1" 175 32767 // 3
mapsound "cemetarysounds/easteregg2" 255 32767 // 4
mapsound "cemetarysounds/easteregg3" 255 32767 // 5
mapsound "cemetarysounds/radiosong1" 255 32767 // 7
mapsound "cemetarysounds/woodcreak" 255 32767 // 8
mapsound "cemetarysounds/moan" 255 32767 // 9

music cemetary/main

moan = (registersound cemetarysounds/moan 255)
level_trigger_1 = [sound $mummy; sleep 5000]

creak = (registersound cemetarysounds/woodcreak 255)
level_trigger_2 = [sound $creak; sleep 120000]

level_trigger_6 = [echo "Your Thoughts: Hey, the radios on, I wonder what song this is"]

level_trigger_25 = [showgui Companion-Cube]
	newgui Companion-Cube [
	guitext "Hello there" chat
	guitext "I am Companion Cube" chat
	guitext "So you think you have found all the secrets?" chat
	guitext "Try and find the cake in chamber 19" chat
	guitext "When you find it" chat
	guitext "take a screenshot and post it to Leo on the forums" chat
	guitext "Then tell him where the other secrets are that you found" chat
	guibutton "Sounds fun. Ill go search for it now." [echo "Companion Cube: Good Luck"]
]

level_trigger_30 = [showgui Chell]
	newgui Chell [
	guitext "Hey there!" chat
	guitext "Have you found all the special keys?" chat
	guitext "The special keys give off a green light." chat
	guitext "If you think you found them all." chat
	guitext "Find my friend the Companion Cube and" chat
	guitext "he'll tell you what to find next." chat
	guibutton "Sweet, im on it!" [echo "Chell: Bye. Now wheres that cake?"]
]

level_trigger_50 = [showgui Maria]
	newgui Maria [
	guitext "If you are trying to get through this door your out of luck." chat
	guitext "You need a key to get in here." chat
	guibutton "Okay thank you. Goodbye!" [echo "Maria: Goodbye!"
]

level_trigger_70 = [echo "You found a key!"]
]

level_trigger_80 = [showgui Groundskeeper-George]
	newgui Groundskeeper-George [
	guitext "Help! Father Grigori is trapped" chat
	guitext "he is in the church dungeon locked in a vault with a red door." chat 
	guitext "Flick the switch to save him." chat 
	guitext "But i dont know where the switch is." chat
	guitext "Try having a look in the church tower" chat
	guitext "Or even in the lake." chat
	guibutton "Ill go take a look for it now" [echo "Groundskeeper-George: Please Hurry!"]
]

level_trigger_90 = [showgui Father-Grigori]
	newgui Father Grigori [
	guitext "Thank you brother" chat
	guitext "I thank you for your help" chat
	guibutton "Youre Welcome" [echo Father Grigori: Take Care Brother!]
]
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: GUI Error shows each time i run the cfg

Post by arcones »

okay, I'm pretty sure I found it.

It's Maria's level trigger. You have:
level_trigger_50 = [showgui Maria]
newgui Maria [
guitext "If you are trying to get through this door your out of luck." chat
guitext "You need a key to get in here." chat
guibutton "Okay thank you. Goodbye!" [echo "Maria: Goodbye!"
]

but what it should be is this (look at the red & blue brackets):
level_trigger_50 = [showgui Maria]
newgui Maria [
guitext "If you are trying to get through this door your out of luck." chat
guitext "You need a key to get in here." chat
guibutton "Okay thank you. Goodbye!" [echo "Maria: Goodbye!"]
]
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Error shows each time i run the cfg

Post by Leo_V117 »

hm..... im surprised i didnt notice that before, ill test it out now.

Nope, it still shows the same message, it also shows the message "unknown Command: ]" i forgot to point that one out

Code: Select all


mapsoundreset

//mapsound "cemetary/main" 255 32767 // 0
mapsound "cemetary/main" 200 32767 // 0
mapsound "cemetarysounds/song1" 200 32767 // 1
mapsound "cemetarysounds/song2" 255 32767 // 2
mapsound "cemetarysounds/easteregg1" 175 32767 // 3
mapsound "cemetarysounds/easteregg2" 255 32767 // 4
mapsound "cemetarysounds/easteregg3" 255 32767 // 5
mapsound "cemetarysounds/radiosong1" 255 32767 // 7
mapsound "cemetarysounds/creak" 255 32767 // 8
mapsound "cemetarysounds/mummy" 255 32767 // 9

music cemetary/main

mummy = (registersound cemetarysounds/mummy 255)
level_trigger_1 = [sound $mummy; sleep 5000]

creak = (registersound cemetarysounds/creak 255)
level_trigger_2 = [sound $creak; sleep 120000]

level_trigger_6 = [echo "Your Thoughts: Hey, the radios on, I wonder what song this is"]

level_trigger_25 = [showgui Companion-Cube]
	newgui Companion-Cube [
	guitext "Hello there" chat
	guitext "I am Companion Cube" chat
	guitext "So you think you have found all the secrets?" chat
	guitext "Try and find the cake in chamber 19" chat
	guitext "When you find it" chat
	guitext "take a screenshot and post it to Leo on the forums" chat
	guitext "Then tell him where the other secrets are that you found" chat
	guibutton "Sounds fun. Ill go search for it now." [echo "Companion Cube: Good Luck"]
]

level_trigger_30 = [showgui Chell]
	newgui Chell [
	guitext "Hey there!" chat
	guitext "Have you found all the special keys?" chat
	guitext "The special keys give off a green light." chat
	guitext "If you think you found them all." chat
	guitext "Find my friend the Companion Cube and" chat
	guitext "he'll tell you what to find next." chat
	guibutton "Sweet, im on it!" [echo "Chell: Bye. Now wheres that cake?"]
]

level_trigger_50 = [showgui Maria]
	newgui Maria [
	guitext "If you are trying to get through this door your out of luck." chat
	guitext "You need a key to get in here." chat
	guibutton "Okay thank you. Goodbye!" [echo "Maria: Goodbye!"]
]

level_trigger_70 = [echo "You found a key!"]
]

level_trigger_80 = [showgui Groundskeeper-George]
	newgui Groundskeeper-George [
	guitext "Help! Father Grigori is trapped" chat
	guitext "he is in the church dungeon locked in a vault with a red door." chat 
	guitext "Flick the switch to save him." chat 
	guitext "But i dont know where the switch is." chat
	guitext "Try having a look in the church tower" chat
	guitext "Or even in the lake." chat
	guibutton "Ill go take a look for it now" [echo "Groundskeeper-George: Please Hurry!"]
]

level_trigger_90 = [showgui Father-Grigori]
	newgui Father Grigori [
	guitext "Thank you brother" chat
	guitext "I thank you for your help" chat
	guibutton "Youre Welcome" [echo Father Grigori: Take Care Brother!]
]
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: GUI Error shows each time i run the cfg

Post by arcones »

what about level trigger 70?

level_trigger_70 = [echo "You found a key!"]
]

do you need another one of these "]"?
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: GUI Error shows each time i run the cfg

Post by Leo_V117 »

i think so, thats where i was confused, the script base looked like the script from halloween house.cfg just added more sounds and triggers and changed the text around. it was working fine before.
Locked