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

    ahappydude Scruffy Nerf-Herder

    Just looked over the gun generation quick, if one member makes ex 2 barrels we soon have an even bigger loot heaven, almost as in borderlands, nice guide op
     
    Ghoul159 likes this.
  2. SaintPanda

    SaintPanda Cosmic Narwhal

    Here, I think I can do that with WinRAR
    There you go.
     

    Attached Files:

  3. killerkitt

    killerkitt Void-Bound Voyager

    it dont work for some reason plz re-upload
     
  4. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    hmm it should work if you meant my link... i just tried it

    the first problem was this in "USCMHandgun.gun"

    the "power" attribute has to be in the " "projectile" : { " tab like this
    Code:
    ...
      "projectile" : {
      "speed" : 60,
      "color" : [10, 255, 10],
      "power" : 30
      },
    ...

    the second problem was also in the "USCMHandgun.gun"

    there shouldn't be a colon at the end of "/MyNewGun/USCMHandgunMF.animation:",
    like this:
    Code:
      "muzzleEffect" : {
        "animation" : "/MyNewGun/USCMHandgunMF.animation",
        "fireSound" : [ { "file" : "/MyNewGun/Projectile/USCMHandgunSound.wav" } ]
      }
    don't forget to recraft the item after the steps from above... :)
    and i can only recommend you to use my template i uploaded because of the more organized folder structure.. ;)
     
  5. killerkitt

    killerkitt Void-Bound Voyager

    hey can you find a way to make armour lol plz thx
     
  6. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    hmm maybe tomorrow... :)
     
  7. killerkitt

    killerkitt Void-Bound Voyager

  8. AshRichOak

    AshRichOak Void-Bound Voyager

    :(
    this wont work for me i took 3 different parts from generated one image for the gun and im wanting to make a assauklt rifle i can get into the game the crafting recipe is fine but i craft something called perfectly generic item
    i want a really strong plasma assault rifle what did i do wrong if possible i could upload the entire modpack (what it is if i change it code will mess up)
    ill never finish the modpack if i cant even get one weapon to work
     
  9. Matterialize

    Matterialize Scruffy Nerf-Herder

    Can you post the code in your .gun file?
     
  10. Coolred

    Coolred Scruffy Nerf-Herder

    I was curious to see if you could post a guide on how to create like hammers and such. I was looking at this uncommon tier 2 hammer with blades and thought it deserved a little more damage. Since the hammer is broken down into two .PNGs (blade and handle) I was wondering if you could look into that and see what you could figure out. I tried to improvise with your tutorial you had for the gun, but soon just decided it is probably a different process since it has 2 .PNGS instead of one.

    P.S. Sorry if its a simple process and I'm bugging, I am quite oblivious.
     
  11. Matterialize

    Matterialize Scruffy Nerf-Herder

    These two lines need commas at the end. That should do it, as long as all the file paths are correct.

    Also, it doesn't seem to cause problems by existing but I think you can remove the rateOfFire line. fireTime is what determines the gun's rate of fire. It's the number of seconds between shots. So if your fireTime is 0.5, only half a second passes between shots which means it can fire 2 shots per second.
     
    Ghoul159 likes this.
  12. phinstar

    phinstar Space Hobo

    Hey, I'm trying to follow your steps to make a gun and everything worked fine until I tried to change the .wav for the fireSound. As soon as i try to shoot, the game closes. Any idea why that happens?
     
  13. TheDoctor1133

    TheDoctor1133 Lucky Number 13

    getting an error when trying to DL ur zip file....

    This attachment cannot be shown at this time. Please try back later.
     
  14. T0xicBanana

    T0xicBanana Void-Bound Voyager

    i did everything, except when i go to my crafting bench, it says the item is a "perfectly generic item" and its a green cube. so i made it and nothing happens?
     
  15. Matterialize

    Matterialize Scruffy Nerf-Herder

    Post the code from the .gun file?
     
  16. T0xicBanana

    T0xicBanana Void-Bound Voyager

    {
    "itemName" : "T0xic's EPIC Cannon",
    "inventoryIcon" : "MyNewGunICON.png",
    "description" : "That's Some Nice TEC you Got There",
    "shortdescription" : "TEC",
    "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
    "maxStack" : 1,
    "level" : 101,
    "rarity" : "Rare",
    "inspectionKind" : "TEC",
    "image" : "MyNewGun.png",
    "recoilTime" : 0.1,
    "handPosition" : [-5.5, -3],
    "firePosition" : [12, 3],

    "fireTime" : 8,
    "twoHanded" : false,

    "projectileType" : "MyNewGunProjectile",
    "projectile" : {
    "power" : 184,
    "speed" : 60,

    "color" : [10, 255, 10]
    },

    "muzzleEffect" : {
    "animation" : "/MyNewGunMod/sfx/MyNewGunMF.animation"",
    "fireSound" : [ { "file" : "/MyNewGunMod/sfx/MyNewGunSound.wav } ]
    }
    }

    Not sure about it as im a noob to this stuff :p
     
  17. Matterialize

    Matterialize Scruffy Nerf-Herder

    You have an extra quotation mark at the end of this line:

    Code:
    "animation" : "/MyNewGunMod/sfx/MyNewGunMF.animation"",
    Remove it and give it a shot.
     
    Ghoul159 likes this.
  18. vhmercenario

    vhmercenario Subatomic Cosmonaut

    Can you help me, i'm on a server (idk how but they have the FISHAXE, THE BUSTER, and some other crazy things) and the people here have a rocket launcher called "no fun allowed" , it launch very strong rockets, its insanely fast, it don't use anything to shoot, you just click and boom!!, but it work on any server and even offline, do you know how they did that? the server ip: "server.starbound.ru" my name here is : vhmer , if anybody want the fishaxe , the buster, or this crazy gun (and a insanely crazy 1000+ damage sword) tell me, and say you're from the forums (i don't give they easily to others)
     
  19. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    I'll look into that and armours but it could become tomorrow because i haven't got that much time today...


    did you change the "fireSound" : [ { "file" : "/MyNewGunMod/sfx/MyNewGunSound.wav" } ] in your code with the correct path and is you soundfile a ".wav"?


    yea me too sometimes but sometimes it works maybe a forum bug?


    yes i think i know how they did it... if you change the stats of your weapon it most likly will work on the server too...
    furthermore they can change crafting recipes ,rewards etc as they please so they can cheat themselfs every weapon in the game...


    and thanks Matterialize for your help while i was asleep :)
     
    Last edited: Dec 10, 2013
  20. Chieron

    Chieron Void-Bound Voyager

    Could I ask for some help with mine? I have a similar issue to Panda, where my gun spawns/holds fine, but firing it crashes with no error given.

    Edit: or I could have likely given you the wrong iteration of the files. These should work, once the recipe is added to player.config.
     

    Attached Files:

    Last edited: Dec 10, 2013
Thread Status:
Not open for further replies.

Share This Page