'Script was not properly loaded'

Post your scripting questions / solutions here

Moderator: Moderators

Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

'Script was not properly loaded'

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

There was a parse error above. Probably an invalid token. Check your console for more error messages.
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

No error messages (!!!)

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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. :roll:
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

What happens?
Live to map, not map to live.
-mohaa_rox, .map
moderator
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

?

Post by Rookie One.pl »

What what happening?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Rookie One wrote: 3. Guess what will appear 8)
???
Live to map, not map to live.
-mohaa_rox, .map
moderator
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Hmm :)

Post by Rookie One.pl »

Hmm... Mohaa_rox, what notepad is? 8)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

Code: Select all

thread engage_brain

engage_brain:
  if(($brainactivated == NIL) && ($mouth == open))
  {
    //too late
    thread insert_foot
  }
  else
  {
    $brainactivated.process = think
  }
}
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

LOL :D:D:D:D

Post by Rookie One.pl »

ROTFL :wink: :) :P :D :lol: :twisted: Innkeeper
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

More error details

Post 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)! :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

What is the comment? Maybe a script error.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Post Reply