Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Bernie on Sat 08/01/2005 16:21:58

Title: Character Control System Plugin troubles (SOLVED)
Post by: Bernie on Sat 08/01/2005 16:21:58
When I add this plugin to my game, random crashes start to happen when changing rooms and sometimes when clicking.

Even just adding it without calling any plugin commands cause those crashes. I tried to specify that blank view the CCS needs, but it didn't help either.

Any ideas? I'm using AGS v2.62.

Thanks~

EDIT - more info:

The problems seem to be caused by a custom follow character thing I made. In 'on event' on 'enter_room', I change a characters' current room with character[].room, and also set its x and y - values afterwards. That character is not using any CCS commands, so I don't understand what it has to do with it...

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F73AED ; program pointer is +204, ACI version 2.62.772, gtags (2,30)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.


---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F73905 ; program pointer is +379, ACI version 2.62.772, gtags (49,88)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F4852F ; program pointer is +211, ACI version 2.62.772, gtags (2,30)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F4852F ; program pointer is +3336, ACI version 2.62.772, gtags (2,0)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F4852F ; program pointer is +335, ACI version 2.62.772, gtags (2,0)
Title: Re: Character Control System Plugin troubles
Post by: strazer on Mon 10/01/2005 05:21:49
Hm, maybe those random crashes are the result of out-of-bounds accesses to some array? That has been known to cause weird, hard to track down issues.

AGS v2.7 will have array bounds checking in addition to various other improved script checks, so try making a backup of your game and then load it with the latest beta. See what the compiler says when you try to save the game or what error messages you get when changing rooms.
Title: Re: Character Control System Plugin troubles
Post by: Bernie on Mon 10/01/2005 10:41:18
Actually, I think it was my computer being weird. I restarted it today, and the errors seem to be gone. I didn't change anything in the game, either.

Thanks anyway. :)
Title: Re: Character Control System Plugin troubles (SOLVED)
Post by: Scorpiorus on Tue 11/01/2005 08:51:59
Ah, there is actually a bug in the plugin as it only supports having 150 characters while 2.62 doubles that number.

Thanks for the bug report, I'll get it fixed. ;)
Title: Re: Character Control System Plugin troubles (SOLVED)
Post by: Gilbert on Tue 11/01/2005 09:03:03
Hehe, seems that CJ forgot to update the manual after increasing these limits (not even the V2.7 Beta 11 one ;) ), by comparing with changes.txt of V2.62, at least the following limits weren't updated accordingly in Reference -> System limits:

Number of characters
Number of views
Number of GUIs
Title: Re: Character Control System Plugin troubles (SOLVED)
Post by: Scorpiorus on Tue 11/01/2005 17:35:28
Ok, here is a fixed version of the plugin - it should work properly now. Although, I was unable to replicate these crashes there definitely was a problem with plugin may violate memory access in AGS 2.62.

http://www.geocities.com/scorpiorus82/ags_ccs103.zip (copy & paste)

But let me know if the problem still persists.

EDIT:

QuoteHehe, seems that CJ forgot to update the manual after increasing these limits
Yeah, there are old limits listed there. I think that's because they are rarely viewed as we can just look for the limits through the AGS Game statistics menu item. :)
Title: Re: Character Control System Plugin troubles (SOLVED)
Post by: Pumaman on Tue 11/01/2005 20:15:29
QuoteHehe, seems that CJ forgot to update the manual after increasing these limits (not even the V2.7 Beta 11 one 

So I did; I'll sort it out ;)
Title: Re: Character Control System Plugin troubles (SOLVED)
Post by: Bernie on Tue 11/01/2005 21:55:35
QuoteOk, here is a fixed version of the plugin - it should work properly now. Although, I was unable to replicate these crashes there definitely was a problem with plugin may violate memory access in AGS 2.62.

Great, thanks! :D