Command & Conquer™ Generals Zero Hour

Command & Conquer™ Generals Zero Hour

Not enough ratings
How to fix Workshop Maps and update/upload with SteamCMD
By Maulaiy
So we finally have workshop content now for our favourite broken game. However, it's not working as intended.
So here's a quick and scuffed guide on how to fix workshop content for now.

NOTE: It's currently not possible to fix the issue where you can't see a workshop map when joining a lobby as a client. All this guide teaches is how to not use the Worldbuilder to publish maps or how to update existing workshop maps.
   
Award
Favorite
Favorited
Unfavorite
Setting up SteamCMD
1. Download SteamCMD and extract it somewhere on your PC (desktop for now)
https://developer.valvesoftware.com/wiki/SteamCMD

===========================================================================

2. Create a text document inside of the SteamCMD folder and copy & paste this:
Also change the name of your text document to "workshopupload.vdf". (DON'T FORGET THE ".VDF"!)

"workshop" { "appid" "2732960" "publishedfileid" "YOUR_WORKSHOP_ID" "previewfile" "C:\Users\Rebel\Desktop\CoolPic.png" "contentfolder" "C:\Users\Rebel\Desktop\Time To Kill - ZH - by NeoMaurice" "changenote" "Fixed content package because initial upload breaks stuff" }
Note: Some of these are optional, if you don't want to change the preview or changenotes delete that line of code.

If you are not lazy however, look for your Workshop Package and get the Steam.ini.

===========================================================================

3. Fill in these things with your OWN stuff:

publishedfileid = The unique ID of your workshop page! previewfile = The path and the file for your workshop preview image. contentfolder = !IMPORTANT! The path to your map folder! Folder should contain .map, (and optional) .str, .ini, .tga, files. This is the important part, this replaces the content package. I used my original map folder before I uploaded it on steam, but kept my "steam.ini" file from my first workshop upload. (I believe it just tells the game it's a workshop map) changenote = Optional update message

Here are some examples and the Steam.ini file in case you are too lazy to search for your own.


Using SteamCMD to upload stuff
1. Open SteamCMD.exe and enter:
login "username" "password" "steamguardcode"
Example:
login "Rebel" "Rebellover69" "9PV59"

===========================================================================

2. After logging in, enter this:
workshop_build_item "FILENAME.vdf"
Example:
workshop_build_item "workshopupload.vdf"

===========================================================================

3. You may have noticed that you have disconnected from steam. When your upload is finished, you have to close SteamCMD and relog into Steam normally to check if your Workshop Content has been updated.
That's it!
So yeah your workshop page should be updated now with a newer package and preview. No more MISSING: or random letters in your map name! Anyways I hope I could help out a bit, since no one wants to play buggy workshop maps. This should, however be fixed in another update hopefully.


Why does this happen in the first place?
This is not a new problem, you are able to set a name for the map from inside the Worldbuilder properties (not speaking of save as). To upload a map, you are required to enter a name, and this is what breaks maps. Yes, that. A simple name.


Got any questions? Feel free to ask them!
1 Comments
HY417 / ar558 8 Mar @ 2:12pm 
Thx alot for this guide! It helped me fix my uploaded RA3 map after I realized I forgot to add the minimap and map.str file.