[0.16] Ingame mod portal patch version

Bugs that are actually features.
Jelmergu
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Mon Apr 04, 2016 8:49 am
Contact:

[0.16] Ingame mod portal patch version

Post by Jelmergu »

When specifying a patch version in `factorio_version` of a mods info.json file, the ingame mod portal display's 'no released version' even when the game's version is greater than that version.

Example:
  • Game's version: 0.16.22
    info.json

    Code: Select all

    {
        "name": "mod",
        "version": "0.0.1",
        "title": "mod",
        "author": "author",
        "homepage": "on-the-internet",
        "factorio_version": "0.16.7",
        "dependencies": ["base >= 0.16.7"],
        "description": "Example"
    }
    
The web mod portal shows that the version of Factorio needed is 0.16.7 as expected, however when viewed on the ingame mod portal it shows no released version, even though the games version is way over the specified version

I discovered this because of this bug report to one of my mods https://mods.factorio.com/mod/there-is- ... 000d35e70e
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5403
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.16] Ingame mod portal patch version

Post by Klonan »

Jelmergu wrote:When specifying a patch version in `factorio_version` of a mods info.json file, the ingame mod portal display's 'no released version' even when the game's version is greater than that version.

Example:
  • Game's version: 0.16.22
    info.json

    Code: Select all

    {
        "name": "mod",
        "version": "0.0.1",
        "title": "mod",
        "author": "author",
        "homepage": "on-the-internet",
        "factorio_version": "0.16.7",
        "dependencies": ["base >= 0.16.7"],
        "description": "Example"
    }
    
The web mod portal shows that the version of Factorio needed is 0.16.7 as expected, however when viewed on the ingame mod portal it shows no released version, even though the games version is way over the specified version

I discovered this because of this bug report to one of my mods https://mods.factorio.com/mod/there-is- ... 000d35e70e
I believe you are just doing it wrong, 'factorio_version' shouldn't have a minor version, and isn't like the dependency system.

It should only be major version, so '0.16'
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.16] Ingame mod portal patch version

Post by eradicator »

Imho it wouldn't hurt if the json parsing stage had a tiny bit more sanity checking. This and the whole "your mod is silently ignored if the json is formatted incorrectly" feels so much like unnessecary stumbling blocks for new modders... :oops:
Post Reply

Return to “Not a bug”