Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple mod versions #103

Open
Alystrasz opened this issue Jan 1, 2025 · 4 comments
Open

Multiple mod versions #103

Alystrasz opened this issue Jan 1, 2025 · 4 comments

Comments

@Alystrasz
Copy link

Alystrasz commented Jan 1, 2025

Currently, Northstar does not support multiple mod versions, i.e. a single mod being installed several times with different versions.
In the Northstar repositories, launcher and mods pull requests have been opened to fix this issue; however, they change the enabledmods.json file format:

From

{
    "Northstar.Client": true,
    "Northstar.Coop": true,
    "Northstar.CustomServers": true,
    "Northstar.Custom": true,
    "MRVN Shake It": true,
    "Titan Payload": false,
    "Parkour": true
}

To

{
    "Version": 1,
    "Northstar.Client": {
        "1.19.0": true
    },
    "Northstar.Coop": {
        "0.0.0": true
    },
    "Northstar.CustomServers": {
        "1.19.0": true
    },
    "Northstar.Custom": {
        "1.19.0": false
    },
    "Parkour": {
        "0.1.2": false,
        "0.2.1": true
    },
    "MRVN Shake It": {
        "0.0.1": true
    },
    "Titan Payload": {
        "1.2.0": false
    }
}

It would be great if VTOL had the capacity to adapt to this new enabledmods.json format.

@BigSpice
Copy link
Collaborator

BigSpice commented Jan 1, 2025

The day hath come.

Changes already in new ver to be shipped.
:D

@BigSpice
Copy link
Collaborator

BigSpice commented Jan 1, 2025

Currently, Northstar does not support multiple mod versions, i.e. a single mod being installed several times with different versions. In the Northstar repositories, launcher and mods pull requests have been opened to fix this issue; however, they change the enabledmods.json file format:

From

{
    "Northstar.Client": true,
    "Northstar.Coop": true,
    "Northstar.CustomServers": true,
    "Northstar.Custom": true,
    "MRVN Shake It": true,
    "Titan Payload": false,
    "Parkour": true
}

To

{
    "Northstar.Client": {
        "1.19.0": true
    },
    "Northstar.Coop": {
        "0.0.0": true
    },
    "Northstar.CustomServers": {
        "1.19.0": true
    },
    "Northstar.Custom": {
        "1.19.0": false
    },
    "Parkour": {
        "0.1.2": false,
        "0.2.1": true
    },
    "MRVN Shake It": {
        "0.0.1": true
    },
    "Titan Payload": {
        "1.2.0": false
    }
}

It would be great if VTOL had the capacity to adapt to this new enabledmods.json format.

Also, added is there any format changes you need for Mod packages?

@Alystrasz
Copy link
Author

Also, added is there any format changes you need for Mod packages?

The idea is to ship this mod versions change in the next release; regarding mod packages change, PRs are not ready, so I think we will ship these in a more distant future

@Alystrasz
Copy link
Author

Alystrasz commented Jan 2, 2025

Copy/pasting Viper comment here since it's relevant

On game start, proposed launcher modification will migrate enabledmods.json format to new format, using the existing configuration if possible.

VTOL, on its end, should enable/disable mods in the enabledmods.json file regarding the format it is following.

[NB] I omitted to mention an important element: new manifest format involves a "Version" member, which is set to 1 for this new modName => modVersion => enabled format; if no "Version" member is present or its value is 0, then old format (modName => enabled) should be assumed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants