KongMD-Steam / QuestionableEthicsEnhanced

The source code of the Questionable Ethics Enhanced mod for RimWorld.
MIT License
12 stars 7 forks source link

Cloning process sometimes starts without genome, causing exceptions #55

Closed KongMD-Steam closed 4 years ago

KongMD-Steam commented 5 years ago

Describe the bug From Ratatoskr[^9] in the Steam Workshop mod forums:

it seems that sometimes for some reason a colonist will put the nutrient and the protein in a cloning vat but forget the genome. The sprite of the cloning vat will not show a growing clone and extracting the clone will just clear the "growing" status but not create anything. The genome assigned to the vat will remain in storage after the cloning process begins, confirming that it has indeed been omitted.

This results in the game no longer considering cloning vats to be cloning vats and they suddenly all become useless, the "grow clone" option becomes "grow organ" but doesn't work at all. It appears to corrupt clone vats functionality for the entire save from that point on.

No clue how to reproduce the pawns not putting the genome in the vat but testing on a different save did show that the cloning works as long as this doesn't happen.

Expected behavior The clone growing process should not start without a valid genome template.

To Reproduce Unknown.

Additional context Thanks to Ratatoskr[^9] on the Steam Workshop forums for reporting this bug!

KongMD-Steam commented 4 years ago

bc3513a61f8d8917e695749ae55ca3f1803c5179 and f56435932c8e5f16bc2ac735d9acb068c9688d9d should fix this issue.