GlobalVariables Error

Started by Wonkyth, Mon 02/02/2009 11:51:04

Previous topic - Next topic

Wonkyth

I made a Boolean variable in the globalvariables section, but when I tried to test my game I got this Error Message:

Error (line 1): Expected integer value after "="     _GlobalVariables.asc       1


I have absolutely no idea how to fix something like that.
I even tried looking for a globalvariables.asc script file in the directory, so I could open it and see if I could fix it manually.

Anyone know whats going on here?

thanks
"But with a ninja on your face, you live longer!"

Matti

Can you post the relevant script where the variable is used?

And did you create the variable via the global variable's pane?

Khris

I think _GlobalVariables.asc is an automatically created script containing the declarations set up in the Global variables pane.
I've tried creating both an int and a bool with no default value assigned and it did compile fine in both cases.
This could be a fix though since I tested this using the latest beta.

Pumaman

What did you name the variable? Try changing its name and see if that helps.

Wonkyth

I tried deleting, renaming, changing and a few others.
Might have to get the new beta, or just use ordinary variables...
"But with a ninja on your face, you live longer!"

Khris

Could you open the Global vars pane, make a screenshot and upload it for us to take a look at?

Pumaman

Yeah, there are no known bugs with the Global Variables screen, so whatever problem you've uncovered, I'd like to know more about it. A screenshot of the global vars pane when you're having this problem would be really useful.

Wonkyth

Problem.
It's on my other computer.
I can't connect them and I don't own a memory stick.
sorta no can do... :(
"But with a ninja on your face, you live longer!"

Pumaman

Ah, I've managed to replicate it now.

The problem happens if you type "True" or "False" (ie. with a capital 'T' or 'F') for the default value.

Type "true" or "false" instead and it will work.

I'll get this fixed.

Wonkyth

"But with a ninja on your face, you live longer!"

SMF spam blocked by CleanTalk