Robust file monitor for TradeSkillMaster's AppData.lua with compression and single-instance safety.
- 🔍 Dual monitoring (filesystem watcher + polling fallback)
- ⏳ Debounced processing (30s quiet period default)
- 🔐 Single-instance enforcement per config
- 📦 Brotli compression with timestamped outputs
- 💾 State persistence across restarts
- .NET 8.0 Runtime
TSMMonitor.exe "C:\WoW\_retail_\Interface\AddOns\TradeSkillMaster_AppHelper\AppData.lua"| Option | Env Variable | Default | Description |
|---|---|---|---|
| Monitor Path | TSM_MONITOR_PATH | - | Path to AppData.lua |
| Output Directory | TSM_OUTPUT_DIR | ./ | Where to save compressed files |
| Quiet Period | TSM_QUIET_PERIOD | 30 | Seconds to wait after changes (int) |
| Single Instance Mode | TSM_SINGLE_INSTANCE | true | Prevent duplicate monitors (true/false) |
- Classic WoW with custom output:
set TSM_OUTPUT_DIR=D:\tsm_backups
TSMMonitor.exe "C:\WoW\_classic_\Interface\AddOns\TradeSkillMaster_AppHelper\AppData.lua"- Disable single-instance mode:
set TSM_SINGLE_INSTANCE=false
TSMMonitor.exe "C:\Path\To\AppData.lua"-
File Not Found
Verify path matches your WoW version (retail/classic) -
Permission Issues
Run as Administrator if seeing file access errors -
Multiple Instances
Check single-instance mode or reboot to clear mutex locks
Output files will be created in format:
AppData.lua_YYYY_MM_DD_HHmmss.brotli