Modding Help I've tried adding a new version of Claw Gloves

Discussion in 'Starbound Modding' started by Melendroach, Mar 21, 2017.

  1. Melendroach

    Melendroach Subatomic Cosmonaut

    it doesn't work and I don't know why. I have everything i thought i would need in my folder:
    png image with two gloves, .activeitem file, frames, even l6 files, and I've tried putting fistweapon.animation and fistweapon.lua. This is weird, because it works with gauntlets. Is it about claw gloves' special combo move?
    What else do I need in folder?
     
  2. IHart

    IHart Scruffy Nerf-Herder

    share a log file of you trying to use the gloves
     
  3. MetaFace

    MetaFace Guest

    1.) Do you have a file in your base mod folder called player.config.patch that add the item via...
    Code:
    [
      { "op" : "add", "path" : "/defaultBlueprints/tier1/-", "value" : { "item" : "*itemname*" }}       
    ]
    2.) Did you actually rename the item in the .activeitem file to something that doesn't already exist?
    Code:
    "itemName" : "*weaponname*"
    (this is inside the file itself)
     
    Melendroach likes this.
  4. Melendroach

    Melendroach Subatomic Cosmonaut

    Woah, I didn't know I have to add this file! Why does it work for spear and blasters then?
    And yes, I did rename it.
     
  5. Melendroach

    Melendroach Subatomic Cosmonaut

    Where can I find log files?
     
  6. lazarus78

    lazarus78 The Waste of Time

    [​IMG]
    Here is where your log file is.
     
    Melendroach likes this.
  7. Melendroach

    Melendroach Subatomic Cosmonaut

    Nice, I'll send it on friday, because I don't have access to my PC atm.
     
  8. Melendroach

    Melendroach Subatomic Cosmonaut

    Got it. I know what it says, that there is no such item. But I'm 100% SURE i did rename it in .activeitem file, and I'm 100% SURE I'm typing it correctly in the /spawnitem command. I've also spawned my custom spear and gun, and it works. I've done the same thing for all of them, but gloves don't work for some reason.
    EDIT: and yes, I have a player.config.patch file with CORRECT itemname in it.
     

    Attached Files:

  9. lazarus78

    lazarus78 The Waste of Time

    The player.config doesnt need to be patched if you want to test things, that is just for making it craftable.

    Anyhoo, are you sure the name in the activeitem is what you think it should be? If it says it cant find the item, then there is a problem somewhere, 99% of the time, in spelling of the item name, be it in the item config or the command.

    Post the item config just to be sure.
     
  10. Melendroach

    Melendroach Subatomic Cosmonaut

    I can't upload files with .activeitem extension, so there is a copy-paste:

    Code:
    {
      "itemName" : "lucienkatar",
      "price" : 1000,
      "level" : 4,
      "maxStack" : 1,
      "rarity" : "Legendary",
      "description" : "wip",
      "shortdescription" : "Lucien's Katar",
      "tooltipKind" : "fistweapon",
      "category" : "fistWeapon",
      "twoHanded" : false,
      "itemTags" : ["weapon"],
    
      "inventoryIcon" : "humangauntleticon.png",
      "animation" : "fistweapon.animation",
      "animationParts" : {
        "weapon" : "humangauntlet.png",
        "swoosh" : "swoosh/physicalswoosh.png"
      },
      "animationCustom" : {
        "sounds" : {
          "fire" : [ "/sfx/melee/swing_dagger.ogg" ]
        }
      },
      "scripts" : [ "fistweapon.lua" ],
    
      "needsEdgeTrigger" : true,
      "edgeTriggerGrace" : 0.1,
    
      "comboSteps" : 3,
      "comboTiming" : [0.2, 0.5],
      "comboCooldown" : 0.2,
      "comboFinisherSource" : "/items/active/weapons/fist/combofinishers/uppercut.combofinisher",
    
      "primaryAbility" : {
        "scripts" : ["/items/active/weapons/fist/punch.lua"],
        "class" : "Punch",
    
        "freezeTime" : 0.15,
        "fireTime" : 0.3,
        "baseDps" : 7.0,
        "damageConfig" : {
          "statusEffects" : [ ],
          "damageSourceKind" : "fist",
          "knockback" : [0, 15],
          "timeoutGroup" : "primary",
          "timeout" : 0.1
        },
        "stances" : {
          "idle" : {
            "armRotation" : 0,
            "weaponRotation" : 45,
            "weaponRotationCenter" : [-1.0, 0.0],
            "weaponOffset" : [-0.25, -0.575],
    
            "allowRotate" : false,
            "allowFlip" : true,
    
            "frontArmFrame" : "run.2",
            "backArmFrame" : "jump.3"
          },
          "windup" : {
            "duration" : 0.05,
            "armRotation" : 0,
            "weaponRotation" : 0,
            "weaponRotationCenter" : [-1.0, 0.0],
            "weaponOffset" : [-0.625, -0.125],
    
            "allowRotate" : false,
            "allowFlip" : false,
    
            "frontArmFrame" : "swimIdle.1",
            "backArmFrame" : "swim.1"
          },
          "windup2" : {
            "duration" : 0.05,
            "armRotation" : 0,
            "weaponRotation" : 0,
            "weaponRotationCenter" : [-1.0, 0.0],
            "weaponOffset" : [-0.75, -0.125],
    
            "allowRotate" : false,
            "allowFlip" : false,
    
            "frontArmFrame" : "swimIdle.1",
            "backArmFrame" : "swim.1",
    
            "recoil" : true
          },
          "fire" : {
            "duration" : 0.1,
            "armRotation" : 0,
            "weaponRotation" : 0,
            "weaponRotationCenter" : [-1.0, 0.0],
            "weaponOffset" : [0.125, -0.25],
    
            "allowRotate" : false,
            "allowFlip" : false,
    
            "frontArmFrame" : "rotation",
            "backArmFrame" : "rotation"
          }
        }
      },
    
      "builder" : "/items/buildscripts/buildfist.lua"
    }
    
     
    Last edited: Mar 24, 2017
  11. IHart

    IHart Scruffy Nerf-Herder

    where in the folder structure is this file.

    p.s. you can change it to animation.txt
    p.p.s. you can also use a (code) tag to make it more readable, or a (spoiler) tag to make it shorter.
     
  12. Melendroach

    Melendroach Subatomic Cosmonaut

    in the same spot as other weapons that work. Starbound-> mods -> Brawlhalla mod -> items -> active -> weapons -> brawlhalla -> Lucien's katars
     
  13. IHart

    IHart Scruffy Nerf-Herder

    without using the fullpath most of these are looking for their values in the current folder, where they are probably not in.
    to fix change fistweapon.animation (unless you copied it into your brawlhala folder, which is not best practice) to its full path of /items/active/weapons/fist/fistweapon.animation.
     
    lazarus78 likes this.
  14. Melendroach

    Melendroach Subatomic Cosmonaut

    Ok I will, but if this is the case then why is it saying that there is no such item in the log?
     
  15. IHart

    IHart Scruffy Nerf-Herder

    It's possible the item can't register properly with all those values pointing to the wrong place, but yes, we would expect it to push an error of some kind. I'm really unsure.
     
  16. IHart

    IHart Scruffy Nerf-Herder

    also: you the brawlhala guy? awesome!
     
  17. Melendroach

    Melendroach Subatomic Cosmonaut

    haha, yes :) I main Ada.
    EDIT: It still doesn't work with this change D:
    EDIT2: and look at this:
    Code:
    [17:55:19.335] [Error] Could not instantiate item '[lucienkatar, 1, {}]'. (AssetException) Error loading asset /items/active/weapons/fist/fistweapon.animation.
    
    
     
  18. IHart

    IHart Scruffy Nerf-Herder

    step in the right direction!
     
  19. Melendroach

    Melendroach Subatomic Cosmonaut

    what :rofl: This is the bug that was caused by changing the fistweapon.animation path, which was ordered by you :p
     
    IHart likes this.
  20. IHart

    IHart Scruffy Nerf-Herder

    "animation" not "animation."
    that period was the end of sentence not end of the path. the general principle of paths is that they require you to identify files that exist.
     
    lazarus78 likes this.

Share This Page