Skip to content

chrisinajar/dota2-addon-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dota2 Addon Manager

Manage multiple git hosted dota2 addons and their symlinks on windows with less pain.

Installation

npm i -g dota2-addon-manager

Usage

$ d2am
Commands:
  list           List all available addons
  link [name]    Iterate over all addons and ensure their symlinks are setup
  create <name>  Create directory stub for an addon with a given name

Options:
  --dir, -d   "dota 2 beta" folder.                               [default: "."]
  -h, --help  Show help                                                [boolean]

$ d2am link
checking symbolic links for aaa

 * aaa content must be linked
 * aaa content backing up old directory to aaa.old
checking symbolic links for test-arena

 * test-arena game must be linked
 * test-arena game has not been created in the dota tools yet. Creating it for you!
 * If you somehow destroy the temporary link, just run "d2am link" to recreate them

API

d2am list

List all available addons from the addon directory.

d2am link [name]

Check the symlinks for an addon or for all addons if name is not specified. If the destination directory already exists and the source is empty, the existing files will be copied in. Otherwise, the existing directory will be renamed ending in .old.

d2am create <name>

Create the skeleton for name inside the addons directory. This will automatically run d2am link for this mod, following all of it's normal behavior.

Definition File

The links are also configurable unsing a very simply json structure. This is the default definition.json file:

{
  "game": "game/dota_addons/{ADDON_NAME}/",
  "content": "content/dota_addons/{ADDON_NAME}/"
}

Each key is a directory relative to the addon's root directory, and each value is the destination link relative to the base directory. The string {ADDON_NAME} is replaced with the name of the addon being linked.

Contributing

npm run test

License

MIT

About

Manage multiple git hosted dota2 addons with less pain

Resources

License

Stars

Watchers

Forks

Packages

No packages published