How to add new units?

Discussion in 'Mod Discussions' started by killerkiwijuice, November 4, 2014.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I'm making a mod similar to boom bot wars, except this one is about dox.

    I got everything working, but i'm not sure how t actually add my rescaled giant dox into the game. It looks like adding a new path to build.js doesn't work, and same thing with unit_list.json.

    Anyone know how I can add the giant dox into the actual files to be played with in-game?
  2. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    To get them in the build bar you have to add them to a js file

    ui/main/shared/js/build.js
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I was actually able to get that working.

    Now there's a problem with crashing; when the vehicle factory tries to build the giant dox, the game crashes.
  4. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Do you have a link to the source code for the mod? A Github?

    Generally crashes are caused by bad JSON data or invalid fields.
  5. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Fixed it :)

Share This Page