March 8th brought a peculiar gift for the game SpinTires: users found a way to upload maps to the Workshop. Of course, this is unofficial, and there is no guarantee that all uploaded maps won’t be removed in an hour, but for now everything works – installs and plays.
Instructions on how to upload a map to the Steam Workshop:
1. Download STEAMCMD
from here, unpack it anywhere, for example to C:\Mods.
2. In the editor, create a new mod, open it in the Workshop, for example
http://steamcommunity.com/sharedfiles/filedetails/?id.. . We need the mod ID – in this case 641729430. In the _mods folder, look at the name of the folder of the newly created mod – 26400396 (see screenshot).
3. Create a .ZIP archive with your map files (.stg and .dds in the levels folder, your objects, textures, and other files if any). Rename the strings.xml file to 26400396.xml (it must be inside the archive), the archive name must be 26400396.zip in this case.
4. Create an empty folder anywhere, for example C:\Mods\level_test, inside it create a folder named content (resulting in C:\Mods\level_test\content), then copy the previously created archive into it, in our example 26400396.zip.
5. Next, create a map preview by converting the .DDS to a .PNG file named preview.png, the image size is usually 515x512, maximum file size 1023 KB, copy this file to C:\Mods\level_test.
6. Create the content.vdf file:
"workshopitem"
{
"appid" "263280"
"contentfolder" "C:\\Mods\\level_test\\content"
"previewfile" "C:\\Mods\\level_test\\preview.png"
"visibility" "2"
"title" "Your Map Name"
"description" "map description"
"changenote" "release notes"
"publishedfileid" "641729430"
}
7. Create the batch file upload.cmd in the folder C:\Mods\level_test:
"C:\Mods\steamcmd.exe" +login your_login your_password +workshop_build_item "C:\Mods\level_test\content.vdf" +quit
pause
8. As a result, the folder C:\Mods\level_test should have the following structure:
C:\Mods\level_test
|- content
...|- 26400396.zip
|- content.vdf
|- preview.png
|- upload.cmd
9. Run upload.cmd. If everything is done correctly, a new map will appear in your Workshop items.