There is no more preview pics for Translation Mods


McLeoud
  • Branch: Live Branch Version: Windows Known Issue

After MOD_INFO.YAML update there are no more preview images for translation mods - at least for me. See the attached screenshot.

Some addition information.

Mod #1 - "Русский Sci-Tech (workshop)" - public Steam mod (https://steamcommunity.com/sharedfiles/filedetails/?id=2000481647)
Mod #2 - "Sci-Tech TEST (workshop)" - hidden Steam mod

Mod #1 - has no changes since 12/12/20 game update, has no `mod_info.yaml`.

Mod #2 - test mod, was updated after 12/12/20 game update with creating of `mod_info.yaml`.
Current content of `mod_info.yaml`:

supportedContent: VANILLA_ID,EXPANSION1_ID
lastWorkingBuild: 0

I've tried all combinations of ["supportedContent: VANILLA_ID,EXPANSION1_ID", "supportedContent: ALL"] and [UTF-8, ASCII] encoding. Line-ending in `mod_info.yaml` is UNIX-style - \n. Last line also has \n.
Mod was uploaded with ONI Mod Uploader, preview pic was changed and uploaded succesfully and is shown correctly via Steam Workshop site.

Here is the log from last updating of Mod #2

23:43:18: Progress: Updating...
23:43:18: BeginUpdating()
23:43:18: BeginUpdating 0000000089e2fc9d [Sci-Tech TEST]
23:43:18: SharePreviewImage [mod_publish_preview.png] ...
23:43:18: Progress: Writing preview image...
23:43:18: WriteFileToCloud() Writing [E:ереводы\OXY\test\preview.png] to [mod_publish_preview.png]
23:43:18: Steam file exists.
23:43:18: Steam FileWrite ok.
23:43:18: Start FileShare [mod_publish_preview.png] ...
23:43:18: Progress: Uploading preview image...
23:43:22: OnSharePreviewImgResult
23:43:22:    EResult 1, 184de28d48c15ad6
23:43:22: FinalizeUpdate()
23:43:22: Progress: Committing update...
23:43:22: OnUpdatePublishedFileResult
23:43:22:    EResult 1, 0000000089e2fc9d
23:43:22: EndProgress ok: Mod update completed.
23:43:22: MainFrame::OnUpdateComplete ok: Mod update completed.
23:43:27: RefreshPublishedModInfo
23:43:27: EnumerateUserPublishedFiles(0)
23:43:27: Progress: Updating Mod List...
23:43:27: OnEnumerateUserPublishedFiles
23:43:27:    EResult 1, results 2/2
23:43:27:    Complete
23:43:27: GetPublishedFileDetails(0)

 

ONI-TrMod.jpg


Steps to Reproduce

Subscribe to pointed Mod and open 'Translations' from Main Menu.

  • Thanks 1


User Feedback


....

Current solution of this problem: the `preview.png` file must be in the root folder of mod (previously it could be selected from any other place).

Edited by McLeoud
  • Thanks 1

Share this comment


Link to comment
Share on other sites
.... ....

Hi @McLeoud! Thanks for figuring that out.

Because of the archive structure, it makes the most sense to me for the preview to be in the root along with the rest of the "mod information" files. I'll tweak the uploader so that it gives a proper warning in this case.

Share this comment


Link to comment
Share on other sites
....

Changed Status to Known Issue

Oh, and I just saw your comment about Vanilla being broken still. I'll look into that as well!

  • Thanks 1

Share this comment


Link to comment
Share on other sites
....

Nice to hear this :)

I've just updated my mod #1 with proper `mod_info.yaml` and `preview.png` so you can use it for testing if you need.

Share this comment


Link to comment
Share on other sites
....

It looks like I've found the source of the problem: it is not a matter of game build - it's a matter of files in `archived_verisons` folder. So the `preview.png` MUST be present in EACH folder of EACH mod's version. Well, for me as for developer this is a kind of unclear and unexpected behaviour :)

Edited by McLeoud

Share this comment


Link to comment
Share on other sites
....

I was just coming on to relay the same information!

Perhaps I can clarify the rationale: the archive is an archive of the whole mod, which the game loads in-place (i.e. as its own root). Anything that isn't present in the archive folder can't be loaded, including the preview.

  • Thanks 2

Share this comment


Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now