Custom Factory, fabricatable by commander/fabbers?

Discussion in 'Mod Discussions' started by squawkers13, June 3, 2014.

  1. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    I have code for a custom factory.
    I would like to make it fabricatable by the commander and fabber units, but I don't know what file to shadow to do this.
    Does anyone here know?
  2. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    This probably has something to do with what it can fabricate:
    Code:
        "buildable_types": "(Land & Mobile & Tank & Basic | Tank & Fabber & Basic & Mobile) & FactoryBuild",
    
  3. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    But what would this mean?
    Code:
        "display_group": 70,
        "display_index": 95,
  4. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Mind sending me a zip file for it? I'll try to get it in.
  5. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Here's the zip.
  6. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    No, HERE's the zip.
    :|

    Attached Files:

  7. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Well for one the factory should be under the folder "land" I believe, but I'll keep poking around.

    Edit: Also I'm not entirely sure if the .json works with your formatting choice... Really it should but Uber seems to make really messy looking .jsons, all in one line of code.
  8. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Air factories are under "air".
    I don't think that really makes a difference...
  9. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
  10. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Eeh.. True, as long as you have the directories correct.
  11. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Code:
    "unit_types": [
            "UNITTYPE_Factory",
            "UNITTYPE_Construction",
            "UNITTYPE_Land",
            "UNITTYPE_Dalek",
            "UNITTYPE_Structure",
            "UNITTYPE_Basic",
            "UNITTYPE_CmdBuild",
            "UNITTYPE_FabBuild",
            "UNITTYPE_FabAdvBuild"
        ],
    That's normally what makes it buildable by fabbers. Have you put it in the unitlist.json and the js?
  12. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Testing with it enabled as a server mod.
    Mod is being sent to the server.

    Game starts...
    I am unable to access the commander build menu OR the commander UI commands.
    Well, at least it's loading.
  13. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Yes.
  14. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    This could be the problem.
    Build.js:
    Code:
                "/pa/units/dalek/dalek_factory/dalek_factory.json": ["factory", 5],
    
    What am I supposed to put for that number??

    EDIT: I've heard it's the hotkey for something.

    Though I'm going to mess around with those IDs I found...
  15. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Ah, that problem... @thetrophysystem had that problem as well, and so have I. I'm not sure what causes it...
  16. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Display group and index?
  17. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Well that's the hotkey number, the numbers go from 0 - 14(?) so you'll need to bump that down to 4 or it'll conflict with other buildings.
  18. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Tried 1 as well. Same problem.
    Now testing changing the display_index to 110.
  19. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Same problem!
  20. squawkers13

    squawkers13 Member

    Messages:
    58
    Likes Received:
    11
    Forgot a comma in my unit_list.json :|

    Now it works! :)

Share This Page