Skip to content

Prefab patching - #52

Merged
jan-bures merged 20 commits into
devfrom
modding/prefab-patching
Sep 2, 2026
Merged

Prefab patching#52
jan-bures merged 20 commits into
devfrom
modding/prefab-patching

Conversation

@jan-bures

Copy link
Copy Markdown
Collaborator

Adds support for declarative prefab patching, enabling mods to modify addressable prefabs using visual authoring, C#, and Lua. It adds new authoring APIs, integrates prefab patch plan resolution into the loading flow, and improves runtime diagnostics and cache handling. The documentation is expanded with a new guide on prefab patching.

@cheese3660 cheese3660 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm noticing a lot of missing documentation and stuff that is a bit unwieldly in general - plus I flagged some duplicate logic

I will likely go over all this in more depth again but this is the surface level stuff I've found

Comment thread Runtime/PrefabPatching/PrefabPatchBuilder.cs
Comment thread Runtime/PrefabPatching/PrefabPatchComposer.cs
Comment thread Runtime/PrefabPatching/PrefabPatchModel.cs
Comment thread Runtime/PrefabPatching/PrefabPatchResolver.cs
Comment thread Runtime/PrefabPatching/PrefabPatchResolver.cs
Comment thread Runtime/PrefabPatching/PrefabPatchRuntime.cs
Comment thread Runtime/PrefabPatching/PrefabPatchRuntime.cs
Comment thread Runtime/PrefabPatching/PrefabPatchRuntime.cs
Comment thread PREFAB_PATCHING.md Outdated
Comment thread README.md
@jan-bures
jan-bures requested a review from cheese3660 September 2, 2026 14:19

@cheese3660 cheese3660 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm approving because it looks fine - however, these comments are the things I'd change

Comment thread README.md

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Alright, nit, but this should just link to modding.ksp2redux.org, the documentation here is out of data

@jan-bures
jan-bures merged commit f7e8dfd into dev Sep 2, 2026
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.

2 participants