+2 votes

I'm trying to provide my own main loop instance, but the method to do this from code scraps I can find online is not obvious and everything I've tried results in the stated error.

Project Settings > General > Application > Run > Main Loop Type: I set this to, supposedly, the class name of my own MainLoop instance (inheriting from MainLoop). As far as I know, the only way to "name a class" is to make a variable and preload a gdscript file into that variable name, but this seems not to work either. Nether does the name of the gdscript with or without extension, or resource path of the file...

Any help is appreciated!

EDIT
For some context, I think by passing a script that extends MainLoop I can have my own main loop, but now I'm trying to figure out how to call PhysicsServer.step() in my _iteration() function, in c++ it's PhysicsServer::get_singleton()->step(afloat); but it doesn't seem to be available in gdscript... maybe in the GDNative API it is available, but I haven't found it there either.

in Engine by (18 points)
edited by

Is supplying a script at CLI runtime effecting the same thing?

Please log in or register to answer this question.

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 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 webmaster@godotengine.org with your username.