Assorted bugs(?)

Started by Quintaros, Thu 05/05/2005 16:48:40

Previous topic - Next topic

Quintaros

I have a couple of minor problems with a few areas of my game that may or may not be caused by bugs in the engine (haven't yet upgraded to 2.7 so this is version 2.62).

One problem involves a room that doesn't seem to save properly so that changes in the room script are not executed when the game runs.Ã,  Specifically, I removed a command to create an overlay in room 35.Ã,  However the overlay continues to appear when I visit room 35 during the game.Ã,  But if I save a duplicate of room 35 as room X, room X functions properly without the overlay.Ã,  So a work-around is to change all my NewRoom references in the game from 35 to X and ignore the problem.Ã,  Still I'd like to find out what caused this particular room to go wonky in the first place.

Another problem occurs in a couple of different rooms.Ã,  I know the cause of this one but not the fix.Ã,  In pursuit of organizing my characters and sprites, I changed the slot that my blank character (used for phone calls, etc.) is stored in from slot 7 to slot 0.Ã,  What I mean is I changed character 0's script name from EGO to PHONE and changed the view referenced.Ã,  Additionally I changed character 7's script name from PHONE to HANDY and used this slot for a handyman character with a different view.Ã,  Now when the game runs it shows the handyman where the blank graphic should be even though the script calls the character by its name PHONE rather than number.Ã,  It seems the game still thinks that PHONE=7 and hasn't updated to PHONE=0.Ã,  I attempted a rebuild of all the room files but that did nothing.

strazer

1) If you change room 35's script, save the room, then reload it, do you see the changed code in the room script? If so, there's probably some code somewhere else (global on_event, repeatedly_execute(_always)?) where the overlay is created.

2) Do you have by any chance some views that are also called PHONE or HANDY? Try renaming them.

Another thought: Are your game files maybe write-protected so AGS can't overwrite them? Maybe you have copied the files from a CD to the hard drive?

Pumaman

1) Also, make sure you haven't got a copy of the room file in your Compiled folder.

In fact, to be on the safe side, delete the Compiled folder and re-save the game.

quintaros at work

Quote from: strazer on Thu 05/05/2005 17:13:07
1) If you change room 35's script, save the room, then reload it, do you see the changed code in the room script? If so, there's probably some code somewhere else (global on_event, repeatedly_execute(_always)?) where the overlay is created.

2) Do you have by any chance some views that are also called PHONE or HANDY? Try renaming them.

Another thought: Are your game files maybe write-protected so AGS can't overwrite them? Maybe you have copied the files from a CD to the hard drive?

1) Yes the changed code remains in the room script upon re-loading the room.  I've looked for global script references and there aren't any for room 35.  The game was backed up on CD and copied to hard drive but all the other rooms would be read-only as well if this were the source of the problem.

I'll do as CJ suggests and delet the compiled folder.

SMF spam blocked by CleanTalk