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

    vhmercenario Subatomic Cosmonaut

    i want a tutorial to the gun he did that can kill anyone even if the victim aren't on pvp, because i'm getting some griefer on my srver,
     
  2. blaze2149

    blaze2149 Void-Bound Voyager

    Yea it's green
     
  3. vhmercenario

    vhmercenario Subatomic Cosmonaut

    Green items are and annoying problem
     
  4. Cakewalker

    Cakewalker Subatomic Cosmonaut

    my game closes when i click on it in the crafting menu. any suggestions?
     
  5. vhmercenario

    vhmercenario Subatomic Cosmonaut

    i want a rocket launcher file and i think a lot of people too
     
  6. vernadead

    vernadead Big Damn Hero

    Im using a different gun as base that has "power projectile" and "projectile"
    since the gun I am making is plasma based

    Edit: the code for the buster gun uses
    "powerProjectileType" : "chargedbustershot",
    "powerProjectileTime" : [0.7, 50],

    and the current icon looks like a bow. I think that answers my question
     
    Last edited: Dec 13, 2013
  7. Benasist

    Benasist Void-Bound Voyager

    I get a perfectly generic item not the gun i want
     
  8. TehPlasmaDucky

    TehPlasmaDucky Aquatic Astronaut

  9. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    no i'm not bypassing any gameplayrules ....

    then there's a problem within the gun wether it is a problem with the pathing or with the formating....

    then there's a problem within the gun wether it is a problem with the pathing or with the formating....

    you have a moddingtestMF folder in your muzzleflash and in that the moddingtestMF.animation is that correct?
    "/animations/muzzleflash/moddingtestMF/moddingtestMF.animation"
     
  10. TehPlasmaDucky

    TehPlasmaDucky Aquatic Astronaut

    Aah, there's the problem. Thanks!

    EDIT: Now it crashes when i try to shoot :I
     
  11. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    well then there's an error wiithin the projectile... or the sound of the shot or the muzzleflash...
     
  12. TehPlasmaDucky

    TehPlasmaDucky Aquatic Astronaut

  13. Galleth

    Galleth Void-Bound Voyager

    So.... can anyone find a problem with this?
    Code:
    {
      "itemName" : "RIP",
      "inventoryIcon" : "RIPicon.png",
      "description" : "Rest. In. Peace.",
      "shortdescription" : "RIP",
      "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
      "maxStack" : 1,
      "level" : 20,
      "rarity" : "Legendary",
      "inspectionKind" : "gun",
      "image" : "RIP.png",
      "recoilTime" : 0.01,
      "handPosition" : [-5.5, -3],
      "firePosition" : [12, 3],
    
      "fireTime" : 0.05,
      "twoHanded" : false,
    
      "projectileType" : "RIPnade",
      "projectile" : {
    
        "color" : [10, 255, 10]
      "power" : "1000",
      "speed" : "35"
      },
    
      "muzzleEffect" : {
        "animation" : "/RIP/muzzleflash/RIPflashmuzzle.animation",
        "fireSound" : [ { "file" : "/RIP/sfx/RIPsound.wav" } ]
      }
    }
    
     
  14. Phyrex

    Phyrex Parsec Taste Tester

    im not seeing the muzzleflash line of code
    "muzzleFlashes" : [
    "/animations/muzzleflash/bulletmuzzle1/bulletmuzzle1.animation"


    the directory for the animation seems wrong too, its saying /RIP/muzzleflash instead of /animation/muzzleflash

    same for the firing sound, im seeing /RIP/sfx/RIPsound.wav instead of /sfx/gun/RIPsound.wav

    you dont have to put your mod name at the beginning, the game will go fetch the assets by itself assuming your folders directories are done well.

    If your firing sound is custom-made, that might be a problem too. there's been trouble with home-made sfx

    of course im saying all that assuming you followed the vanilla folder path
     
  15. KayZizzle

    KayZizzle Orbital Explorer

    After I have added the gun to the player.config where do you add the gun file? Does it go in assets? Does the recipe have to be added to the recipes folder? Does it have to be added to the anvil folder? Can we take 3 parts of a gun Png files and make a gun or do i have to connect them together in like photoshop and make a 3 part png into one part and then use that? How would you use 3 png files to make one gun? Does this method work using assult rifles/ sniper rifles? I tried Dling your file so i can compare it to mine but it keep popping up a forum error....
     
  16. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    did you name your muzzleflash file right?

    i can't find any problem do you get a green item?

    everything in your mod folder in assets...
     
  17. KayZizzle

    KayZizzle Orbital Explorer

    so i was able to DL your file i put it into assests and i restart the game but the recipe is not at the table?
     
  18. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    you have to add it to the player.config....
     
  19. KayZizzle

    KayZizzle Orbital Explorer

    i did add it to the player.config , but it still will not show up in the table?


    "defaultItems" : [],

    "tierBlueprintsUnlockedMessage" : "New blueprints have been unlocked.",
    "blueprintOnPickupMessage" : "New blueprint available.",
    "defaultBlueprints" : {
    "tier1" : [

    { "item" : "MyNewGunMod" },
    { "item" : "mininglantern" },
     
  20. blaze2149

    blaze2149 Void-Bound Voyager

    When I put the item into the player config where should I put it and should it be MyNewGun or MyNewGunMod
     
Thread Status:
Not open for further replies.

Share This Page