Skip to content

Archive Mode - #282

Draft
riperiperi wants to merge 386 commits into
masterfrom
archive
Draft

Archive Mode#282
riperiperi wants to merge 386 commits into
masterfrom
archive

Conversation

@riperiperi

@riperiperi riperiperi commented Aug 30, 2025

Copy link
Copy Markdown
Owner

Large scale changes to the client and server to support running in "archive mode", a mode that uses a local sqlite database cloned from a live server to provide a simple self-hosted exploration experience for users. It's a bit like those videos of abandoned shopping malls, except the houses don't grow vines, fall apart or generate their own copy of the backrooms.

There are a lot of additional changes that improve game performance and fix bugs. Obviously it's still in progress.

Right now this PR doesn't support running with a regular server - it's just here to keep track of diffs vs master. At some point, I would like to make it possible to build the game both in archive mode (with the embedded server) and in its normal form (without the embedded server, so shouldn't bundle with sqlite etc).

Removes some unnecessary allocations and ref passing.
Some of these bugs have been here the whole time...
- Lighting duplicating over lot boundaries for rain/snow
- Rain/snow disappearing below the ground aligned with the camera (when looking down a hill)
Don't run this or it'll instantly crash
This will prevent crashes in case I missed anything (or a packet is lost somehow)
This can use the index instead of exhaustively checking all lots in the table.
Dictionary `.ElementAt` is not fast, just iterate KeyValuePairs
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.

3 participants