resguy
resguy copied to clipboard
Ignore files precached in scripts
Any files that a script precaches aren't needed in .res files, because the game already knows to transfer those files to clients. Usually resguy can't understand script code and generates lots of ignorable errors. This option should be enabled by default but ignored when creating an archive.
Everything found in scripts except weapon HUD files will be excluded from .res files now. Weapon HUD files don't need to be precached to be used, so clients won't get them if they're not in the .res file.
this is still causing problems. The RegisterWeapon
function call can use all sorts of special logic to construct paths. Scripters should be responsible for precaching everything they need.
A bit of a necroposting but is there a chance that we can have an option to enable weapon hud scripts for res files? They are not being included in the .res nor the generated zip I'm talking about "scripts/mymap/whatever.as" found mentioned on the cfg files, alongside the "sprites/map/whatever.spr" and "sprites/map/whatever_weapon.txt" Thats pretty much it.
Those are already included, but the script parsing logic can fail if the RegisterWeapon
call in the script is complicated. Ideally the script or game code should be precaching those files.