mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 13:25:51 +00:00
Made some changes.
This commit is contained in:
@@ -185,11 +185,15 @@ namespace server
|
|||||||
}
|
}
|
||||||
if (Url == "images/v2/named")
|
if (Url == "images/v2/named")
|
||||||
{
|
{
|
||||||
s = BlankResponse;
|
s = ImagesV2Named;
|
||||||
}
|
}
|
||||||
if (Url == "PlayerReporting/v1/moderationBlockDetails")
|
if (Url == "PlayerReporting/v1/moderationBlockDetails")
|
||||||
{
|
{
|
||||||
s = ModerationBlockDetails;
|
s = ModerationBlockDetails;
|
||||||
|
}
|
||||||
|
if (Url == "messages/v2/get")
|
||||||
|
{
|
||||||
|
s =
|
||||||
}
|
}
|
||||||
Console.WriteLine("API Response: " + s);
|
Console.WriteLine("API Response: " + s);
|
||||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||||
@@ -212,7 +216,8 @@ namespace server
|
|||||||
public static ulong CachedPlayerID = 1;
|
public static ulong CachedPlayerID = 1;
|
||||||
public static ulong CachedPlatformID = 10000;
|
public static ulong CachedPlatformID = 10000;
|
||||||
public static string VersionCheckResponse = "{\"ValidVersion\":true}";
|
public static string VersionCheckResponse = "{\"ValidVersion\":true}";
|
||||||
public static string BlankResponse = "[]";
|
public static string BlankResponse = "";
|
||||||
|
public static string BracketResponse = "[]";
|
||||||
public static string ModerationBlockDetails = "{\"ReportCategory\":0,\"Duration\":0,\"GameSessionId\":0,\"Message\":\"\"}";
|
public static string ModerationBlockDetails = "{\"ReportCategory\":0,\"Duration\":0,\"GameSessionId\":0,\"Message\":\"\"}";
|
||||||
public static string ImagesV2Named = "[{\"FriendlyImageName\":\"DormRoomBucket\",\"ImageName\":\"OpenRec\",\"StartTime\":\"2021-12-27T21:27:38.1880175-08:00\",\"EndTime\":\"2043-12-27T21:27:38.1880399-08:00\"}";
|
public static string ImagesV2Named = "[{\"FriendlyImageName\":\"DormRoomBucket\",\"ImageName\":\"OpenRec\",\"StartTime\":\"2021-12-27T21:27:38.1880175-08:00\",\"EndTime\":\"2043-12-27T21:27:38.1880399-08:00\"}";
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace api2018
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Token = "NoKeyProvided",
|
Token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImV4cCI6MTYxOTI4NzQ2MSwidmVycyI6IjIwMTcxMTE3X0VBIn0.-GqtcqPwAzr9ZJioTiz5v0Kl4HMMjH8hFMtVzQtRN5c",
|
||||||
FirstLoginOfTheDay = true,
|
FirstLoginOfTheDay = true,
|
||||||
AnalyticsSessionId = 392394UL,
|
AnalyticsSessionId = 392394UL,
|
||||||
CanUseScreenMode = true
|
CanUseScreenMode = true
|
||||||
|
|||||||
10
Program.cs
10
Program.cs
@@ -15,9 +15,11 @@ namespace start
|
|||||||
|
|
||||||
Start:
|
Start:
|
||||||
Console.WriteLine("OpenRec - Open source RecNet server software.");
|
Console.WriteLine("OpenRec - Open source RecNet server software.");
|
||||||
|
Console.WriteLine("Made and provided by RecRoom 2016.");
|
||||||
|
Console.WriteLine("Download source code here: https://github.com/recroom2016/OpenRec.");
|
||||||
|
Console.WriteLine("Discord: https://discord.gg/daC8QUhnFP" + Environment.NewLine);
|
||||||
Console.WriteLine("1) Modify Settings" + Environment.NewLine + "2) Modify Profile" + Environment.NewLine + "3) Start Server");
|
Console.WriteLine("1) Modify Settings" + Environment.NewLine + "2) Modify Profile" + Environment.NewLine + "3) Start Server");
|
||||||
string readline = Console.ReadLine();
|
string readline = Console.ReadLine();
|
||||||
|
|
||||||
if (readline == "1")
|
if (readline == "1")
|
||||||
{
|
{
|
||||||
Console.WriteLine("Not yet added in...");
|
Console.WriteLine("Not yet added in...");
|
||||||
@@ -25,7 +27,6 @@ namespace start
|
|||||||
}
|
}
|
||||||
if (readline == "2")
|
if (readline == "2")
|
||||||
{
|
{
|
||||||
goto Start;
|
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
Console.WriteLine("1) Change Username" + Environment.NewLine + "2) Go Back");
|
Console.WriteLine("1) Change Username" + Environment.NewLine + "2) Go Back");
|
||||||
string readline3 = Console.ReadLine();
|
string readline3 = Console.ReadLine();
|
||||||
@@ -38,18 +39,15 @@ namespace start
|
|||||||
File.WriteAllText("SaveData\\Profile\\username.txt)", newusername);
|
File.WriteAllText("SaveData\\Profile\\username.txt)", newusername);
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
goto Start;
|
goto Start;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (readline3 == "2")
|
if (readline3 == "2")
|
||||||
{
|
{
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
goto Start;
|
goto Start;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (readline == "3")
|
if (readline == "3")
|
||||||
{
|
{
|
||||||
|
|
||||||
Console.WriteLine("Please select the version of RecRoom the server should host: (2016, 2017, 2018)");
|
Console.WriteLine("Please select the version of RecRoom the server should host: (2016, 2017, 2018)");
|
||||||
string readline2 = Console.ReadLine();
|
string readline2 = Console.ReadLine();
|
||||||
if (readline2 == "2016")
|
if (readline2 == "2016")
|
||||||
@@ -81,7 +79,7 @@ namespace start
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string version = "";
|
public static string version = "0.1";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user