SOLVED: Error: Out of memory failed to allocate-1795162107 bytes (at PP=200)

Started by Slasher, Sun 23/06/2013 18:36:37

Previous topic - Next topic

Slasher

Hi

any idea as to why this error message should arise?

Error: Out of memory: failed to allocate-1795162107 bytes (at PP=200)

cheers





RickJ


Crimson Wizard

PP = 200 means room load has started.
What is your room size and number of backgrounds?

Slasher

Hi

Room to load is 640 x 480. One background Only. My RAM is a modest 352Mbs HD 1 Gig spare.

The game was ok earlier yet when I opened the game later to play the game I got the error.

cheers




Ryan Timothy B


Crimson Wizard

Yes, the small room like that can't take so much.

Might be a corruption in game data too. Did you imported a project in other editor version recently? What will happen if you run "Rebuild all files" command from menu?

Slasher

Hi

QuoteDid you imported a project in other editor version recently?
No.

QuoteWhat will happen if you run "Rebuild all files" command from menu?
I will try that. BRB

edit: AGS errors and closes program!

Should I use game bak?



Crimson Wizard

What AGS version do you use?
Were there any errors in the editor recently during the compilation or saving the game?

There's certainly a corruption of room file (*.crm), I think.

Slasher

Hi

3.2.1

No errors until I started computer later in the day and opened AGS and ran game.

Here is the script for part before error occurs:

Code: AGS
cspaceman.Walk(602, 1250, eBlock, eAnywhere);
 cspaceman.Say("SAL: Activate landing systems. Prepare to land. Maybe I can find the solutions to the ship's   problems on this planet.");
 game.speech_text_align =eAlignLeft;
 Button23.Animate(5,0, 3, eRepeat);
 cSpace.SayAt(3, 300, 200, "Landing systems activated.");
 Button23.NormalGraphic=414;
 game.speech_text_align =eAlignCentre;
 float duration = 2.5;
 cPlanetPB11.TweenScaling(2.5, 170, eEaseOutTween, eNoBlockTween);
 cspaceman.Walk(cEgo.x +0, cEgo.y -120, eBlock, eAnywhere);
 cPlanetPB11.TweenScaling(2.5, 200, eEaseOutTween, eNoBlockTween);
 cspaceman.Walk(cEgo.x +0, cEgo.y -90, eBlock, eAnywhere);
 cspaceman.ChangeRoom(6, 265, 249);


Crimson Wizard

Well, if you have a backup, I'd suggest you to replace the room which gives this error.

Otherwise, I don't know if you will be able to load the room in the editor... Maybe you can try to open only script and copy it somewhere, then recreate the room.

Slasher

Hi

QuoteThere's certainly a corruption of room file (*.crm), I think.
This does in fact appear to be the case. I loaded a different Room and it was ok.

I deleted the 'bad' Room and made a new Room to replace it. I added the background and it changed with no problem so i guess corrupted Room.

All I have to do now is rebuild everything. Aghhhhhhhhhhhhhhhhhhhhhhhhhhhh

Thanks Crimson

Oh well, such is life.

Cheers guys


SMF spam blocked by CleanTalk