resguy icon indicating copy to clipboard operation
resguy copied to clipboard

Ignore files precached in scripts

Open wootguy opened this issue 5 years ago • 4 comments

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.

wootguy avatar May 09 '19 17:05 wootguy

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.

wootguy avatar May 27 '19 01:05 wootguy

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.

wootguy avatar Aug 09 '21 15:08 wootguy

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.

GarompaEstomper avatar Feb 10 '24 23:02 GarompaEstomper

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.

wootguy avatar Feb 10 '24 23:02 wootguy