Help!!! G_script_scriptparse(),error


(mulganuar) #1

I am new to map scripting but am learning a lot from existing map scripts. I have a new map I’m trying to do a script for and I keep getting the following error when the map tries to load under the devmap command:

G_script_scriptparse(),error(line0) ‘{’ found name expected

I have gone through my new script and can find no brackets that aren’t paired up, am I missing something or is the error in my internal map functions scripting? Any help would be extremely appreciated as I’m retarded about scripting until I learn more about it.
Thanks


(-SSF-Sage) #2

First of all: You will need to double check again if you have a missing bracket etc. structural typo. If you can’t find it, post your script here and we’ll try to find the typo out. Note, the typo might not be in the line that it says, it might be ANYWHERE in the script file. GL!


(Wezelkrozum) #3

I think it is a fault like this:


{
 spawn
 {
  wait 100
  setstate bridge_materials1 default
  setstate bridge_materails2 invisible
 }
}

It must then be this:


BRIDGE
{
 spawn
 {
  wait 100
  setstate bridge_materials1 default
  setstate bridge_materails2 invisible
 }
}

De difference is that i forgot the name of the entity (bridge).
The error say: that he found a “{” but he expect the name of the entity befor the “{”. So you probably forgot to typ the name of the entity or something before a “{”. Or you typed 2 times a “{”.

If you can’t find the error on your own. please post the script. We will find it!


Greatz Wezelkrozum, mapper for et:qw and wolf:et