resguy icon indicating copy to clipboard operation
resguy copied to clipboard

Only include what is required

Open wootguy opened this issue 5 years ago • 1 comments

resguy will add every file path it finds, even if the file isn't actually used by the map. Don't do that.

An example: A map series uses a global .gmr file that replaces zombie and hgrunt models. Map 1 in the series does not include zombies, so the .res file should not include the zombie replacement model.

This can cause FSB_OVERFLOW errors because too much stuff is precached and the server has like a million plugins. the precache limit is 8192 but really only about 1000 can be precached before the resource size limit is exceeded.

https://forums.svencoop.com/showthread.php/43424-Very-big-res-files?p=529523&viewfull=1#post529523

wootguy avatar Feb 08 '19 00:02 wootguy

Another example: Some settings in the worldspawn entity can be overridden by the cfg file (globalmodellist, globalsoundlist, materials_file). Resguy should ignore files referenced in the worldspawn entity if those settings are overridden.

wootguy avatar Oct 29 '19 22:10 wootguy