Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syncing of copy/paste gizmos for Biosculpter/Growth Vat/Mortar, fixes #255 #407

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

SokyranTheDragon
Copy link
Member

This fixes issue of copy/paste gizmos not working properly for:

  • Growth vats (Building_GrowthVat)
  • Biosculpter pods (CompBiosculpterPod)
  • Mortars (CompChangeableProjectile)

The issue happened due to the storages associated to those losing their owner after loading them through ExposeData. The solution was to re-assign their owner in PostLoadInit.

The patch is included in the generic Patches.cs file, as I felt it did not really fit any other existing source file containing patches (potentially could fit into VanillaTweaks.cs).

However, if needed I could create a separate file for them or move them to a different location. I can also split them into separate patches, so a single class doesn't contain 3 postfixes (I've put them all in the same class to have basically-identical patches together).

…ixes rwmt#255

This fixes issue of copy/paste gizmos not working properly for:
- Growth vats (`Building_GrowthVat`)
- Biosculpter pods (`CompBiosculpterPod`)
- Mortars (`CompChangeableProjectile`)

The issue happened due to the storages associated to those losing their owner after loading them through `ExposeData`. The solution was to re-assign their owner in PostLoadInit.

The patch is included in the generic `Patches.cs` file, as I felt it did not really fit any other existing source file containing patches (potentially `VanillaTweaks.cs`).

However, if needed I could create a separate file for them or move them to a different location. I can also split them into separate patches, so a single class doesn't contain 3 postfixes.
@SokyranTheDragon SokyranTheDragon added fix Fixes for a bug or desync. 1.4 Fixes or bugs relating to 1.4 (Not Biotech). labels Dec 3, 2023
@SokyranTheDragon
Copy link
Member Author

I've reported the StorageSettings losing their owners on the official RimWorld Discord, so this may end up getting changed. However, since it does not break anything in the game itself it may not be a priority/is not guaranteed to be changed.

@Zetrith Zetrith merged commit ceb2307 into rwmt:master Dec 27, 2023
1 check passed
SokyranTheDragon added a commit to SokyranTheDragon/Multiplayer that referenced this pull request Apr 29, 2024
Remove the storage parent fix (rwmt#407) for growth vat, as this was fixed by vanilla.
Zetrith pushed a commit that referenced this pull request May 24, 2024
Remove the storage parent fix (#407) for growth vat, as this was fixed by vanilla.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.4 Fixes or bugs relating to 1.4 (Not Biotech). fix Fixes for a bug or desync.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants