Godot build --headless dedicated server export, loading resource takes forever!

Godot Version

Godot_v4.5.1-stable_win64

Question

I exported my project as a dedicated server with stripping; i obtained an executable; I ran it in commandline but it tries to load resources & takes forever…it gets stuck at loading a player-tscn file

ps. player.scn is a tscn in my editor resources res:// , not sure if it’s causing this, it acts a prefab resource

Is your player resource very large? What is the file size for your player.tscn? If it is, maybe you have accidentally merged a large resource into it like a 3D model and it’s textures, this could happen by using “Make Unique”.

Are you sure it’s still loading the player resource? Maybe it’s finished, do you have a print statement to say when the server has started after loading?

text based resources (tscn and tres) are converted to binary resources (scn and res) when exported, they take up less space, may be compressed, and load faster.

1 Like

I forgot to make one of my scripts GLOBAL and was able to see my print state. I also forgot to use –headless i only called –verbose