-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
28 lines (26 loc) · 924 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Linq;
using Microsoft.ML;
namespace godot_net_server
{
class Program
{
static void Main(string[] args)
{
GodotServer server = new GodotServer(port: 8001);
while (true)
{
try
{
var start_godot = @"/C cd C:/Users/Shehroze/source/repos/GymGodot/gym-godot && E:/godot/Godot/Godot_v3.4-stable_mono_win64.exe ./examples/mars_lander/Root.tscn --fixed-fps 60 --disable-render-loop --serverIP=127.0.0.1 --serverPort=8001 --renderPath=C:\Users\Shehroze\source\repos\GymGodot/render_frames/";
System.Diagnostics.Process.Start("CMD.exe", start_godot);
server.Start().Wait();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
}
}
}