Skip to content

Local client data

HafenGo stores working data in bin/HafenGo-data/ when run directly and in game/HafenGo-data/ when started through the launcher. Two files handle these records:

  • hafengo-data.zip holds the data. The .dat names in the tables below are entries inside the ZIP.
  • hafengo-data.zip.lock lets multiple client windows safely use the same archive.

What scripts save

Script ZIP entry or separate file Contents
Crop fields script-area-v1-wheat-fields-<profile>.dat Field boundaries, planting and harvest progress, queue and pause state
Milking and shearing script-area-v1-milk-pens-<profile>.dat Saved pen names and boundaries. The client reads script-area-v1-milk-<profile>.dat when importing a single pen from the old format
Land, ocean and shallows scouts scout-map-marks-v1.dat Active scout routes, sample markers and counts, and the best sample quality. Records are grouped by server and world. The regular walking trail lasts for the current session
Land scout and game message handler world-edge-v1<suffix>.dat Discovered sections of the world boundary for navigation
Water, clay, sand and soil samples scout-map-marks-v1.dat Sample location and quality
Scout diagnostics logs/land-scout.log, logs/ocean-scout.log, logs/shallows-scout.log Scout activity when debug logging is enabled

The field and pen <profile> key is derived from the account, world and character. Scout settings, crop quality confirmation and learned hand-slot counts are stored in ~/.haven/HafenGo-prefs.xml.

What other features save

Feature ZIP entry Contents
Cupboards cupboard-contents-by-world<suffix>.dat, cupboard-icons-by-world<suffix>.dat, cupboard-icon-images.dat Known cupboard contents, manually assigned icons and cached item pictures
Stockpiles stone-pile-colors-v2-by-world<suffix>.dat, cupboard-icon-images.dat Stockpile material and color. Stockpiles and cupboards share the cached item pictures
Cheese cheese-locations-by-world<suffix>.dat, cheese-racks<suffix>.dat Aging locations and conditions, saved cheese-rack state
Timers timers-v2<suffix>.dat Entries in the timer list. Deadlines displayed over production objects, including kilns, are stored in HafenGo-prefs.xml
Quality Roster quality-roster-by-world<suffix>.dat Saved quality records
Natural resources natural-resource-numbers-v2<suffix>.dat Natural resource numbering. Marker quality notes are stored in HafenGo-prefs.xml
Object names and radar object-names.dat, radar-learned.dat Object names and numbering, learned radar icons
Cave levels cave-levels-by-world<suffix>.dat Saved cave level information
Claims and plans claim-survey-owned-v3-<profile>.dat, claim-survey-owned-v3-<profile>-plans.dat Claim surveys and saved plans by account, world and character. Older v2 entries are used during migration
Starfalls and triangulation star-fall-v2.dat, meteor-triangulation-v2.dat Starfall observations and saved triangulation data
Action Search and Game Journal action-search.dat, game-journal-favorites.dat Action Search data and Game Journal favorites

The <suffix> identifies the world. The original World 16 entries may have an empty suffix.

Migration, maps, exports and logs

On first launch after the rename, the client copies settings from Hearthborn-prefs.xml if HafenGo-prefs.xml does not yet exist. The client rereads the new XML and compares every old setting before removing the old file. If both XML files exist and the new file is missing an old value or has a different value, the client retains the old file and uses the new one. After the old XML is gone, the client removes its lock file if it is empty and available.

On the first data load after updating, the client migrates supported loose .dat files and the former claim-survey-owned.zip and world-data.zip archives. The client compares the bytes before it removes the originals. Existing backup material and conflicting versions are kept under legacy/ inside the ZIP. Empty, unused locks from older formats are removed automatically. The client retries busy or inaccessible locks on the next launch.

The shared map cache, exports and logs are stored separately from the archive. Exporting or sharing plans creates claim-plan-*.html, claim-plan-*.xlsx or claim-plan-*.hbplan files in HafenGo-data/exports/. When run directly, the client stores ordinary logs in bin/logs/ by default.