Skip to content

Releases

OpenBA v1.0.4

Choose a tag to compare

@github-actions github-actions released this 22 Nov 19:04
6e6587d

Major Changes:

  1. Custom maps: a new game can start on a map made in a map editor (ext.custom_maps, #319).
  2. Upgrade Roads drag tool (ext.road_upgrade, #296); request a trader at a trading post (ext.trader_request, #297).
  3. Item limits on pits, pastures and gatherers (ext.item_limits, #311).
  4. Work circles of every building of a kind with Shift+click (ext.radius_all, #301); Traffic view filters (ext.map_overlays, #302).
  5. Map edge fade, and the wide zoom reaches the map's rim without cut-off ground (ext.map_edge_fade, ext.better_camera, #320, #321).
  6. Better water on river bends and lake rims (ext.better_water, #298, #308); wider thin rivers, off by default (ext.river_channel, #299).
  7. Experimental tab: smoother motion at high game speed (ext.render_pipe_replay, #312, #317), terrain drawn last (ext.terrain_late, #304).
  8. New release notice on the main menu (ext.update_check, #337); the save list opens sooner (ext.quick_screens, #336).
  9. Mods: a renamed .pkm still loads (ext.renamed_mods, #323); a mod's road types keep their own textures (#340).
  10. Faster simulation: the flat job search is always on (#324), cuts to pathfinding, citizen scans, the draw sort and the allocator (#305, #307, #325, #335).
  11. The autosave repeats at its interval, and four more differences from the original game corrected; a seed's map changes where its rivers join (#315).
  12. Retail bugs fixed as fix.* rows: priority after a load, hills in reflections, edge scroll without focus, fixed sim order (off by default) (#295, #320, #327, #339).

Extensions:

  1. Upgrade Roads tool in the roads menu: drag a rectangle and its dirt roads are rebuilt as stone (ext.road_upgrade).
  2. Request a trader: a trading post's Orders tab can ask for one trader, for the next visit or every visit; a requested trader's goods cost double (ext.trader_request).
  3. Wider thin rivers: on a new map, a river thinner than two tiles gets a channel that wide instead of a staircase of single tiles; off by default (ext.river_channel).
  4. Map data views: the Traffic view can show only walks to work or only walks back home, to spot long commutes. Saves made with this version's map data views do not load in v1.0.3 (ext.map_overlays).
  5. Work circles of a kind: Shift+click (long press on a touch screen) a building with a work circle to show the circle of every building of its kind, also while placing a new one; again to hide them (ext.radius_all).
  6. Terrain drawn last (Experimental tab): the ground is drawn after the buildings, trees and people, so the graphics card skips the ground they hide; the picture is unchanged (ext.terrain_late).
  7. Smoother motion at high game speed: while a long simulation step runs, the render thread shows the town again at a later blend instead of holding one picture. "Smooth fast speed" on the Experimental tab, off by default; needs Render thread (ext.render_pipe_replay).
  8. Map edge fade: the edge of the land fades into black instead of ending in a cut. "Map edge fade" on the Enhanced tab, on by default (ext.map_edge_fade).
  9. Custom maps: a new game can start on a map file (.bmap) made in a map editor; its ground, water paths, resources and town start replace the generated ones, picked with a Load custom map row in New Game (ext.custom_maps).
  10. Load renamed mods: a mod whose .pkm file was renamed gets its new content, by the content list its package holds (its files that replace the game's own already applied), and the log notes a mod that has no content list of its own; off by default, from the next start (ext.renamed_mods).
  11. Item limits on more buildings (ext.item_limits): a workshop without a product choice (a clay or sand pit, a mod's butcher) gets a limit row for each item it makes; a pasture gets one for each item its animals give, and a slaughter yields only the items still under their limits; a gatherer gets one for each item its plants give (a mod's gatherer with many items gets an item picker) and passes by the plants of an item at its limit.
  12. Quick loading screens: the list of saves in the Load and Save windows appears sooner; it no longer takes three frames per save (40 saves: about 2.2 s down to 0.55 s) (ext.quick_screens).
  13. New release notice: once a day at most, the game asks the releases page for the newest version, and the main menu's version line says so when it is newer than yours. It is the only connection the game opens; on by default, off in Extensions (ext.update_check).
    Fixes:
  14. Map data views: no crash when "Show overlay on terrain" shows the Land view in a second game of one session (ext.map_overlays).
  15. No red cell left where stone, iron or a tree was cleared with the Remove Resources tool on uneven ground (fix.terrain_resort).
  16. Map data views: the terrain overlay no longer floats off near hillsides and ridges when the view reaches far (ext.map_overlays).
  17. After loading a save, the Increase Priority tool ranks ahead of work prioritized before the save (retail bug, fix.priority_after_load).
  18. Better water: no wedge of squeezed ripples on the inside of a sharp river bend, and no band across the channel where a river runs through a lake (ext.better_water).
  19. A tree that dies in view falls once instead of flickering between upright and fallen: the off-screen animation skip tested against the shadow or reflection camera instead of the view (ext.render_culling).
  20. Wider zoom: the camera reaches the map's rim when zoomed out past the original game's limit, instead of being held to the middle of the map (ext.better_camera).
  21. Fog distance at 100: cloud shadows, ambient occlusion and the terrain shading no longer fade out in the distance where the fog used to be (ext.no_fog).
  22. A tall hill across a lake or river no longer disappears from the water's reflection when the camera is close to the ground (retail bug, fix.reflection_hills).
  23. Wider zoom: fully zoomed out at a flat camera angle, distant ground is no longer cut off behind nearer mountains, in the view and in the water's reflection (ext.better_camera).
  24. Citizens, animals and buildings act in a fixed order instead of one set by memory layout, and the sounds no longer draw from the town's random numbers, so the same start or save plays out the same way every time (retail bug, fix.stable_order). Off by default: the town only repeats fully once pathfinding results are timed the same way too.
  25. Storage tab in the Town Hall: the space column is headed "Used / Capacity Weight", since its figures are weights (an item's count times its weight), not item counts (ext.storage_metrics).
  26. The camera no longer slides up and to the left while another window has the focus, or for a moment when switching away from the game and back, with Edge Scroll on (retail bug, fix.edge_scroll_focus).
  27. A mod with many road types (MegaMod) draws each road with its own texture again: every road type had come out as type 1 and shared one texture, so placing one road repainted all the others. A road's type byte is read whole instead of as a yes/no.
  28. The autosave runs at every interval again; it had run once per opened dialog. A dialog's timers repeat as in the original game.
  29. Map generation joins separate groups of river points as the original game does. A map made from a seed differs from v1.0.3's wherever its rivers formed more than one group.
  30. A tombstone whose countdown has run out is removed instead of getting a new lifetime; the citizen panel updates once a frame; the tutorial's goal button keeps only a real button.
  31. Render thread: Windows no longer swaps the game's window for a "Not Responding" ghost a few seconds into a long wait (ext.render_pipe).
  32. Render thread: no stale building outline read while the next frame is drawn (ext.render_pipe).

Changes:

  1. Faster job search is no longer an extension: it is always on, in every profile. Its row "Faster job search" (ext.work_cand) leaves the Extensions dialog; saves made with it load as before, with no notice, and an old ext.work_cand line in settings.cfg is ignored.
  2. Faster simulation and drawing with the same results: a radix draw sort, a parallel render-thread snapshot copy, cached type ids, and exact cuts to the nearest-character query, the region path search, the home and attendance scans and the memory allocator.
  3. Storage tab in the Town Hall: the list sits in the framed box and the tab strip fits the page frame; the map's view buttons are centred on the map (ext.storage_metrics, ext.map_overlays).
  4. The Windows and Android profile sets are retrained for this version.

Thanks:
Thanks to kralyerg (#308, #319, #323, #334, #340) and myungjoo (#311) for their pull requests,
Karl 19825 for the overlay crash report and priority tool reports,
and to RinHayashi for bug testing.

OpenBA v1.0.3

Choose a tag to compare

@github-actions github-actions released this 11 Nov 04:56
2cd0533

Major Changes:

  1. Vulkan by default on Windows: one exe carries DirectX 11 and Vulkan, switched in Options > Video, DirectX 11 fallback (ext.render_backend, #279, #281).
  2. Winter ice: lakes and rivers freeze in cold winters (ext.winter_ice, #266, #268); citizens cross frozen lakes (ext.walk_on_ice, off by default, #273).
  3. Better clouds: drifting clouds with ground shadows (ext.better_clouds, #269).
  4. Fancy terrain: horizon-map terrain light (ext.fancy_terrain, #285).
  5. Depth blur: half-resolution depth of field (ext.depth_of_field, #286).
  6. Lighter far trees: fewer, larger leaf cards when zoomed out (ext.leaf_lod, #288); spring blossom and catkins (ext.better_trees).
  7. Better water: shore edge on Vulkan and Android, lakes fade into rivers, smooth river bends (ext.better_water, #283, #284).
  8. Steady shadows: no flicker while zooming (fix.shadow_zoom_pulse), adaptive shadow map (ext.max_shadow_res, #278), no dark wedge at a flat camera angle (#283).
  9. Camera: fog distance and camera angle sliders, wider zoom; an Experimental tab in the Extensions dialog (#282).
  10. Map data views: made, used, stock, services, traffic, homes, nature and land, with a terrain overlay (ext.map_overlays, #263, #292).
  11. Storage tab in the Town Hall: used / total space per storage kind (ext.storage_metrics, #293).
  12. Item limits: a town-wide limit per item, set from the workshop panel (ext.item_limits, #277).
  13. Building finder with favourites (ext.building_finder, #158); Professions window lists only usable professions (ext.dynamic_professions, #270); workshops skip a recipe at its limit (ext.recipe_skip, #271).
  14. Sharp UI: crisp menu sprites at 2x / 4x, readable text at low render scale (ext.sharp_ui, #155, #260).
  15. Fullscreen Off / Exclusive / Borderless (ext.fullscreen_mode, #261); FPS tab (ext.fps_counter, #157); tile grid (ext.show_grid, #90).
  16. Faster: job search (ext.work_cand, #289), exact grid pathfinding (#257), Android render passes (#256).
  17. Android tablets (issue #96): touch size settings, corner camera buttons, Shift toggle, game-files installer, save export / import (#98); screen keyboard types into text boxes (#116).
  18. 12 community-reported retail bugs fixed as fix.* rows: stranded citizens, stuck crop fields, nomads, auto-trade, foundation piles and more (#97).
  19. Mods button usable in a game, behind a warning, change kept (fix.mods_persist, #156).
  20. Code review hardening: crashes and hangs on malformed saves, mods and packages, thread races, Vulkan / Metal device-loss recovery.

Plus 175 misc bugs fixed.

Thanks to kralyerg (#83, #84, #90, #158, #255, #270, #271, #272) and myungjoo (#92, #93, #94, #95, #102, #277) for their pull requests,
Karl 19825 for his placement bug reports and suggestions,
and to sintaxcz for the Android tablet reports, the gesture-lock idea (PR #91) and the testing of every build along the way (issue #96).

OpenBA v1.0.2

Choose a tag to compare

@github-actions github-actions released this 31 Oct 04:12
41d601a

Major Changes:

  1. First Android build (a signed apk)
  2. Vulkan renderer that replaces dxvk-native on Linux
  3. Profile-guided Windows exe
  4. Faster loading again, and a round of fixes checked against retail, several of them contributed.

Platforms and packages

  • Android arm64 (OpenBA-v1.0.2-android-arm64.apk, signed; Vulkan 1.1 or later; the game data comes from
    the player's own install, docs/android/README.md). Its version follows the game's. Details below.

    Installing on Android: install the apk and start it once (it creates its data folder). Connect the
    phone to a PC by USB (file transfer), open Internal storage/Android/data/org.openba.game/files/WinData/,
    copy the top-level *.pkg files from your Banished install's WinData folder (no mod subfolders), then
    start the app again. An on-screen message for missing game data is tracked in #72.

  • A Vulkan renderer (src/render/vulkan/): the default on Linux and the renderer on Android. The Linux
    package no longer carries dxvk-native (OpenBA-v1.0.2-linux-x64.tar.gz: the exe, libSDL3, OpenBA.sh).
    Windows stays on DirectX 11; macOS on Metal.

  • The release assets carry no .sha256 files any more: GitHub shows each asset's SHA-256 on the release page.

Build

  • Windows is built with GCC 16.2 (the pinned WinLibs build, tools/toolchain/install_winlibs.sh) instead of MSYS2
    GCC 13.1, and the release exe is profile-guided and link-time optimised (perf/pgo/): on the stress town the
    sim runs about 20% faster at 50x, drawing about 10% faster, in a 14% smaller exe. World generation's powf now uses the ported MSVC CRT body
    everywhere (MsvcLibm::Powf), so a generated world no longer depends on which C runtime the exe was built with.

Loading (caching round 2)

  • ext.menu_entry (on): returning to the main menu, or reaching it at boot, no longer rescans every mod
    file and remounts every package when nothing changed (MegaMod: return to the menu 2.2 s down to 0.8 s).
  • ext.visit_replay (on): the loader's later passes reach the resources they marked before from a record
    instead of walking every link again (MegaMod: 0.6 s off the post-load passes, 0.4 s off a new game).
  • ext.find_fastpath (on): resource lookups a load already answered are answered from a table (save load
    entity stage 229 ms down to 129 ms).
  • ext.texture_quality (off): a Texture quality choice on the Enhanced tab, Full or Half; Half makes
    large world textures without their top mip level (MegaMod: 3 GB never decoded, 10.1 GB down to 7.1 GB
    of deferred texture data). Sprite sheets, fonts and cursors are never affected.
  • ext.stream_cache: a cache hit no longer reads anything from the package file (each record carries its
    resource's block directory; a package is identified by its size, date, header crc and file table, checked once
    at mount). On slow storage this matters: a cold MegaMod boot from a USB flash drive 126 s down to 58 s; on an
    SSD 0.2 s. The cache is rebuilt once (format 3).
  • ext.heap_slack (on): the engine allocator keeps a little freed heap committed instead of returning it to
    the OS and taking it back a moment later, zeroing exactly the pages retail would have received fresh, so every
    byte any allocation sees is unchanged (MegaMod first start with an empty cache folder 15.8 s down to 14.4 s).
  • With the four rows on, a MegaMod boot to the menu is 12.9 s down to 11.5 s on the reference machine.

Fixes

  • The derived cache is rebuilt once after this update (its file format changed). A second running copy of
    the game now reads the cache instead of running without it; a fresh profile whose Documents folder did
    not exist yet now gets a cache on its first run; over the size cap the least recently used entries are
    evicted instead of everything the previous session did not touch; the cache rewrite runs after loading on
    its writer thread and survives a crash between its two file replaces; a lost update of the usage stamps.
  • A boot crash on a first-run window size with the texture quality at Half: the menu scene load now waits
    for a pending device reset (the standalone loads that scene on the main thread, retail inside the loader).
  • The borderless window no longer keeps a hidden caption frame, so a boot whose device reset is refused
    (another window holding the foreground) does not shrink the window and retry every frame.
  • fix.boot_device_lost (on): a device removed by a GPU reset during boot is recovered from the reset path, not
    only from Present, and the main loop no longer walks a SaveLoad that does not exist yet during a device loss
    before the menu (a retail bug, docs/retail_bugs.md section 10). Off under /profile:faithful.
  • Remove Roads works again: finished road tiles are marked and a laborer removes them, as in retail. The
    removal marker used to finish the moment it was placed, because nothing stands on a road cell. Thanks
    to Karl for the report.
  • Drawn roads show their queued, see-through version at once, as in retail, instead of staying invisible
    until a builder finished the first cell (kralyerg, PR #41).
  • Crop fields are replanted after their first harvest. A field planted once and then stayed idle for good,
    because the field's re-clear state (ClearArea state 0x15) was registered with null handlers. A save with
    fields stuck that way recovers on load (myungjoo, PR #33).
  • A building marked for demolition shows its demolition status icon again (kralyerg, PR #65), and the
    citizen panel's status line shows the citizen's name again (kralyerg, PR #66).
  • The terrain height and normal under a point use retail's terrain ray cast (two triangles per cell)
    instead of a smooth approximation. On the same seed a generated map's buildable ground and the start
    town can differ slightly from v1.0.1's.
  • Simulation sorts, sinf / cosf and the needs queue now order and round exactly as retail does, on every
    platform (they used the host C library before). Marriage respects retail's age window (any younger single
    citizen used to qualify). Guards retail lacks were removed from trade, immigration, nomads, disease,
    quarries and several info panels; the Save / Load list rounds its slot count as retail.
  • Returning to the main menu from a heavily modded save no longer crashes on the second mod remount.
  • fix.alloc_tiebreak (on): when several citizens or houses are equally good for a job or a move, the job
    and housing allocators pick by entity id and profession order instead of by memory address, so a save plays
    out the same way each time it is loaded (a retail bug, docs/retail_bugs.md section 14). Off under
    /profile:faithful.

Extensions and interface

  • ext.item_priority (class C, kralyerg, PRs #29, #64): rank the tools, fuel, clothing and health items
    citizens fetch from storage, and set an item to Never so citizens never take it.
  • ext.terrain_edit (class B, off by default, kralyerg, PRs #37, #43, #44, #52): a brush that reshapes the
    ground, a resource tool that plants trees, plants, rocks and ore, with Undo and Redo.
  • ext.town_screenshot (kralyerg, PR #54): one picture of the whole town from an isometric view.
  • ext.tool_names (class C, off by default, kralyerg, PR #67): the citizen panel names the tool the citizen carries.
  • The Extensions dialog has Optional and Default tabs; the in-game extension window's pages fill the list;
    eleven rows gained icons; the list keeps its size when a mod resizes the Mods window (kralyerg, PR #28).
  • fix.slider_drag_clamp (on): a dragged slider keeps following the pointer and clamps at its ends.
  • The Enhanced options tab fits the retail tab width.

Android

  • Touch controls: ext.touch_mode (an on-screen D-pad, rotate and zoom cluster, the toolbar as one scaled
    bar, pinch zoom), ext.touch_pointer, finger-sized dialogs and lists, ext.phone_menu (a main menu laid
    out for a phone), safe-area insets, a half-resolution render scale and an fps cap.
  • Older and mid-range phones (tested on a Galaxy S10 and S25): a Vulkan 1.1 path, BC textures transcoded to
    ETC2 on a GPU without BC, Half texture quality by default below 6.5 GiB of RAM, the frame's two threads
    pinned to the fastest cores, two frames in flight, ADPF hint sessions.
  • Shadows can be switched off on a weak device with the game's own Options > Video > Shadow Quality = None:
    no shadow map is drawn at all.
  • The release apk is built like the desktop packages (P12): the release flavour (-O3), ThinLTO, and a
    clang profile when one is committed (perf/pgo/android/README.md); libmain.so exports main alone.
  • The frame rate cap is told to the display (ANativeWindow_setFrameRate, Android 11 and later): a
    120 Hz panel runs at 60 under the default cap instead of the game sleeping between every other vsync.
  • The audio stream no longer asks for low-latency mode; the thread roster counts a heterogeneous SoC's
    big cores only; the fast frustum cull has a NEON body on arm64 (it ran the scalar reference before).

Thanks to kralyerg and myungjoo for their pull requests, and to Karl for reporting the road removal bug.

OpenBA v1.0.1

Choose a tag to compare

@github-actions github-actions released this 23 Oct 23:36
62384a4

Second release of OpenBA.
Linux and macOS packages for the first time, mod loading is now a order of magnitude faster.

Platforms and packages

  • Linux x86-64 package (OpenBA-v1.0.1-linux-x64.tar.gz): the exe with SDL3 and dxvk-native 3.1.1
    beside it, a launcher script and a README. Unpack next to the game's WinData folder and run OpenBA.sh.
  • macOS Apple-silicon package (OpenBA-v1.0.1-mac-arm64.zip): an app bundle with a Metal renderer and a
    DirectX-to-Metal shader converter, Retina-aware UI (LucaSammartino, PRs #5, #6, #7).
  • Windows x64 zip unchanged in layout (OpenBA-v1.0.1.zip: OpenBA.exe, the FrancophilSans files, README, licences).
  • Every package is built by the Release workflow from the tag; CI builds and runs the unit tests on
    Windows, Linux and macOS and the no-doors acceptance check on every pull request. main is PR-only.

Loading and memory (issue #13, MegaMod)

  • Main menu with the MegaMod loaded: about 60 s down to 14 s; memory 13.5 GB down to 2.5 GB.
  • Exact, faster package reading: bulk array reads and memcpy LZ decode, packed reads served from a
    read-only mapping of the package, a hash index beside the resource tree and the package directory,
    package remount and mod sort done once and reused.
  • The loading screen shows during the boot's loader frames and names the mod being loaded
    (ext.load_progress); the loader loops return at once and draw while the loader works.
  • New class A extensions, on by default unless noted: ext.decode_ahead (next compressed blocks decode
    on worker threads), ext.async_gpu_create (GPU buffers and textures created on worker threads),
    ext.create_on_demand (GPU objects created at first use, their bytes skipped at load),
    ext.share_gpu_data (equal immutable buffers and textures share one GPU object), ext.compress_ao
    (baked AO maps as BC4), ext.package_cache and ext.stream_cache (the merged package directory and
    the consumed part of each resource stream kept in an on-disk derived cache for the next start).
  • An on-disk derived-data cache of load-time transforms of the user's own data (never shipped), with
    its size and a Clear cache button on the Enhanced tab.
  • fix.large_packages: mod packages larger than 2 GiB load (64-bit offsets).
  • Present runs outside the device lock, under a backend Present mutex.

Fixes

  • fix.terrain_resort: the red squares. Flat ground no longer stays marked too steep after flattening,
    and a cleared tree, ore or goods pile leaves steep ground buildable. Reproduced from the saves Karl sent in;
    thanks to him for the report.
  • Garbled screen after minimize / restore or a fullscreen toggle (kralyerg, PR #17).
  • The Town Hall Inventory tab counted every building as a home (kralyerg, PR #15).
  • fix.rock_seat: rocks and iron ore are drawn seated on the slope instead of floating (render only).
  • Decals over a rebuilt terrain chunk are re-meshed with it (retail RebuildDirtyChunks).
  • The resource-limit UI accepts any ledger index a row's config names, not only 0..10 (#10).

Extensions

  • ext.restricted_foods (class C, kralyerg, PR #11): choose which foods citizens eat. The first class C
    extension; it brings the shared extension toolbar window, a save-state codec, and host records in the
    save tail so a B / C extension's window and state survive a reload.
  • ext.high_limits (kralyerg, PR #9): limit boxes take up to 999,999,999.
  • ext.no_fog (kralyerg, PR #14): remove the fog from the picture (off by default).
  • ext.better_camera: zoom range 1..200 and a steady tilt (class B, off by default).
  • ext.draw_batch and ext.terrain_batch (class A, on): merged decal, road, smoke and terrain draw runs,
    a CPU saver for weak CPUs; the render-pipe fence is released before Present.
  • Exact performance work with no behaviour change: start-town scatter Perlin precomputed in parallel
    rows, sound-effect buffers decoded in parallel at load, an ambient-environment scan memo.

Project

  • The extension standard (docs/extensions/DESIGN.md §3): ids, directories, Ext::<Id> namespaces,
    hosts, codec, seams, hand-ins and tests on one form; every extension moved onto it.
  • Platform and renderer seams: Platform:: hooks, BANISHED_RENDER_BACKEND with a backend.cmake per
    renderer, backend-neutral code in src/render/common/.
  • The main menu's build line shows the git commit and build date beside the version (README "Versioning").
  • AGENTS.md (the contributor rule sheet), CONTRIBUTING.md, THIRD_PARTY_NOTICES.md, .clang-format.
  • The FrancophilSans typeface files are kept unchanged in tools/release/fonts/ with their notice, so a
    release is built from the repository alone.
  • -ffp-contract=off everywhere, for identical float results across compilers and ARM.

Thanks to kralyerg and LucaSammartino for their pull requests.

OpenBA v1.0.0

Choose a tag to compare

@fran-cap fran-cap released this 18 Oct 22:13

First release of OpenBA.
This release is the work of the previous 8 months of development from Feb 26->Oct 26.
Current project status has matching functionality to retail while implementing more performant and extendable code.
Main exe, runtime, and dx11 video are all ported and contained within the src folders.
Extensions have been added to add features like AO, foliage shadowing, and performance tweaks.
The linux build is still in its foundational stages but will be shipped in an upcoming release as well.
Please let the development team know if any issues you see and submit any bugs to the Issues/PR tabs.