Phantom script?

Started by Ryan Timothy B, Fri 21/05/2010 18:35:01

Previous topic - Next topic

Ryan Timothy B

Alright, I was thinking that I was going insane.  I've tried it several times and can't figure it out.
Lately I've been working on this game, and whenever I'm at a certain point with programming, I zip the game and send it to the other team member to add dialogs and responses.

Well today, for some reason, I unzipped the game and added some new lines to the script.  Then I noticed nothing was changing.  I would literally comment out sections of the intro scene to figure out what was going on, and it would still play as if it wasn't commented out.  So then I started changing the player's X Y coords and adding random player.Say throughout the script, nothing would change.

It's as if it's running the script files from one of the previous builds or something?  Or through the AGS backup file.  I even changed the directory names for the older builds, just in case.  Has anyone ever encountered this before?

It only seems to be a problem in the ONE room (number 1), the rest seem to compile properly and not use some phantom script.


Edit: I figured out how to reproduce it.  I unzip the game the team member sent me.  Which is actually missing the folders (not sure why he didn't include them, perhaps he had issues on his end):
AudioCache
Compiled
Music
Sound
Speech

At this point I can freely change anything in the room script and have it update.  But as soon as I go to build the game files, the issues starts.

I'll just use the previous build to prevent any issues.

discordance

This actually happened to me too once, also in Room 1 (not sure if that's a coincidence). That is, changes to the room script didn't do anything and it kept running with an old version of the script. It didn't seem to have anything to do with zipping/unzipping it though, so it might be a different issue. I ended up copying out the script and rebuilding the entire room.

Pumaman

Were the folders like Compiled already there on your disk? ie. did you unzip it into an existing game folder that you already had?

If so it could be related to the timestamps and AGS not realising that the file has changed; running a REbuild All from the Build menu should fix it if this happens.

Ryan Timothy B

All the game versions were in their own separate folders in the same directory.

It's funny, before I had reported this, I had unzipped it 2 or 3 times to see if the problem was recurring or just an odd error.  Well the error happened each time.

Since I kept the zip in case you wanted to look at it, I decided to try it again today.  And low and behold, the bloody thing compiles correctly with the room changes in effect.  Weird.


I'll definitely try to remember the Rebuild all files if this error ever does happen again.  Thanks.

SMF spam blocked by CleanTalk