Can't upload MODS to Steam Workshop

Currently viewing this thread:

Gamanek

Recruit
WB
Best answers
0
Hello there, as the title says, I can't upload ANY mod to Steam Workshop.

It only creates a blank file, with "Mount&Blade Warband" title (even if I didn't choose that title) 0.00mb, hidden, without description or tags or whatever.

Screenshot of the error:

As you can see I've also received "Steam not open" error, however, after checking integrity of files, it resolved and this error popped up.

I even tried uploading it and then UPDATING the mod, but the uploader would crash and report this error:


...any guess?
 

Khamukkamu

Master Knight
M&BWBWF&SVC
Best answers
0
Oh I see. My suggestion would be to PM Swyter. He is the one who configured the Steam workshop uploader for our mod, and I believe he has created an improved version of it. If he is not too busy, perhaps he can help :smile:
 

Gamanek

Recruit
WB
Best answers
0
Khamukkamu said:
Oh I see. My suggestion would be to PM Swyter. He is the one who configured the Steam workshop uploader for our mod, and I believe he has created an improved version of it. If he is not too busy, perhaps he can help :smile:
Done :smile: thank you!
 

Swyter

Grandmaster Knight
M&BWBWF&S
Best answers
0
Gamanek said:
Khamukkamu said:
Oh I see. My suggestion would be to PM Swyter. He is the one who configured the Steam workshop uploader for our mod, and I believe he has created an improved version of it. If he is not too busy, perhaps he can help :smile:
Done :smile: thank you!
Hi there!


What I did for automating the Steam Workshop updates of TLD is this:
Code:
https://github.com/tldmod/tldmod/blob/master/.travis.workshop.sh#L111

Basically you can bypass the buggy TaleWorlds uploader altogether by using the official command-line version of the Steam client:
Code:
https://developer.valvesoftware.com/wiki/SteamCMD
--

There's a slightly under-documented parameter called
Code:
workshop_build_item
that, if paired with a correct .VDF configuration file, can create/upload/upgrade any Workshop item no matter the game.

You can see an example VDF file in the official Steamworks documentation site:
Code:
https://partner.steamgames.com/doc/features/workshop/implementation#SteamCmd
You basically need the correct Steam AppID of the game (for Warband is
Code:
48700
, you can find them in the URLs of the Workshop and Store pages:
Code:
http://steamcommunity.com/app/48700/workshop/
) and a
Code:
publishedfileid
you own (the one for The Last Days is
Code:
299974223
; again you can find it from the URL where people subscribe:
Code:
https://steamcommunity.com/sharedfiles/filedetails/?id=299974223
). If you don't include it will create a brand new entry. The preview image, base mod folder, hidden state and other parameters are optional and essentially identical to the counterparts provided by TaleWorlds, it all ends in the same place, so this way is less buggy and more interesting.


Right now our deployments are completely automated by a bot account, all under demand.

--

TL;DR: Create a text file with the Workshop item configuration, save it as
Code:
my_mod_conf.vdf
and run the SteamCMD client with the correct parameters, something like this:
Code:
steamcmd +login myLoginName myPassword +workshop_build_item my_mod_conf.vdf +quit
Code:
workshopitem
{
             "appid"  "48700"
   "publishedfileid"  "299974223"
     "contentfolder"  "C:\Warband\Modules\MyCoolMod\"
        "changenote"  "This appears in the changelog, but you can edit it later from the Web page."
        
    # swy: you can add more configuration keys here :)
}


Hope that helps!
 

Gamanek

Recruit
WB
Best answers
0
Swyter said:
Hope that helps!
Thank you a WHOLE lot! It worked, I couldn't get this .vdf file to work, but with both your example and the documentation example, I got it working :grin:

Thank you!
 

Swyter

Grandmaster Knight
M&BWBWF&S
Best answers
0
Hello, how to add tags to vdf?
I think we just added them with the normal TaleWorlds uploader by submitting an almost blank mod entry (with just module.ini) the first time around.

But maybe something like "tags" "Put, Your, Tags, Here" should work, too. As you can see they mirror these SetItem functions, so the .VDF key names should match for the preview image, changenote and things like that.

 

DoDoCat

Squire
M&BWBWF&SNWVC
Best answers
3
I think we just added them with the normal TaleWorlds uploader by submitting an almost blank mod entry (with just module.ini) the first time around.

But maybe something like "tags" "Put, Your, Tags, Here" should work, too. As you can see they mirror these SetItem functions, so the .VDF key names should match for the preview image, changenote and things like that.

Here is my vdf file, is it right?


Seems didn't work xD
 

Swyter

Grandmaster Knight
M&BWBWF&S
Best answers
0
Yeah, I'd use the TaleWorlds uploader to set those tags once, maybe there's a way using SteamCMD, but I don't know about it.