FORUM ARCHIVED

Attributes not being given by ability

Discussion in 'Modding' started by SPTX, Jun 10, 2012.

  1. SPTX

    SPTX Member

    Here is the story.
    I have two attributes on my ability (piercing damage and tinkering), but when I take it upon leveling up, they are not given to me.

    Here is the related entry in my SkillDB.xml

    Code:
     <ability name="7200 RPM" icon="skills/crippled64.png" skillname="drills" level="1">
    <description text="Spinning faster makes digging faster. Who would have thought of that? Makes you more effective at screwing too."/>
    <secondarybuff id="20" amount="1"/>
    <damagebuff piercing="3"/>
    </ability>
    The icons appear ingame, just like on any other actually working ability. But when I take the ability, it's not added to my stats.
    Does it for all the abilities of my skill.
     
  2. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    This may be related to using skillname instead of skillID.
     
  3. mining

    mining Member

    This is true, it is. Its been reported somewhere - it was on that buglist Daynabt made a while ago, I'm sure.
     
  4. SPTX

    SPTX Member

    Okay. So how does one use the skillID? I read on the wiki that it would cause incompatibilities/crashes if multiple mods had the same. And by being numbers I fear it's quite easy to achieve.
     
  5. Kazeto

    Kazeto Member

    Choose a random 10~15-digit number and use that instead of skillname.
    Only, instead of using [skillname="something"] you use [id="something"].


    It's sad that it doesn't want to work properly, but I can't exactly go and pester Nicholas about that, seeing as I'm the one who repeatedly told him to get more sleep.
     
  6. SPTX

    SPTX Member

    Smart. Will do as soon as I can.
    WIll skillname ever be fixed by the way?
     
  7. Kazeto

    Kazeto Member

    Short answer: Yes.
    Long answer: Yes, but we don't know when and we don't want to abuse sleep-deprived Nicholas.
     
  8. SPTX

    SPTX Member

    Okay. Something weird happened.
    I tried using the id tag. But then the skill just stopped working inside the game (could be selected but empty row where it should be located once in game)
    Back to using skillname without changing anything else. It now works.

    What sorcery is this?
     
  9. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    You probably didn't change all instances (or change them all correctly).

    <skill /> should have id="somenumber"

    <ability /> should have skill="thatsamenumber"
     
  10. SPTX

    SPTX Member

    Skill is a valid tag? Or did you mean skillname.
    Anyway, what I posted on OP now works while the id thing didn't, so I'll stick to it until it stop working again.
     
  11. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    Your first entry in skilldb should look sort of like this:

    Code:
     <skill name="Clutch of Midas" id="200" type="warrior" description="Midas may or may not have been one of your ancestors. Who knows? Dude got around.">
      <art icon="sprites/skills/midas/regal64.png"/>
      <loadout type="reagent" subtype="Gold Ingot" always="1" amount="2"/>
      </skill>
     
  12. SPTX

    SPTX Member

    Yes, that's what I based myself on. Just replaced id by skillname as suggested.
     
  13. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    Don't. Use id=.
     
  14. SPTX

    SPTX Member

    But when I did it just stopped working stopped working. I mean, worse than before.
     
  15. Aegho

    Aegho Member

    id= has to be numerical and unique (so it doesn't conflict with another skill). id="123456" or whatever.

    And the skill levels use skill="123456". Only the first entry that defines the skill uses id=
     
  16. SPTX

    SPTX Member

    Oh, okay. Everything is clear (and working) now.
    Thank you all. Gonna stick to Id until skillname works properly then.