2b97a68317
Folds three previously-separate Lua addons into one for guild-member use:
- ascension-char-exporter (per-character JSON/Wiki.js Markdown via /ascx)
- CoA_SkillExporter (skills/dispels/passives catalog via /skilldump)
- CoA_TalentExporter (talent-tree catalog via /talentdumpall)
The two CoA catalog dumpers were ~90% identical entry-walkers. Pulled the
shared C_CharacterAdvancement.GetAllEntries() loop into Catalogs/Common.lua
and have Skills.lua / Talents.lua register collectors that share a single
scan pass (so /coae catalog all walks the entry list once, not twice).
Per-character collectors (Talents, Gear, Enchants, MysticScrolls,
MysticScrollProbe) and the AtlasLootAscension-derived ScrollCatalog data
are kept verbatim, just rebranded.
Slash interface:
/coae export {all|talents|gear|enchants|mdgear|mdenchants|md}
/coae catalog {all|skills|talents|dispels [class]|passives [class]|status}
/coae scrolls {scan|export|reset|status}
/coae sv on|off | debug | help
Aliases: /coaexp, /ascx, /asxc, plus legacy /skilldump /talentdumpall
/dispels /passives that map to the catalog subcommands.
SavedVariables: CoaExporterSaved, CoaExporterConfig, CoaExporterScrollCache,
CoaExporterCatalog (skills/dispels/levelPassives/talents/_meta).
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Installs/syncs the CoaExporter addon into your WoW Ascension AddOns folder.
|
|
# Default target: /srv/add01/wow-ascension/Interface/AddOns
|
|
# Usage:
|
|
# scripts/install_addon_sub.sh [TARGET_ADDONS_DIR]
|
|
# Example:
|
|
# scripts/install_addon_sub.sh /srv/add01/wow-ascension/Interface/AddOns
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="${SCRIPT_DIR}/.."
|
|
|
|
SRC="${REPO_ROOT}/CoaExporter"
|
|
DEST_BASE="${1:-/srv/add01/wow-ascension/Interface/AddOns}"
|
|
DEST="${DEST_BASE}/CoaExporter"
|
|
|
|
if [[ ! -d "${SRC}" ]]; then
|
|
echo "ERROR: Source addon folder not found at: ${SRC}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Installing CoaExporter from: ${SRC}"
|
|
echo "Target AddOns directory: ${DEST_BASE}"
|
|
|
|
mkdir -p "${DEST_BASE}"
|
|
|
|
if command -v rsync >/dev/null 2>&1; then
|
|
echo "Using rsync to copy files..."
|
|
rsync -a --delete "${SRC}/" "${DEST}/"
|
|
else
|
|
echo "rsync not found; using cp -a"
|
|
mkdir -p "${DEST}"
|
|
# Copy contents of SRC into DEST, preserving attributes
|
|
cp -a "${SRC}/." "${DEST}/"
|
|
fi
|
|
|
|
echo "Done. Addon installed to: ${DEST}"
|
|
echo "If needed, enable it on the character select screen and type /reload in-game."
|