godot-extended-libraries / godot-next

Godot Node Extensions - Basic Node Extensions for Godot Engine
MIT License
957 stars 61 forks source link

Class_Type does not work when exporting #100

Open I-Have-No-Idea-What-IAmDoing opened 2 years ago

I-Have-No-Idea-What-IAmDoing commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

thanks for the quick response!