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

Extensionless script files packed incorrectly #202

Open
rsedxcftvgyhbujnkiqwe opened this issue Mar 20, 2023 · 2 comments
Open

Extensionless script files packed incorrectly #202

rsedxcftvgyhbujnkiqwe opened this issue Mar 20, 2023 · 2 comments
Labels

Comments

@rsedxcftvgyhbujnkiqwe
Copy link

Compile Pal Version
V28
Describe the bug
If a script file is not specified to have an extension within hammer, compilepal will also pack it without the extension, meaning the scripts will not be loaded in the packed map

Steps to reproduce
1: Create an an entity and have it's entity script point towards a script file, but do not add .nut
2: Compile the map and verify that the map does still load it despite it not being specified in hammer
3: Pack with compilepal
4: Observe the script being unloaded by playing on this packed map, and/or simply open the map with gcfscape and see that the squirrel script files are packed without their .nut

Expected behavior
They should have their .nut extension added on even if not specified

Additional context
When TF2 is looking for a script file, for example test.nut, it will search the script directory for path/to/test.nut and then load it. If you were to specify path/to/test in hammer rather than path/to/test.nut, it would still find the script file because it knows to look for the .nut regardless. However this does not mean it will look for an extensionless file, merely that the search parameter does not need to include it.

@Exactol
Copy link
Collaborator

Exactol commented Apr 7, 2023

@Exactol
Copy link
Collaborator

Exactol commented Jul 29, 2023

Has your issue been resolved?

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

No branches or pull requests

2 participants