Vegeta Posted May 19, 2013 Posted May 19, 2013 I've been trying to compile my Utapau map, but the lighting portion simply wont compile. Everything else in the map is perfect, but when I run the compiler, it gets stuck on phase two. If I skip this phase, then phase three crashes which causes the lighting not to compile. The error that I get when phase three crashes is:************ ERROR ************safe_malloc failed on allocation of 103809024 bytes Some other warnings I get include those similar to the following:WARNING: Flipped triangle: ( -4749 -3128 -11194) ( -4767 -3262 -11194) ( -4753 -3156 -11194) WARNING: Lightmap texture coords out of range: S 127.4146 > 127 || T 29.7226 > 30 I don't know what is causing the lighting to not compile, and therefore do not know how to fix the problem.
Solution Szico VII Posted May 19, 2013 Solution Posted May 19, 2013 http://jkhub.org/files/file/1335-q3map2-2gb-memory-usage/ If you have a 64-bit OS, use this.Otherwise, you're stuck with using the -lomem switch in your light stage.
mrwonko Posted May 19, 2013 Posted May 19, 2013 As to why this happens: It means your lightmaps need a lot of memory to be generated. More than 2GB at once. 32 bit programs can't handle more than 2GB, usually, and never more than 4GB. Probably caused by having a lot of huge terrain, if this looks anything like the Utapau I'm thinking of.
Szico VII Posted May 20, 2013 Posted May 20, 2013 Or low _lightmapscale values. Or low lightmapsamplesize values. Or high light compile settings like samples >3. Or a few others
Vegeta Posted May 20, 2013 Author Posted May 20, 2013 Yeah, the map has both "a lot of huge terrain" and low _lightmapscale values... The new compiler worked btw, so thanks for the help
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now