Modding Help Help with Status effects in spirited giraffe

Discussion in 'Starbound Modding' started by Kejourou, Jul 2, 2015.

  1. Kejourou

    Kejourou Intergalactic Tourist

    i am currently trying to make an chest armour that has shine effect on it
    no matter what i do with the stats and how i try and edit it, it keeps turning into
    a perfectly generic item

    "statusEffects": [
    {
    "amount": 100,
    "stat": "protection"
    },
    {
    "amount": 450,
    "stat": "maxEnergy"
    },
    {
    "amount": 450,
    "stat": "maxHealth"
    }


    any tips or hints?
     
  2. Kayuko

    Kayuko Oxygen Tank

    Maybe it's not even related to status effects?
    But this is the array including a glow effect:

    Code:
    "statusEffects": [
    {
    "stat": "protection",
    "amount": 100
    },
    {
    "stat": "maxEnergy",
    "amount": 450
    },
    {
    "stat": "maxHealth",
    "amount": 450
    },
    "lanternglow"
    ]
    
    Don't bother by the order-change, shouldn't matter, but "add maxHealth with a value of 450" reads a bit better imo, code sided.
     
  3. Kejourou

    Kejourou Intergalactic Tourist

    thank you ^_^
    allows me to change it to shine or light without it turning into a brick again[DOUBLEPOST=1435809511][/DOUBLEPOST]
    ..... well that happy train derailed quickly :/
    now the game crashes when i click on the item i added the status effect of shine or light[DOUBLEPOST=1435809870][/DOUBLEPOST]might need to fine the list of code based status effects :/
    i played around with it and found out that the code works but the game doesn't understand it
     
    Last edited: Jul 2, 2015
  4. sayter

    sayter The Waste of Time

    That likely means you are calling lua for which either a statuseffect file or an animation file does not exist for.




    also, should it not be "effect" rather than "stat" that you are calling?


    Take a look at how vanilla items do it.
     
  5. Kejourou

    Kejourou Intergalactic Tourist

    currently using starcheat cause i can't figure out Lua well enough
    which sadly doesn't show me how vanilla items do things but allows me to edit any item to do something
    just not make my own... yet
     
  6. sayter

    sayter The Waste of Time

    Then extract from the vanilla pak file, and see how they do it.

    You don't need lua skills to do the status effect stuff, if you arent adding new effects.


    example from FrackinUniverse for you:



    Code:
    {
      "itemName" : "ghostmushroom",
      "rarity" : "uncommon",
      "inventoryIcon" : "ghostmushroom.png",
      "description" : "Provides invisibility to the eater of this fungus.",
      "shortdescription" : "Ghost Mushroom",
      "effects" : [ [
          {
            "effect" : "invisible",
        "duration" : 20
          }
        ] ]
    }
    

    as you can see, it should be "effect" and not "stat". I'm pretty sure there are no exceptions to that rule, but don't quote me on it. For all I know, "stat" works fine and it's something else that is broken.


    Can you paste the ENTIRE item file up here for me?
     
  7. Kejourou

    Kejourou Intergalactic Tourist

    currently trying to make a gun i changed from the tier 1 nova kid revolver
    basically making a nude gun for laughs and testing hence both levitation and nude are on it, currently trying to figure out how to change the duration of the effects

    {
    "count": 1,

    "name": "novatier1revolver",

    "parameters": {

    "description": "Works every time.",

    "dropCollision": [

    -8.0,

    -3.0,

    8.0,

    3.0

    ],

    "firePosition": [

    18,

    3

    ],

    "fireTime": 0.1,

    "handPosition": [

    -4,

    -2

    ],

    "image": "novatier1revolver.png",

    "inaccuracy": 0.0,

    "inventoryIcon": "novatier1revolver.png",

    "itemName": "novatier1revolver",

    "level": 1,

    "levelScale": 9.0,

    "maxStack": 1,

    "muzzleEffect": {

    "animation": "/animations/muzzleflash/bulletmuzzle3/bulletmuzzle3.animation",

    "fireSound": [

    {

    "file": "/sfx/melee/swing_dagger.wav"

    }

    ]

    },

    "projectile": {

    "color": [

    255,

    10,

    10

    ],

    "life": 3,

    "power": 0,

    "speed": 75,

    "statusEffects": [

    "nude",

    "levitation"

    ]

    },

    "projectileType": "paintballpurple",

    "rarity": "Common",

    "recoilTime": 0.1,

    "shortdescription": "Indecent exposure",

    "tooltipKind": "gun",

    "twoHanded": false,

    "walkWhileFiring": false,

    "weaponType": "Pistol"

    }

    }


    that spacing mhmmm gotta love it, not how it looks like when i copied it but how it seems to paste xD[DOUBLEPOST=1435900467][/DOUBLEPOST]currently using the purple paintball guns sound and bullets cause they just work well... for now



    also using Starcheat to edit the items, seems quite user friendly :3
     
  8. sayter

    sayter The Waste of Time

    So this is working as intended now?

    Changing duration of effects is easy enough. In this case you might just want to make your own status effect file for it. Alternatively you have the option to do it like:

    {
    "effect" : "mything",
    "duration" : 25
    }



    Also, starcheat apparently "helps", but it sure does write code terribly. It's got pretty much the entire file reversed in terms of data appearing in the appropriate order lol.


    a proper gun file should look something like this


    Code:
    {
      "itemName" : "blisterpistol",
      "inventoryIcon" : "blisterpistol.png",
      "dropCollision" : [-8.0, -3.0, 8.0, 3.0],
      "maxStack" : 1,
      "rarity" : "Rare",
      "description" : "A gene-spliced living weapon.",
      "shortdescription" : "Blister Pistol",
      "image" : "blisterpistol.png",
      "handPosition" : [-4, -3],
      "firePosition" : [12, 2],
      "weaponType" : "Bio Weapon",
      "recoilTime" : 0.1,
      "level" : 3,
      "tooltipKind" : "gun",
      "fireTime" : 0.35,
      "twoHanded" : false,
      "walkWhileFiring" : false,
    
      "learnBlueprintsOnPickup" : [ "blistergun" ],
    
      "projectileType" : "blisterpistolshot",
      "projectile" : { "speed" : 50, "power" : 4 , "color" : [255, 0, 235] },
      "muzzleEffect" : {
           "fireSound" : [ { "file" : "/sfx/projectiles/goo_spit2.wav" } ],
           "animation" :  "/animations/muzzleflash/smokemuzzle/smokemuzzle.animation"
          }
    }
    
     
    Last edited: Jul 3, 2015
  9. Kejourou

    Kejourou Intergalactic Tourist

    basically it helps as to say that,
    I am completely new to trying to code and it helps me get access to the item code... as i know close to nothing besides things you and kayuko have told me, in which to avoid being annoying I try and use what I'm told and play with it as to not ask lots of questions
     
  10. sayter

    sayter The Waste of Time

    Oh, it wasn't a judgement. It just , the way it writes code, makes it a bit odd to read over when it's essentially "backwards" :)

    However, by using a program to do it for you, you learn nothing. You should really start doing it the "hard" way to make life easier in the long run. The sooner you understand it, the better off you'll be :)


    You could even take what I posted above and edit it to be what you want, using it as a basis for the rest of your weapons.
     
  11. Kejourou

    Kejourou Intergalactic Tourist

    trick is i don't know where to find the items to even start, only reason i use the program :/

    pretty much green as grass
     
  12. sayter

    sayter The Waste of Time

    That's why these forums are here :) So you can learn, ask for help etc.

    Step 1: extract the vanilla assets from pak file.

    Step 2: Familiarize yourself with folder structure

    Step 3: Make an item and get it in-game

    Step 4: Rinse and repeat until you learn what you need to learn :)
     
    Kayuko likes this.
  13. Kejourou

    Kejourou Intergalactic Tourist

    might need you to dumb it down a little more..., still confused

    also couldn't get the duration to change on the nude and levitation
    the moment i tried your code and replaced mine with it, it turned the bullet effects off so i had to revert to the code bit that kayuko sent me
    Code:
    "projectile" : {
    "speed" : 0.1,
    "power" : 3.75,
    "statusEffects" : [ "burning" ]
    },
    
    changing it to
    Code:
    {
        "color": [
            255,
            10,
            10
        ],
        "life": 3,
        "power": 0,
        "speed": 100.1,
        "statusEffects": [
            "levitation",
            "nude"
        ]
    }
    cant seem to change the colour or stop it from popping in since its using the purple paint ball bullets but it works
    no clue what "life" does
     
  14. Kayuko

    Kayuko Oxygen Tank

    N1: Either use the Modpakhelper (which is somewhere around the forums, no fan of 3rd party programs, so no clue where) or follow those steps:
    • Go to your win32/win64 directory
    • Create a new notepad file
    • Fill it with those lines:
      • Code:
        asset_unpacker.exe ../assets/packed.pak "Unpacked Assets"
        @pause
    • Start it and don't close it untill it says something like "Assets successfully unpacked in 300 seconds"
    Congratz, your assets are now unpacked in "win64/Unpacked Assets" or "win32/Unpacked Assets"

    N2: Basically just study all of the assets to learn what is where, for example, as soon as you can answer things like "Where is the Ai?" or "Where is this kind of item?" you should be fine. This'll speed up the modding process a lot.

    N3: Exactly what it says. Take vanilla items and modify them, for starters, then learn how to create a mod. Once you feel a little bit more sure about all that, try to create a new item from scratch.

    N4 doesn't really need an explanation.

    But yeah.
    To the other thing, what exactly are you trying to do anyways and what's happening?
    It's pretty hard to tell you what's wrong if we don't even know why the hell you would want a weapon that makes other people / npcs floating and rips of their clothes. xD
     
  15. Kejourou

    Kejourou Intergalactic Tourist

    basically using those two effects at the start cause it could be tested on people and mobs then after that it was mostly for why not purposes

    using it as a testing ground to build my knowledge
     
  16. sayter

    sayter The Waste of Time

    Well, it's a suitable start I suppose. I tend to be more ambitious, but I've done this sort of thing since I was 15, and I'm 36 now. So, years of experience and all that.

    If in doubt, copy other peopels stuff and edit. That's how I learn, anyhow. Tear apart, rebuild, test.


    in-game, your best friend is /reload, by the way. It beats the hell out of restarting the game every time you make a slight change.
     
  17. Kejourou

    Kejourou Intergalactic Tourist

    hmmmm i would be easier than closing and opening it over and over indeed, but i have been server hopping looking for player made stores for different types of things, sadly most are private and need to be whitelisted to get into them xD
     
  18. sayter

    sayter The Waste of Time

    not sure what that has to do with modding, but okay.
     
  19. Kejourou

    Kejourou Intergalactic Tourist

    basically looking for items on servers other people have modded to do different things, which i can open and look around inside to find stuff i can learn from it that i don't know how to do currently
     
  20. The | Suit

    The | Suit Agent S. Forum Moderator

    The things you speak of are not done through legitimate modding.
    Which is why you will see items which you can get without having to download a mod for.

    If you want to learn proper modding, I suggest starting here
    http://community.playstarbound.com/resources/unofficial-modding-ebook.2930/
     

Share This Page