Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Class_Type does not work when exporting #100

Open
I-Have-No-Idea-What-IAmDoing opened this issue Jan 7, 2022 · 2 comments
Open

Class_Type does not work when exporting #100

I-Have-No-Idea-What-IAmDoing opened this issue Jan 7, 2022 · 2 comments

Comments

@I-Have-No-Idea-What-IAmDoing

I am currently using this plugin to load in custom classes by class name and it does work but whenever i try to export my game, it does not work and errors. I tried asking on the godot discord and they said that

You (or the plugin developer) are trying to use EditorPlugin class, a class that belong to the editor only and doesn't works in game

SCRIPT ERROR: Parse Error: The identifier "EditorPlugin" isn't a valid type (not a script or class), or couldn't be found on base "self".
          at: GDScript::load_byte_code (res://addons/godot-next/references/class_type.gdc:726)
@willnationsdev
Copy link
Member

I understand. I am a little busy at the moment, but I will try to review it when I get a chance.

I may have accidentally left in some code that is relying on the tool context to work properly. I'll try to identify the problem and get back you here when I can.

Thanks for your report.

@I-Have-No-Idea-What-IAmDoing
Copy link
Author

thanks for the quick response!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants