Skip to content
Liam S edited this page Jul 16, 2015 · 5 revisions

Installation

Since BuildingHelper (BH) now has various components in many different locations, I thought the best way to convey the installation information would be to make this repo contain a sample RTS-style addon.

The first step is adding in the required Panorama components

  1. Merge the Panorama folder (content\dota_addons\samplerts\panorama) with the panorama folder in your addon.

  2. If you have already made a custom_ui_manifest.xml then you can just add <CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/building_helper.xml" /> .

  3. Next you should add the lua file buildinghelper.lua from \game\dota_addons\samplerts\scripts\vscripts to \game\dota_addons\YOUR_ADDON\scripts\vscripts

  4. Add or merge the functions from abilities.lua in \game\dota_addons\samplerts\scripts\vscripts to \game\dota_addons\YOUR_ADDON\scripts\vscripts\abilities.lua

  5. You also need to copy the has_build_queue ability in npc_abilities_custom.txt to your npc_abilities_custom.txt file.

  6. Now you need to initialize the library! Add 'buildinghelper' to the requires list in addon_game_mode.lua, and add these lines to YOUR_ADDON.lua

  7. Finally, copy the buildinghelper folder from content\dota_addons\samplerts\particles to content\dota_addons\YOUR_ADDON\particles

  8. You're ready to go! Look at the example buildings and build abilites in the npc_units_custom.txt and npc_abilities_custom.txt to get an idea as to how you should set up your abilities

Clone this wiki locally