4 Commits

Author SHA1 Message Date
Nexus
c844d8f17e Update README.md 2022-05-08 23:17:18 +01:00
Nexus
91cb7d5a54 Update README.md 2022-05-08 23:17:07 +01:00
Nexus
f1dfd5ba42 Update README.md 2022-05-08 23:16:52 +01:00
Nexus
938300045c Create README.md 2022-05-08 23:16:19 +01:00
18 changed files with 129 additions and 119 deletions

View File

@@ -681,7 +681,7 @@ namespace server
response.ContentLength64 = (long)bytes.Length;
Stream outputStream = response.OutputStream;
outputStream.Write(bytes, 0, bytes.Length);
Thread.Sleep(400);
Thread.Sleep(20);
outputStream.Close();
this.listener.Stop();

View File

@@ -1 +1 @@
[487454,4701796]
[487454, 4701796]

View File

@@ -1,16 +1,28 @@
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
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
Note: This release DOES NOT feature friending yet! This is just a feature patch before that is released in version 0.7.0.
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
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 room downloading for 2018
@andry6702#9812 - Discovered custom rooms for 2018

View File

@@ -1 +0,0 @@
{"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}}

View File

@@ -1 +1 @@
0.6.95
0.6.1

View File

@@ -54,7 +54,6 @@ namespace api2018
}
}
}
});
}

View File

@@ -51,11 +51,13 @@ namespace api2017
ForceJuniorImages = false,
HasBirthday = true
}
});
}
// Token: 0x06000199 RID: 409 RVA: 0x00002BBE File Offset: 0x00000DBE
public static string playerName()
{
return File.ReadAllText("playerNameConfig.txt");
}
}
}

View File

@@ -55,10 +55,6 @@ 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

View File

@@ -1,7 +0,0 @@
hello beta testers!
please press start openrec at the bottom
and just see if it works with 2016 pls
thanks@!!
-recroom2016

View File

@@ -1 +0,0 @@
https://cdn.discordapp.com/attachments/982455350819188816/982460494759751680/OpenRec.exe

View File

@@ -19,8 +19,7 @@ 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());
@@ -32,65 +31,50 @@ 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 = "";
NSData data = new NSData()
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")
{
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();
}
}
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()
{
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}";
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 BlankResponse = "";
public class NSData
{
public string API { get; set; }
@@ -98,10 +82,39 @@ 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();
}
}

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<ApplicationIcon>icon2.ico</ApplicationIcon>
<AssemblyName>OpenRec</AssemblyName>
<RootNamespace>OpenRec</RootNamespace>

View File

@@ -11,12 +11,10 @@ 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

View File

@@ -53,7 +53,6 @@ namespace start
else
{
Console.Clear();
goto Start;
}
}
@@ -73,7 +72,16 @@ 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();
@@ -255,7 +263,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);
@@ -309,9 +317,7 @@ namespace start
Console.WriteLine("Failed to download profile...");
goto Start;
}
ProfieStealer.ProfileSteal(data2);
Console.Clear();
Console.WriteLine("Success!");
goto Start;
@@ -358,7 +364,7 @@ namespace start
}
else if (readline2 == "2018")
{
Console.WriteLine("May, July or September (SEPTEMBER MIGHT NOT WORK) 2018: (M, J, S)");
Console.WriteLine("May, July or September (Beta) 2018: (M, J, S)");
string readline3 = Console.ReadLine();
if ((readline3 == "M") || (readline3 == "m"))
{
@@ -393,14 +399,11 @@ 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.6.9";
public static string appversion = "0.7.0";
public static bool bannedflag = false;
}

View File

@@ -99,17 +99,13 @@ namespace start
goto tryagain;
tryagain:
if (!File.Exists("SaveData\\Rooms\\Downloaded\\roomname.txt"))
try
{
try
{
api.CustomRooms.RoomGet("gogo9");
}
catch
{
goto tryagain;
}
api.CustomRooms.RoomGet("gizmoface");
}
catch
{
goto tryagain;
}
Console.WriteLine("Done!");
Console.Clear();

View File

@@ -1 +1 @@
[{"UserId":487454,"Reason":"Banned."}, {"UserId":4701796,"Reason":"Banned."}, {"UserId":1623123,"Reason":"Banned."}, {"UserId":1423224,"Reason":"Banned."}]
[487454, 4701796, 1623123, 1423224]