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.
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.