Skip to content

Locked apparel save/load warning #3

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

Open
ANRimworld opened this issue Jul 1, 2022 · 0 comments
Open

Locked apparel save/load warning #3

ANRimworld opened this issue Jul 1, 2022 · 0 comments

Comments

@ANRimworld
Copy link

Hi, came across this while testing a ritual Im working on.

Could not resolve reference to object with loadID Thing_VFEP_Warcasket_Warcasket41798 of type RimWorld.Apparel. Was it compressed away, destroyed, had no ID number, or not saved/loaded right? curParent=RimWorld.Pawn_ApparelTracker curPathRelToParent=/lockedApparel

How to recreate: Have a pawn entomb, change anything in the UI casket type or colour. Then cancel or accept. Save, then load that save warnings will pop up.

I don't think it really hurts anything besides just those warnings. But it can be fixed if you want by adding the below to JobDriver_EntombIn onAccept and onCancel delegates.
foreach (var apparel in corpse.apparel.LockedApparel.ToList()) apparel.Destroy();

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

No branches or pull requests

1 participant