Page 23 of 23

Re: Custom quest support

Posted: Sat Aug 01, 2020 3:08 am
by imsobadatnicknames
Jay_H wrote:
Sat Aug 01, 2020 2:52 am
Sometimes the quest format is strict enough that it bugs out with certain errors. If you can post the files, someone might be able to see.
Hmmmmm, I don't think it's due to any code errors, since I copied the code from PBA to every other file and just replaced the type of building the quest chooses and the type of npc it spawns inside, so the syntaxis is pretty much the same. But I guss I'll post the files just in case someone wants to give them a look.
Jay_H wrote:
Sat Aug 01, 2020 2:52 am
Also, the startquest console command only works on quests inside /StreamingAssets/Quests. It can't read from Questpacks.
That's... really weird, because both PBMASTER and PBA are inside /StreamingAssets/Questpacks/Populatedbuildings, so I shouldn't have been able to start them from the console at all and it still worked. I really have no idea what's going on here.

EDIT: I just moved the rest of the files to /StreamingAssets/Quests and tried to start them using the console and I still got the "Quest ID 'PBB' could not be found" message, so I doubt the file folder is the reason why the console can't start them. I also tried to start some quests from my thieves guild questpack from the console and it worked, so it seems like startquest can actually start quests inside the questpacks folder.

EDIT 2: I rewrote everything except for PBA and it seems to be working alright now. Idk what happened honestly, must have fucked something up when copypasting it or something

Re: Custom quest support

Posted: Sat Aug 01, 2020 4:28 am
by Interkarma
Your quest is failing to parse which just shows the "not found" message in the console. Keep an eye on the quest_log.txt output in persistent data path for more detailed info when writing quests. The error in this case is:

Code: Select all

Parsing quest pbap.txt
Parsing quest pbap.txt FAILED!
Foes data table does not contain an entry for Sorcerer

Re: Custom quest support

Posted: Sat Aug 01, 2020 4:37 am
by imsobadatnicknames
Interkarma wrote:
Sat Aug 01, 2020 4:28 am
Your quest is failing to parse which just shows the "not found" message in the console. Keep an eye on the quest_log.txt output in persistent data path for more detailed info when writing quests. The error in this case is:

Code: Select all

Parsing quest pbap.txt
Parsing quest pbap.txt FAILED!
Foes data table does not contain an entry for Sorcerer
Hmmmmmmmmm could've sworn Sorcerer was a valid class. Guess I was mistaken about that, thank you!

Re: Custom quest support

Posted: Sat Aug 01, 2020 6:10 am
by Interkarma
These are matched from Quests-Foes.txt. "Sorceror" is a valid enemy match but "Sorcerer" isn't. :(

Tipton misspelled the class name here in his TEMPLATE decompiler. We inherit this table and need to keep the same spelling for backwards compatibility with classic quests. What I could do is add a second entry for correct spelling with same enemy ID. That should do the trick.

Edit: Added correct spelling matched to same class ID. Legacy quests decompiled by TEMPLATE will still parse and new quests can use correct spelling from version 0.10.26.

https://github.com/Interkarma/daggerfal ... 759197a208

Re: Custom quest support

Posted: Sat Aug 01, 2020 6:25 am
by Jay_H
I highly recommend using TheLacus' quest editing tools, stickied in this forum. It shows where the problems are very quickly, and has saved me hundreds of hours of proofreading and troubleshooting:

Image

Re: Custom quest support

Posted: Sat Aug 01, 2020 6:26 am
by Interkarma
Hell yes. TheLacus' quest tools are incredible!

Re: Custom quest support

Posted: Sun Aug 02, 2020 5:22 am
by imsobadatnicknames
Thank you so much for the help everybody! I managed to get the mod running correctly this morning and it's now on the Nexus! Turns out, aside from the misspelled class, the other quests weren't parsing because the town I was at lacked the appropriate buldings, which I should have figured out sooner.

Thanks for putting up with so many dumb questions :mrgreen:

Now, I kinda wanna ask something regarding more traditional quest-writting.
Is there a way to create a mob that's allied with the player? I know it's possible to do it through the "cm" console command, but idk if it's possible through the quest system. I have this idea for some high-level guild quests where the questgiver informs you that the guild is under attack, and as soon as you go outside enemies start spawning and you have to kill a large number of them to defend the guild. But if I just did that I feel like it'd be weird if you were the only one fighting to defend the guild, so It'd probably be interesting to be able to create some NPCs to fight by your side in a full-on battle

Re: Custom quest support

Posted: Sun Aug 02, 2020 5:32 am
by Jay_H

Re: Custom quest support

Posted: Sun Aug 02, 2020 12:19 pm
by imsobadatnicknames
Jay_H wrote:
Sun Aug 02, 2020 5:32 am
Take a look at this one ;) https://github.com/JayH2971/dfunity-que ... HKN004.txt
Oooooh so you assign teams pretty much the same way the console does. Cool, thank you! Tho now I'm reconsidering bc this completely dwarfs what I had planned heheh.