Skip to content

gen/shared storage - #526

Open
Skidamek wants to merge 14 commits into
gen/client-generationfrom
gen/shared-storage
Open

gen/shared storage#526
Skidamek wants to merge 14 commits into
gen/client-generationfrom
gen/shared-storage

Conversation

@Skidamek

@Skidamek Skidamek commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

This PR separates shared client data from the active game directory and unifies the transfer paths.

DataRootResolver chooses and pins a shared operating-system data root, with a game-local fallback. ClientStorage keeps the active projection and transaction state with the game while shared objects, generation records, caches, pack connections, and origin trust data use the resolved root. Overlay tombstones and their digest are stored with the client state.

Server generation storage now has explicit records, catalogues, commits, deltas, current state, and compaction. The store can measure and collect unreferenced objects, preserve patch-note history, and repair a missing current projection. Standalone servers use the same storage layout.

ProtocolFrameCodec provides one length and compression codec for blocking and Netty transfers. ProtocolPipeline installs the same Netty handlers for regular and holepunch connections. Downloads validate sizes and hashes, and trust data is keyed by connection origin instead of a raw IP address.

The client, standalone server, and update screens use the new roots and transfer code. Preload acquires selected objects without changing the active projection.

Coverage

The layer adds shared-storage, cache-collection, protocol, trust, standalone-server, and download tests.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73dbc8afac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/src/main/java/pl/skidam/automodpack_core/Constants.java
Comment thread autotester/automodpack_autotester/runner.py
Comment thread src/main/java/pl/skidam/automodpack/modpack/Commands.java
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