Project Hospital
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Butch
attending
Posts : 46
Reputation : 7
Join date : 2019-06-06

[RESOLVED] Can't Upload Mod to Workshop Empty [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 12:07 pm
Description:

I have a functioning mod that I can't upload to the workshop. When I click on  'Workshop' in the main menu, I can select the mod file from the left hand side of the screen as well as adding a name and description. When I hit 'Upload' I'm met with 'Update Failed!'

On the right hand side of the mod upload screen it says 'Put preview.png to the folder'. I put a 450 kb PNG image in the same root as the database folder of my mod and labelled it 'preview.png' but I still can't get the mod to upload.

I've added three screenshots to hopefully make it a little more clear what's going on.

https://i.servimg.com/u/f54/20/11/63/58/bug_re10.png

https://i.servimg.com/u/f54/20/11/63/58/bug_re11.png

https://i.servimg.com/u/f54/20/11/63/58/bug_re12.png
jan.oxymoron
jan.oxymoron
developer
Posts : 2309
Reputation : 336
Join date : 2018-03-23

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 2:56 pm
Hi, thanks for posting the details also here on the forum - well, looking at the screenshots everything seems to be exactly as it should be, so my guess would be something wrong with the preview file itself, could you upload it as well so I can check if it works on our side?
avatar
Butch
attending
Posts : 46
Reputation : 7
Join date : 2019-06-06

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 2:58 pm
Here you go.

https://i.servimg.com/u/f54/20/11/63/58/mod_pn10.png
Attachments
[RESOLVED] Can't Upload Mod to Workshop Attachment
Mod PNG.png You don't have permission to download attachments.(462 Kb) Downloaded 3 times
jan.oxymoron
jan.oxymoron
developer
Posts : 2309
Reputation : 336
Join date : 2018-03-23

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 3:07 pm
Oh, I think I got it! Smile

Works fine here, so I think it's just the file name - you have file extensions hidden in windows explorer, so it's probably currently named "preview.png.png" on your side. Note that there's a steam_workshop_id.txt file right next to it and the .txt is hidden. Let us know if this was it!
avatar
Butch
attending
Posts : 46
Reputation : 7
Join date : 2019-06-06

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 3:16 pm
Yup that was the issue Very Happy

Thank you so much! One last thing. In the main menu, at the bottom left corner it says !LOC! before my mod name as shown in the screenshot here. How do I remove that?

https://i.servimg.com/u/f54/20/11/63/58/loc10.png
jan.oxymoron
jan.oxymoron
developer
Posts : 2309
Reputation : 336
Join date : 2018-03-23

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Mon Sep 23, 2019 4:22 pm
Oh, it's possible the modding guide doesn't mention it, although it's in the mod example: you need to create a string table xml in the database folder, something like this  - it needs to contain names of all the new items in the mod (although in your case it's just the name of the mod itself).

Code:

<Database>
    <GameDBStringTable ID="LOC_EN_NAME_OF_YOUR_MOD">

        <LanguageCode>en</LanguageCode>
        <LanguageNameLocalized>English</LanguageNameLocalized>

        <Contributors>
            <Name>...</Name>
        </Contributors>

        <LocalizedStrings>
            <GameDBLocalizedString>      <LocID>ADDON_MOD_NAME_EXAMPLE</LocID>                <Text>Example of a mod with new objects.</Text>  </GameDBLocalizedString>
        </LocalizedStrings>

    </GameDBStringTable>
</Database>


Edit:
The <LocID> will be the ID of the mod itself, the <Text> the human-readable name you want to show on the title screen.
Sponsored content

[RESOLVED] Can't Upload Mod to Workshop Empty Re: [RESOLVED] Can't Upload Mod to Workshop

Back to top
Permissions in this forum:
You cannot reply to topics in this forum