Removed player color generation from the webserver

This commit is contained in:
Bitl 2019-10-22 06:58:32 -07:00
parent 9209adbba9
commit 93316aa57e
4 changed files with 24 additions and 25 deletions

View File

@ -225,7 +225,7 @@ public class SimpleHTTPServer
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
}
} else {
} /*else {
if (context.Request.HttpMethod.Equals("GET") && filename.Contains("bodycolors.rbxm", StringComparison.OrdinalIgnoreCase)) {
string output = WebServerGenerator.GenerateBodyColorsXML();
byte[] input = ASCIIEncoding.UTF8.GetBytes(output);
@ -237,7 +237,7 @@ public class SimpleHTTPServer
} else {
context.Response.StatusCode = (int)HttpStatusCode.NotFound;
}
}
}*/
context.Response.OutputStream.Close();
}
@ -252,6 +252,7 @@ public class SimpleHTTPServer
}
}
/*
public static class WebServerGenerator
{
public static string GenerateBodyColorsXML()
@ -260,4 +261,5 @@ public static class WebServerGenerator
string xml = String.Format(xmltemplate, GlobalVars.HeadColorID, GlobalVars.LeftArmColorID, GlobalVars.LeftLegColorID, GlobalVars.RightArmColorID, GlobalVars.RightLegColorID, GlobalVars.TorsoColorID);
return xml;
}
}
}
*/

View File

@ -128,7 +128,6 @@ namespace NovetusLauncher
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.listBox9 = new System.Windows.Forms.ListBox();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.button61 = new System.Windows.Forms.Button();
this.label8 = new System.Windows.Forms.Label();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.button60 = new System.Windows.Forms.Button();
@ -1169,7 +1168,6 @@ namespace NovetusLauncher
//
// tabPage7
//
this.tabPage7.Controls.Add(this.button61);
this.tabPage7.Controls.Add(this.label8);
this.tabPage7.Controls.Add(this.pictureBox10);
this.tabPage7.Controls.Add(this.button60);
@ -1191,16 +1189,6 @@ namespace NovetusLauncher
this.tabPage7.Text = "OTHER";
this.tabPage7.UseVisualStyleBackColor = true;
//
// button61
//
this.button61.Location = new System.Drawing.Point(368, 191);
this.button61.Name = "button61";
this.button61.Size = new System.Drawing.Size(92, 42);
this.button61.TabIndex = 13;
this.button61.Text = "Generate Charapp";
this.button61.UseVisualStyleBackColor = true;
this.button61.Click += new System.EventHandler(this.button61_Click);
//
// label8
//
this.label8.Location = new System.Drawing.Point(293, 6);
@ -1493,6 +1481,5 @@ namespace NovetusLauncher
private System.Windows.Forms.Button button60;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.PictureBox pictureBox10;
private System.Windows.Forms.Button button61;
}
}

View File

@ -1279,6 +1279,7 @@ namespace NovetusLauncher
}
}
/*
private void button61_Click(object sender, EventArgs e)
{
try
@ -1287,16 +1288,24 @@ namespace NovetusLauncher
{
string IP = SecurityFuncs.GetExternalIPAddress();
string localWebServerURL = "http://" + IP + ":" + GlobalVars.WebServer.Port.ToString();
string localWebServer_BodyColors = localWebServerURL + "/charcustom/bodycolors.rbxm";
string localWebServer_CustomPlayerDir = localWebServerURL + "/charcustom/";
string localWebServer_HatDir = localWebServer_CustomPlayerDir + "hats/";
string localWebServer_FaceDir = localWebServer_CustomPlayerDir + "faces/";
string localWebServer_HeadDir = localWebServer_CustomPlayerDir + "heads/";
string localWebServer_TShirtDir = localWebServer_CustomPlayerDir + "tshirts/";
string localWebServer_ShirtDir = localWebServer_CustomPlayerDir + "shirts/";
string localWebServer_PantsDir = localWebServer_CustomPlayerDir + "pants/";
string localWebServer_ExtraDir = localWebServer_CustomPlayerDir + "custom/";
string localWebServer_BodyColors = localWebServer_CustomPlayerDir + "bodycolors.rbxm";
string charapp = localWebServer_BodyColors + ";" +
GlobalVars.WebServer_HatDir + GlobalVars.Custom_Hat1ID_Offline + ";" +
GlobalVars.WebServer_HatDir + GlobalVars.Custom_Hat2ID_Offline + ";" +
GlobalVars.WebServer_HatDir + GlobalVars.Custom_Hat3ID_Offline + ";" +
GlobalVars.WebServer_HeadDir + GlobalVars.Custom_Head_Offline + ";" +
GlobalVars.WebServer_FaceDir + GlobalVars.Custom_Face_Offline + ";" +
GlobalVars.WebServer_TShirtDir + GlobalVars.Custom_T_Shirt_Offline + ";" +
GlobalVars.WebServer_ShirtDir + GlobalVars.Custom_Shirt_Offline + ";" +
GlobalVars.WebServer_PantsDir + GlobalVars.WebServer_PantsDir;
localWebServer_HatDir + GlobalVars.Custom_Hat1ID_Offline + ";" +
localWebServer_HatDir + GlobalVars.Custom_Hat2ID_Offline + ";" +
localWebServer_HatDir + GlobalVars.Custom_Hat3ID_Offline + ";" +
localWebServer_HeadDir + GlobalVars.Custom_Head_Offline + ";" +
localWebServer_FaceDir + GlobalVars.Custom_Face_Offline + ";" +
localWebServer_TShirtDir + GlobalVars.Custom_T_Shirt_Offline + ";" +
localWebServer_ShirtDir + GlobalVars.Custom_Shirt_Offline + ";" +
localWebServer_PantsDir + GlobalVars.Custom_Pants_Offline;
textBox1.Text = charapp;
GlobalVars.CharacterID = charapp;
}
@ -1314,5 +1323,6 @@ namespace NovetusLauncher
GlobalVars.CharacterID = "";
}
}
*/
}
}