I've started to learn about new high level multiplayer in Godot.
I wanted to create simple server which will log all connected clients.
I followed some part of tutorial:
I wanted to start server as separate process - just for server, so I wanted to run such script from command line:
var players = 
var host = NetworkedMultiplayerENet.new()
but because it doesn't inherit from MainLoop or SceneTree, I get error:
MBP:game dd$ /Applications/Godot3Bin -s ./server.gd
Current path: /Users/dd/Dropbox/Dev/game
OpenGL ES 3.0 Renderer: Intel(R) Iris(TM) Graphics 6100
GLES3: max ubo light: 409
GLES3: max ubo reflections: 455, ubo size: 144
Registered interface Native mobile
ERROR: start: Can't load script './server.gd', it does not inherit from a MainLoop type
When I change the class I inherit from to SceneTree for example, then I get:
SCRIPT ERROR: _init: Invalid call. Nonexistent function 'get_tree' in base 'SceneTree (server.gd)'.
Any suggestions how can I run command line server code?
FYI I use MacOS
Thanks guys :)