ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
220 stars 25 forks source link

Extensionless script files packed incorrectly #202

Open rsedxcftvgyhbujnkiqwe opened 1 year ago

rsedxcftvgyhbujnkiqwe commented 1 year ago

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 commented 1 year ago

Can you try this build? https://www.dropbox.com/s/27gwbexhqdbwmeq/Compile%20Pal%20028.1.zip?dl=0

Exactol commented 11 months ago

Has your issue been resolved?