mirror of
https://github.com/recroom2016/OpenRec.git
synced 2026-04-22 21:25:51 +00:00
Compare commits
34 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 | ||
|
|
a7ace2f895 | ||
|
|
a2775a6d95 | ||
|
|
a5ef24a1e1 |
@@ -681,7 +681,7 @@ namespace server
|
||||
response.ContentLength64 = (long)bytes.Length;
|
||||
Stream outputStream = response.OutputStream;
|
||||
outputStream.Write(bytes, 0, bytes.Length);
|
||||
Thread.Sleep(20);
|
||||
Thread.Sleep(400);
|
||||
outputStream.Close();
|
||||
this.listener.Stop();
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
[487454, 4701796]
|
||||
[487454,4701796]
|
||||
|
||||
@@ -1,28 +1,16 @@
|
||||
Patch v0.6.1:
|
||||
-Fixed 2016
|
||||
-Fixed room issues in 2018
|
||||
-Added Vault Clothing items to September 2018
|
||||
-September 2018 slightly more stable
|
||||
-Improved overall server speed
|
||||
-Fixed the wrongful ban issue
|
||||
Feature Patch v0.6.9: sex build
|
||||
-Added tutorial and info hints
|
||||
-Added custom rooms back into 2018 (no saving yet)
|
||||
-Added Profile Downloader
|
||||
-Added build links tab
|
||||
-Improved profile image changing
|
||||
-Updated the UI more
|
||||
|
||||
Fifth public release of OpenRec, and the new biggest update to date.
|
||||
|
||||
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
|
||||
Note: This release DOES NOT feature friending yet! This is just a feature patch before that is released in version 0.7.0.
|
||||
|
||||
Credits:
|
||||
@Nexus0821 - Programmed and helped add in a lot of new features
|
||||
|
||||
@LucasOnDiscord#0210 - Adding potions
|
||||
@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,
|
||||
HasBirthday = true
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// Token: 0x06000199 RID: 409 RVA: 0x00002BBE File Offset: 0x00000DBE
|
||||
public static string playerName()
|
||||
{
|
||||
return File.ReadAllText("playerNameConfig.txt");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,10 @@ namespace server
|
||||
{
|
||||
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));
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
|
||||
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
|
||||
135
NameServer.cs
135
NameServer.cs
@@ -19,7 +19,8 @@ namespace server
|
||||
{
|
||||
Console.WriteLine("[NameServer.cs] has started.");
|
||||
new Thread(new ThreadStart(this.StartListen)).Start();
|
||||
}
|
||||
new Thread(new ThreadStart(this.StartListen2)).Start();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("An Exception Occurred while Listening :" + ex.ToString());
|
||||
@@ -31,50 +32,65 @@ namespace server
|
||||
{
|
||||
//nameserver is ONLY for 2018
|
||||
this.listener.Prefixes.Add("http://localhost:20181/");
|
||||
for (; ; )
|
||||
{
|
||||
this.listener.Start();
|
||||
Console.WriteLine("[NameServer.cs] is listening.");
|
||||
HttpListenerContext context = this.listener.GetContext();
|
||||
HttpListenerRequest request = context.Request;
|
||||
HttpListenerResponse response = context.Response;
|
||||
string rawUrl = request.RawUrl;
|
||||
string s = "";
|
||||
if (Program.version == "2019")
|
||||
for (; ; )
|
||||
{
|
||||
this.listener.Start();
|
||||
Console.WriteLine("[NameServer.cs] is listening.");
|
||||
HttpListenerContext context = this.listener.GetContext();
|
||||
HttpListenerRequest request = context.Request;
|
||||
HttpListenerResponse response = context.Response;
|
||||
string rawUrl = request.RawUrl;
|
||||
string s = "";
|
||||
NSData data = new NSData()
|
||||
{
|
||||
NSData2 data2 = new NSData2()
|
||||
{
|
||||
API = "http://localhost:2018",
|
||||
Notifications = "http://localhost:20161",
|
||||
Images = "http://localhost:20182"
|
||||
};
|
||||
s = JsonConvert.SerializeObject(data2);
|
||||
}
|
||||
else
|
||||
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(400);
|
||||
outputStream.Close();
|
||||
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()
|
||||
{
|
||||
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(1);
|
||||
outputStream.Close();
|
||||
this.listener.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
public static string VersionCheckResponse = "{\"ValidVersion\":true}";
|
||||
|
||||
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 BlankResponse = "";
|
||||
|
||||
public class NSData
|
||||
{
|
||||
public string API { get; set; }
|
||||
@@ -82,39 +98,10 @@ namespace server
|
||||
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
|
||||
private HttpListener listener = new HttpListener();
|
||||
|
||||
private HttpListener listener2 = new HttpListener();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ApplicationIcon>icon2.ico</ApplicationIcon>
|
||||
<AssemblyName>OpenRec</AssemblyName>
|
||||
<RootNamespace>OpenRec</RootNamespace>
|
||||
|
||||
@@ -11,10 +11,12 @@ namespace api
|
||||
{
|
||||
public static void ProfileSteal(string data)
|
||||
{
|
||||
List<Root> profile = JsonConvert.DeserializeObject<List<Root>>(data);
|
||||
File.WriteAllText("SaveData\\Profile\\username.txt", profile[0].username);
|
||||
byte[] profileimage = new WebClient().DownloadData("https://img.rec.net/" + profile[0].profileImage + "?cropSquare=true&width=192&height=192");
|
||||
File.WriteAllBytes("SaveData\\profileimage.png", profileimage);
|
||||
List<Root> profile = JsonConvert.DeserializeObject<List<Root>>(data);
|
||||
File.WriteAllText("SaveData\\Profile\\username.txt", profile[0].username);
|
||||
byte[] profileimage = new WebClient().DownloadData("https://img.rec.net/" + profile[0].profileImage + "?cropSquare=true&width=192&height=192");
|
||||
File.WriteAllBytes("SaveData\\profileimage.png", profileimage);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class Root
|
||||
|
||||
23
Program.cs
23
Program.cs
@@ -53,6 +53,7 @@ namespace start
|
||||
|
||||
else
|
||||
{
|
||||
Console.Clear();
|
||||
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"));
|
||||
}
|
||||
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("(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();
|
||||
@@ -263,7 +255,7 @@ namespace start
|
||||
Console.WriteLine("Failed to download profile...");
|
||||
goto Start;
|
||||
}
|
||||
;
|
||||
|
||||
List<ProfieStealer.Root> profile = JsonConvert.DeserializeObject<List<ProfieStealer.Root>>(data);
|
||||
byte[] profileimage = new WebClient().DownloadData("https://img.rec.net/" + profile[0].profileImage + "?cropSquare=true&width=192&height=192");
|
||||
File.WriteAllBytes("SaveData\\profileimage.png", profileimage);
|
||||
@@ -317,7 +309,9 @@ namespace start
|
||||
Console.WriteLine("Failed to download profile...");
|
||||
goto Start;
|
||||
}
|
||||
|
||||
ProfieStealer.ProfileSteal(data2);
|
||||
|
||||
Console.Clear();
|
||||
Console.WriteLine("Success!");
|
||||
goto Start;
|
||||
@@ -364,7 +358,7 @@ namespace start
|
||||
}
|
||||
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();
|
||||
if ((readline3 == "M") || (readline3 == "m"))
|
||||
{
|
||||
@@ -399,11 +393,14 @@ namespace start
|
||||
new APIServer();
|
||||
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 appversion = "0.7.0";
|
||||
public static string appversion = "0.6.9";
|
||||
public static bool bannedflag = false;
|
||||
}
|
||||
|
||||
|
||||
16
Setup.cs
16
Setup.cs
@@ -99,13 +99,17 @@ namespace start
|
||||
goto tryagain;
|
||||
|
||||
tryagain:
|
||||
try
|
||||
if (!File.Exists("SaveData\\Rooms\\Downloaded\\roomname.txt"))
|
||||
{
|
||||
api.CustomRooms.RoomGet("gizmoface");
|
||||
}
|
||||
catch
|
||||
{
|
||||
goto tryagain;
|
||||
try
|
||||
{
|
||||
api.CustomRooms.RoomGet("gogo9");
|
||||
}
|
||||
catch
|
||||
{
|
||||
goto tryagain;
|
||||
}
|
||||
|
||||
}
|
||||
Console.WriteLine("Done!");
|
||||
Console.Clear();
|
||||
|
||||
@@ -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