PDA

View Full Version : Z_Malloc allocation failure?


Ken
December 11th, 2000, 09:08 PM
I just downloaded JDoom after reading the blurb in the January PC Gamer; I must say, it is an excellent program! I got it running, D3D and all, with my old copy of Doom II. It looks great, and plays very well and very fast (even with my Voodoo3 AGP that some people on here have commented is troublesome). However, I do have one large problem: After the game runs for a short time, it crashes back to the Windows desktop, citing the arror "Z_Malloc: Allocation failure for 131,096 bytes".

I tried to peruse the FAQs here for an answer to this problem before posting to the forum, but I didn't find any references to this particular error. Anybody know anything about it who could enlighten me?

Thanks!

--Ken

cj
December 11th, 2000, 10:11 PM
It is necessary to set the -maxzone parameter which is similar to -heapsize in Quake. Here is a comment from the author of Jdoom on this point:

-maxzone accepts K and M as postfixes. For instance, "-maxzone 16m"
allocates 16 megs, and "-maxzone 9500k" would allocate 9.5 megs for the
memory zone.

I think that the recommended value is 16 megs so either "-maxzone 16m" or "-maxzone 16000k". So far as I understand, this is only necessary when using the md2 models which I guess you are doing at the moment.

Hope this helps.

Cheers, Kempie.

Stimpee
December 12th, 2000, 02:01 AM
cj is right.

If you put as your command line/batch file:

doomsday -game jdoom.dll -maxzone 16m -doom2

this will allocate 16mb memory and load doom2.


------------------
Stimpee @ http://www.newdoom.com/stimpee

Ken
December 12th, 2000, 01:21 PM
Thanks, cj and Stimpee, for your replies. You were absoultey correct, and now JDoom runs beautifully, no crashes. I'm on level 4 -- it's been a long time since I've played through Doom 2, and it's a welcome return. What a great game. It's so much faster than I remember it being before -- of course, that's probably because my computer sucked back then. *grin*

Stimpee
December 19th, 2000, 02:24 AM
glad I could help! http://forums.newdoom.com/ubb/smile.gif


------------------
Stimpee @ http://www.newdoom.com/stimpee