Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: tuckett on Wed 25/05/2011 00:33:07

Title: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: tuckett on Wed 25/05/2011 00:33:07
Hi all,

New to the forums so hi :)

I get this error when my player character is about to say something from the global script

player.SayAt(260, 85,  50, "Ouch!");

This is contained within a gui on button click event

Error: Out of memory: failed to allocate -24544 bytes (at PP=155)

If I take the player.say out it has no problem, and I am having no problem with my character saying things elsewhere in the global script. If anybody could give me a tip I would appreciate it.

Cheers
Title: Re: Internal error with Ags version 3.21.1115 [solved]
Post by: tuckett on Wed 25/05/2011 00:46:17
Okay it appears that I can do what I want by using a room message instead and no error is thrown; still might be worth checking out what caused the error through
Title: Re: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: monkey0506 on Wed 25/05/2011 03:53:02
Was there a CrashDump.dmp file generated by the crash? It could be useful to upload if there was. Either way this shouldn't be happening, are you running this from a flash drive or other portable media?
Title: Re: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: tuckett on Wed 25/05/2011 10:39:59
No crash dump file generated sorry. Also not running from portable media just from internal hard drive as per usual. Using win 7 32 bit if that helps. I think the error relates to the message size from the SayAt statement as if I use a larger number it tends to work fine.
Title: Re: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: monkey0506 on Wed 25/05/2011 11:02:35
I'm guessing that from "message size" you were referring either to the WIDTH parameter you're passing in to SayAt, or the length of the text itself. Either way, I can't reproduce a crash using SayAt.

If you pass a WIDTH parameter that is less than the width of the text when displayed in the speech font then the text isn't drawn to the screen at all (though the character does say the line, and animates in their speech view).

I've also tested SayAt with only a single letter and it worked fine.

So I'm really not sure what could have caused this problem. Can you consistently reproduce it?
Title: Re: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: tuckett on Thu 26/05/2011 07:20:52
Yes I can reproduce it; maybe it is related to the font I use?
Title: Re: Internal error with Ags version 3.21.1115 [solved - sort of]
Post by: monkey0506 on Thu 26/05/2011 20:34:28
Well can you describe more as far as the exact scenario under which you get this crash?