Page 1 of 1

stTime not working?

PostPosted: Mon May 21, 2012 6:18 pm
by Hblade
I even tried copy and pasting from the "Download demo here" in the script reference. Still no luck, I get an error saying:
Error line 1: Incorrect function usage: getTime
and cannot convert const to struct? >.>

Code: Select all
stTime t = getTime();

Thats the line that gives me the error, and it doesn't matter WHAT I name it, it can be t, or OIEWFINWOEFNo for all that matters.


BUT! heres the comedy of all of this.

I can easilly go in the ONLY SCRIPT in the demo, and change it to any name I want and it still works. Mysterious

EDIT:
more info here :D...

Appearently if I start a new game and THEN do it, it works like a charm. Some mysterious and unknown force is limiting this from happening in a *barely any variables* game.





EDIT 2:


If I start a new game from the Demo, it works.
if I start a new game from MY GAME, it doesn't work.

By start a new game, I mean click File - new.

Wha..Hu..Huh?...when....What/ O-o



EDIT 3:
Even more mystery on our hands folks. If I load my game up using the demo first, then clicking File Load, I can use getTime

Re: stTime not working?

PostPosted: Tue May 22, 2012 11:42 am
by Bee-Ant
Can you post the code above the stTime?

Re: stTime not working?

PostPosted: Tue May 22, 2012 4:11 pm
by Hblade
There was nothing above the stTime. For some reason it was very very weird, I even clicked File - New and had an empty un-named project without any actors in it what so ever, and then tried that 1 simple line of code (Copied and pasted from the demo) and it still didn't work. However when I went to the demo and clicked File - new and tried the exact same thing, it worked. O.o Either way, heres what I did:

I opened the demo, then clicked File - Load and loaded up my game project, then the stTime worked O.o

Re: stTime not working?

PostPosted: Tue May 22, 2012 8:30 pm
by Bee-Ant
Seems like something is missing in your current ged. Maybe the demo is created with older version of GE?that's contains something?like "error freepass"?
And then once you open the demo, it applies the "freepass" to the system like "here my freepass, so let me through"... that's why you didn't face any error :P
And when you clicked New Game, it pass the "freepass" effect?
Well, shallow logic. I know :P

Re: stTime not working?

PostPosted: Tue May 22, 2012 9:17 pm
by Hblade
It makes sense though :D But at first I was like "I can count to cookie?"