Files
client/tests/PROFILES.md
T
2026-10-14 00:10:39 -05:00

43 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Client profiles
Open the client menu with Right Shift. The profile bar above the module panels
shows the active profile and whether changes are saving or saved.
- Pick a profile from the dropdown to load it. Pending changes in the previous
profile are saved before switching.
- **Manage profiles** lets you create a copy of your current setup, rename the
active profile, or delete it with confirmation. Default is protected.
- **Save now** saves immediately. Autosaving is always on: changes save after
roughly 0.75 seconds without edits, or every five seconds during continuous
editing. Unloading saves pending changes before disabling modules.
- The last active profile loads automatically the next time you load the DLL.
Profiles include module enabled states, toggle keys, every configurable setting
(including RGBA colors and individual action keys), and HUD positions. Mode names
are stored so reordering options doesn't change the selected behavior. Buttons,
key-capture state, animations, notification history, trade runs, and countdowns
are not saved. Switching/creating profiles cancels trade activity and releases
injected inputs before applying settings; loading an enabled Macro only arms it.
Files live in **profiles** beside the loaded DLL, with one `.profile` file per
profile and `active.txt` remembering the selection. Names allow 1–48 ASCII letters,
numbers, spaces, underscores, and hyphens; reserved Windows names are rejected.
Each save writes and flushes a temporary file, then replaces the previous file.
A failed write preserves the previous save and shows an error notification.
Damaged or unsupported files are preserved. A damaged startup profile pauses
autosaving until you choose another profile or create a recovery profile. **Save
now** explicitly replaces it with your current settings. Damaged files selected
from the dropdown leave the current setup intact. Unknown modules/settings are
ignored; missing settings use initial defaults and numeric values are clamped to
their permitted ranges.
Existing `villager-trade.ini` or Desktop `papertrade.ini` calibration is used for
the initial setup. Once profiles are active, macro captures and its **save
settings** button save into the active profile.
The integration suite verifies all setting types, keybinds, HUD positions,
defaults, named modes, limits, cancellation, debounce and continuous autosave,
remembered profiles, missing-profile fallback, rename/delete, damaged-file
preservation, failed atomic writes, and unload saving enabled states.