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

    Kindr Orbital Explorer

    Thnx dude! :) got it working with Gimp :)
     
  2. Cyberguy64

    Cyberguy64 Pangalactic Porcupine

    Quick question. Can you set a gun to shoot a projectile that's already in the game? Like monster attacks?
     
  3. Dilrax

    Dilrax Ketchup Robot

    probably, i wouldn't be surprised if you can, i don't know much my self but i would have to guess it's all in the projectile frames and animation code, in my theory of course, i could be wrong.
     
  4. Cyberguy64

    Cyberguy64 Pangalactic Porcupine

    You could make some pretty sweet weapons with all the wacky projectiles in this game.
     
  5. Dilrax

    Dilrax Ketchup Robot

    oh yes, very much so, i have tried my hand at making a gun, although im hardly any good at modding, i think it turned out all right,
    [​IMG] [​IMG]
    it actually does work pretty well for a first time mod, could be better haha.

    but i know others out there who are better will be able to make some very impressive weapons, though it would be better if you could animate a weapon so it moves around in your hand or a light blinks, shoot multiple different projectiles or perhaps some thing on a gun moves or rotates(apart from the attack animation/muzzleflash), such as a rotating minigun barrel when used, (i did try to solve that one, somehow turned the gun invisible, hahaha) but the possibility's are endless at the moment, and someone will eventually work something out.
     
  6. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

  7. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

    okie, solved it.
     
  8. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    nice, sry i had no time yet to help...
     
  9. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

    its ok, but I need your help in one more thing actually, the gun consumes too much energy, how can I balance that?
     
  10. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    both the energy consumption per shot or the class modifier could bring your energy usage down.... don't forget to recraft it if you change something in the configs...
     
  11. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

    class modifier?
     
  12. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

    tried to edit those, not working, I only got it to work by downloading another modder's mod which lowers the energy consumption for each weapon.
     
  13. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    the level counts too i think and ah i meant in the .gun:
    Code:
    ...
    "classMultiplier" : (this let's you additionaly turn down the energy cost for strong weapons)0.4,
    ...
     
  14. PoliticalPeet

    PoliticalPeet Void-Bound Voyager

    Yeah, lowered that, no level now, and also the second thing you said in the .projectile - not working.
     
  15. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    hmm and you recrafted the weapon? otherwise it wont work...
     
  16. maracaman

    maracaman Void-Bound Voyager

    Whenever I craft it I just get a "Perfectly Generic Item", what did I do wrong?
     
  17. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    look into the starbound.log there should be an error message....
     
  18. maracaman

    maracaman Void-Bound Voyager

    where can I find that?
     
  19. Ghoul159

    Ghoul159 Scruffy Nerf-Herder

    in the main folder:
    "Steam\SteamApps\common\Starbound\starbound.log"
     
  20. maracaman

    maracaman Void-Bound Voyager

    Error: Could not instantiate item '[supergun, 1, {}]'. MapException: Key 'power' not found in Map::get()
    009D0C85 (E:/Steamworks/Starbound/git/starbound/source/core/StarMap.hpp:15)
    00606EE6 (E:/Steamworks/Starbound/git/starbound/source/game/items/StarGun.cpp:299)
    ... (3)
    00462382 (E:/Steamworks/Starbound/git/starbound/source/frontend/StarCraftingInterface.cpp:288)
    004B4ACB (E:/Steamworks/Starbound/git/starbound/source/windowing/StarPaneManager.cpp:65)
    0043513B (E:/Steamworks/Starbound/git/starbound/source/frontend/StarMainInterface.cpp:847)
    00404E2F (E:/Steamworks/Starbound/git/starbound/source/client/StarClientApplication.cpp:572)
    00407337 (E:/Steamworks/Starbound/git/starbound/source/client/StarClientApplication.cpp:368)
    0040A214 (E:/Steamworks/Starbound/git/starbound/source/application/StarApplicationBase.cpp:199)
    00407C30 (E:/Steamworks/Starbound/git/starbound/source/client/main.cpp:48)
    004DBBD1 (c:\SDL-1.2.15/./src/main/win32/SDL_win32_main.c:318)

    Im sorry that im such a n00b
    what does all this mean?
     
    Last edited: Jan 20, 2014
Thread Status:
Not open for further replies.

Share This Page