Compile Error

KazaQKazaQ Join Date: 2003-06-24 Member: 17667Members
<div class="IPBDescription">Help me please!</div> When I compile the rad program gives me this error

10%...Error: Memory allocation failure
Description: The program failled to allocate a block of memory.
Howto Fix: Likely causes are (in order of likeliness) : the partition holding the swapfile is full; swapfile size is smaller than required; memory fragmentation; heap corruption

and also doesnt do its job. So the map ends up looking as though I didn't run rad at all. Also I looked into the disk space thing I have 50 somethin gigs free.

Don't you dare tell me to go get the latest zoners tools either. Because I have them.

And hell the computer was defraged yesterday. So I dont know what is goin on with this thing.

Comments

  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    The memory it's running out of isn't disk space, it's RAM. A complex level can take half a gig of RAM to light without blinking.

    Like the error message says, you may need to increase your Virtual Memory swapfile or make sure the partition holding your swapfile isn't full (are the 50 gigs free on the drive letter holding the swapfile)? Before I can give instructions on checking your swapfile, I'll need to know what version of Windows you're running.
  • KazaQKazaQ Join Date: 2003-06-24 Member: 17667Members
    Ok Im running WIN2K and Yeah I only have one hd so those 50 gigs are on that one.

    Ok, and the comp stats are.
    Prossesor : AMD Athlon ™ XP 2100+ 1732MHZ
    Memory : 261,664 KB RAM
    Page file : 162MB used 837MB available

    I got those stats from DirectX Diagnostic. Is the Page file It is refering to the one that needs changeing? If so How?
  • amckernamckern Join Date: 2003-03-03 Member: 14249Members, Constellation
    useing the -sparse comand line option will also ease up on the ram use as well

    amckern
  • KazaQKazaQ Join Date: 2003-06-24 Member: 17667Members
    But, would that reduse the overall quality just like running -fast on vis?
  • NayNay Join Date: 2002-06-09 Member: 741Members
    right dont run -fast on vis on your final compile all i suggest is to restart your computer before doing the compile this problem happened to me because i set alot of rad options ( -extra, -sparse, -dscale 3, -chop 32 and finally -smooth 80 ) and i have 1gig of ram, all i did was restarted pc and recompiled <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
  • ShadowicsShadowics Join Date: 2002-11-07 Member: 7652Members
    Between your ram and the page file you should have enough. Try restarting like Nay said.

    -sparse uses a different method to calculate the vismatrix. It requires less memory but more processing. It does not reduce the quality at all, but may increase the compile time.
  • YamazakiYamazaki Join Date: 2002-01-24 Member: 21Members, NS1 Playtester, Contributor
    Always consider -sparse a last resort, it is not the optimal method of compiling. I would instead narrow down the actual cause of the problem instead of using that parameter. Check how much RAM your system is using, you might have other programs hogging it all. As Cagey said, compiling easily takes up half a gig of memory, so try to have as much RAM available as possible so that it doesn't have to use up much virtual memory (Virtual memory is where the processing slows way down).
  • ShadowicsShadowics Join Date: 2002-11-07 Member: 7652Members
    Why would you consider -sparse a last resort? If I compile any but the smallest of maps on my laptop, which has only 64 megs of ram, -sparse is faster because even though it requires more work from the CPU, it uses the swap file less. So overall it's actually faster. Even -nomatrix, which acts like -sparse except that it doesn't create a vismatrix at all, shouldn't be considersed a 'last resort' by any means. It's merely an option which you can choose depending on the situation. Also -sparse and -nomatrix also break the limit of light patches, which is another reason to use them.
Sign In or Register to comment.