mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 21:25:51 +00:00
Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b97080e3a | ||
|
|
0555b44676 | ||
|
|
869f5ff80b | ||
|
|
bb7c545caf | ||
|
|
1bdf95f5e9 | ||
|
|
74c8487c65 | ||
|
|
a331672d4f | ||
|
|
d8c03700cc | ||
|
|
32ba6f8d12 | ||
|
|
5e276a02cd | ||
|
|
f4547c9dc3 | ||
|
|
bf34030107 | ||
|
|
154220dace | ||
|
|
696feb3887 | ||
|
|
02d5026f7a | ||
|
|
07aff4769c | ||
|
|
25bb2f2db8 | ||
|
|
0f1955581b | ||
|
|
b81f3a1945 | ||
|
|
f80b4e1ea2 | ||
|
|
16c581c73f | ||
|
|
fd2c36f3dd | ||
|
|
17f85974bd | ||
|
|
3d9f7cc873 | ||
|
|
92a031fc7f | ||
|
|
8a5396e8df | ||
|
|
9bac769056 | ||
|
|
38af2edbd8 | ||
|
|
5b5712bcc1 | ||
|
|
51c6a2ace4 | ||
|
|
5aa4f2c4ae |
@@ -681,7 +681,7 @@ namespace server
|
|||||||
response.ContentLength64 = (long)bytes.Length;
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
Stream outputStream = response.OutputStream;
|
Stream outputStream = response.OutputStream;
|
||||||
outputStream.Write(bytes, 0, bytes.Length);
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
Thread.Sleep(20);
|
Thread.Sleep(400);
|
||||||
outputStream.Close();
|
outputStream.Close();
|
||||||
this.listener.Stop();
|
this.listener.Stop();
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,16 @@
|
|||||||
Patch v0.6.1:
|
Feature Patch v0.6.9: sex build
|
||||||
-Fixed 2016
|
-Added tutorial and info hints
|
||||||
-Fixed room issues in 2018
|
-Added custom rooms back into 2018 (no saving yet)
|
||||||
-Added Vault Clothing items to September 2018
|
-Added Profile Downloader
|
||||||
-September 2018 slightly more stable
|
-Added build links tab
|
||||||
-Improved overall server speed
|
-Improved profile image changing
|
||||||
-Fixed the wrongful ban issue
|
-Updated the UI more
|
||||||
|
|
||||||
Fifth public release of OpenRec, and the new biggest update to date.
|
Note: This release DOES NOT feature friending yet! This is just a feature patch before that is released in version 0.7.0.
|
||||||
|
|
||||||
Supports:
|
|
||||||
-December 25th 2016
|
|
||||||
-October 19th 2017
|
|
||||||
-May 30th 2018
|
|
||||||
-September 27th 2018
|
|
||||||
|
|
||||||
-Added 2016 Support
|
|
||||||
-Added September 27th Support
|
|
||||||
-Added Image Server (September 2018 only)
|
|
||||||
-Added Custom Room Downloader (September 2018 only)
|
|
||||||
-Slight UI Improvements
|
|
||||||
-Tons of new APIs added in
|
|
||||||
-Improved banning system
|
|
||||||
|
|
||||||
Credits:
|
Credits:
|
||||||
|
@Nexus0821 - Programmed and helped add in a lot of new features
|
||||||
|
|
||||||
@LucasOnDiscord#0210 - Adding potions
|
@LucasOnDiscord#0210 - Adding potions
|
||||||
@GabeTheFirst#7335 - Tester when my game was broken
|
@GabeTheFirst#7335 - Tester when my game was broken
|
||||||
@andry6702#9812 - Discovered custom rooms for 2018
|
@andry6702#9812 - Discovered custom room downloading for 2018
|
||||||
|
|||||||
1
Download/configv2.txt
Normal file
1
Download/configv2.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"MessageOfTheDay":"Welcome to OpenRec!\n\nBTW IF YOU SEE THIS, SHUT UP\nTHANK YOU\n","CdnBaseUri":"http://localhost:20182/","LevelProgressionMaps":[{"Level":0,"RequiredXp":1},{"Level":1,"RequiredXp":2},{"Level":2,"RequiredXp":3},{"Level":3,"RequiredXp":4},{"Level":4,"RequiredXp":5},{"Level":5,"RequiredXp":6},{"Level":6,"RequiredXp":7},{"Level":7,"RequiredXp":8},{"Level":8,"RequiredXp":9},{"Level":9,"RequiredXp":10},{"Level":10,"RequiredXp":11},{"Level":11,"RequiredXp":12},{"Level":12,"RequiredXp":13},{"Level":13,"RequiredXp":14},{"Level":14,"RequiredXp":15},{"Level":15,"RequiredXp":16},{"Level":16,"RequiredXp":17},{"Level":17,"RequiredXp":18},{"Level":18,"RequiredXp":19},{"Level":19,"RequiredXp":20},{"Level":20,"RequiredXp":21}],"MatchmakingParams":{"PreferFullRoomsFrequency":1.0,"PreferEmptyRoomsFrequency":0.0},"DailyObjectives":[[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}],[{"type":20,"score":1},{"type":21,"score":1},{"type":22,"score":1}]],"ConfigTable":[{"Key":"Gift.DropChance","Value":"0.5"},{"Key":"Gift.XP","Value":"0.5"}],"PhotonConfig":{"CloudRegion":"us","CrcCheckEnabled":false,"EnableServerTracingAfterDisconnect":false}}
|
||||||
@@ -1 +1 @@
|
|||||||
0.6.1
|
0.6.95
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ namespace api2018
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,13 +51,11 @@ namespace api2017
|
|||||||
ForceJuniorImages = false,
|
ForceJuniorImages = false,
|
||||||
HasBirthday = true
|
HasBirthday = true
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Token: 0x06000199 RID: 409 RVA: 0x00002BBE File Offset: 0x00000DBE
|
// Token: 0x06000199 RID: 409 RVA: 0x00002BBE File Offset: 0x00000DBE
|
||||||
public static string playerName()
|
|
||||||
{
|
|
||||||
return File.ReadAllText("playerNameConfig.txt");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,10 @@ namespace server
|
|||||||
i = File.ReadAllBytes("SaveData\\profileimage.png");
|
i = File.ReadAllBytes("SaveData\\profileimage.png");
|
||||||
}
|
}
|
||||||
else if (rawUrl.StartsWith("//room/"))
|
else if (rawUrl.StartsWith("//room/"))
|
||||||
|
{
|
||||||
|
i = new WebClient().DownloadData("https://cdn.rec.net" + rawUrl.Remove(0, 1));
|
||||||
|
}
|
||||||
|
else if (rawUrl.StartsWith("//data/"))
|
||||||
{
|
{
|
||||||
i = new WebClient().DownloadData("https://cdn.rec.net" + rawUrl.Remove(0, 1));
|
i = new WebClient().DownloadData("https://cdn.rec.net" + rawUrl.Remove(0, 1));
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Launcher/ProfileComputer_Background01.png
Normal file
BIN
Launcher/ProfileComputer_Background01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
BIN
Launcher/Untitled.png
Normal file
BIN
Launcher/Untitled.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 610 B |
7
Launcher/changelog.txt
Normal file
7
Launcher/changelog.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
hello beta testers!
|
||||||
|
please press start openrec at the bottom
|
||||||
|
|
||||||
|
and just see if it works with 2016 pls
|
||||||
|
|
||||||
|
thanks@!!
|
||||||
|
-recroom2016
|
||||||
1
Launcher/download.txt
Normal file
1
Launcher/download.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
https://cdn.discordapp.com/attachments/982455350819188816/982460494759751680/OpenRec.exe
|
||||||
@@ -19,6 +19,7 @@ namespace server
|
|||||||
{
|
{
|
||||||
Console.WriteLine("[NameServer.cs] has started.");
|
Console.WriteLine("[NameServer.cs] has started.");
|
||||||
new Thread(new ThreadStart(this.StartListen)).Start();
|
new Thread(new ThreadStart(this.StartListen)).Start();
|
||||||
|
new Thread(new ThreadStart(this.StartListen2)).Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -40,18 +41,6 @@ namespace server
|
|||||||
HttpListenerResponse response = context.Response;
|
HttpListenerResponse response = context.Response;
|
||||||
string rawUrl = request.RawUrl;
|
string rawUrl = request.RawUrl;
|
||||||
string s = "";
|
string s = "";
|
||||||
if (Program.version == "2019")
|
|
||||||
{
|
|
||||||
NSData2 data2 = new NSData2()
|
|
||||||
{
|
|
||||||
API = "http://localhost:2018",
|
|
||||||
Notifications = "http://localhost:20161",
|
|
||||||
Images = "http://localhost:20182"
|
|
||||||
};
|
|
||||||
s = JsonConvert.SerializeObject(data2);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
NSData data = new NSData()
|
NSData data = new NSData()
|
||||||
{
|
{
|
||||||
API = "http://localhost:2018",
|
API = "http://localhost:2018",
|
||||||
@@ -59,22 +48,49 @@ namespace server
|
|||||||
Images = "http://localhost:20182"
|
Images = "http://localhost:20182"
|
||||||
};
|
};
|
||||||
s = JsonConvert.SerializeObject(data);
|
s = JsonConvert.SerializeObject(data);
|
||||||
}
|
|
||||||
Console.WriteLine("API Response: " + s);
|
Console.WriteLine("API Response: " + s);
|
||||||
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||||
response.ContentLength64 = (long)bytes.Length;
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
Stream outputStream = response.OutputStream;
|
Stream outputStream = response.OutputStream;
|
||||||
outputStream.Write(bytes, 0, bytes.Length);
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
Thread.Sleep(1);
|
Thread.Sleep(400);
|
||||||
outputStream.Close();
|
outputStream.Close();
|
||||||
this.listener.Stop();
|
this.listener.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void StartListen2()
|
||||||
|
{
|
||||||
|
//nameserver is ONLY for 2018
|
||||||
|
this.listener2.Prefixes.Add("http://localhost:56/");
|
||||||
|
for (; ; )
|
||||||
|
{
|
||||||
|
this.listener2.Start();
|
||||||
|
Console.WriteLine("[NameServer2.cs] is listening.");
|
||||||
|
HttpListenerContext context = this.listener2.GetContext();
|
||||||
|
HttpListenerRequest request = context.Request;
|
||||||
|
HttpListenerResponse response = context.Response;
|
||||||
|
string rawUrl = request.RawUrl;
|
||||||
|
string s = "";
|
||||||
|
NSData data = new NSData()
|
||||||
|
{
|
||||||
|
API = "http://localhost:2018",
|
||||||
|
Notifications = "http://localhost:20161",
|
||||||
|
Images = "http://localhost:20182"
|
||||||
|
};
|
||||||
|
s = JsonConvert.SerializeObject(data);
|
||||||
|
Console.WriteLine("API Response: " + s);
|
||||||
|
byte[] bytes = Encoding.UTF8.GetBytes(s);
|
||||||
|
response.ContentLength64 = (long)bytes.Length;
|
||||||
|
Stream outputStream = response.OutputStream;
|
||||||
|
outputStream.Write(bytes, 0, bytes.Length);
|
||||||
|
Thread.Sleep(500);
|
||||||
|
outputStream.Close();
|
||||||
|
this.listener2.Stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
public static string VersionCheckResponse = "{\"ValidVersion\":true}";
|
public static string VersionCheckResponse = "{\"ValidVersion\":true}";
|
||||||
|
|
||||||
public static string BlankResponse = "";
|
public static string BlankResponse = "";
|
||||||
|
|
||||||
public class NSData
|
public class NSData
|
||||||
{
|
{
|
||||||
public string API { get; set; }
|
public string API { get; set; }
|
||||||
@@ -82,39 +98,10 @@ namespace server
|
|||||||
public string Images { get; set; }
|
public string Images { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class NSData2
|
|
||||||
{
|
|
||||||
// Token: 0x17000013 RID: 19
|
|
||||||
// (get) Token: 0x06000040 RID: 64 RVA: 0x00002256 File Offset: 0x00000456
|
|
||||||
// (set) Token: 0x06000041 RID: 65 RVA: 0x0000225E File Offset: 0x0000045E
|
|
||||||
public string Auth { get; set; }
|
|
||||||
|
|
||||||
// Token: 0x17000014 RID: 20
|
|
||||||
// (get) Token: 0x06000042 RID: 66 RVA: 0x00002267 File Offset: 0x00000467
|
|
||||||
// (set) Token: 0x06000043 RID: 67 RVA: 0x0000226F File Offset: 0x0000046F
|
|
||||||
public string API { get; set; }
|
|
||||||
|
|
||||||
// Token: 0x17000015 RID: 21
|
|
||||||
// (get) Token: 0x06000044 RID: 68 RVA: 0x00002278 File Offset: 0x00000478
|
|
||||||
// (set) Token: 0x06000045 RID: 69 RVA: 0x00002280 File Offset: 0x00000480
|
|
||||||
public string WWW { get; set; }
|
|
||||||
|
|
||||||
// Token: 0x17000016 RID: 22
|
|
||||||
// (get) Token: 0x06000046 RID: 70 RVA: 0x00002289 File Offset: 0x00000489
|
|
||||||
// (set) Token: 0x06000047 RID: 71 RVA: 0x00002291 File Offset: 0x00000491
|
|
||||||
public string Notifications { get; set; }
|
|
||||||
|
|
||||||
// Token: 0x17000017 RID: 23
|
|
||||||
// (get) Token: 0x06000048 RID: 72 RVA: 0x0000229A File Offset: 0x0000049A
|
|
||||||
// (set) Token: 0x06000049 RID: 73 RVA: 0x000022A2 File Offset: 0x000004A2
|
|
||||||
public string Images { get; set; }
|
|
||||||
|
|
||||||
// Token: 0x17000018 RID: 24
|
|
||||||
// (get) Token: 0x0600004A RID: 74 RVA: 0x000022AB File Offset: 0x000004AB
|
|
||||||
// (set) Token: 0x0600004B RID: 75 RVA: 0x000022B3 File Offset: 0x000004B3
|
|
||||||
public string Commerce { get; set; }
|
|
||||||
}
|
|
||||||
// Token: 0x04000192 RID: 402
|
// Token: 0x04000192 RID: 402
|
||||||
private HttpListener listener = new HttpListener();
|
private HttpListener listener = new HttpListener();
|
||||||
|
|
||||||
|
private HttpListener listener2 = new HttpListener();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<ApplicationIcon>icon2.ico</ApplicationIcon>
|
<ApplicationIcon>icon2.ico</ApplicationIcon>
|
||||||
<AssemblyName>OpenRec</AssemblyName>
|
<AssemblyName>OpenRec</AssemblyName>
|
||||||
<RootNamespace>OpenRec</RootNamespace>
|
<RootNamespace>OpenRec</RootNamespace>
|
||||||
|
|||||||
19
Program.cs
19
Program.cs
@@ -53,6 +53,7 @@ namespace start
|
|||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Console.Clear();
|
||||||
goto Start;
|
goto Start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -72,16 +73,7 @@ namespace start
|
|||||||
{
|
{
|
||||||
Console.WriteLine("This version of OpenRec is outdated. We recommend you install the latest version, OpenRec " + new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Download/version.txt"));
|
Console.WriteLine("This version of OpenRec is outdated. We recommend you install the latest version, OpenRec " + new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Download/version.txt"));
|
||||||
}
|
}
|
||||||
if (File.Exists("SaveData\\Profile\\userid.txt"))
|
|
||||||
{
|
|
||||||
if (new WebClient().DownloadString("https://raw.githubusercontent.com/recroom2016/OpenRec/master/Update/banned.txt").Contains(File.ReadAllText("SaveData\\Profile\\userid.txt")))
|
|
||||||
{
|
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
|
||||||
Console.WriteLine("You are banned. Using this version of OpenRec will not work, please download OpenRec 0.4.2 or prior.");
|
|
||||||
Console.ForegroundColor = ConsoleColor.Green;
|
|
||||||
bannedflag = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Console.WriteLine("//Custom Room Downloader has been moved to the settings tab!" + Environment.NewLine);
|
Console.WriteLine("//Custom Room Downloader has been moved to the settings tab!" + Environment.NewLine);
|
||||||
Console.WriteLine("(1) What's New" + Environment.NewLine +"(2) Change Settings" + Environment.NewLine + "(3) Modify Profile" + Environment.NewLine + "(4) Build Download Links" + Environment.NewLine + "(5) Start Server");
|
Console.WriteLine("(1) What's New" + Environment.NewLine +"(2) Change Settings" + Environment.NewLine + "(3) Modify Profile" + Environment.NewLine + "(4) Build Download Links" + Environment.NewLine + "(5) Start Server");
|
||||||
string readline = Console.ReadLine();
|
string readline = Console.ReadLine();
|
||||||
@@ -366,7 +358,7 @@ namespace start
|
|||||||
}
|
}
|
||||||
else if (readline2 == "2018")
|
else if (readline2 == "2018")
|
||||||
{
|
{
|
||||||
Console.WriteLine("May, July or September (Beta) 2018: (M, J, S)");
|
Console.WriteLine("May, July or September (SEPTEMBER MIGHT NOT WORK) 2018: (M, J, S)");
|
||||||
string readline3 = Console.ReadLine();
|
string readline3 = Console.ReadLine();
|
||||||
if ((readline3 == "M") || (readline3 == "m"))
|
if ((readline3 == "M") || (readline3 == "m"))
|
||||||
{
|
{
|
||||||
@@ -401,9 +393,12 @@ namespace start
|
|||||||
new APIServer();
|
new APIServer();
|
||||||
new WebSocket();
|
new WebSocket();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
Console.WriteLine(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
public static string msg = "//This is the server sending and recieving data from recroom." + Environment.NewLine + "//Ignore this if you don't know what this means." + Environment.NewLine + "//Please start up the build now.";
|
||||||
public static string version = "";
|
public static string version = "";
|
||||||
public static string appversion = "0.6.9";
|
public static string appversion = "0.6.9";
|
||||||
public static bool bannedflag = false;
|
public static bool bannedflag = false;
|
||||||
|
|||||||
2
Setup.cs
2
Setup.cs
@@ -103,7 +103,7 @@ namespace start
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
api.CustomRooms.RoomGet("gizmoface");
|
api.CustomRooms.RoomGet("gogo9");
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
[487454, 4701796, 1623123, 1423224]
|
[{"UserId":487454,"Reason":"Banned."}, {"UserId":4701796,"Reason":"Banned."}, {"UserId":1623123,"Reason":"Banned."}, {"UserId":1423224,"Reason":"Banned."}]
|
||||||
|
|||||||
Reference in New Issue
Block a user