Server Migration, Upcoming Content, and the new Quest System (finished!) (Patreon)
Content
Hi adventurers!
I wanted to give a quick update - the quest system is now finalized and finished! I'll post a more in-depth technical update below!
This will be included in the next game update. There's a lot of things that had to change for the new quest format but this will allow me to create future content much more quickly going forward.
Server Migration
I needed to move the server to a new hosting provider and this has been completed by the time you read this post.
The old server will remain online for about a week before I shut it down in your DNS settings don't point to the new server automatically. This shouldn't be an issue, but the internet is funky sometimes.
Also this was my first time migrating a setup like this to a new server, and I am surprised how well it went. Please let me know if you have any problems!
The reason for the move was because I was reading about the previous host being heavy handed and banning customers for reports, even if their content was allowed. I didn't want to take the risk of this happening and causing significant downtime so I decided to be proactive and migrate to a better host.
This increases the server price slightly by approximately $3.50 CAD a month, but it's worth it for the peace of mind. Also, this server has around 4x more RAM and a much stronger CPU than our previous host! This just means less coffee for me!
Next Content Update
The plan for the next upcoming content is:
More content with Wish and their story (transformation focused).
More content with Thimble for players who continue their modeling endeavors.
Potentially something new in the outskirts (if I get enough time to write this too).
Now that the quest system is rewritten, there will be more content coming for a while. New game features will be planned but I want to aim for 250,000 words (approx 80,000 more) by the end of the year.
Some neat new NPCs also might make their way into the game by the end of this month or in early December!
The goal for this update is this upcoming Sunday!
New Quest System Technical Details
The original idea for your save files was to store your progression under the 'flags' field in your save data. This was intended for global unlocks primarily, but I got a bit carried away.
This led to save files getting cluttered, with over 70+ flags in them that don't really make sense and make it hard for me to know at a glance what the player has completed, since these are added in the order the flag was granted, so the order is never consistent.
This also makes it hard when revising content and looking at stuff like `rook_boots_2`. What does this even refer so in the quest series?
New Structure
I devised a new structure for the quests and built a QuestManager which oversees all functions related to quests.
Quests are basically assets that are based on a Quest Template (this is a Scriptable Object). So I designed these in a way to have several fields, a list of stages, and each stage can have an optional list of objectives to complete. Here's an example of one of the quests in the new Template:
In your save file, this now reads much easier, and I can see all of your completed objectives, your decisions (these are optional and don't advance stages, but change flavour text), and more. You can see how this looks below.
This means that I can make the Quest Manager automatically advance to the next stage in a quest if all objectives for that stage are completed, automating a big part of the quest work.
"Taw, why is there 'completedObjectives' and 'allCompletedObjectives'? Isn't this redundant?"
The first one is for if the quest stage you are on has multiple steps, which you can see in rook_boots in the screenshot. You need all 3 objectives in order for it to progress to the next stage, then it clears the 'completedObjectives', but leaves them in 'allCompletedObjectives'.
This way I can check your objectives when on any quest step for some logic checks and the like.
Quest Tracking Improvements
This also means for the quest tracker, I removed 750 words from the file because this now automatically parses your quest progress from each Quest Stage, since they have a summary in them, as well as a Next Hint, which shows to guide players where to go next in the quest.
Here's an example of how the new quest tracking is going to look:
This is significantly better since now I simply add in two commands into a scene for each quest, and it'll do all of this work for me automatically, saving me from having to type out all the quest logic and conditionals for each step you are or aren't on!
Quest Rewriting
The new quest system also means that quests needed to be rewritten. Entirely.
Which sucks.
This took me several days to complete, figure out the new logic, and map the structure for the quests from the old system where I'd simply do something like:
add_eflag("rook_boots_3")
Which would now be:
complete_objective("rook_boots", "get_boots")
You can see that this is significantly easier to see at a glance what it's for though! The quest name comes first, and then the objective. If it exists for that step, it'll advance the quest stage immediately.
This means for choices as well, I can make the logic much more simplified, and write things like:
is_on_stage("rook_boots", "The Pranksters")
The new system will make it much easier to self-document a questline in each file without having to go back and check notes or dig through files to figure out what something is for.
Patreon, I beg of you, please add code snippet support.
My new Quest-related functions are:
start_quest (self explanatory)
complete_quest (self explanatory)
advance_quest (advances to the next quest stage (good for when the stage has no specific objectives or to skip stages based on player choices))
complete_objective (complete a current stage objective, if all are complete, also advances quest stage)
is_on_stage (check the stage the player is on by the stage's name)
has_completed_objective (check if they have completed an objective or not)
has_completed_quest (check if they have completed a quest or not)
has_active_quest (check if they are currently on the quest)
get_quest_stage (check which stage of the quest they are on)
record_decision (add the decision to your quest save)
has_decision (check if a decision exists in your quest save)
can_start_quest (check if the quest is available to start (not already active or complete))
list_quest_summary (list all the summary for each quest stage the player completed so far)
list_quest_hint (list the current stage's hint (if quest isn't complete))
Save Data Migration
"Taw, this is cool, but I already did all these quests, or I'm the middle of them! Do I have to redo them?"
Nope! I spent a whole day and a half building a save file conversion / upgrade system. This will be used for future, save-file-breaking game changes so no one ever should lose their data (assuming my programming skills are good enough).
Right now, save files have no version identifier in them, which they will start including going forward.
When you load any save file in this upcoming game build, it will automatically check your save file version, and if it's outdated, it will look through your save, see all of the quest steps you have done for every quest, and then do them in order to rebuild it into the new quest system format. This should mean you shouldn't lose any data whatsoever.
Please let me know if you notice any issues with your save file, such as being softlocked on a quest, missing any NPCs, and so on. I think I've covered every single situation in the game, but I can't be 100% sure! I can fix your save files though if it's broken.
Another thing that save files don't currently check for is the game. When you import a new save, it doesn't say "Tailraise" or look for this in the save file. This means you can break the game by importing other JSON data on your end. Please refrain from this, and if you do this, delete the save and load a different one. It shouldn't break anything otherwise, and this will never affect the game server itself, just your local game version.
In the future, I will add a strict check for the game name to the import function once I feel like most people have probably converted to the new save files. This means older saves will no longer work in a few months.