Skip to content

Feature/campaign save refactor#28

Draft
cerwym wants to merge 20 commits intomasterfrom
feature/campaign-save-refactor
Draft

Feature/campaign save refactor#28
cerwym wants to merge 20 commits intomasterfrom
feature/campaign-save-refactor

Conversation

@cerwym
Copy link
Owner

@cerwym cerwym commented Feb 8, 2026

No description provided.

cerwym and others added 15 commits February 24, 2026 08:30
Zero wasteful fields (conf, navigation_map, log_snapshot, host_checksums)
before save to improve compression ratio (~5.5 MB of reconstructable data).
Compress OLDS chunk with zlib (hdr.ver=1). Legacy uncompressed saves
(hdr.ver=0) are still loaded correctly for backward compatibility.

Applies to both save_game_chunks and save_packet_chunks paths.
Load path handles version-aware skip for incompatible chunks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DiscoverReferencedMenus had no cycle detection, causing infinite
recursion (stack overflow crash) when menus reference each other
via navigate_to (e.g. main_menu <-> achievements).

Also adds: bounds check on menu_list indexing, null parameter
guards in MenuBuilder, and callback resolution logging.
@cerwym cerwym force-pushed the master branch 3 times, most recently from ff1a1ed to c22703b Compare March 4, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant