D2ModKit clears npc_heroes_custom

my D2ModKit clears the "npc_heroes_custom.txt" file every time I use the "Combine KV Files" button.

Is there a different file or directory I'm supposed to be using to modify hero units? I like the idea of keeping files separated and organized, but this simply deletes my work.

Comments

  • Posts: 184

    can you pastebin your npc_heroes_custom.txt please?

    thanks

    Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

  • edited September 2015 Posts: 27

    It is the basic file created by the barebones.

    EDIT: I reinstalled d2modkit and tried a new mod, it does it on new and old mods

    Result after KV merge

    "DOTAHeroes"
    {
    }
    

    Original

    "DOTAHeroes"
    {
        "npc_dota_hero_ancient_apparition_linamod"
          {
            "AbilityLayout"     "6"
            "override_hero"     "npc_dota_hero_ancient_apparition"
            "SoundSet"          "0" 
            "Ability1"        "example_ability" 
            "Ability2"        "linamod_empty2" 
            "Ability3"        "linamod_empty3" 
            "Ability4"        "linamod_empty4"
            "Ability5"        "linamod_empty5"
            "Ability6"        "linamod_empty6"
            "Ability7"        ""
            "Ability8"        ""
            "Ability9"        ""
            "Ability10"       ""
            "Ability11"       ""
            "Ability12"       ""
            "Ability13"       ""
            "Ability14"       ""
            "Ability15"       ""
            "Ability16"       ""
    
            "ArmorPhysical"       "0"                 // Physical protection.
            "MagicalResistance"       "0"                 // Magical protection (percentage).
    
            "AttackCapabilities"    "DOTA_UNIT_CAP_NO_ATTACK"
            "AttackDamageMin"     "1"                   // Damage range min.
            "AttackDamageMax"     "1"                   // Damage range max.
    
            //"AttributePrimary"      "DOTA_ATTRIBUTE_STRENGTH"
            "AttributeBaseStrength"   "0"                   // Base strength
            "AttributeStrengthGain"   "0"                   // Strength bonus per level.
            "AttributeBaseIntelligence" "0"                   // Base intelligence
            "AttributeIntelligenceGain" "0"                   // Intelligence bonus per level.
            "AttributeBaseAgility"    "0"                   // Base agility
            "AttributeAgilityGain"    "0"                   // Agility bonus per level.
    
            "BountyXP"          "0"                 // Experience earn.
            "BountyGoldMin"       "0"                   // Gold earned min.
            "BountyGoldMax"       "0"                   // Gold earned max.
    
            //"BoundsHullName"      "DOTA_HULL_SIZE_HERO"
            //"RingRadius"        "70"
    
            "MovementCapabilities"    "DOTA_UNIT_CAP_MOVE_GROUND"
            "MovementSpeed"       "360"                 // Speed.
            "MovementTurnRate"      "1.0"                 // Turning rate.
    
            "StatusHealth"        "1000"                 // Base health.
            "StatusHealthRegen"     "0.0"                 // Health regeneration rate.
            "StatusMana"        "400"                   // Base mana.
            "StatusManaRegen"     "100.0"                 // Mana regeneration rate.
    
            "VisionDaytimeRange"    "1800"                  // Range of vision at night time.
            "VisionNighttimeRange"    "1800"                  // Range of vision at night time.
          }
    }
    
  • Posts: 184

    not sure... i just created a new addon with d2modkit, pressed "Combine KV Files", and npc_heroes_custom turned out fine.

    Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

  • Wow it stopped doing it. It would literally do it every single time. I even removed and downloaded a new version and it was still doing it every time, even with a freshly made mod.

    Now I cannot even replicate the file clear. Guess I just get to be super paranoid about my file getting cleared.