Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Joacim Andersson on Thu 28/10/2004 14:55:41

Title: Possible bug in AGS engine?
Post by: Joacim Andersson on Thu 28/10/2004 14:55:41
I have just updated AGS to the latest version. I opened one of my game made in an earlier version and then the script for one of the rooms stopped to work.

I have a room with just a message that should be shown for a short while and it should then move on to the next room. I use the following code in Players enter screen (after fadein):

  Wait(100);
  NewRoomEx(1, 160, 203);

This worked in version 2.56 (I at least think that was the version I had) but now it just doesn't change room and because of that the game freezes since there is no other way to move on from this "message room".
Title: Re: Possible bug in AGS engine?
Post by: Gilbert on Wed 03/11/2004 00:52:12
Strange, should work. Are there anything in the "player enters screen (before fadein)", "player enters screen (for the first time)" or "repeatedly execute" events?
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 09:31:03
Nope! That's all the code there is for that room!
Title: Re: Possible bug in AGS engine?
Post by: Gilbert on Wed 03/11/2004 09:34:00
Can you upload the room file in question for us to investigate the problem?
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 09:44:54
I guess I could but I don't see how that would help since I already posted all the code that exists for that room. As I said it worked just fine in the earlier version of AGS but in the latest version it just doesn't change room.

Where can I upload the file?
Title: Re: Possible bug in AGS engine?
Post by: Gilbert on Wed 03/11/2004 09:55:16
If you don't have webspace yourself, you may try zipping the crm file and use this:
http://www.2dadventure.com/ags/upload/upload.html
(but don't abuse the use of the uploader)
Title: Re: Possible bug in AGS engine?
Post by: Pumaman on Wed 03/11/2004 20:24:53
Try bringing up the debug console immediately after entering the room, and see if it attempts to change the room.
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 21:02:22
I was wrong, the code in Players enter screen (after fadein) are as follows:
  Wait(100);
  FaceLocation(EGO, player.x, 0);
  NewRoomEx(1, 160, 203);
When I press Alt+X to terminate the program it says that it was aborted on the line with the FaceLocation call. The player is hidden in this room so that might be the reason (I just wanted him to be turned in the correct position before changing room) however this worked just fine in the earlier version of AGS.
Title: Re: Possible bug in AGS engine?
Post by: Pumaman on Wed 03/11/2004 21:28:51
If you have "Characters turn to face location" switched on, yet the character is hidden when you call FaceLocation, it will hang v2.61.

This has been fixed in the latest beta (actually, now the Final) for 2.62, so try upgrading to that and see if it fixes the problem.
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 21:48:49
Thanks CJ, but where can I find v2.62?
Title: Re: Possible bug in AGS engine?
Post by: Scummbuddy on Wed 03/11/2004 23:28:24
the first post of this very topic
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 23:48:29
Quote from: Scummbuddy on Wed 03/11/2004 23:28:24
the first post of this very topic
QUE?????
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Wed 03/11/2004 23:50:23
Oh... You mean the first thread of this forum... Thanks!
Title: Re: Possible bug in AGS engine?
Post by: Scummbuddy on Thu 04/11/2004 00:03:41
youre right, im sorry, i thought this was within the 2.62 release thread, not the bug report thread. i should have just posted a link.
Title: Re: Possible bug in AGS engine?
Post by: Joacim Andersson on Thu 04/11/2004 00:17:13
No worries! I downloaded v2.62 and the problem is solved. Thanks again!