CustomGames.ru - Dota 2 пользовательские игры

Почему не могу создать более одного кастомного юнита в текстовом документе

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн SashaVrach

  • 34
  • Мощь: 0
Почему-то когда создаю более 1-ого костомного юнита они не создаются. Могли бы кинуть шаблон с 2-мя юнитами.
P.S. Пробовал брать от сюда customgames.ru/fo...x.php?topic=155.0 просто копировал но редактор не принимал юнитов.

Оффлайн Илья

  • Супермодератор
  • 2133
  • Мощь: 21

Оффлайн SashaVrach

  • 34
  • Мощь: 0
Может скинешь свой код?

// Units File
"DOTAUnits"
{
   "Version"   "1"
   
   //=================================================================================   
   // Creature: Gnoll Assassin
   //=================================================================================
   "npc_dota_Die_God"   
   {
      // General
      //----------------------------------------------------------------
      "Model"                  "models/heroes/zeus/zeus.vmdl"   // Model.
      "BaseClass"               "npc_dota_creature"
      "SoundSet"               "n_creep_Ranged"
      "GameSoundsFile"         "soundevents/game_sounds_creeps.vsndevts"
      "Level"                  "1"
      "ModelScale"             "9"

      // Abilities
      //----------------------------------------------------------------
      "Ability1"               ""         // Ability 1
      "Ability2"               ""         // Ability 2
      "Ability3"               ""         // Ability 3
      "Ability4"               ""         // Ability 4

      // Armor
      //----------------------------------------------------------------
      "ArmorPhysical"            "30"         // Physical protection.

      // Attack
      //----------------------------------------------------------------
      "AttackCapabilities"      "DOTA_UNIT_CAP_RANGED_ATTACK"
      "AttackDamageMin"         "300"      // Damage range min.
      "AttackDamageMax"         "360"      // Damage range max.
      "AttackRate"            "1"      // Speed of attack.
      "AttackAnimationPoint"      "0.4"      // Normalized time in animation cycle to attack.
      "AttackAcquisitionRange"   "800"      // Range within a target can be acquired.
      "AttackRange"            "500"      // Range within a target can be attacked.
      "ProjectileModel"         "particles/neutral_fx/gnoll_base_attack.vpcf" // Particle system model for projectile.
      "ProjectileSpeed"         "100"      // Speed of projectile.           

      // Bounds
      //----------------------------------------------------------------
      "RingRadius"            "40"
      "HealthBarOffset"         "170"

      // Bounty
      //----------------------------------------------------------------
      "BountyXP"               "666"      // Experience earn.
      "BountyGoldMin"            "666666"      // Gold earned min.
      "BountyGoldMax"            "6666666"      // Gold earned max.

      // Movement
      //----------------------------------------------------------------
      "MovementCapabilities"      "DOTA_UNIT_CAP_MOVE_GROUND"
      "MovementSpeed"            "550"      // Speed.         

      // Status
      //----------------------------------------------------------------
      "StatusHealth"            "666666"      // Base health.
      "StatusHealthRegen"         "666"      // Health regeneration rate.
      "StatusMana"            "666666"         // Base mana.
      "StatusManaRegen"         "0.0"      // Mana regeneration rate.      
      
      // Vision
      //----------------------------------------------------------------
      "VisionDaytimeRange"      "400"      // Range of vision during day light.
      "VisionNighttimeRange"      "400"      // Range of vision at night time.

      // Team
      //----------------------------------------------------------------
      "TeamName"               "DOTA_TEAM_NEUTRALS"                  // Team name.
      "CombatClassAttack"         "DOTA_COMBAT_CLASS_ATTACK_PIERCE"
      "CombatClassDefend"         "DOTA_COMBAT_CLASS_DEFEND_BASIC"
      "UnitRelationshipClass"      "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"

      // Creature Data
      //----------------------------------------------------------------
      "Creature"
      {
         //Level Up
         "HPGain"               "50"
         "DamageGain"            "2"
         "ArmorGain"               "0.25"
         "MagicResistGain"         "0.1"
         "MoveSpeedGain"            "1"
         "BountyGain"            "3"
         "XPGain"               "15"
      }
   }
   "npc_dota_Die_God"   
   {
      // General
      //----------------------------------------------------------------
      "Model"                  "models/heroes/zeus/zeus.vmdl"   // Model.
      "BaseClass"               "npc_dota_creature"
      "SoundSet"               "n_creep_Ranged"
      "GameSoundsFile"         "soundevents/game_sounds_creeps.vsndevts"
      "Level"                  "1"
      "ModelScale"             "9"

      // Abilities
      //----------------------------------------------------------------
      "Ability1"               ""         // Ability 1
      "Ability2"               ""         // Ability 2
      "Ability3"               ""         // Ability 3
      "Ability4"               ""         // Ability 4

      // Armor
      //----------------------------------------------------------------
      "ArmorPhysical"            "30"         // Physical protection.

      // Attack
      //----------------------------------------------------------------
      "AttackCapabilities"      "DOTA_UNIT_CAP_RANGED_ATTACK"
      "AttackDamageMin"         "300"      // Damage range min.
      "AttackDamageMax"         "360"      // Damage range max.
      "AttackRate"            "1"      // Speed of attack.
      "AttackAnimationPoint"      "0.4"      // Normalized time in animation cycle to attack.
      "AttackAcquisitionRange"   "800"      // Range within a target can be acquired.
      "AttackRange"            "500"      // Range within a target can be attacked.
      "ProjectileModel"         "particles/neutral_fx/gnoll_base_attack.vpcf" // Particle system model for projectile.
      "ProjectileSpeed"         "100"      // Speed of projectile.           

      // Bounds
      //----------------------------------------------------------------
      "RingRadius"            "40"
      "HealthBarOffset"         "170"

      // Bounty
      //----------------------------------------------------------------
      "BountyXP"               "666"      // Experience earn.
      "BountyGoldMin"            "666666"      // Gold earned min.
      "BountyGoldMax"            "6666666"      // Gold earned max.

      // Movement
      //----------------------------------------------------------------
      "MovementCapabilities"      "DOTA_UNIT_CAP_MOVE_GROUND"
      "MovementSpeed"            "550"      // Speed.         

      // Status
      //----------------------------------------------------------------
      "StatusHealth"            "666666"      // Base health.
      "StatusHealthRegen"         "666"      // Health regeneration rate.
      "StatusMana"            "666666"         // Base mana.
      "StatusManaRegen"         "0.0"      // Mana regeneration rate.      
      
      // Vision
      //----------------------------------------------------------------
      "VisionDaytimeRange"      "400"      // Range of vision during day light.
      "VisionNighttimeRange"      "400"      // Range of vision at night time.

      // Team
      //----------------------------------------------------------------
      "TeamName"               "DOTA_TEAM_NEUTRALS"                  // Team name.
      "CombatClassAttack"         "DOTA_COMBAT_CLASS_ATTACK_PIERCE"
      "CombatClassDefend"         "DOTA_COMBAT_CLASS_DEFEND_BASIC"
      "UnitRelationshipClass"      "DOTA_NPC_UNIT_RELATIONSHIP_TYPE_DEFAULT"

      // Creature Data
      //----------------------------------------------------------------
      "Creature"
      {
         //Level Up
         "HPGain"               "50"
         "DamageGain"            "2"
         "ArmorGain"               "0.25"
         "MagicResistGain"         "0.1"
         "MoveSpeedGain"            "1"
         "BountyGain"            "3"
         "XPGain"               "15"
      }
   }
}


Оффлайн SashaVrach

  • 34
  • Мощь: 0
Может скинешь свой код?
это мой шаблон который я делал, но не получилось

Оффлайн I_Explorer

  • 231
  • Мощь: 4
это мой шаблон который я делал, но не получилось
мб потому что у твоих юнитов одинаковые имена?
Мой недо-мод для ДотА2 - steamcommunity.com/...ils/?id=765024602

Оффлайн Илья

  • Супермодератор
  • 2133
  • Мощь: 21
Они у тебя называются одинаково.

Ну, тебе это уже подметили.

Оффлайн SashaVrach

  • 34
  • Мощь: 0
Они у тебя называются одинаково.

Ну, тебе это уже подметили.
Я ЗНАЮ! я сказал что это шаблон

Оффлайн SashaVrach

  • 34
  • Мощь: 0
Каким то образом я решил проблему