31 Commits

Author SHA1 Message Date
recroom2016
5b97080e3a Update version.txt 2022-07-21 23:58:58 -04:00
recroom2016tutorial
0555b44676 Merge branch 'master' of https://github.com/recroom2016/OpenRec 2022-07-21 23:49:41 -04:00
recroom2016tutorial
869f5ff80b OPENREC 7 2022-07-21 23:49:29 -04:00
recroom2016
bb7c545caf Update changelog.txt 2022-06-08 20:57:25 -04:00
recroom2016
1bdf95f5e9 Create configv2.txt 2022-06-08 20:37:47 -04:00
recroom2016
74c8487c65 Add files via upload 2022-06-06 17:49:50 -04:00
recroom2016
a331672d4f Delete A_black_image.jpg.jpg 2022-06-06 17:49:06 -04:00
recroom2016
d8c03700cc Add files via upload 2022-06-06 17:41:50 -04:00
recroom2016
32ba6f8d12 Add files via upload 2022-06-06 17:33:30 -04:00
recroom2016
5e276a02cd Update changelog.txt 2022-06-05 14:36:51 -04:00
recroom2016
f4547c9dc3 Update changelog.txt 2022-06-05 14:36:23 -04:00
recroom2016
bf34030107 Update changelog.txt 2022-06-05 14:33:23 -04:00
recroom2016
154220dace Create changelog.txt 2022-06-05 14:30:16 -04:00
recroom2016tutorial
696feb3887 Merge branch 'master' of https://github.com/recroom2016/OpenRec 2022-06-04 23:07:36 -04:00
recroom2016tutorial
02d5026f7a brhgdfgdf 2022-06-04 23:07:00 -04:00
Nexus
07aff4769c Update banned.txt 2022-06-04 17:50:57 +01:00
recroom2016
25bb2f2db8 Update download.txt 2022-06-03 22:14:07 -04:00
recroom2016
0f1955581b Create download.txt 2022-06-03 21:31:34 -04:00
Nexus
b81f3a1945 Update banned.txt 2022-05-20 17:42:24 +01:00
Nexus
f80b4e1ea2 Update banned.txt 2022-05-20 17:40:18 +01:00
Nexus
16c581c73f Update banned.txt 2022-05-20 17:32:01 +01:00
Nexus
fd2c36f3dd Update banned.txt 2022-05-20 17:28:24 +01:00
Nexus
17f85974bd Update banned.txt 2022-05-17 18:33:21 +01:00
Nexus
3d9f7cc873 Update banned.txt 2022-05-17 18:32:40 +01:00
Nexus
92a031fc7f Update banned.txt 2022-05-17 18:30:18 +01:00
recroom2016
8a5396e8df Update banned.txt 2022-05-14 22:20:49 -04:00
recroom2016
9bac769056 Update banned.txt 2022-05-14 22:17:09 -04:00
recroom2016
38af2edbd8 Update banned.txt 2022-05-14 22:12:53 -04:00
recroom2016
5b5712bcc1 Update changelog.txt 2022-05-11 22:26:44 -04:00
recroom2016
51c6a2ace4 Update changelog.txt 2022-05-11 22:24:50 -04:00
recroom2016
5aa4f2c4ae Update version.txt 2022-05-11 22:22:53 -04:00
17 changed files with 100 additions and 118 deletions

View File

@@ -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();

View File

@@ -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
View 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}}

View File

@@ -1 +1 @@
0.6.1 0.6.95

View File

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

View File

@@ -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");
}
} }
} }

View File

@@ -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));
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

BIN
Launcher/Untitled.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

7
Launcher/changelog.txt Normal file
View 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
View File

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

View File

@@ -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();
} }
} }

View File

@@ -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>

View File

@@ -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;

View File

@@ -103,7 +103,7 @@ namespace start
{ {
try try
{ {
api.CustomRooms.RoomGet("gizmoface"); api.CustomRooms.RoomGet("gogo9");
} }
catch catch
{ {

View File

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