ruarai / CompilePal

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

How do I solve "File name has not been provided" #241

Open circuschaser opened 3 months ago

circuschaser commented 3 months ago

Compile Pal Version

Describe the bug Pack fails immediately. System.InvalidOperationException: Cannot start process because a file name has not been provided.

Steps to reproduce CompilePal screenshot

Expected behavior Expected to pack a bsp with assets.

Debug.log Starting a 'Pack' compile. Starting compilation of redeemer

CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\ Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\content\ Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Source directories: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\workshop E:\SteamLibrary\steamapps\common\insurgency2\insurgency E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Reading BSP... Something broke: System.InvalidOperationException: Cannot start process because a file name has not been provided. at System.Diagnostics.Process.Start() at CompilePalX.Compilers.BSPPack.BSPPack.UnpackBSP(String unpackDir) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 470 at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context, CancellationToken cancellationToken) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 238 An error cancelled the compile. Compile forcefully ended.

'Pack' compile finished in 00:00:00

Additional context Add any other context about the problem here.

circuschaser commented 3 months ago

Forgot to note that the BSP was compiled successfully by CompilePal from a Hammer project.

Exactol commented 3 months ago

Can you open the game configuration in Compile Pal and see if there is a path to BSPZip, and if so, check if the program exists at the location? You can view the game configuration by clicking the 3 dots on the Game Selector screen and clicking Edit. image

circuschaser commented 3 months ago

Thanks for the reply. BSPZip was missing. Here's the JSON of the configuration:

[ { "GameFolder": "E:\SteamLibrary\steamapps\common\insurgency2\insurgency", "VBSP": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vbsp.exe", "VVIS": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vvis.exe", "VRAD": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vrad.exe",

I downloaded a BSPZip.exe file from here: https://www.pconlife.com/download/otherfile/86126/99005ec0c680eaf12eba20dd9a2b6f26/

Added it to CompilePal [image: newBSPZip.PNG]

Ran the pack again, still got this:

Starting a 'Pack' compile. Starting compilation of redeemer_coop

CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\ Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\content\ Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Source directories: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\workshop E:\SteamLibrary\steamapps\common\insurgency2\insurgency E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Reading BSP... Something broke: System.InvalidOperationException: Cannot start process because a file name has not been provided. at System.Diagnostics.Process.Start() at CompilePalX.Compilers.BSPPack.BSPPack.UnpackBSP(String unpackDir) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 470 at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context, CancellationToken cancellationToken) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 238 An error cancelled the compile. Compile forcefully ended.

'Pack' compile finished in 00:00:00

[image: CompilePal_fail_0621.PNG]

Rob Howard 404 422 3210 @.***

On Wed, Jun 19, 2024 at 11:47 AM Zach @.***> wrote:

Can you open the game configuration in Compile Pal and see if there is a path to BSPZip, and if so, check if the program exists at the location? You can view the game configuration by clicking the 3 dots on the Game Selector screen and clicking Edit. image.png (view on web) https://github.com/ruarai/CompilePal/assets/15372675/d3d0880b-df4f-4272-ac1d-ea0b3a4c6a1a

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/241#issuecomment-2179116358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBNURYMV4KRZ44U7QGKPVLZIGY2XAVCNFSM6AAAAABJCR56DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGEYTMMZVHA . You are receiving this because you authored the thread.Message ID: @.***>

circuschaser commented 3 months ago

vbspinfo.exe obviously missing as well, so I got a copy of that and added it. Ran CompilePal again. Got this:

Starting a 'Pack' compile. Starting compilation of redeemer_coop

CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\ Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\content\ Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Source directories: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\workshop E:\SteamLibrary\steamapps\common\insurgency2\insurgency E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Reading BSP... Initializing pak file... Writing file list... Running bspzip... BSPZIP exited with code: -1073741511 Finished!

0 materials found 0 models found 0 particle files found 0 sounds found Additional Files: -Detail file

'Pack' compile finished in 00:00:00 1 errors/warnings logged: 1 errors/warnings logged for redeemer_coop: ● 1x: Warning: BSPZIP exited with code: -1073741511

Rob Howard 404 422 3210 @.***

On Fri, Jun 21, 2024 at 7:13 PM Rob Howard @.***> wrote:

Thanks for the reply. BSPZip was missing. Here's the JSON of the configuration:

[ { "GameFolder": "E:\SteamLibrary\steamapps\common\insurgency2\insurgency", "VBSP": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vbsp.exe", "VVIS": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vvis.exe", "VRAD": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vrad.exe",

  • "BSPZip": null,* "VBSPInfo": null, "VPK": "E:\SteamLibrary\steamapps\common\insurgency2\bin\vpk.exe", "GameEXE": "E:\SteamLibrary\steamapps\common\insurgency2\insurgency.exe", "MapFolder": "E:\SteamLibrary\steamapps\common\insurgency2\insurgency\maps", "SDKMapFolder": "E:\SteamLibrary\steamapps\common\insurgency2\sdk_content\maps", "BinFolder": "E:\SteamLibrary\steamapps\common\insurgency2\bin", "Name": "Insurgency", "GameInfoPath": "E:\SteamLibrary\steamapps\common\insurgency2\insurgency\gameinfo.txt", "SteamAppID": 222880 } ]

I downloaded a BSPZip.exe file from here:

https://www.pconlife.com/download/otherfile/86126/99005ec0c680eaf12eba20dd9a2b6f26/

Added it to CompilePal [image: newBSPZip.PNG]

Ran the pack again, still got this:

Starting a 'Pack' compile. Starting compilation of redeemer_coop

CompilePal - Automated Packaging Finding sources of game content... Found search paths... Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\ Found wildcard path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\content\ Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin Found search path: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Source directories: E:\SteamLibrary\steamapps\common\insurgency2\insurgency\custom\workshop E:\SteamLibrary\steamapps\common\insurgency2\insurgency E:\SteamLibrary\steamapps\common\insurgency2\insurgency\bin E:\SteamLibrary\steamapps\common\insurgency2\insurgency\download Reading BSP... Something broke: System.InvalidOperationException: Cannot start process because a file name has not been provided. at System.Diagnostics.Process.Start() at CompilePalX.Compilers.BSPPack.BSPPack.UnpackBSP(String unpackDir) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 470 at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context, CancellationToken cancellationToken) in D:\a\CompilePal\CompilePal\CompilePalX\Compilers\BSPPack\Pack.cs:line 238 An error cancelled the compile. Compile forcefully ended.

'Pack' compile finished in 00:00:00

[image: CompilePal_fail_0621.PNG]

Rob Howard 404 422 3210 @.***

On Wed, Jun 19, 2024 at 11:47 AM Zach @.***> wrote:

Can you open the game configuration in Compile Pal and see if there is a path to BSPZip, and if so, check if the program exists at the location? You can view the game configuration by clicking the 3 dots on the Game Selector screen and clicking Edit. image.png (view on web) https://github.com/ruarai/CompilePal/assets/15372675/d3d0880b-df4f-4272-ac1d-ea0b3a4c6a1a

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/241#issuecomment-2179116358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBNURYMV4KRZ44U7QGKPVLZIGY2XAVCNFSM6AAAAABJCR56DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGEYTMMZVHA . You are receiving this because you authored the thread.Message ID: @.***>

Exactol commented 3 months ago

If BSPZip/vbspinfo doesnt come with the game then it may not support packing custom content into the map. Its possible you need to create a VPK, similar to l4d2. You could also try a tool that doesn't rely on bspzip like VIDE

circuschaser commented 3 months ago

Thanks, I'll check it out.

On Sat, Jun 22, 2024, 10:08 PM Zach @.***> wrote:

If BSPZip/vbspinfo doesnt come with the game then it may not support packing custom content into the map. Its possible you need to create a VPK, similar to l4d2. You could also try a tool that doesn't rely on bspzip like VIDE

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/241#issuecomment-2184409205, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBNURZEJWZTFEXEB6IUD2LZIY32TAVCNFSM6AAAAABJCR56DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGQYDSMRQGU . You are receiving this because you authored the thread.Message ID: @.***>