ruarai / CompilePal

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

Packing failed #99

Closed karsonatorz closed 4 years ago

karsonatorz commented 4 years ago

Describe the bug Something broke.

 CompilePal - Automated Packaging
Finding sources of game content...
Found search paths...
Found wildcard path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\
Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod
Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod
Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\bin
Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\download
Reading BSP...
Something broke:
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at CompilePalX.Compilers.BSPPack.BSPPack.UnpackBSP(String unpackDir) in C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 339
   at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context) in C:\Users\10zil\OneDrive\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 179 

Seems to happen with all my BSPs. Happens when run as admin.

Steps to reproduce Create map, add textures, compile, fail

Expected behavior Packing to successfully work

Debug.txt debug.log

Additional context Compilepal v27 and v27.05 compiling for Garry's Mod

Exactol commented 4 years ago

Can you upload the gameConfigs.json file located in the GameConfiguration folder of Compile Pal

karsonatorz commented 4 years ago

https://pastebin.com/nSAamDRH

Exactol commented 4 years ago

Can you confirm that bspzip.exe exists at location C:/Program Files (x86)/Steam/steamapps/common/GarrysMod/bin/bspzip.exe? And if not, try verifying your game files through steam.

karsonatorz commented 4 years ago

https://i.imgur.com/8YytoHq.png There it be.

karsonatorz commented 4 years ago

Hmm... I tried deleting it and then validating game files, and now it doesn't give an error, but it gets stuck. CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found wildcard path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\addons\ Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\bin Found search path: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\download Reading BSP... Initializing pak file... Writing file list... Running bspzip...

(EDIT) aaaand it just went through, took around 5 minutes. Seems like it packed every single material instead of just the four that are present on the map..

Copying packed bsp to vmf folder... Finished!

2500 materials found 8 models found 12 particle files found 197 sounds found additional files: -detail file

(EDIT#2) My fault, I had it set that way. After deleting and reobtaining bspzip.exe the issue seems to be resolved! Thank you!