Galactic War Modding Crash

Discussion in 'Support!' started by stuart98, July 16, 2015.

  1. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Hahaha, hello programmer bro. <3
  2. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    I just verified that none of our jsons were invalid; everything works as it should. I'll see if I can figure out what's causing the invalid commander spec.

    Our mod includes the old json for Xenosentryprime in the unitlist.json. If you removed that json file then I'd imagine things could break.
  3. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Okay, looks like you guys added a bunch of crap that we're missing to the commander jsons. Gonna be a fun hour I'll spend fixing that.
    :(

    EDIT: Alright, only took half an hour.
    Last edited: July 22, 2015
  4. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    What was breaking it was the PTE change of "commander && commander.UnitSpec && inventory.addUnits([commander.UnitSpec]);" -> "commander && inventory.addUnits([commander]);" in /ui/main/game/galactic_war/cards/gwc_start.js. Fixed that and now it's working properly.

    And I actually mean properly! It's not crashing when new units are firing or anything!

    This is really, really exciting. Galactic Annihilation will be the first rebalance mod to have Galactic War support.
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    EDIT: Turns out I was wrong. While light missile tower wasn't crashing, tank_attack and bot_mortar were. Odd. :/
  6. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
  7. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Okay, I think I've isolated the repro case to "The model name is different from the unit.json name", eg land_scout.json's model is veh_scout.papa. @mkrater @jables @Sorian @masterdigital @pinbender @otheruberentsasithinkofthemifyouaren'thereyou'reunloved
  8. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888

Share This Page