Internal error with Ags version 3.21.1115 [solved - sort of]

Started by tuckett, Wed 25/05/2011 00:33:07

Previous topic - Next topic

tuckett

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

tuckett

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

monkey0506

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?

tuckett

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.

monkey0506

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?

tuckett

Yes I can reproduce it; maybe it is related to the font I use?

monkey0506

Well can you describe more as far as the exact scenario under which you get this crash?

SMF spam blocked by CleanTalk