Author Topic: Error Message "Unable to allocate storage [...]"  (Read 1833 times)

0 Members and 1 Guest are viewing this topic.

Error Message "Unable to allocate storage [...]"
Hello there,

I'm currently doing a mission which contains a significant numer of events.
I'm trying to set Special Hitpoints values for a number of ships, but at some point FRED throws me the error message "Unable to allocate storage, try deleting Sexp variables".
It seems I've hit some kind of cap. This is true for both FRED 3.6.10 RC2 as well as the Inferno build.
Is there any way to circumvent this?

And while I'm at this another question: Did anyone ever collect the various caps of FRED in a single place? Like number of messages (I know this'll be lifted in the next release), Sexps, variables, maximum number of ships in the different builds, etc. I haven't found anything the like here or in the Freespace Wiki.

Thanks!
"I just can't find a way to do life pods in Freespace!"
"How about the GTEP Hermes?"
"Oh my, where are my eyes..."

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Error Message "Unable to allocate storage [...]"
Number of messages is already unlimited. However, you should give us a few more specs on the mission. How many ships are in there? Have you tried loading it with debug FRED? If so, what does the log say?

Also, you do know that you can just use notepad to add the data manually, right?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Error Message "Unable to allocate storage [...]"
Now that's interesting. The Debug builds assert on loading.

Code: [Select]
Assert: Sexp_variables[sexp_variables_index].type & SEXP_VARIABLE_STRING
File: SEXP.CPP
Line: 4445


Call stack:
------------------------------------------------------------------
    fred2_open_3_6_10_RC2_debug.exe 004c0b8e()
    fred2_open_3_6_10_RC2_debug.exe 004c0bd2()
    fred2_open_3_6_10_RC2_debug.exe 004c0bd2()
    fred2_open_3_6_10_RC2_debug.exe 004c0ebf()
    fred2_open_3_6_10_RC2_debug.exe 00471b48()
    fred2_open_3_6_10_RC2_debug.exe 004685e1()
    fred2_open_3_6_10_RC2_debug.exe 00433c73()
    fred2_open_3_6_10_RC2_debug.exe 004335ef()
    fred2_open_3_6_10_RC2_debug.exe 009e2c06()
    fred2_open_3_6_10_RC2_debug.exe 009e8ea5()
    fred2_open_3_6_10_RC2_debug.exe 009f4e95()
    fred2_open_3_6_10_RC2_debug.exe 00a01279()
    fred2_open_3_6_10_RC2_debug.exe 009f4bf2()
    fred2_open_3_6_10_RC2_debug.exe 009cb334()
    fred2_open_3_6_10_RC2_debug.exe 009cba61()
------------------------------------------------------------------

It may be because my mission includes the -mod fs1mod alongside -mod mediavps; the mission itself runs fine, though and can be edited without problems, there's just the Special Hitpoints issue.
I have attached the fs2_open.log in the end.
So far the mission contains 79 ships, 58 small, 15 big, none huge.


Thanks for the hint regarding notepad-editing, though I only want to use that option as a last resort.

[attachment deleted by admin]
« Last Edit: February 25, 2010, 04:13:38 pm by Evergreen »
"I just can't find a way to do life pods in Freespace!"
"How about the GTEP Hermes?"
"Oh my, where are my eyes..."

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Error Message "Unable to allocate storage [...]"
There is a limit of 100 variables numbered 0-99.  Standard variables start at 0 and go up.  Block variables (which Kara is working on removing) start at 99 and go down in pairs.  Special hits take one pair.  With shields this is 2 pairs.  So 4 variables per ship with special hits.  20 ships with special hits and you just ate up 80 variables.  Add in special explosions which also use them in pairs and that can be even more. 

So you need to either use fewer ships with special hits, fewer variables, clean out all your variables and start over (sometimes you have stuff in there you aren't even using but is not removed), use .tbm files to change hitpoints that way, or wait on Kara's removal of the block variables. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Error Message "Unable to allocate storage [...]"
Now this makes it crystal clear.
Thank you both for the extraordinarily swift help!

I think I'll resort to balancing via SEXPs rather than changing tables or altering special hits.

Thanks again.  :yes:
"I just can't find a way to do life pods in Freespace!"
"How about the GTEP Hermes?"
"Oh my, where are my eyes..."

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Error Message "Unable to allocate storage [...]"
Also, please consider upgrading your fs2_open exes. 3.6.10RC2 is really not recommended for daily usage.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns