Missing Error Handling

Announcements, support questions, and discussion for Quest Machine.
Post Reply
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

Missing Error Handling

Post by AArtlone »

Hey again!

I just wanted to share that it seems like there is a null check missing that perhaps you would want to add.

In the QuestGenerator, line 109 is checking if the quest is abandonable. But if the QuestGenerator was not able to generate the plan, then the quest variable will still be null.

In my case, it failed to generate the plan because none of the entities had an UrgencyFunction assigned to it.

I hope you find this helpful.
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Error Handling

Post by Tony Li »

Hi,

Thanks for reporting that. I'll fix it in the next update.
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

Re: Missing Error Handling

Post by AArtlone »

Hi Tony!

I was curious if this error was already fixed? If yes, could I receive an update patch?

If not, do you know when it will be fixed and when the update will be released?

Thanks in advance,
Artem
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Error Handling

Post by Tony Li »

Hi,

This patch includes a few fixes, including the one mentioned in this thread as well previous threads:

QM_QuestGeneratorPatch_2021-03-19.unitypackage
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

Re: Missing Error Handling

Post by AArtlone »

Thank you very much!
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Missing Error Handling

Post by Tony Li »

Glad to help! Thanks for reporting issues.
Post Reply