Autogen makes bad *.res files
In the last map release 4 out of 4 maps had bad *.res files. Bad *.res file can cause addition lag in server if someone is downloading the map. Also because of bad *.res file ugly warnings messages are printed in console.
How to fix it? Very simple...
After autogen your *.res, open it with notepad.
Remove all files which does not exist (unusually these are wad file which you include to your bsp map).
Remove all files which comes with standart CS system (like halflife.wad, cstrike.wad, and all other files which every one does have).
Files like halflife.wad in *.res file can cause a lag for server. It is a big file and server needs to load it, bicouse its writen in *.res.
Example of bad res file:
// kzru_spacehop.res - created with RESGen v2.0 BETA 3.
// RESGen is made by Jeroen "ShadowLord" Bogers.
// For more info go to http: //resgen.hltools.com
// or E-mail me at resgen @ hltools.com.
// .res entries (11):
halflife.wad
cstrike.wad
timecounter.wad
myfiles.wad
gfx/env/marsup.tga
gfx/env/marsdn.tga
gfx/env/marslf.tga
gfx/env/marsrt.tga
gfx/env/marsft.tga
gfx/env/marsbk.tga
sound/spacehop/machine.wav
sprites/laserbeam.spr
maps/kzru_spacehop.txt
maps/kzru_spacehop.resList of stuff what must be removed from this res file:
halflife.wad // comes with CS
cstrike.wad // comes with CS
timecounter.wad // compiled into your BSP
myfiles.wad // compiled into your BSP
sprites/laserbeam.spr // no such file in map archive, probably comes with CS
Fixed *.res file:
gfx/env/marsup.tga
gfx/env/marsdn.tga
gfx/env/marslf.tga
gfx/env/marsrt.tga
gfx/env/marsft.tga
gfx/env/marsbk.tga
sound/spacehop/machine.wav
maps/kzru_spacehop.txt
maps/kzru_spacehop.reslaserbeam.spr is standard in half-life so it wont be needed in the archive but the wadfiles aren't good.
so after your thread i edited the RESgen source for excluding the wadfiles.
You can get it here: http://demolite.climbers-germany.de/RESGen.rar
Excluding all wad files isn't very good. Sometimes They are needed. And sometimes there are other stuff what which wont be removed.
Would be nice to make a full list of standard CS system wads, sprites, models, and other stuff...
as a kzmap the textures should be included in the bsp, so there is no need to pack them together.
Please log in to post replies.