Could not create script from my custom scripting language, it said file always in filesystem.

Spec:

  • Godot v4.5
  • GDExtension with godot-cpp compiled with gcc
  • OS: GNU/Linux

Hello, folks.

I, Yukari, had problem in creating gdextension for extending new script programming language. Based on godot-lang-support to port new scripting, I need to porting the Script and ScriptLanguage instance to able loaded to Godot, for GDExtension use ScriptExtension and ScriptLanguageExtension according github@gilzoide/lua-gdextension . @gilzoide thanks for the code.

It loaded but cannot create file like this:

It said: “Error - Could not create script in filesystem.”, the message only show if I choose Janet (language that i tried to port) but it works fine when GDscript choosen.

Yukari already create inherited class of ScriptExtension and ScriptLanguageExtension then Register the ScriptLanguageExtension.

Did Yukari miss something? or it should use ResourceLoader and ResourceSaver too? if yes, what the relation is then.

Thank you.

1 Like

You probably need to implement a ResourceFormatLoader and a ResourceFormatSaver for Godot to be able to save and load your scripts.

@mrcdk Thank you, that work! The reason it works because loading/saving resource handled by different class (in this case ResourceFormatLoader and ResourceFormatSaver), the Godot think script as Resource.

I have another issue like the godot crash went loading but that for another thread, this considered finish.

Anyway, for people who looking for implementing bridge between PL of your choice and Godot, here list I found useful:

Adding new Script Languages to Godot – Jeff Ward – GodotCon 2025, Nice video by @fuzzybinary (thank you for the talks, that was awesome guide) about how script language and it flow to integrate language in godot, MUST WATCH.

Hope that helps.