Re: Controlling which quest fields are serialized
Posted: Fri Jul 04, 2025 6:59 pm
Hi again,
My apologies, my bad (again). I had copied some code from the asset to write the fields, but the code in question was intended to write the whole object... I adjusted it to filter out the unneeded fields, so it ended up writing:
I hadn't noticed it was effectively obliterating the object (I'm not really used to Lua, but still it should have been clear
). Anyway, I've adjusted it accordingly so it just writes individual fields, and I think it's all good now. Thanks again for your excellent support. Kind regards,
Andy
My apologies, my bad (again). I had copied some code from the asset to write the fields, but the code in question was intended to write the whole object... I adjusted it to filter out the unneeded fields, so it ended up writing:
Code: Select all
Item["find_shelter"]={CompletedTaskCount=0, };

Andy