LxG_JaCeNsolo Posted March 6, 2004 Share Posted March 6, 2004 Hello everyone! I have been mapping for a little time now and have run into a huge progblem. Besides the fact that the time it takes radient to compile my maps near one of the final settings is multiple hours. I am now at a point were it wont compile. I get the following error ------setuptraceNodes----- safe_malloc failed on allocation of 328728576 bytes I am getting that warning after about 4 hours of compiling and it is in red. It stops my compile so i cant do anything. If you could help me with what the problem is and how it can be fixed that would greatly help me. Thanks for a few moments of your time. JaCeNsolo Link to comment Share on other sites More sharing options...
Prime Posted March 6, 2004 Share Posted March 6, 2004 You should try the mapping forum instead Link to comment Share on other sites More sharing options...
Blaster Posted March 11, 2004 Share Posted March 11, 2004 I copied this from a web-site. 'This error basically means that you’re computer has run out of memory. This could happen at any time during the compile process, but it mainly happens during the vis or lighting stages. Try restarting you’re computer before you compile the map to free up memory. Don’t have any programs / applications running in the background, that you don’t need. Install more physical memory. Make sure you have at least 1GB of virtual memory (swap files). Make some of you’re brushes detail because this will decrease compile times.' Hope this helps -Blaster Link to comment Share on other sites More sharing options...
lassev Posted March 11, 2004 Share Posted March 11, 2004 If it doesn't help, check this one out: http://levelforge.teamhuh.com/forgeLink/viewtopic.php?t=326 Link to comment Share on other sites More sharing options...
WadeV1589 Posted March 11, 2004 Share Posted March 11, 2004 Are you compiling with -patchmeta? If you are and you have a lot of patches you'll get that. Also you said after 4 hours it gives you this? Does that mean your BSP and VIS stages are taking a long time? That could also be causing your light stage to crash out like this, if it takes 4 hours to get to that error have you used any detail brushes in your map? You also should reduce the worldspawn _lightmapscale, use a value of at least 2, if you can use 4 without noticing too much shadow loss, do it. Also set _gridsize in worldspawn to 128 128 256. For large maps, _blocksize 2048 2048 2048. Link to comment Share on other sites More sharing options...
GothiX Posted March 11, 2004 Share Posted March 11, 2004 Originally posted by WadeV1589 Are you compiling with -patchmeta? If you are and you have a lot of patches you'll get that. Also you said after 4 hours it gives you this? Does that mean your BSP and VIS stages are taking a long time? That could also be causing your light stage to crash out like this, if it takes 4 hours to get to that error have you used any detail brushes in your map? You also should reduce the worldspawn _lightmapscale, use a value of at least 2, if you can use 4 without noticing too much shadow loss, do it. Also set _gridsize in worldspawn to 128 128 256. For large maps, _blocksize 2048 2048 2048. ..Or just enter -lomem in your compile. Takes a bit longer, but it gets it done. Link to comment Share on other sites More sharing options...
WadeV1589 Posted March 11, 2004 Share Posted March 11, 2004 Gothix you know as well as I do -lomem is a work around, not a fix. When it comes to mapping you should fix before you use what is effectively a hack. And on large maps, that little bit longer can be 45 minutes jumping to 8 hours - which is NO exaggeration. Link to comment Share on other sites More sharing options...
Szico Posted April 1, 2004 Share Posted April 1, 2004 yeah, i tried lomem. never finished . so i just put lightmap scale to 3 and it ONLY JUST did it wiothout safe_malloc Link to comment Share on other sites More sharing options...
wedge2211 Posted April 1, 2004 Share Posted April 1, 2004 -lomem is fine if your map is impossible to clean up, or has a lot of patches or something (I needed it for Tal Erulanei due to the really strange things I had to do with struct brushes and patches). But any map that takes 4 hours to compile is...um...either huge and Mad*Dad-detailed and has crazy shaders and is an uber light stage, or it has something wrong with it. Link to comment Share on other sites More sharing options...
WadeV1589 Posted April 1, 2004 Share Posted April 1, 2004 It's rare rare cases you really truly need -lomem, if you're using -patchshadows and need the the shadows they cast then consider converting the patches to models and using a shader with a shadeangle specified instead. I did that and got my map to compile due to a lot of patch meshes casting shadows. _lightmapscale consideration is also good, always set _lightmapscale to 2 when you start mapping a big map and when you need the shadows, increase it then and only then. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.