Steam Mod Upload - Batch File Issue

A forum to discuss custom scenarios, campaigns and modding in general.

Moderator: Panzer Corps 2 Moderators

Post Reply
R2G2
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 89
Joined: Tue Feb 02, 2021 4:18 am
Location: Texas

Steam Mod Upload - Batch File Issue

Post by R2G2 »

Hello All,

I've created a simple mod to upload to Steam for test purposes, and I've hit a wall with the batch file (specifically the file path... I think). The mod works properly with the Mod Manager and with actual game play. I suspect the batch file issue is something that I'm doing wrong due to lack of experience :oops: . See below for batch file text attempts and command prompt errors. Fake user name and password used in the below examples for obvious reasons.

Batch File Text 1
steamcmd.exe +login JohnDoe ABC123 +workshop_build_item C:\Users\Users\Desktop\metadata.vdf +quit

Batch File Text 1 Error
'steamcmd.exe' is not recognized as an internal or external command, operable program or batch file.

Batch File Text 2
builder\steamcmd.exe +login JohnDoe ABC123 +workshop_build_item C:\Users\Users\Desktop\metadata.vdf +quit

Batch File Text 2 Error
The system cannot find the path specified.

I've tried numerous paths and tried launching the batch file directly within the SteamCMD directory as an administrator with no luck. The attached file includes the metadata.vdf, but this was located on my desktop for these attempts (along with dozens of other attempts :cry: ). Full disclosure... I'm not a programmer, and this process has been a steep learning curve. I'm sure it's something simple, and I'll kick myself for days once I know the reason.

Please Help!
Attachments
SpanishAICheapReplacements.zip
(10.07 KiB) Downloaded 65 times
Last edited by R2G2 on Thu Mar 11, 2021 4:13 am, edited 1 time in total.
R2G2
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 89
Joined: Tue Feb 02, 2021 4:18 am
Location: Texas

Re: Steam Mod Upload - Batch File Issue

Post by R2G2 »

Finally got it to work!
Below is the successful batch file text. I ended up placing the metadata.vdf in with the mod file (not sure if necessary) along with changing the file path for SteamCMD.

C:\SteamCMD\steamcmd.exe +login JohnDoe ABC123 +workshop_build_item C:\Users\Users\Desktop\STMods\SpanishAICheapReplacements\metadata.vdf +quit
Post Reply

Return to “Panzer Corps 2 Scenario Design”