Modding Help Is there a way to edit the particles that emit off the Violium Broadsword?

Discussion in 'Starbound Modding' started by Balthazar Green, Sep 28, 2016.

  1. Balthazar Green

    Balthazar Green Void-Bound Voyager

    I was wondering if there was a way to edit the colors of the particles that are emitted (I.E. change from it's default purples to something blue) from the Violium Broadsword while it's animation is active. I've looked everywhere in the files after I unpacked them and I can't find anything pertaining to it. And I can't seem to find anything else online pertaining to this query.
     
  2. Ledhead

    Ledhead Phantasmal Quasar

    Try the animation files, see if it's a drawn animation. Failing that it's probably an effect or status script

    Sent from Sony Xperia Z5, using Tapatalk.
     
  3. Balthazar Green

    Balthazar Green Void-Bound Voyager

    Much appreciated for the info, this has been a figurative brick wall in my way for the past two days.
     
    Ledhead likes this.
  4. Ledhead

    Ledhead Phantasmal Quasar

    Well lm awake now so I will have a look and let you know which file it probably is.

    Sent from Sony Xperia Z5, using Tapatalk.
     
  5. bk3k

    bk3k Oxygen Tank

    Rather than just giving you the answer, I'll show you how I found the answer. I let notepad++ find the file by searching for "violiumbroadsword" with its find in files feature. If you look at the file you'd find this
    Code:
    "animation" : "/items/active/weapons/melee/broadsword/energybroadsword.animation",
    and once you look at that animation file you find this

    Code:
    "particleEmitters" : {
        "physicalswoosh" : {
          "active" : false,
          "transformationGroups" : ["swoosh"],
          "burstCount" : 4,
          "particles" : [
            { "particle" : "energyblade"},
            { "particle" : "energyblade2"}
          ]
        },
        "blade" : {
          "active" : false,
          "transformationGroups" : ["weapon"],
          "offsetRegion" : [-0.5, 1.5, 0.5, 4.0],
          "emissionRate" : 5,
          "particles" : [
            { "particle" : "energyblade"},
            { "particle" : "energyblade2"}
          ]
        }
      }
    So those are the particles you're looking for.

    Here's the contents of /particles/energyblade.particle

    Code:
    {
      "kind" : "energyblade",
      "definition" : {
        "type" : "ember",
        "size" : 1,
        "color" : [255, 80, 253],
        "light" : [90, 30, 120],
        "position" : [0, 0],
        "destructionAction" : "shrink",
        "destructionTime" : 0.5,
        "fade" : 1,
        "layer" : "middle",
        "fullbright" : true,
        "timeToLive" : 0.5,
        "variance" : {
          "initialVelocity" : [2.0, 2.0],
          "size" : 0.5,
          "position" : [0, 0]
        }
      }
    }
    I'm assuming you want to make your own sword, so instead of editing the vanilla file(which would change the violiumbroadsword too),
    clone the particles(copy and rename),
    clone the animation file(ditto),
    change the colors and light as you see fit in the clone.
    change the particle names in your new animation file to the name of of the cloned particles,
    reference the cloned animation file in your .activeitem file

    Well you probably want to do the same with the recipe unless you plan to use /spawnitem to get it
     
    Balthazar Green likes this.

Share This Page