Skip to content

Convert Learn GDScript App to Godot 4.6#1248

Draft
Razoric480 wants to merge 8 commits intomainfrom
raz/learn_godot4
Draft

Convert Learn GDScript App to Godot 4.6#1248
Razoric480 wants to merge 8 commits intomainfrom
raz/learn_godot4

Conversation

@Razoric480
Copy link
Collaborator

@Razoric480 Razoric480 commented Mar 20, 2026

Fixes #1187.

Uses the custom 4.6.1 build from https://github.com/Razoric480/custom-godot-builder which includes the GDScriptErrorChecker class (which takes the place of the 3.6 GDScriptParserWrapper).

Some notes on current State

  • Converted project to godot 4. Can run through the first lesson, do its quizzes, and run the practice code.
  • Fonts were pretty messed up. font_size is no longer part of the resource, and we have all these FontVariation resources whose sole job was to set the font size to various places. I've assigned font_size overrides to the theme and to the various TSCN files but they'll probably need a combing over for any I've missed, pending a rework of how those are assigned.
  • Loooots of bugs and incomplete scripts, but it's otherwise in a "at least it runs and does what I expect it to" state.

Fun gotchas I ran into that gave me some trouble

  • godot 3's right() function gave you the characters to the right of the index. godot 4's right() gives you X characters from the right side (which, to be fair, matches what left() does).
  • dependence on yield() for stepped examples needed some hackery
  • super._ready() and the like are no longer implicit and need to be called explicitly

@NathanLovato
Copy link
Contributor

Made a couple more changes, notably removed the import cache folder from git tracking and updated the signal connections and the likes + corrected errors in the revealer script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port the app to Godot 4

2 participants