Page 1 of 2
'Script was not properly loaded'
Posted: Tue Feb 04, 2003 6:56 pm
by Rookie One.pl
I try to run my hostage script and I get this ^ error. It's called by an exec command after level waitTill spawn. What's wrong?
TIA,
Rookie One
Posted: Tue Feb 04, 2003 7:06 pm
by jv_map
There was a parse error above. Probably an invalid token. Check your console for more error messages.
No error messages (!!!)
Posted: Tue Feb 04, 2003 7:50 pm
by Rookie One.pl
That's it! I don't get any other error messages (I've read all the console messages) and that's why I wrote here! By the way - invalid token of what?
Rookie One
Posted: Tue Feb 04, 2003 8:28 pm
by jv_map
Before starting your map, type 'logfile 2'.
Start your map, wait till it's loaded and quit.
Then open qconsole.log in the main folder. See if you can find any errors now.

Posted: Wed Feb 05, 2003 11:06 am
by Rookie One.pl
Well, that's the console log command??? I was looking for it for ages!!! You gave me this, I'll give yous something else. It's amazing what things you can find in MoHAA's console! Yesterday I've found a very handy tool for scripters.
1. Open the console window.
2. Type 'notepad' and hit enter.
3. Guess what will appear 8)
Rookie One
Posted: Wed Feb 05, 2003 11:13 am
by mohaa_rox
What happens?
?
Posted: Wed Feb 05, 2003 12:28 pm
by Rookie One.pl
What what happening?
Posted: Wed Feb 05, 2003 12:32 pm
by mohaa_rox
Rookie One wrote:
3. Guess what will appear 8)
???
Hmm :)
Posted: Wed Feb 05, 2003 12:47 pm
by Rookie One.pl
Hmm... Mohaa_rox, what notepad is? 8)
Posted: Wed Feb 05, 2003 1:48 pm
by Innkeeper
Code: Select all
thread engage_brain
engage_brain:
if(($brainactivated == NIL) && ($mouth == open))
{
//too late
thread insert_foot
}
else
{
$brainactivated.process = think
}
}
LOL :D:D:D:D
Posted: Wed Feb 05, 2003 7:46 pm
by Rookie One.pl
More error details
Posted: Wed Feb 05, 2003 7:53 pm
by Rookie One.pl
Hey! I have some more details on that error:
Code: Select all
bad token:
TOKEN_RIGHT_BRACES:
}
} (global/hostage.scr, 377)
^
^~^~^ Script file compile error: Couldn't parse 'global/hostage.scr'
ScriptMaster::GetScript: Script 'global/hostage.scr' was not properly loaded
But I don't understand it

, on line 377 there's
only a comment (and after it there's a blank line)!

Posted: Thu Feb 06, 2003 11:48 am
by mohaa_rox
What is the comment? Maybe a script error.
Posted: Thu Feb 06, 2003 12:53 pm
by Rookie One.pl
That line is a commented out thread call. There was something wrong with it, so I decided to make it a comment.
Posted: Thu Feb 06, 2003 1:28 pm
by jv_map
Well I told you it was a bad token. I suppose you have more {s than }s and thus an invalid compound statement.