This commit is contained in:
Bitl 2017-05-27 21:00:10 -07:00
parent 4b4d4a8d44
commit 116dec61f2
13 changed files with 11722 additions and 16 deletions

View File

@ -0,0 +1,101 @@
/*
* Created by SharpDevelop.
* User: BITL
* Date: 5/24/2017
* Time: 7:01 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Xml;
using System.IO;
namespace BodyColorGen
{
class Program
{
public static void Main(string[] args)
{
Console.Title = "RBXLegacy - Body Color Generator";
int[] colorArray = new int[32] {1,208,194,199,26,21,24,226,23,107,102,11,45,135,106,105,141,28,37,119,29,151,38,192,104,9,101,5,153,217,18,125};
int HeadColor,TorsoColor,LArmColor,RArmColor,LLegColor,RLegColor;
while (true)
{
Random rand = new Random();
HeadColor = colorArray[rand.Next(colorArray.Length)];
TorsoColor = colorArray[rand.Next(colorArray.Length)];
LArmColor = colorArray[rand.Next(colorArray.Length)];
RArmColor = colorArray[rand.Next(colorArray.Length)];
LLegColor = colorArray[rand.Next(colorArray.Length)];
RLegColor = colorArray[rand.Next(colorArray.Length)];
string dirname = "bodycolors/";
if(!Directory.Exists(dirname))
{
System.IO.Directory.CreateDirectory(dirname);
}
string filename = dirname + HeadColor + "-" + TorsoColor + "-" + LArmColor + "-" + RArmColor + "-" + LLegColor + "-" + RLegColor +".rbxm";
if (!File.Exists(filename))
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Writing " + filename);
XmlTextWriter writer = new XmlTextWriter(filename, System.Text.Encoding.UTF8);
writer.Formatting = Formatting.Indented;
writer.Indentation = 3;
writer.WriteStartDocument(true);
writer.WriteStartElement("roblox");
writer.WriteAttributeString("xmlns:xmime", "http://www.w3.org/2005/05/xmlmime");
writer.WriteAttributeString("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
writer.WriteAttributeString("xsi:noNamespaceSchemaLocation", "http://www.roblox.com/roblox.xsd");
writer.WriteAttributeString("version", "4");
writer.WriteStartElement("External");
writer.WriteString("null");
writer.WriteEndElement();
writer.WriteStartElement("External");
writer.WriteString("nil");
writer.WriteEndElement();
writer.WriteStartElement("Item");
writer.WriteAttributeString("class", "BodyColors");
writer.WriteStartElement("Properties");
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "HeadColor");
writer.WriteString(HeadColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "LeftArmColor");
writer.WriteString(LArmColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "LeftLegColor");
writer.WriteString(LLegColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("string");
writer.WriteAttributeString("name", "Name");
writer.WriteString("Body Colors");
writer.WriteEndElement();
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "RightArmColor");
writer.WriteString(RArmColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "RightLegColor");
writer.WriteString(RLegColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("int");
writer.WriteAttributeString("name", "TorsoColor");
writer.WriteString(TorsoColor.ToString());
writer.WriteEndElement();
writer.WriteStartElement("bool");
writer.WriteAttributeString("name", "archivable");
writer.WriteString("true");
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndDocument();
writer.Close();
}
}
}
}
}

View File

@ -716,7 +716,6 @@ namespace RBXLegacyLauncher
{
GlobalVars.RobloxPort = GlobalVars.DefaultRobloxPort;
}
label38.Text = GlobalVars.RobloxPort.ToString();
}
@ -898,12 +897,15 @@ namespace RBXLegacyLauncher
//Command proxy
int totalLines = richTextBox1.Lines.Length;
string lastLine = richTextBox1.Lines[totalLines - 1];
if (e.KeyCode == Keys.Enter)
if (totalLines > 0)
{
richTextBox1.AppendText(Environment.NewLine);
ConsoleProcessCommands(lastLine);
string lastLine = richTextBox1.Lines[totalLines - 1];
if (e.KeyCode == Keys.Enter)
{
richTextBox1.AppendText(Environment.NewLine);
ConsoleProcessCommands(lastLine);
}
}
}
@ -966,12 +968,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Client Loaded.", 4, false);
ConsolePrint("Client Loaded.", 4);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1091,12 +1093,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Play Solo Loaded.", 4, false);
ConsolePrint("Play Solo Loaded.", 4);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1119,12 +1121,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Server Loaded.", 4, false);
ConsolePrint("Server Loaded.", 4);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1146,12 +1148,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Server Loaded in No3d.", 4, false);
ConsolePrint("Server Loaded in No3d.", 4);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1172,12 +1174,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Studio Loaded.", 4, false);
ConsolePrint("Studio Loaded.", 4);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB