Author Topic: Z_Malloc: failed on allocation of 31481880 bytes from the main... [Kinda Solved]  (Read 11437 times)

MrFish

  • Posts: 201
  • Turrets: +16/-500
Ok, so I didn't know it was possible to have too much stuff for the game to run. So after 3 hours of making this map I'm really disappointed because I haven't even started and it's already too big. What are some tips to decrease the memory needed? I don't understand how maps like the transit station has all that stuff but it runs fine. Here are some screenshots of my map so far. The bases weren't in the correct places but I was going to test out what I've done so far (it's a castle btw).

http://img268.imageshack.us/img268/3177/toomuchmemory.png

I'm guessing the stairs is what gave it a heart attack.
« Last Edit: June 03, 2009, 06:29:41 pm by MrFish »

Demolution

  • Posts: 1198
  • Turrets: +157/-64
Re: Z_Malloc: failed on allocation of 31481880 bytes from the main zone
« Reply #1 on: June 03, 2009, 06:56:03 am »
You don't have that many things in there yet. Make sure to detail brushes for most of your brushes (take a look at this, specifically Ingar's response), and remember to use hint brushes.
« Last Edit: June 03, 2009, 06:57:49 am by Demolution »

Clan [AC] - For all your air conditioning needs please visit: http://s1.zetaboards.com/AC_NoS/index/
my brain > your brain.
and i am VERY stupid.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Re: Z_Malloc: failed on allocation of 31481880 bytes from the main zone
« Reply #2 on: June 03, 2009, 04:23:09 pm »
Ah I get it now with the hint brushes and stuff. So I tried it out but it didn't work. Could you tell me if I put these in the wrong place?



This castle right now is just floating inside a huge box. It's got a basement so I put the hint brushes near the basement and anywhere you can look inside the basement, I also put it at the top of the castle so that it's not rendering all of the large box. I thought this would work.
« Last Edit: June 03, 2009, 04:25:14 pm by MrFish »

MrFish

  • Posts: 201
  • Turrets: +16/-500
Ok so I figured out it's my textures that's screwing it up. I switched out the textures with another one from the church map and it ran fine. Why does my textures screw it up?

Evoc

  • Posts: 127
  • Turrets: +13/-12
How large are the textures (in terms of file size), and what resolution are they?
Quote from: ...lying to people about being banned...
Evoc: I JUST GOT BANNED FROM THE FORUMS
Amanieu: lolwut
Thorn: nice
your_face: rofl
Thorn: the less places you can say anything the better

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Z_Malloc: failed on allocation of 31481880 bytes from the main zone
« Reply #5 on: June 03, 2009, 09:16:51 pm »
Ah I get it now with the hint brushes and stuff. So I tried it out but it didn't work. Could you tell me if I put these in the wrong place?
Yes, you didn't use hint brushes right. Understanding Vis and Hint Brushes in case you want to understand it. And still, make everything you can into detail.

Demolution

  • Posts: 1198
  • Turrets: +157/-64
Re: Z_Malloc: failed on allocation of 31481880 bytes from the main zone
« Reply #6 on: June 03, 2009, 10:55:29 pm »
Ah I get it now with the hint brushes and stuff. So I tried it out but it didn't work. Could you tell me if I put these in the wrong place?
Yes, you didn't use hint brushes right. Understanding Vis and Hint Brushes in case you want to understand it. And still, make everything you can into detail.

Forgot to post this link as well. :P

Clan [AC] - For all your air conditioning needs please visit: http://s1.zetaboards.com/AC_NoS/index/
my brain > your brain.
and i am VERY stupid.

MrFish

  • Posts: 201
  • Turrets: +16/-500
Hey! It's evoc :D

Anyway, I think it was because the texture resolutions were too large. I tried a smaller door texture from the same location and it worked so I need to shrink down my textures. And I did read through that hint/vis tutorial thing before using the hint you see in the screen shots in my above post. Not sure what's wrong about it, I'll look over it again.

~Groog
« Last Edit: June 03, 2009, 11:49:58 pm by MrFish »

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Textures should not exceed 800x600 pixel as far as I know. I think there is only one map that uses 1024x768 or bigger textures.

Demolution

  • Posts: 1198
  • Turrets: +157/-64
Textures should not exceed 800x600 pixel as far as I know. I think there is only one map that uses 1024x768 or bigger textures.

Which map might that be?

Clan [AC] - For all your air conditioning needs please visit: http://s1.zetaboards.com/AC_NoS/index/
my brain > your brain.
and i am VERY stupid.

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Textures should always have side lengths as powers of 2: 128, 256, 512, 1024, 2048, 4096, etc.
Most graphic cards support texture sizes up to 2048, some more.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

gimhael

  • Posts: 546
  • Turrets: +70/-16
Also remember that the textures have to be stored uncompressed in graphics memory, so even if your 2048x2048 texture is only a 20k jpeg, it will eat 16MB + ~5MB for mimaps of the texture memory.

Ouisri

  • Posts: 9
  • Turrets: +0/-2
Wow, I didn't know this before about the resolution of texture 2048x2048 eat about 16MB+~5MB, you bring up a very good point. Thanks very much.

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
I'm sure I've reported this necroer-spambot before, why is it still here?
« Last Edit: August 02, 2010, 07:58:30 pm by UniqPhoeniX »

Aelita

  • Posts: 743
  • Turrets: +147/-34
This is the trem.net forums, do you think the mods actually do anything here?