Devlog 2026-11-29

Back refreshed and the cough is worse (though this is actually better because all the gunk is actually leaving my system).

The main thing I wanna figure out while warming up (read: eating McDonald’s as my first meal of the day because I’m currently living through Vampire Hours) is why or how the game remembers which page the menu was left on.

So I’m running a couple of tests with the remote resource tree.

From a clean start:

Pressing the Move button: curpage is 0

Return and press the button again: still 0

Press the right button: changes to 1

Press the left button: changes back to 0

All expected behavior so far.

Press the right button and return: The editor object continues to show 1

Return to Move after that: it changes to 0 but the page remains changed, so I’m assuming it generates and THEN changes the number.

I also keep seeing a non-crashing “the signal is already connected” message, so what if we just moved it all to a Ready instead of on_enter_tree?

So I repeat all the steps above and while the weird “changes to zero” doesn’t happen, it also preserves the 1 instead of the 0.

Now, this concerns me very specifically because if the holder is preserving that, I need to make extremely sure that the game isn’t just leaving a bunch of random buttons in the ether clogging the memory.

So I opened up the Profiler and did the same thing.

Long story short, on the Nodes graph you see a very consistent amount. On the main navigation menu there’s always 40 nodes, if I open it to the full page it always rockets up to 93 and in the single item page it always goes to 51. Meaning there’s no weird duplicates in memory.

…the orphan nodes graph is less predictable, though….

I feel like what’s happening is that things aren’t leaving the memory, because IN THEORY with the button generator having a 0 on the bit where it’s created, it should always go back to the first page.

After reading a bit I’m right on the money. I’ve been using remove_child which essentially removes them from the tree but doesn’t delete the information they carry.

Now, I do remember running into this command before and the result was the same, if I go free queue when exiting tree like this

Then the result is that when I exit and reenter the menu I get nothing.

There’s no extra errors interestingly.

………………………wait.

MoveController (the object that executes the command to begin with) was on a Ready step which only executes once, it used to be on an on_enter_tree function but I changed that.

In theory, if it goes back to on_enter_tree it should always reset to the first page……….

……………so what if I did this as a joke?

……………….

……..it’s fine, it works, I’m fine, I’m fine , I’m FINE.

I’ll take a break and return to make sure the numbers at the bottom work as intended.

A few hours later your goat is washed and fed and ready to return to the fray.

If you’ll remember last log, there was a point where the page counter worked but it worked more by accident, what happened was that all the duplicates created updated versions of the counter.

The arrow buttons already emit a signal, we can use that signal to tell the counter to change.

First we attach a script to barnumber.

We attach signals and add a respective function.

Now, if I remember right from yesterday’s blur of documentation, signals can send info, like, when you do the Emit bit you can also send some other data.

So if I understand right…

We declare extra arguments in the signal like this…

…and then I realize that the arrows don’t have the information we need in themselves.

So scratch that earlier change and let’s take a different approach.

We create a new signal with the two parameters.

We still connect the signal like this.

We emit the signal from the bit that changes the page, and THAT triggers the stuff in the page counter to update the amount.

Now I just need to figure out how to use that info that the signal emits.

The function should take parameters I think, if I remember right the void bit just means it’s not a function that returns a value.

If I understand right (I don’t even know if this is me not parsing things right or the documentation could be better but I usually lean to the former), you can just make the arguments of the triggered function the same as the ones in the signal.

So IN THEORY this should work.

So we do this, updating the text of the label with the values we’ve been seeing but with a +1 added.

Funny thing, it works but I need to make sure it’s not 0/1 upon startup.

Easy fix.

Now, I should point out that IN THEORY with all this prep that we’ve made, the tabbed menu approach for the Talk menu is set since all we have to do is make buttons that generate the holder with other specific parameters, but I’m not gonna test that right now. Not just because it’s part of the next set of tasks, but also because we’ve been like 5 sidequests deep for a while and we gotta wrap this up.

First I need to make a couple of specific placeholders.

Button-sized crops of the backgrounds.

Then we start changing or removing test stuff.

The move parameter now uses our old friend locationlist instead of the test list with numbers (which we’ll remove).

We’ll also be removing this bit.

And removing the label from the buttons.

Next we need to make it so the sprite in gameplaybuttonbase takes the name of the location and loads the right asset. So we’ll take a small detour and make a dictionary like the one we made to load the backgrounds, but for the buttons.

So we declare.

We initialize.

We fill in.

We expand.

We specify

We modify.

We test………………

WE WIN… for now.

We need to add some functionality to the buttons, functionality that’s portable enough that we can reuse the object with simple variants. The command needs to basically change the location variable and have the space to add in stuff later.

For now, as we always do, let’s do a quick test.

We attach a script to the button.

We add two variables (one for which menu we’re using and one for what the button is meant to be) and for now we put a print on the pressed event.

This is how we inject that info into the buttons.

And if all goes well, it should be reflected the moment I press the buttons.

We get a crash because I didn’t really need to use the whole ass friggin’ dictionary.

We adjust that.

Aaaaaaand we’re golden.

Next we create the signal we will use for this specific process.

We go back to the button and make it emit the place that the button has saved. It’s worth noting that in theory you can do the binding on the ready step to on_pressed directly, but the idea is that the script changes what function it pushes depending on which menu we’re using.

And so, this signal should be taken…. where did I do the background training example weeks ago…?

Oh right, startup_control.

We tie the signal there, create the related function, and oh look, the test from back then is still there, we just gotta adjust the code.

Into something like this.

Now let us enjoy the results…

Y’know, I kinda forgot to update the todo list from the start of the month, but the flow this time around has been hectic.

Let’s see how that would look.

  • Iterate buttons and their function based on a list. Done
    • The goal is to have a base that can be modified to have a different sprite and such through a simple for loop. Done
    • At this stage I’ll also do the bit where I determine where in the code and how they show up. Done
    • Optionally look up how to add a viewport that allows scrolling. It’s not the most important but good knowledge to have. Not needed in the end
  • Modify the current scene state when you press a button. Done
    • In terms of code the “Scene” doesn’t change, but for the sake of what the player sees it does. Yeah
    • It should include some minor placeholder transition. We’ll skip this for now
    • The flow of entering a scene should also be considered (eg: if a cutscene takes place the first time you enter and such). Done
  • Change what Look Scene is shown based on the current location. Done
    • Optionally: Test how flags change the Look Scene too. We’ll leave this for later.

Now, there’s some things unrelated to the other stuff that I wanna note down first.

The first is that there needs to be two lists of resources. One is the loading list which includes everything that will eventually be loaded, and the other is what the player has seen. So for example in our current setup we’re pulling directly from the master list, but in gameplay the player is gonna unlock each location bit by bit. If any of you thought “wait, but having the location you’re currently in on the list of buttons would be redundant”, this is part of that process.

The other is that I wanna optimize the way the location-based stuff is pulled specifically. I feel like it would be cleaner and more legible if instead of the current approach where there’s coffeeshop assets in three different folders, there was a single folder called coffeeshop and the game pulled which asset is which based on their name.

Next comes the Talk Menu, and my forecast of how long that might take is a little bit off. On one hand we already did the bit where tabs of different buttons will be involved, but on the other we might need to start tapping into Dialogic so that’s an extra learning curve added to everything.

However, I’m so happy not just with all the progress but the fact that I was able to finish this task within the time I proposed to myself.

So why don’t we celebrate with a new character teaser?

Nao

Successful social media influencer and local trendsetter. She’s a common sight anywhere that has sweet treats, from the trendiest coffee shops to the family restaurants holding “Strawberry Festivals”. Keeping her eyes peeled and her ears open to the smallest fluctuations in trends also happens to make her a very valuable info broker.

Nashira’s comment:

Nao is a character that I originally designed to be ‘”one half of a duo,” so there’s another character design not yet revealed that’s meant to stand beside her. Because I wanted this duo to have a height difference, I ended up making Nao the shortest character in the cast and with the body shape most like my own, so I dressed her in the kind of clothes I owned when I was younger. Compared to some of the other characters, her design changed a lot (maybe the most?!) over time. I struggled on settling on a look for her and did the most variations for her anyways. The little math hairclips are a point I liked a lot and tried to keep in most versions of Nao’s designs. I used to play with fridge magnets meant to help kids practice math when I was very young, so I remember having attachment to numbers and equation symbols that were brightly colored plastic and thinking “They’d look cute as hairclips!” Her simple pseudo-decora-inspired design is enhanced by them, right?



Posted

in

by

Tags: