DevLog2: Day15.txt- Godot 4.0 Port


Day 15.

*SPOILERS: despite my best efforts, I do NOT port WriteIt to Godot 4.0*

Yet,

Gut Punch. The "scroll past the end of document" feature is a Godot 4.0 feature, for certain. Now I need to decide if I want to port this to the upcoming build or if I want to wait for the beta.

According to the fates, the beta version is when a feature freeze comes into play, when all of the methods have their final names and I won't have to worry about changing large swathes of code between builds.

But this is the version with the feature that I need to make this project as good as it can be.

Gah. I know it's close, but will it be done before November?

And can I live without it?

I think so, but it does make the project a little weird. For instance, if I start typing higher up, then my "Center Cursor" option comes into effect and the text jumps to the middle of the screen, centering like a typewriter.

But when I'm writing as-per-usje, it doesn't, and the cursor stays at the bottom of the document where you'd imagine it'd be, in a more traditional program.

I also had an idea for how to implement Screenwriting support, but it involves parsing a Fountain file behind the scenes and converting it to a bunch of different RichTextLabels line by line, and creating/deleting them on the fly, and sending it backwards into a file separate from what was being rendered.

I think it might work, but it also might have to be a separate piece of software.

I'll keep thinking it over.

I know I can do it, but it'll involve restructuring this project.

Hmm...

***

The TextEdit Focus keeps running, and I don't know why, so I need to figure that out.

Fixed that, and added an Untitled fileElement for when you start a new document.

So that's something. Just little small things. Fixing bugs and adding little features, and avoiding doing the settings menu, which I really need to do.

That and a close button.

***

According to the Godot blog, the beta of 4 should be out in the early weeks of September, but I don't want to release something buggy for people to rely on. Especially if they're going to be using it for their NaNoWriMo books. I'd absolutely hate it if people lost their data because of me. I'd be devestated.

Devastated?

It's definitely devastated.

Either way, I sincerely do not want that. Hmm...

***

(Some time has passed)

Gah, I really want the text to be centered...

I'm at another impasse.

Hell, maybe I'll just do it.

***

I did it. Or, I tried, and it broke everything.

Currently, the app *runs*, but it doesn't *work*. The theme is off (that makes sense) and a bunch of code no longer works (due to restructuring), but now that it runs, I don't understand which pieces are the ones that are breaking the features that, until now, worked just fine.

Tweens have changed, for the better, they're (theoretically) easier to understand and use, but they broke some of the transition effects that I've had implemented.

The File Manager just straight up doesn't work, and I'm not sure how to debug it, currently. I don't know which bit is broken.

My animations are also broken (this, too, makes sense).

The only thing that does work, after some settings I changed, was the center-screen functionality, which I really really really really want. :P.

I'm frustrated, and I don't know where to focus my energy.

I mean, I do. I *should* stay here, in the stable world. Godot 4 crashed on me for no apparent reason twice during the hours that I spent porting, and this one works well enough.

But that *one* thing... Gah...

I wouldn't even know how to implement it.

Unless I try to bridge the changes in the Godot Source.

But I so don't want to try that again.

And there's probably a reason it wasn't backported...

Blah.

Probably because of all of the other code-breaking stuff.

They renamed all of the "cursor" methods to "caret", which, like all of the other changes,makes sense to me, but I really want that scroll past the end functionality.

It's going to kill me dead.

Or force me to debug the entire program, or maybe start the damn thing over again.

Mleh.

***

I think... Nah.

***

At least centering the cursor works when I'm partway up the page, so that you can at least read the text that's below it.

Hmm, I could also make it so that the line stays where you put it? Like...

Like, set where the text should be based on the little scrollbar...

Is that actually possible?

Hmm...

I wonder if it's possible to override the scroll past the bottom of the screen thing.

I wouldn't even know where to start...

Unless I faked it, with some other Control node.

But that'd have to be removed when I did actually update to 4.0.

I don't have to keep fighting with myself, I could just suck it up and put together the feature-set that it needs to be user-ready...

Why am I waiting so long to implement a close-button?

Is it because I like closing it from the keyboard? (partly)

But that functionality doesn't go away if I throw a button up there...

I think it's partly that, and partly that I liked the size and placement of the buttons that *are* there.

It'd mean that they have to shrink, or that it'd have to be a completely *other* style.

***

I added the damn thing.

No functionality yet, but the "X" is there.

It should be scary, and red.

Lemme see...

***

There, I added it. And it's hideous.

I also made it so that if you hit the save button, then the top menu will show.

I'm afraid it'll show up on auto-saves also, so I need to test that out.

It does. Is that a bad feature? Eh. I don't care.

I'm still made about the scrolling thing.

I'll make it so it checks. Eh, there's probably a better way.

***

Fixt.

***

I mean, it's uglier, for sure, so I feel tempted to try and fix that, or just delete it all.

I also have food in the microwave that I made a million years ago, so I'm also tempted to just run away and go eat.

In fact, I think I will eat it over, and return fed...

I really want that middle focus garbage. Ahh!

I'll be back after I eat a potato and broccoli and whatever else.

See you soon...

***

I've Fed.

*braaahp*

Now, to add a settings menu, I guess.

And to re-work the save file.

Godot 4 will have to wait for another day, a day where it's worth my time and effort to port it and figure out what *exactly* is broken.

I just don't wanna manage two code-bases at once.

***

I reworked and broke everything!

But I found another issue, with folders.

You see, the folders- I never tried opening a document in a folder with other folders, and the folders fucked everything up.

But it's fixed, now.

Well, not FIXED, but it avoids the errors.

Folders just don't count to the file manager.

But now I know that I can make Folders an option... Hmm...

Not tonight, though. I'm burning the midnight oil, and I really need to step it down.

***

I added all the settings I promised.

Now I need to figure out themes, and we'll be well on track.

And, I think I can do a file-system, but I don't want to :P.

We'll see what people say when they start using it.

***

Get WriteIt!

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.