funny thing happen to me on the way to making a game

Posted By: sadsack

funny thing happen to me on the way to making a game - 08/31/08 18:11

Hi,

well, I having a problem with GameStudio.
Let say I open a file with some code in this that works fine.
Then I add some code to it, then I save it, then run it. the code will not compile. So I delete all the code I have added to the file. Then I save it, the code it right back to where it was, befor when it compile and ran fine.
Now I try to compile and run it, it will not compile or run, with the same code that it did run and compile befor. I get the same error I got when I added the bad code, even know I amd not using that code anymore.

Now I see that the file are not the same type file anymore.
In the photo you will see two files. One is space_ship and the other is spaceship_roll. The space_ship file work fine, compile and run. The other file spaceship_roll was the same code in the space_ship file, but I put a roll code in it. the new code gave me and error. I delete the code save the file and recompile it. I get the same error that I got with the old code.

The code in the two are the same.
The file space_ship is a c-lite script
The file spaceship_roll is a WDL script



What am doing wrong?
Thank You
renny

I all so found in the GS folder there back up file and delete the spaceship_roll from that and it still seeing the old and bad code.
Posted By: DJBMASTER

Re: funny thing happen to me on the way to making a game - 08/31/08 18:20

Of course it is going to give you an error. You are using the exact same code in 2 files that use different languages.

the .c uses lite-c and .wdl uses c-script. Lite-c functions and syntax is different to c-script, so that is the reason it wont compile, lol.
Posted By: sadsack

Re: funny thing happen to me on the way to making a game - 08/31/08 18:22

how do I keep it in c-lite?
I am not chanding anything, just saving it.
renny
Posted By: DJBMASTER

Re: funny thing happen to me on the way to making a game - 08/31/08 18:24

you have to manually type the file extension .c after you type the filename. Then it will save as .c.

BTW, it's lite-c not c-lite. I have to be picky, sry lol.
Posted By: sadsack

Re: funny thing happen to me on the way to making a game - 08/31/08 18:27

Ok, A7 use lite-c right?
Posted By: DJBMASTER

Re: funny thing happen to me on the way to making a game - 08/31/08 18:33

A7 can use both c-script and lite-c.
Posted By: sadsack

Re: funny thing happen to me on the way to making a game - 08/31/08 18:37

ok, I have learned alot. I try your adding .c to save and it works fine. Thank you very much.
renny
Posted By: DJBMASTER

Re: funny thing happen to me on the way to making a game - 08/31/08 18:47

np, i wonder why conitec haven't fixed this problem or at least added an .c option to the save as dialog.
© 2023 lite-C Forums