Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files precached in scripts #15

Open
wootguy opened this issue May 9, 2019 · 4 comments
Open

Ignore files precached in scripts #15

wootguy opened this issue May 9, 2019 · 4 comments

Comments

@wootguy
Copy link
Owner

wootguy commented May 9, 2019

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
Copy link
Owner Author

wootguy commented May 27, 2019

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
Copy link
Owner Author

wootguy commented Aug 9, 2021

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.

@GarompaEstomper
Copy link

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.

@wootguy
Copy link
Owner Author

wootguy commented Feb 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants