Asterobot keeps nothing next to the program itself. It stores everything in standard folders of your user profile: one for its settings, one for its data and one for its cache. Knowing which is which tells you what to copy when you back up your Asterobot or move it to another computer.
Where the folders are
| Folder | Windows | macOS | Linux |
|---|---|---|---|
| Settings | %LocalAppData%\asterobot\config |
~/Library/Application Support/asterobot/config |
~/.config/asterobot |
| Data | %LocalAppData%\asterobot\appdata |
~/Library/Application Support/asterobot/appdata |
~/.local/share/asterobot |
| Cache | %LocalAppData%\asterobot\cache |
~/Library/Caches/asterobot |
~/.cache/asterobot |
Asterobot creates them the first time it starts. They're always three separate folders: Asterobot refuses to start with one of them inside another.
- On Windows,
%LocalAppData%usually stands forC:\Users\<your name>\AppData\Local. Typing the path,%signs included, in File Explorer's address bar opens the folder. - On macOS and Linux,
~is your home folder. - On Linux, the variables
XDG_CONFIG_HOME,XDG_DATA_HOMEandXDG_CACHE_HOMEreplace~/.config,~/.local/shareand~/.cachewhen they hold an absolute path. - On every system, the options
--config-dir,--appdata-dirand--cache-dir, or their environment variables, choose other folders. Command line explains them.
The settings folder
It holds a single file, config.toml, with the settings you changed on Server > Config. Settings still at their default aren't written in it, which is why the file is empty after a first launch. The Config page explains how Asterobot reads and writes it, including when you edit it by hand.
config.toml contains two secrets once they're set: website.token, Asterobot's sign-in on asterobot.net, and the logins and passwords of server.basicAuth, in plain text.
The data folder
| Inside | What it holds | More |
|---|---|---|
bots.toml |
Every bot, with everything you set for it. | What is a bot |
accounts.toml |
Your Ankama accounts: Login IDs, the passwords you stored, in plain text, and the tokens Ankama gave Asterobot. | Add an account |
library/packages/ |
Your packages, one folder per version, such as library/packages/my-harvester/1.0.0/ or library/packages/@some-author/auto-harvest/1.2.0/. |
Manage your library |
tls/cert.pem and tls/key.pem |
The HTTPS certificate and its private key, created the first time Asterobot starts with server.tls on. |
Settings reference |
zaapmanager/browser-profiles/ |
One sign-in browser profile for each account that signed in automatically. Each holds a live Ankama session. | Automatic sign-in |
This is the folder that makes your Asterobot yours. Losing it means adding your bots, accounts and packages again.
The cache folder
| Inside | What it holds |
|---|---|
game/ |
The files of each game version, one folder per version, such as game/dofus/dofus3/windows/3.6.11.13/. |
game_extracted/ |
The game data extracted from each version. |
zaapmanager/ |
The screenshot of the last failed automatic sign-in of each account. |
The last folder holds the chunks game versions are rebuilt from, in its chunk subfolder (How chunks are stored), and the lists of versions and files Ankama's download servers publish, with a few other files they provide.
Everything in the cache can be downloaded or rebuilt again. Losing it costs time, not settings: you download and extract your game versions again. It's also by far the largest folder, since it holds the game versions (Why Asterobot downloads Dofus).
No log files
Asterobot doesn't write any log file. Its log goes to the terminal it runs in, and to Server > Console while an Asteroboard is open. Once the terminal window is closed, its lines are gone, so copy what you need first. Status and console covers both places.
Permissions
On Linux and macOS, Asterobot restricts the files that hold secrets to your own user account:
| File or folder | Who can read it |
|---|---|
config.toml |
Only your user. If other users can read it, Asterobot restricts it when it reads the file, and the terminal shows Restricted the configuration file to its owner. |
accounts.toml |
Only your user. Asterobot applies it again every time it starts and every time it saves the file. |
zaapmanager/browser-profiles/ |
Only your user. |
tls/key.pem |
Only your user. |
| Everything else | Created readable by the other users of the computer. |
On Windows, these restrictions have no effect. In every case, anyone who can open files as your user, or who gets a copy of these files, can read the passwords and use the tokens in them. Getting help lists what must never be shared.
Editing the files by hand
config.toml: Asterobot watches it and applies your changes as soon as you save. See The Config page.bots.tomlandaccounts.toml: Asterobot reads them only when it starts, and writes them again each time something changes. A change you make while it runs is overwritten. Stop Asterobot before you edit them, and keep a copy of the original.- Game version folders: after adding or removing one by hand, click Rescan in Game Manager (Manage game versions).
- Package folders: don't change the files of a package installed from the marketplace. Asterobot checks them each time the package loads and refuses them if they changed (Trusting a package).
Back up your Asterobot
- Stop Asterobot, so it isn't writing any file while you copy (First launch).
- Copy the settings folder and the data folder somewhere safe. The cache folder is optional: everything in it can be downloaded again, but that takes time.
- Start Asterobot again.
To restore a backup, stop Asterobot, put the folders back in place, then start it.
Caution
A backup contains your Ankama passwords, your tokens and your asterobot.net sign-in. Keep it somewhere only you can reach.
Move to another computer
- Download and unpack Asterobot on the new computer (Download Asterobot).
- Stop Asterobot on the old computer.
- Copy the settings folder and the data folder to the places listed at the top of this page for the new computer's system. Copy the cache folder too if you don't want to download your game versions again.
- Start Asterobot on the new computer.
The files and folders inside keep the same names on every system, only their locations change.
Then check a few things:
- Asterobot is still signed in to asterobot.net, since the sign-in travels in
config.toml. - Your bots come back disconnected, as after any restart. A bot whose game version isn't in the cache is skipped until you download and extract that version (Disconnect, delete and restart).
- Settings that name a folder of the old computer still point there if you had changed them:
botmanager.mitmGamePathandzaapmanager.browserPath. Settings you never changed take the new computer's defaults. - Asteroboard remembers its Server URL per browser. On a new computer or browser, open the new Asterobot's address once to connect (Preferences).
What each reset deletes
| Reset | Where | What it deletes | What it keeps |
|---|---|---|---|
| Reset to default, a group's reset, Reset all | Server > Config | The values you set, from config.toml. The asterobot.net sign-in goes too when website.token is included. |
The data and cache folders |
config reset |
Command line | Everything in config.toml, the sign-in included |
The data and cache folders |
cache reset |
Command line | The whole cache folder | The settings and data folders |
| Uninstall, Delete, Remove all chunks | Game Manager | Parts of the cache folder (Manage game versions) | Everything else |
| Remove | Library Manager | One package version's folder | Everything else |
| Reset offline data, Reset preferences | Preferences | Only what Asteroboard stores in your browser (Preferences) | All of Asterobot's folders |
Reset and start over helps you pick the right one when something is broken.