The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

Hi there!

I need help.

I made a game that work nice when i launch it on Godot.
But after export, the console return me this line :

Edit state is only for editors, does not work without tools compiled

this is the script i try to call :

scene = load("res://portions/portion1.scn");
node = scene.instance(true);

i just want to load a portion of my level on the scene start.

Do you know what i did wrong?


in Engine by (55 points)

1 Answer

+3 votes
Best answer

(To copy myself from IRC)
The problem is that you are passing true to PackedScene::instance, which is available only in editor builds.

A quick fix would be to make just:

node = scene.instance();
by (1,608 points)
selected by

yeah i saw your answer on IRC!

It's working, you made my day thx a lot!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.