Home Creators Posts Import Register Favorites Logout

Content

tl;dr: Saves will be cross-version compatible from v.0.5! (bugs notwithstanding) Also, been a bit ill, this update will be small in content.

Here's what I've been doing this week:

  • Monday: Actually spent most of the day on Patreon-related stuff. I got some good tips from some good people, but it still took me a while to figure everything out. I will repeat that I don't want stuff like this to distract from development, but one day out of 1,5 months is alright, I think. :)
  • Tuesday: Got stuck quite deep with the saving system again. I might've spent a bit more time on it than I should have, but I got save compatibility working to an acceptable degree for v.0.5! I'm gonna put a bunch of technical nerdery text about this stuff at the end of this post for those interested.
  • Wednesday: Caught a cold, had bad headaches. :( Too distracted to properly write or program, I spent time working on Ari's model sheet (particularly her face in 3/4 view, still not 100% happy with it, but Wednesday's work helped a lot!)
  • Thursday: I just woke up. :D Head hurts a bit less, had some coffee, now I'm gonna clean up some of the mess I left in the code on Tuesday and start forging the storyboard ideas I've been generating into proper scenes.

Update planned for Sunday, again, but might be delayed until Monday or even Tuesday if my cold acts up again. This update will not be very heavy in content (I know I keep saying that but this time I hop it'll be true. :D). Alternatively, if I quickly feel much better and have great progress, I might actually delay the release in order to not have it as content-light. I'll post a comment on this post to let you know by Saturday!


Nerdy programming shit regarding saves (it's neat to see so many people with programming experience in the comments):

Okay, fundamentally, what I wanted to do is have a clearly delineated "Quest" object. I'm usually not a huge fan of OOP (99% of the time while working on back-end Java, Inversion of Control felt like a band-aid to fix problems caused by OOP), but this was a situation where I had a separate thing that very clearly had both its own behavior and its own data - it made all of the sense in the world to encapsulate all this in an object. Two of the things I wanted this object to do: contain the labels relevant to this quest ("label" is basically a Renpy thing that marks a dialogue scene) and also contain the status of how far along the player has gotten in this quest. The conflict between these items is that I wanted to load up the labels on game startup (eg. they change in-game whenever I change the code - this also means that they are hotswappable) and I wanted the player status to be persisted in savegames (and not change when the game is reloaded).

This meant that I spent an inordinate amount of time fighting with what Renpy puts into its memory on startup and what it puts into its memory during gameplay. Right from the get-go, I knew this would have to be a workaround/hack into Renpy, because Renpy is not a general-purpose engine, it's very specifically meant for VN-s. I was constantly trying to balance how messy this hack was making things and how much the implementation of this idea would clear up the code.

Eventually, after significant searching and testing I found the solution.

Specifically, I found that there is no solution. :D Variables declared during startup cannot be put into savegames. Just... this straight up cannot be done in Renpy. Renpytom told me himself.

So now I've built a system where I have these two types of data (quest labels and player progress) as separate objects and I handle them separately. INCREDIBLY INELEGANT and much more error-prone, but I think I'll be able to handle the fallout as a single developer. At the very least, this system is going to be okay until the planned mid-development rework detailed in the development roadmap. :)

Comments

No comments found for this post.