Page 11 of 26

Re: Custom quest support

Posted: Thu Aug 16, 2018 1:42 am
by Interkarma
It might be a parser error based on something unexpected/unhandled in the source. Can you please provide full source of the quest and I'll take a look.

Re: Custom quest support

Posted: Thu Aug 16, 2018 1:56 am
by Jay_H

Re: Custom quest support

Posted: Thu Aug 16, 2018 2:15 am
by Interkarma
Problem here is a leading space before the CRLF on line 61 (at the end of message 1030). The parser isn't trimming the start of lines when detecting end of message block. You can fix now by just removing leading space on line 61 (tested).

Unfortunately this isn't as easy one to fix in the parser, as the sequence of "<space><crlf>" is an expected part of a continuing message block. The use of this sequence is used when injecting an empty line part-way through a message block.

In this case, the absence of an empty line causes the message block to overflow as message 1030 is the last message block in the QRC section. What I'll do instead is add another end of stream check when reading message blocks, which should also catch this issue.

Edit: Fix for this is on git now using a simple bounds check to make sure a leading space can't overflow lines array when missing at empty line at end of final message block in QRC section.

Re: Custom quest support

Posted: Thu Aug 16, 2018 4:30 am
by Jay_H
Ah, well. I was happy to alter the quest file instead, but you beat me. Thanks Interkarma.

Re: Custom quest support

Posted: Thu Aug 16, 2018 4:44 am
by Interkarma
No worries. :) Still edit the quest file for now though, as this change might not land in Live Builds until the release after the next one. I was running new builds when I fixed this, so change wouldn't have made it.

Re: Custom quest support

Posted: Tue Aug 21, 2018 10:32 pm
by Jay_H
I tried troubleshooting this one myself, but to no avail. Quest log says this, and Player log doesn't expound on it:

Code: Select all

Parsing quest JHTP005.txt
Parsing quest JHTP005.txt FAILED!
SplitField() encountered invalid number of results.
Here's the quest text. Any idea what's causing this error?

Re: Custom quest support

Posted: Tue Aug 21, 2018 11:49 pm
by Interkarma
This was a fun one to track down. The problem is this line:

Code: Select all

QuestorPostFailure:  [1009]
The static message tag is case-sensitive and should be "QuestorPostfailure" instead. I used this casing as that is what's output by TEMPLATE.

I've now added some alternate casings to table so that "QuestorPostFailure" will be accepted in future also, and added a more helpful error message. For now, you should be able to fix by just changing casing.

Re: Custom quest support

Posted: Wed Aug 22, 2018 12:18 am
by Jay_H
Yes, it's running now with that fix. Thanks Interkarma.

Re: Custom quest support

Posted: Sat Sep 08, 2018 8:32 pm
by Jay_H
I'm trying to make a multiquest campaign for the Thieves Guild, and the first three steps are going just fine. It's a sequence of quests named JHTG0#X.txt, going 0, 1 and 2 and so on. For some reason I can't get JHTG03X to start, and no log provides information why.

Here's the relevant quest trigger:

Code: Select all

_victory_ task:
    when _close_ and _talk_
    give pc _reward_
    start quest JHTG03X
    end quest
This is my Thieves Guild quest list:

Code: Select all

schema: *name, group, membership, minRep, notes

JHTG00X, GeneralPopulace, M, 0,
JHTG01X, GeneralPopulace, P, 0, offered via JHTG00X
JHTG02X, GeneralPopulace, P, 0, offered via JHTG01X
JHTG03X, GeneralPopulace, P, 0, offered via JHTG02X
I've attached a save at the time the change should happen.

Re: Custom quest support

Posted: Sat Sep 08, 2018 9:10 pm
by Interkarma
Does JHTG03X start if you click an NPC then use "startquest JHTG03X" from console directly?