I have fallen in love with GDScript, is it possible to use it for server-side applications?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By wombatTurkey
:warning: Old Version Published before Godot 3 was released.

I have heard that GDScript is basically syntaxical sugar ontop of pure C++.

If this is true, is it possible to use it to do server backend stuff, for example a game server? I am really starting to like the language a lot and want to further advance myself with it. I know this question seems silly, but I don’t see any negatives. That’s why I’m making this question would that be a good or bad idea? (Especially since I know absolutely no c++)

For example, in nodejs we just run node file.js to start the app. I think it would be cool if we could write in gdscript, and then use gd file.js to run the application. That would be amazing.

Heck, we could even build game servers with the help of the editor… (Like, using visual graphs and whatnot) That would be even more amazing

:bust_in_silhouette: Reply From: Warlaan

When you build the engine or the export templates yourself there is a build target called “server”. I haven’t tried it yet, but it sounds like it was meant to be used to create an export template for linux servers without graphics cards. If that is what it’s for and if it works then you have exactly what you are asking for - the option to create a server using the editor and GDScript.

:bust_in_silhouette: Reply From: Calinou

It is possible to run GDScript using godot -s my_script.gd. The script must inherit from SceneTree or MainLoop, as outlined in the documentation.

The “server” build of Godot is especially suited for this, as it doesn’t require X11 libraries and can be faster.