Jump to content

Some Crabby Hermit tasks don't save their completion properly


ClumsyPenny
  • Pending

Specific tasks such as giving Pearl a heavy seasonal fish or having her sit on a proper chair lose their completion status when saving and loading back into the game, which means that friendship can be built up by exclusiving doing these tasks while making sure to relog between each repeated task. This also causes a few other issues, namely one I've noticed is that Pearl will never have dialogue about complaining about these same tasks.

For a technical explanation as to why it happens (I stumbled upon the issue while working on a mod):

Spoiler

image.png.4dc3c48bb495e76e3b8fe536c7b19452.png

Tasks are saved in the "friendlevels" component in a table with numbered indexes, but, as shown in the picture below, there's no task 13.

image.png.e27a0ee22ba40bb1e96313e5e4f026e7.png

This is an issue because the OnSave function in the "friendlevels" component iterates through the tasks with ipairs, which will stop iterating when it can't find the next number. So any task after 12 won't have their completion status saved, being the heavy seasonal fish tasks and the chair task.

image.png.f3befe7067977ce46610fea19b4f3ab8.png

 


Steps to Reproduce

Complete a heavy seasonal fish task or chair task, check current friendship level, save and quit, complete it again, check how level increases even though it shouldn't.

  • Like 2



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...