RichTextLabel.text is always null after export

Godot Version

4.4

Question

When I export my project, the RichTextLabels are blank. I added a script to print the text property and it is printing “”

Labels are working just fine. Same font works fine in Labels. Currently nothing is showing up in the RichTextLabels.

This happens for both linux and windows builds. I am developing in Linux. When I exported with Windows I didn’t have this issue.

Are you using any custom export templates?

I was, I downloaded the official templates and it is now working. I compiled the editor and the templates using the same settings, I am not sure why it would work with one and not the other. Honestly, the export system is kind of confusing. Do you have any idea why it would fail with my custom export templates.

1 Like

Your custom export template removed most of the fancy things such as RichTextLabel because there is already a simple Label.

It’s great for small simple games,but for cool looking games it will just stop working.

1 Like

How did it do that?

I don’t know how you optimized your export template .

could you somehow send the engine compilation configuration file *.build if it exists?

I built it with the scons flag optimize=size. I will paste my build_options/custom.py below, but that was for building the editor.

# Generated using https://godot-build-options-generator.github.io

disable_3d = "yes"
disable_advanced_gui = "yes"
deprecated = "no"
module_bmp_enabled = "no"
module_camera_enabled = "no"
module_enet_enabled = "no"
module_gltf_enabled = "no"
module_gridmap_enabled = "no"
module_minimp3_enabled = "no"
module_mobile_vr_enabled = "no"
module_msdfgen_enabled = "no"
module_multiplayer_enabled = "no"
module_openxr_enabled = "no"
module_tga_enabled = "no"
module_upnp_enabled = "no"
module_webxr_enabled = "no"

Is there a good breakdown of how the editor vs the templates work together? I am following the directions for building from source but I am trying to get a better grasp of how this all works together. My end goal, and this is nearly finished, is to have the game artifact built through CI. I have the godot editor/cli being built from source and the templates being generated through CI and docker and I have the game being exported with a docker container as well. All that is left is getting the CI/butler (to automate itch.io deployments) working.

In order to trust any CI based development, I will need to understand how the engine works with all the components.

You disabled disable_advanced_gui… soo RichLabelText is just removed

2 Likes