RkShaRkz / Starsector-IntelliJ-Template

Starsector mod template with pre-configured IntelliJ project files and instructions.
The Unlicense
0 stars 1 forks source link

Outdated .skill file format (minor) #13

Closed PreConceptor closed 3 months ago

PreConceptor commented 3 months ago

ver 3.3.6

Issue: field_repairs.skill file uses an outdated format so it doesn't unlock the Collapsed Cargo Holds hullmod when unlocking the Field Repairs skill.

Solution: I made a version with updated formatting (attached as .txt, git won't allow the .skill file). Replacing the old one makes it function again.

field_repairs.txt

RkShaRkz commented 3 months ago

hm, alright, but where is the "field repairs" mentioned in this new one?

new:

{
    "effectGroups":[
        {
            "requiredSkillLevel":1,
            "effectBasedOnLevel":false,
            "effects":[
                {"type":"HULLMOD_UNLOCK", "hullmods":{"vayra_collapsedcargo":1}},
            ]
        },
    ],
}

old:

{
    "id":"field_repairs",
    "effectGroups":[
        {
            "name":"Level 2",
            "effects":[
                {"type":"HULLMOD_UNLOCK", "hullmods":{"vayra_collapsedcargo":2}},
            ]
        },
    ],
}
PreConceptor commented 3 months ago

The file name. It doesn't need to be mentioned in the file.

Here's the Officer Management skill file from Nexerelin, it adds the bonus operative capacity effect.

officer_management.txt

Also no id within the file but it works. It's the format every current mod I've seen uses to add things to existing skills. I've been using the fixed one myself for more than a year. The old format predates the update that changed skills and introduced elite skills, so it looks like the unlock is present in-game but its listed under 'Level 2' in the skill window. Since Level 2 skills in the old sense no longer exist it doesn't unlock.

RkShaRkz commented 3 months ago

I reproed the issue, and the hullmod is unavailable for me as well. My idea was to try this and see whether that works

{
    "id":"field_repairs",
    "effectGroups":[
        {
            "requiredSkillLevel":1,
            "effectBasedOnLevel":false,
            "effects":[
                {"type":"HULLMOD_UNLOCK", "hullmods":{"vayra_collapsedcargo":1}},
            ]
        },
    ],
}

whether the problem was in the 2 or in the 'level 2' - we'll end up with a working solution.

RkShaRkz commented 3 months ago

Can confirm this fixes it. Resolved in commit 183080c

RkShaRkz commented 3 months ago

Oh right @PreConceptor - my idea didn't work, we went with yours. thanks :)