max_patches error
Im getting this error when I compile my map. Im aware it may mean my map is too big. Is there a way to change it so that i dont have to change my map, but make the max_patches value higher or something like that?
__________________________________________________________________________
10776 faces
Create Patches : 70594 base patches
0 opaque faces
344620 square feet [49625332.00 square inches]
Error: Exceeded MAX_PATCHES
Description: The map has a problem which must be fixed
Howto Fix: Check the file ZHLTProblems.html for a detailed explanation of this problem.
__________________________________________________________________________
Thanks...
try using -chop
what does that do though? the compiler told me to set it to something below -96 or 96 or something i forget.
i think you messed around in the hammer editor without scaling the textures. so that the scale is 1 or you press the fit button to apply a texture. if so you can retexture your map now because, fit is the wrong step in the texture applieing section.
ur saying i DID use "fit" and stuff or i didnt? cuz i did scale textures, i dont use fit anymore since i started building on 16 unit grids so i dont need to fit too many textures anymore. maybe i just dont understand what ur saying.
i`m useing batch compiler and i fix it this way open your batch compiler go to HL under MOD you will see Heap size and Particles they are 65xxx delte those 65xxx and write 100000 or more if you want on both this should fix the max patches err but 1st try to scale walls ground etc or make the textures 256x256 or 512x512
i never said that you use FIT. i properly saying it because it comes mostly on beginners maps because they don't know how to apply the textures right and also the fit button for applying textures cause this problem mostly too. because of the lowscaling of the texture.
and max_patches to fix for an outstanding person without seeing screenshots is really hard
[blockquote]Create Patches : 70594 base patches[/blockquote]
Exceeded MAX_PATCHES
When hlrad runs, it takes all the visible faces in the game, and divides them into sections called patches. These patches are the textures used as the lightmaps for the world. There is a hard limit of 65535 patches that hlrad can deal with. By default, a 64x64 game unit chunk of space is the size of one patch. If the texture scaling (not texture size) is larger or smaller, it will directly affect the lightmap size as well. This means a texture with scale of 2, will have at best 1/4th as many patches as a texture with a scale of 1.
Putting a 'box' around the level to protect from leaks is the most commmon cause of this error, beyond excessively large maps. The box causes vis to keep the faces on the outside which would normally be thrown away. These faces are then required to have lightmaps. Worst case, is that putting a box around the level will usually cause an extra 40-80% more lightmaps to be created than necessary.
Barring having a box, the other cause is large maps. The fixes are varied but can only help so far.
Remove any "box" from around your level and fight the leak leak leak war the right way.
If you have not boxed in your level, then the #1 fix is running HLRAD with the -sparse flag - but compile will be slower.
Using -chop values larger than the default 64 for hlrad will cause the light patches to be larger. However, for values larger than around 96 the map's lights start looking bad, and will more prominently show the 'staircase' effect on shadows.
Using a larger scale on large textures (dirt, rock walls, concrete) will help those large surfaces consume fewer patches for lighting.
from http://www.slackiller.com/tommy14/errors.htm
ya i read that before i posted this thread, plane, but thx. ima try psy's fix
edit:
the REAL problem is that i have a leak in my map but i CANNOT for the LIFE of me find it. the compiler is giving me a general area but i cant find it and its annoying the piss out of meeee >:E
EDIT: OK I FIXED EVERYTHING!
COME TO PHOOGI BHOP SERVER TO TEST IT BZ's!
timmy your map still has a leak in it lags the shit out of the server and theres a section where if more than one person tries to jump it at athe same time they get random tp's back and cannot even reach the first block
http://img11.imageshack.us/img11/9835/bhopbleu0000.png
well it was on the server originally before i fixed it up. i know for a fact theres no leaks in it so gangien might not have put the new one up yet. ill check it out if i can
EDIT: also ill rework that room i really dont like it to begin with. i just kinda threw that area together. maybe ill make it kz or something...we all know bhop maps now a-days need kz in them :P (sarcasmmmm, but im still gonna make it kz!)
Please log in to post replies.