Repository navigation
Getting an Official Game Export
Generated from the thetowersdk repository. Edits made here are overwritten on the next push — change the source file instead.
First tap your Player ID five times in The Tower to create your first export and reveal the export controls. Then open Settings → Toggles → External Tools Export → Manual Export. Enable Auto Export for External Tools to keep the export updated. Import only tool_export.json.
On Android and emulators the export is in Android/data/com.TechTreeGames.TheTower/files/tool_export.json. Copy it to a folder your browser can access, or use adb-bridge to pull the official export.
On a Mac the game writes it to ~/Library/Containers/<id>/Data/Documents/tool_export.json, where <id> is a UUID that differs per install. findToolExport() from @beardedunicorn/thetowersdk/node scans for it, and the MCP save tools use it when no path is given. Set TOWER_TOOL_EXPORT to the file's path to name it outright on any platform.
Private saves such as playerInfo.dat, encrypted containers and legacy binary save files are unsupported. The SDK accepts no decryption keys and provides no decryption service.
Attempting to bypass save-file encryption violates The Tower Terms of Service.
import { decodeSaveFile } from '@beardedunicorn/thetowersdk/save-decoder'
const root = await decodeSaveFile(await exportFile.arrayBuffer())Export files contain personal account data. Tell users plainly if your tool uploads them anywhere.
Generated from TheTowerSDK — do not edit here. Docs and live demos: https://beardedunicorn.github.io/TheTowerSDK/
- Workshop
- Workshop Enhancements
- Labs
- Cards
- Modules
- Module Rarities and Merging
- Module Substats
- Module Upgrade Costs
- Ultimate Weapons
- Ultimate Weapon Plus
- Bots
- Guardian
- Relics
- Themes
- Tiers
- Battle Conditions
- Enemies
- Perks
- Tournaments
- Milestones
- The Vault
- Daily Missions
- Guild
- Currencies
- Reference Tables
- Glossary
- Irreversible Upgrades
- Game Patch Notes
- Game Version History
SDK
- Quick Start
- Entry Points
- How It Fits Together
- Getting an Official Game Export
- Reading a Save
- Reading The Community Wiki
- Game 29.1 Data
- Formulas
- Builders
- Charts
- Effective Paths
- Examples
- Templates
- Building a Bot On This
- Google Sheets
- Desktop and Mobile
- Optional Add-ons
- Using It With An AI Agent
- Using Your Own Artwork
- Names And Acronyms
- Patch Notes
- Accuracy
- Versioning
- Where the Docs Live
- Contributing
- Credits
- License
Guides
Examples
- 01-browse-game-data.ts
- 02-read-a-save-file.ts
- 03-plan-upgrades-from-a-save.ts
- 04-generate-a-chart.ts
- 05-generate-a-cost-table.ts
- 06-read-the-community-wiki.ts
- 07-format-like-the-game.ts
- 08-build-a-calculator.ts
- 09-build-a-bot.ts
- 10-read-a-sheet.ts
- 11-build-a-knowledge-base.ts
- 12-show-module-and-card-art.ts
Templates