Tutorial MOD-TUTORIAL 3: How to make your own Gun (OUTDATED)

Discussion in 'Starbound Modding' started by Ghoul159, Dec 8, 2013.

Thread Status:
Not open for further replies.
  1. tairyhesticle

    tairyhesticle Void-Bound Voyager

    How do you add status effects to the projectiles? Specifically the nude-status effect. I tried simply adding
    Code:
    "statusEffects" : [
        {
          "kind" : "glow",
          "amount" : 100.0,
          "color" : "orange",
          "duration" : 5.0
        },
        { "kind" : "nude"
      "duration" :  15.0 }
      ]
    but it crashes the game. Any help?

    Also without the duration it does not apply the nude debuff.
     
  2. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    hmm i'm not 100% shure if all status effects are compatible with projectiles... and look into the starbound.log does it say anything about that? (if you leave the duration away..)
     
  3. Enel

    Enel Scruffy Nerf-Herder

    i am trying to remove the energy cost, but no sucess, any tips?
     
  4. Matterialize

    Matterialize Scruffy Nerf-Herder

    You could probably use classMultiplier to make the energy cost obscenely low. Try "classMultiplier" : 0.01 or something.
     
    The | Suit and Ghoul159 like this.
  5. CarlF3

    CarlF3 Space Hobo

    is there any difference in how you have to write the mod in the new version Furious Koala?
     
  6. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    you don't have to pack it into pak files and dont forget to change the version... ;)
     
  7. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    hey I was messing around with my mod but for some reason the damage on a few of my weapons are doing double the damage
    like 0.5 is 1 and 1 is 2 any reason my mod is doing this

    Code:
    {
        "itemName": "FireBirdTier0",
        "inventoryIcon": "FireBird.png",
        "shortdescription": "Project Firebird",
        "description": "A Lazer Pistol!",
        "dropCollision": [
            -8,
            -3,
            8,
            3
        ],
        "maxStack": 1,
        "level": 1,
        "rarity": "Legendary",
        "classMultiplier": 1.0,
        "image": "FireBird.png",
        "recoilTime": 3.0,
        "accuracy" : 100,
        "handPosition": [
            -5,
            -1
        ],
        "firePosition": [
            12,
            3
        ],
        "baseDps": [
            6,
            6.5
        ],
        "hands": [
            1,
            1
        ],
        "fireTime": 0.8,
        "twoHanded": true,
        "projectileType": "LazersLevel0",
        "projectile": {
            "power": 1,
            "color": [
                1,
                0,
                0
            ]
        },
        "muzzleEffect": {
            "animation": "/animations/phoenixgunmuzzle/plasmamuzzle.animation",
            "fireSound": [
                {
                    "file": "/sfx/gun/plasma_ar2.wav"
                }
            ]
        }
    }
     
  8. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    hmm try leaving the level complete blank and does the .projectile a damage effect?
     
  9. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    I completely removed the level line on the .gun file but I can show you the .projectile file
    Code:
    {
      "projectileName" : "LazersLevel0",
      "physics" : "laser",
      "bounces" : 0,
      "level" : 3,
      "damageKindImage" : "icon.png",
      "frames" : "LazersLevel0.png",
      "animationCycle" : 1,
      "speed" : 100,
      "frameNumber" : 1,
      "power" : 25,
      "supportsProcessing" : true,
      "actionOnReap" : [
        {
          "action" : "config",
          "file" : "/projectiles/explosions/plasmabulletexplosion/plasmabulletexplosion.config"
        }
      ],
      "lightColor" : [73, 10, 0],
      "damageKind" : "plasma",
      "offset" : [12, 0]
    }
     
  10. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    weird it does twice damage? i can't find a mistake in your code :(
     
  11. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    it only does twice on 0.5 and 1 power, but 2 or more it only does 1 more so like....
    if I set it to 2 it would do 3 and if I set it to 3 it would do 4 and so on.
    I also tried clearing the assets folder and reinstalling but that didn't work.
    it must be something with my mod.

    Edit: is there a damage file I could of edited on accident or something?
     
    Last edited: Feb 5, 2014
  12. Shadowblitz16

    Shadowblitz16 Pangalactic Porcupine

    bump I still need help as I have tried everything to fix it.
     
  13. CarlF3

    CarlF3 Space Hobo

    hey ghoul I just tested the sample mod that you have. it doesn't work. you might want to go through it and fix your mod to understand what every ones problem actually is.
     
  14. Nomad22

    Nomad22 Space Hobo

    hey the only problem i have is that the png files are sorted by ''butt'' '''middle'' and ''barrel'' so i cant choose one png, what do i do to fix this?
     
  15. StrikerTheHedgefox

    StrikerTheHedgefox Void-Bound Voyager

    I notice if you make your gun, and give it to your player, and save.... edit the gun's script to tweak it, and play again... it doesn't change. It seems "cached" inside your save file, so I have to use a save editor to delete it and give a blank copy. Any way to fix this?
     
  16. kio415

    kio415 Big Damn Hero

    Is there anyway to create a gun file that have its own "ProjectileType", "StatusEffect" in 1 JSON file of that gun? Can you guys help me with it?
     
  17. jonessey2002

    jonessey2002 Astral Cartographer

    Can someone make a youtube video on doing this on a mac im going to kil someone its SOO HARD:lickitung::lickitung::diving::spider::(:(:(:(:(:(:(:(:(:(
     
  18. Sevenwho89

    Sevenwho89 Aquatic Astronaut

    could you make a tutorial on how to make a vehicle?
     
  19. tyuiop09

    tyuiop09 Void-Bound Voyager

    doesnt know program :I
     
  20. barrible

    barrible Starship Captain

    Hay great tutorial but I've noticed in guns that when you modding guns not making one but modding one. There's no "energyCostPerDamageShot" thing. How would i mod my gun so it costs less energy?
     
Thread Status:
Not open for further replies.

Share This Page