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. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    sounds like there is a problem with your ".gun" file...
     
  2. Bestpick

    Bestpick Big Damn Hero

    Please update this tutorial, armor penetration and other crud have been replaced with other confusing values. I can't figure it out, I had a gun that I wanted to do around 10 damage end up doing 63 damage, and a gun with 17 wanted damage to be 227 damage. Heeelp! :c
     
  3. hsidnomeL

    hsidnomeL Void-Bound Voyager

    I downloaded your example, after many failed attempts at making my own gun, and can't seem to get it to work. For some reason, every time I fire, the game crashes. What am I doing wrong? o_O
     
  4. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    it is updated just the .projectile image was an old one but i just updated this too... :)

    i just downloaded and tried it and it worked... maybe other crash reasons?
     
  5. Bestpick

    Bestpick Big Damn Hero

    I tried setting my level for my gun to 1 (2 for the copper) and it still did insane amounts of damage. :c
     
  6. hsidnomeL

    hsidnomeL Void-Bound Voyager

    Hrm.... re-downloading now, just in case I changed something somewhere.

    Edit : And... now it's working. :zzz:; Even though I didn't change a thing the first time around. @_@;
    Whelp... time to work on my own gun then I suppose. :p
     
    Last edited: Dec 11, 2013
  7. Bestpick

    Bestpick Big Damn Hero

    Nevermind, I have fixed my own error.

    Edit : And by fixing my own error I mean magic fixed it. Not sure what fixed it, it is downed to about 5 damage now.
     
  8. MonthOLDpickle

    MonthOLDpickle Void-Bound Voyager

    This isn't working for me! I checked for commas, space...and no dice =(

    ON top the download isn't working. Odd didn't in chrome or FF but was able to download in IE (ugh IE)
     
  9. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    Try the download more times sometimes it seems to error but only sometimes....

    what is not working?
     
  10. MonthOLDpickle

    MonthOLDpickle Void-Bound Voyager

    The gun and than I tried mine own..but after dinking around changing text I finally got it. How do you change the rate of fire/attack speed? Also is it okay to make the gun bigger or longer? I am really new at this.
     
  11. Bestpick

    Bestpick Big Damn Hero

    I always get my gun to be about 1-2 damage. How do I make it higher?
    .projectile

    {
    "projectileName" : "copper",
    "frames" : "coppergunprojectile.png",
    "animationCycle" : 0.25,
    "level" : 3,
    "energyCostPerDamagePoint" : 10,
    "frameNumber" : 1,
    "damageKindImage" : "coppergunprojectileicon.png",
    "pointLight" : false,
    "actionOnReap" : [
    {
    "action" : "config",
    "file" : "/projectiles/explosions/bulletexplosion/bulletexplosion.config"
    }
    ],
    "power" : 3,
    "damageKind" : "default"
    }

    .gun

    {
    "itemName" : "coppergun",
    "inventoryIcon" : "coppergunicon.png",
    "description" : "A gun made of copper, shined to... look... cool.",
    "shortdescription" : "Copper Gun",
    "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
    "maxStack" : 1,
    "level" : 3,
    "rarity" : "Common",
    "inspectionKind" : "gun",
    "image" : "coppergun.png",
    "recoilTime" : 0.1,
    "handPosition" : [-5.5, -3],
    "firePosition" : [12, 3],

    "fireTime" : 2.0,
    "twoHanded" : false,

    "projectileType" : "copper",
    "projectile" : {
    "power" : 15,
    "color" : [10, 255, 10]
    },

    "muzzleEffect" : {
    "animation" : "/craftgun/coppergun/coppergunmf.animation",
    "fireSound" : [ { "file" : "/craftgun/coppergun/coppergunsound.wav" } ]
    }
    }
     
  12. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    this part in .gun:
    "projectileType" : "copper",
    "projectile" : {
    "power" : 15,
    "color" : [10, 255, 10]
    },

    and dont forget to recraft your gun otherwise it wont change the stats...
     
    Bestpick likes this.
  13. Bestpick

    Bestpick Big Damn Hero

    asdsaf
    I'm such a idiot, I didn't recraft it even ONCE
     
  14. Bestpick

    Bestpick Big Damn Hero

    Now, upon clicking on the crafting recipe on my gun, it crashes.
    This is a different gun than the one you fixed (thank you)
    .gun

    {
    "itemName" : "woodgun",
    "inventoryIcon" : "woodgunicon.png",
    "description" : "A gun made of wood, reinforced so the gun doesn't break.",
    "shortdescription" : "Wooden Gun",
    "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
    "maxStack" : 1,
    "level" : 1,
    "rarity" : "Common",
    "inspectionKind" : "gun",
    "image" : "woodgun.png",
    "recoilTime" : 0.1,
    "handPosition" : [-5.5, -3],
    "firePosition" : [12, 3],

    "fireTime" : 2.5,
    "twoHanded" : false,

    "projectileType" : "wood",
    "projectile" : {
    "color" : [10, 255, 10]
    },

    "muzzleEffect" : {
    "animation" : "/craftgun/woodgun/woodgunmf.animation",
    "fireSound" : [ { "file" : "/craftgun/woodgun/woodgunsound.wav" } ]
    }
    }

    .projectile

    {
    "projectileName" : "wood",
    "frames" : "woodgunprojectile.png",
    "animationCycle" : 0.25,
    "level" : 1,
    "energyCostPerDamagePoint" : 15,
    "frameNumber" : 1,
    "damageKindImage" : "woodgunprojectileicon.png",
    "pointLight" : false,
    "actionOnReap" : [
    {
    "action" : "config",
    "file" : "/projectiles/explosions/bulletexplosion/bulletexplosion.config"
    }
    ],
    "power" : 2.5,
    "damageKind" : "default"
    }
     
  15. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    it sounds like something in the .gun is wrong maybe the path or names of the files...
     
  16. killerkitt

    killerkitt Void-Bound Voyager

    your missing the power and speed in the .gun
    "projectileType" : "wood",
    "projectile" : {
    "power" : <Number you want>,
    "speed" : <number you want>,
    "color" : [10, 255, 10]
    },
     
  17. Bestpick

    Bestpick Big Damn Hero

    How do I make my gun do fire damage?
     
  18. blaze2149

    blaze2149 Void-Bound Voyager

    I tried downloading your mod but it still doesnt show up on the crafting table
    checked for commas and stuff but nothing
    i will try redownloading
     
    Last edited: Dec 12, 2013
  19. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    look at the "\Starbound\assets\projectiles\fire\firepart1" as example..

    did you add it to the player.config?
     
  20. blaze2149

    blaze2149 Void-Bound Voyager

    no but i will try it now
    hey, Mind pointing me in the right direction? just where is it, the player.config? (sorry im new to all of this)
     
    Last edited: Dec 12, 2013
Thread Status:
Not open for further replies.

Share This Page