Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Stock Variants Bug: Some Hull-Mods Throw Errors  (Read 1565 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3023
    • View Profile
Stock Variants Bug: Some Hull-Mods Throw Errors
« on: December 29, 2014, 07:57:25 AM »

So I was messing around, creating "stock" variants, and I found that some hull-mods throw errors when the game tries to load the variant either at the menu or in-game on the refit screen (either campaign or mission).

The following is the configuration that I use in my current fleet. The in-game "custom" variant with the same configuration works fine.

Here is the code for the "stock" variant:
Spoiler
Code
{

    "displayName": "Mainline",

    "fluxCapacitors": 17,

    "fluxVents": 0,

    "hullId": "vigilance",

    "hullMods": [
"stabilizedshieldemitter",
"expandedmissileracks",
"frontshieldemitter"
    ],

    "quality": 0.5,

    "variantId": "vigilance_Mainline",

    "weaponGroups": [

        {

            "autofire": true,

            "mode": "LINKED",

            "weapons": {"WS 001": "lrpdlaser"}

        },

        {

            "autofire": false,

            "mode": "LINKED",

            "weapons": {"WS 002": "pilum"}

        }

    ]

}
[close]

Stabilized Shields seems to load fine, but when it gets to Expanded Missile Racks or Front Shield Emitter (depending on the order) it says:
Spoiler
Code
Fatal: Spec of class [com.fs.starfarer.loading.specs.N] with id [expandedmissileracks] not found
Check Starsector.log for more info.
[close]

The log then says:
Spoiler
Code
55009 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 38
55009 [Thread-5] INFO  com.fs.starfarer.campaign.save.CampaignGameManager  - Loading stage 39 - last
66511 [Thread-5] ERROR com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - java.lang.RuntimeException: Spec of class [com.fs.starfarer.loading.specs.N] with id [expandedmissileracks] not found
java.lang.RuntimeException: Spec of class [com.fs.starfarer.loading.specs.N] with id [expandedmissileracks] not found
at com.fs.starfarer.loading.SpecStore.o00000(Unknown Source)
at com.fs.starfarer.loading.specs.HullVariantSpec.getAllMods(Unknown Source)
at com.fs.starfarer.coreui.refit.oOOO.Ö00000(Unknown Source)
at com.fs.starfarer.coreui.refit.O00O.ø00000(Unknown Source)
at com.fs.starfarer.coreui.refit.ManageVariantsDialog.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.thisnew.super(Unknown Source)
at com.fs.starfarer.ui.null.processInput(Unknown Source)
at com.fs.starfarer.ui.O0Oo.o00000(Unknown Source)
at com.fs.starfarer.B.void.class$super(Unknown Source)
at com.fs.A.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source)
at com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]

As I mentioned, putting it in the list of variants for the menu to load will also throw an error when the menu tries to load it. It does not throw an error while loading the game, only when the menu tries to deploy it.

Testing to confirm should be as easy as creating a file in the variant folder called "vigilance_Mainline" and inputting the provided code.

Other "stock" variants, such as the following Falcon variant, work fine on the menu, refit screen, etc..
Spoiler
Code
{

"quality":0.5,

    "displayName": "Combat",

    "fluxCapacitors": 22,

    "fluxVents": 0,

    "hullId": "falcon",

    "hullMods": [

        "stabilizedshieldemitter",

        "augmentedengines",
"hardenedshieldemitter"
    ],

    "variantId": "falcon_Combat",

    "weaponGroups": [

        {

            "autofire": false,

            "mode": "LINKED",

            "weapons": {

                "WS 007": "hveldriver",

                "WS 008": "hveldriver"

            }

        },

        {

            "autofire": false,

            "mode": "ALTERNATING",

            "weapons": {

                "WS 001": "reaper",

                "WS 002": "reaper"

            }

        },

        {

            "autofire": true,

            "mode": "LINKED",

            "weapons": {

                "WS 005": "pdburst",

                "WS 006": "pdburst"

                }

        },

        {

            "autofire": true,

            "mode": "LINKED",

            "weapons": {
              "WS 003": "lrpdlaser",

                "WS 004": "lrpdlaser"

            }

        }

    ]

}
[close]
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24128
    • View Profile
Re: Stock Variants Bug: Some Hull-Mods Throw Errors
« Reply #1 on: December 29, 2014, 10:24:10 AM »

The issue is the ids you're using for those hullmods are wrong :) You can check hull_mods.csv to see the right ids.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3023
    • View Profile
Re: Stock Variants Bug: Some Hull-Mods Throw Errors
« Reply #2 on: December 29, 2014, 11:15:43 AM »

Ah, ok. Sorry about that.

Feel free to delete.

Edit: I think I even meant to put this in modding, but then forgot.
Logged