#Just need to edit an existing game mode; available characters.

1 messages · Page 1 of 1 (latest)

mild delta
#

I am trying to just edit a custom game mode that is a 10v10 setup with AI integrated. It has not been updated for the new characters and I would like to make an updated file. Looked online for a guide for something that seemed simple and didn't find much. Thanks.

tender vapor
#

Are you trying to update someone else's mod?
I am not sure this is possible. Although you can get a lot of source material and just recreate it as your own with tweaks on top.

For that you would need to unpack downloaded from workshop .vpk file of that addon, it would contain pretty much everything from game folder side, but only compiled parts from content folder. So any tweaks to panorama or particles you would have to do from the scratch.

Anyway, isn't that easier to just contact the original developer?

mild delta
#

I have been trying to get into contact with the original developer for months now and they just never seem to be online. I am currently very unfamiliar with how to even begin the process of grabbing his material and making my own :/

scarlet tartan
#

if you want to make a 10v10 with bots then the work required is minimal, i'd suggest you start over rather than using someone else's code without it's approval

#

iirc you'll need to set a few parameters and that's it

mild delta
#

:3 I really would like to do that, I just don't know how to do it.

scarlet tartan
mild delta
#

I will look into it. Thank you for the links. 😄

mild delta
#

I got as far a running the game. But as far as adding the new characters and making tweaks I am at a standstill. I thought I might just need to add them into the Scripts>Npc>Herolist & NPC_Abilities textfiles but it seems like there is more to it. Is there something I am missing?

balmy badger
#

If i get your question right:

npc_heroes_custom.txt - used to specify anything custom related to every hero

"DOTAHeroes"
{
    "npc_dota_hero_alchemist"
    {
        "override_hero"    "npc_dota_hero_alchemist" // valve uses that in their examples so probably required for something (must match existing hero name)
        "Ability1"    "alchemist_greed_is_good" // custom ability named alchemist_greed_is_good will be placed in first ability slot of alchemist
        "ArmorPhysical"    "40" // alchemist will start with 40 armor
        "AttackCapabilities"    "DOTA_UNIT_CAP_RANGED_ATTACK" // Alchemist will be ranged hero
        "AttackRange"    "625" // with 625 attack range
        "ProjectileModel"    "particles/units/heroes/hero_drow/drow_base_attack.vpcf" // and drow arrows as attack projectile
        "ProjectileSpeed"    "1250" // that flying with 1250 speed
    }
}

npc_abilities_custom.txt - used to specify custom abilities in your game

    "alchemist_greed_is_good"
    {
        "BaseClass"                         "ability_lua" // base class of ability. For lua abilities ability_lua, for datadriven abilities ability_datadriven (in 99.99% prefer use lua over datadriven)
        "ScriptFile"                        "abilities/heroes/alchemist/greed_is_good" // path to lua script file that implements ability (required for ability_lua)
        "MaxLevel"                          "1" // max level of ability
        "AbilityBehavior"                   "DOTA_ABILITY_BEHAVIOR_PASSIVE" // ability behavior (passive, aura, active no target, etc)
        "AbilityValues" // values used in ability code and tooltip
        {
                    "gold"     "25"
        } 
    }
#

If you want change something in existing abilities then you should create entry with same name in npc_abilities_override.txt (npc_abilities_custom.txt works too). Some old abilities may use AbilitySpecial syntax instead of AbilityValues (they created for same purpose, but AbilityValues support more features and easier to read)

    "abyssal_underlord_atrophy_aura"
    {
        "AbilityValues"
        {
            "radius"                        "5000" // underlord aura will have 5000 radius instead of default 900
        }
    }

herolist.txt - used to specify heroes enabled in your game (in pick screen)

"whitelist"
{
  "npc_dota_hero_ancient_apparition" "1" // players can pick ancient apparition
  "npc_dota_hero_antimage" "0" // players can't pick antimage
}

If you want add completely unique hero that not override existing ones then its possible, but this hero will lack hero icon at least

mild delta
#

I am trying to just update an older workshop file that does not have Marci or Primal enabled, and enable them for play in the game. Neither of them are in the herolist.txt or npc_abilities.txt files. I was wondering if I could enable them in the game mode by editing these files or is there something else i need to do. What I did was

#

"npc_dota_hero_spectre" "1"
"npc_dota_hero_undying" "1"
"npc_dota_hero_ursa" "1"
"npc_dota_hero_hoodwink" "1"
"npc_dota_hero_dawnbreaker" "1"
"npc_dota_hero_marci" "1" <<ADDED
"npc_dota_hero_primal_beast" "1" <<ADDED
}

#

the <<ADDED is not in the file

#

Then I went to the NPC_abilities.txt file and copy and pasted the default Marci and Primal settings for each hero.

robust ravine
#

if you arent making changes to the heroes then you dont actually need the KV for them or their abilities. it will all just be default if excluded.

mild delta
#

So I shold just be able to add them to the herolist.txt file and they should be good to go?

robust ravine
#

should be. launch the map and see if they are playable

mild delta
robust ravine
#

im not sure what would cause that tbh.
i just tried having just marci enabled in herolist and having no hero list, and i can pick her just fine

#

maybe you added something to other files that shouldnt be there

mild delta
#

i got the heroes enabled but now my TP scrolls are unpurchaseable

#

-.-

mild delta
#

I went to upload it to the workshop but it doesnt seem to be working. 😦

tender vapor
#

It has to be approved, and then you would be able to create a lobby with it.
When creating a lobby choose "local server".

mild delta
#

Trying to change the default values for TP scrolls to be useable when the game starts and change the cooldown of TP scrolls. Where would this funstion be located?

icy ember
#

Making them usable when the game starts needs to be done in lua. Changing cooldown can be done in the npc_abilities_override.txt