Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: israelbdr on Fri 25/10/2019 21:57:50

Title: Need help with Critical Error [SOLVED]
Post by: israelbdr on Fri 25/10/2019 21:57:50
So, I was begining to learn AGS and was programming my first game and made a "first-person" character change rooms, but after putting the script, it wont launch the game anymore.

It just gives me this message:
ags 0xC00000094 occurred at ACWIN.EXE at EIP = 0x00052330F ; program pointer is -17, ACI version 3.4.3.1, gtags (0,0)

What am I doing wrong ? ???
Title: Re: Need help with Critical Error
Post by: Crimson Wizard on Fri 25/10/2019 23:03:13
This kind of error means there's a mistake in AGS itself.
Error Code 94 is "division by zero".

Do you remember what changes did you do last? Is it acceptable for you to send your game to me to investigate?
Title: Re: Need help with Critical Error
Post by: israelbdr on Sat 26/10/2019 00:52:13
For convenience, here's a GDrive link:
https://drive.google.com/file/d/1v_eygsI7tUa-MXBg5INajRElIVSLK7B6/view?usp=sharing (https://drive.google.com/file/d/1v_eygsI7tUa-MXBg5INajRElIVSLK7B6/view?usp=sharing)
Title: Re: Need help with Critical Error
Post by: Crimson Wizard on Sat 26/10/2019 01:20:33
Oh I see, your inventory window has ItemWidth and ItemHeight = 0. These must have positive value.
When calculating number of rows and columns AGS divides window size on item size parameter, and this leads to division by zero error.

But AGS should take that into account too, this is something that has to be fixed in the engine as well.
Title: Re: Need help with Critical Error
Post by: israelbdr on Sat 26/10/2019 02:36:22
Your solution worked! Thanks for the help, will modify the post to show the [SOLVED] thingy