Modding Help Need help making new weapon type

Discussion in 'Starbound Modding' started by Superepicgecko, Aug 26, 2016.

  1. Superepicgecko

    Superepicgecko Space Penguin Leader

    Hey guys. So i've been working on adding SMGs to the game, to fill the niche between Assault Rifles and Machine Pistols.

    I have a \items\active\weapons\ranged\submachinegun folder fleshed out with everything the vanilla MP has - commonsmg, uncommonsmg, smgnames, gun parts, etc. As far as I can tell I've done everything correctly though I've mostly been going off my own knowledge and intuition since I can't find any up to date tutorials on how to make a new weapon class.

    I also made a weapon.config.patch in \quests\generated\pools which is as follows:

    [
    {
    "op": "add",
    "path": "/1/1",
    "value": {
    "tag": "smg",
    "name": "SMG",
    "type": "activeitem"
    }
    }
    ]


    My problem is, when I go in game (Fresh universe of course) and try /spawntreasure weapon to test my guns, they don't seem to appear. I've combed over the starbound.log and besides saying it loaded assets from the mod folder, it isn't throwing any errors.

    Is there something I'm missing?

    Any help would be greatly appreciated!
     
  2. Superepicgecko

    Superepicgecko Space Penguin Leader

  3. Tremerion

    Tremerion Existential Complex

  4. Superepicgecko

    Superepicgecko Space Penguin Leader

Share This Page