This commit is contained in:
Bitl 2017-05-27 09:25:49 -07:00
parent 5120c58e2b
commit 4b4d4a8d44
24 changed files with 653 additions and 351 deletions

View File

@ -0,0 +1,18 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.4
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BodyColorGen", "BodyColorGen\BodyColorGen.csproj", "{7368B594-5126-4A81-B047-E5A2580D968C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7368B594-5126-4A81-B047-E5A2580D968C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7368B594-5126-4A81-B047-E5A2580D968C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7368B594-5126-4A81-B047-E5A2580D968C}.Release|Any CPU.Build.0 = Release|Any CPU
{7368B594-5126-4A81-B047-E5A2580D968C}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<ProjectGuid>{7368B594-5126-4A81-B047-E5A2580D968C}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Exe</OutputType>
<RootNamespace>BodyColorGen</RootNamespace>
<AssemblyName>BodyColorGen</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<ApplicationIcon>Resources\RBXLegacyIcon.ico</ApplicationIcon>
<NoWin32Manifest>False</NoWin32Manifest>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,105 @@
/*
* 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;
int FleshColor,ShirtColor,PantsColor;
while (true)
{
Random rand = new Random();
FleshColor = rand.Next(colorArray.Length);
ShirtColor = rand.Next(colorArray.Length);
PantsColor = rand.Next(colorArray.Length);
HeadColor = colorArray[FleshColor];
TorsoColor = colorArray[ShirtColor];
LArmColor = colorArray[FleshColor];
RArmColor = colorArray[FleshColor];
LLegColor = colorArray[PantsColor];
RLegColor = colorArray[PantsColor];
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

@ -0,0 +1,31 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("BodyColorGen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BodyColorGen")]
[assembly: AssemblyCopyright("Copyright 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View File

@ -1,5 +1,3 @@
rbxversion = version();
print("ROBLOX Client version '" .. rbxversion .. "' loaded.");
--set this to pre-alpha, alpha, beta, pre-gamma, gamma, delta-gamma or delta.
rbxlegacyversion = ""
if (rbxlegacyversion == "pre-alpha") then --mid-2008 and below. currently for the modified clients.
@ -52,6 +50,9 @@ elseif (rbxlegacyversion == "delta") then -- late 2010-early 2011.
end))
end
rbxversion = version();
print("ROBLOX Client version '" .. rbxversion .. "' loaded.");
HeadColor=BrickColor.DarkGray();
TorsoColor=BrickColor.DarkGray();
LArmColor=BrickColor.DarkGray();
@ -59,9 +60,9 @@ LLegColor=BrickColor.DarkGray();
RArmColor=BrickColor.DarkGray();
RLegColor=BrickColor.DarkGray();
--localized hats.
Hat1 = "fedora.rbxm"
Hat2 = "fedora.rbxm"
Hat3 = "fedora.rbxm"
Hat1 = "NoHat.rbxm";
Hat2 = "NoHat.rbxm";
Hat3 = "NoHat.rbxm";
function PlayerColorize()
if (rbxlegacyversion == "pre-alpha") then
@ -404,7 +405,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,
Hat1 = "rbxasset://charcustom/hats/"..Hat1ID
Hat2 = "rbxasset://charcustom/hats/"..Hat2ID
Hat3 = "rbxasset://charcustom/hats/"..Hat3ID
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
local charapp = "rbxasset://charcustom/bodycolors/"..HeadColorID.."-"..TorsoColorID.."-"..LeftArmColorID.."-"..RightArmColorID.."-"..LeftLegColorID.."-"..RightLegColorID..".rbxm;"..Hat1..";"..Hat2..";"..Hat3
player.CharacterAppearance = charapp
else
Player.CharacterAppearance=0;
@ -514,7 +515,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,
Hat1 = "rbxasset://charcustom/hats/"..Hat1ID
Hat2 = "rbxasset://charcustom/hats/"..Hat2ID
Hat3 = "rbxasset://charcustom/hats/"..Hat3ID
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
local charapp = "rbxasset://charcustom/bodycolors/"..HeadColorID.."-"..TorsoColorID.."-"..LeftArmColorID.."-"..RightArmColorID.."-"..LeftLegColorID.."-"..RightLegColorID..".rbxm;"..Hat1..";"..Hat2..";"..Hat3
player.CharacterAppearance = charapp
else
Player.CharacterAppearance=0;
@ -524,7 +525,6 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,
game:GetService("Visit");
game.GuiRoot.MainMenu.Tools:Remove()
game.GuiRoot.MainMenu.Insert:Remove()
game.GuiRoot.RightPalette.ReportAbuse:Remove()
else
pcall(function() game:SetPlaceID(-1, false) end);
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
@ -552,7 +552,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,
Hat1 = "rbxasset://charcustom/hats/"..Hat1ID
Hat2 = "rbxasset://charcustom/hats/"..Hat2ID
Hat3 = "rbxasset://charcustom/hats/"..Hat3ID
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
local charapp = "rbxasset://charcustom/bodycolors/"..HeadColorID.."-"..TorsoColorID.."-"..LeftArmColorID.."-"..RightArmColorID.."-"..LeftLegColorID.."-"..RightLegColorID..".rbxm;"..Hat1..";"..Hat2..";"..Hat3
player.CharacterAppearance = charapp
else
player.CharacterAppearance=0;
@ -615,7 +615,6 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,
game.GuiRoot.MainMenu["Tools"]:Remove()
game.GuiRoot.MainMenu["Insert"]:Remove()
end
game.GuiRoot.RightPalette.ReportAbuse:Remove()
end)
if not suc then
@ -654,11 +653,12 @@ function CSSolo(UserID,PlayerName,BodyColors,OutfitID,Hat1ID,Hat2ID,Hat3ID,HeadC
Hat1 = "rbxasset://charcustom/hats/"..Hat1ID
Hat2 = "rbxasset://charcustom/hats/"..Hat2ID
Hat3 = "rbxasset://charcustom/hats/"..Hat3ID
local charapp = "rbxasset://charcustom/CharacterColors.rbxm;"..Hat1..";"..Hat2..";"..Hat3
local charapp = "rbxasset://charcustom/bodycolors/"..HeadColorID.."-"..TorsoColorID.."-"..LeftArmColorID.."-"..RightArmColorID.."-"..LeftLegColorID.."-"..RightLegColorID..".rbxm;"..Hat1..";"..Hat2..";"..Hat3
plr.CharacterAppearance = charapp
else
plr.CharacterAppearance=0;
end
game:GetService("Visit");
while true do wait()
if (plr.Character.Humanoid.Health == 0) then

View File

@ -176,42 +176,33 @@ namespace RBXLegacyLauncher
void ChangeColorOfPart(int ColorID, Color ButtonColor)
{
if (SelectedPart == "Head")
if (SelectedPart == "Head" || SelectedPart == "Right Arm" || SelectedPart == "Left Arm")
{
HeadColor = ColorID;
GlobalVars.HeadColorID = 24;
GlobalVars.HeadColorID = ColorID;
button1.BackColor = ButtonColor;
RArmColor = ColorID;
GlobalVars.RightArmColorID = ColorID;
button3.BackColor = ButtonColor;
LArmColor = ColorID;
GlobalVars.LeftArmColorID = ColorID;
button4.BackColor = ButtonColor;
}
else if (SelectedPart == "Right Leg" || SelectedPart == "Left Leg")
{
RLegColor = ColorID;
GlobalVars.RightLegColorID = ColorID;
button5.BackColor = ButtonColor;
LLegColor = ColorID;
GlobalVars.LeftLegColorID = ColorID;
button6.BackColor = ButtonColor;
}
else if (SelectedPart == "Torso")
{
TorsoColor = ColorID;
GlobalVars.TorsoColorID = 23;
GlobalVars.TorsoColorID = ColorID;
button2.BackColor = ButtonColor;
}
else if (SelectedPart == "Right Arm")
{
RArmColor = ColorID;
GlobalVars.RightArmColorID = 24;
button3.BackColor = ButtonColor;
}
else if (SelectedPart == "Left Arm")
{
LArmColor = ColorID;
GlobalVars.LeftArmColorID = 24;
button4.BackColor = ButtonColor;
}
else if (SelectedPart == "Right Leg")
{
RLegColor = ColorID;
GlobalVars.RightLegColorID = 119;
button5.BackColor = ButtonColor;
}
else if (SelectedPart == "Left Leg")
{
LLegColor = ColorID;
GlobalVars.LeftLegColorID = 119;
button6.BackColor = ButtonColor;
}
}
void Button7Click(object sender, EventArgs e)

View File

@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -48,15 +48,15 @@ namespace RBXLegacyLauncher
//
// label17
//
this.label17.Location = new System.Drawing.Point(111, 245);
this.label17.Location = new System.Drawing.Point(115, 245);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(35, 18);
this.label17.Size = new System.Drawing.Size(35, 14);
this.label17.TabIndex = 37;
this.label17.Text = "Hat 3";
//
// label16
//
this.label16.Location = new System.Drawing.Point(111, 157);
this.label16.Location = new System.Drawing.Point(115, 157);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(35, 13);
this.label16.TabIndex = 36;
@ -64,7 +64,7 @@ namespace RBXLegacyLauncher
//
// label12
//
this.label12.Location = new System.Drawing.Point(111, 69);
this.label12.Location = new System.Drawing.Point(115, 69);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(35, 13);
this.label12.TabIndex = 35;
@ -73,7 +73,7 @@ namespace RBXLegacyLauncher
// listBox3
//
this.listBox3.FormattingEnabled = true;
this.listBox3.Location = new System.Drawing.Point(9, 266);
this.listBox3.Location = new System.Drawing.Point(9, 262);
this.listBox3.Name = "listBox3";
this.listBox3.Size = new System.Drawing.Size(243, 69);
this.listBox3.TabIndex = 34;
@ -112,7 +112,7 @@ namespace RBXLegacyLauncher
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(259, 344);
this.ClientSize = new System.Drawing.Size(259, 339);
this.Controls.Add(this.label17);
this.Controls.Add(this.label16);
this.Controls.Add(this.label12);

View File

@ -32,6 +32,9 @@ namespace RBXLegacyLauncher
void CharacterCustomizationLoad(object sender, EventArgs e)
{
listBox1.Items.Clear();
listBox2.Items.Clear();
listBox3.Items.Clear();
string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats";
if (Directory.Exists(hatdir))
{
@ -39,7 +42,17 @@ namespace RBXLegacyLauncher
FileInfo[] Files = dinfo.GetFiles("*.rbxm");
foreach( FileInfo file in Files )
{
listBox1.Items.Add(file.Name);
if (file.Name.Equals(String.Empty))
{
continue;
}
if (file.Name.Equals("TeapotTurret.rbxm") && GlobalVars.AdminMode != true)
{
continue;
}
listBox1.Items.Add(file.Name);
listBox2.Items.Add(file.Name);
listBox3.Items.Add(file.Name);
}
@ -49,24 +62,21 @@ namespace RBXLegacyLauncher
listBox1.Enabled = true;
listBox2.Enabled = true;
listBox3.Enabled = true;
button1.Enabled = true;
}
else
{
listBox1.Items.Add("Offline character customization is not supported");
listBox1.Items.Add("Hats are not supported");
listBox1.Items.Add("on this client.");
listBox1.Enabled = false;
listBox2.Enabled = false;
listBox3.Enabled = false;
button1.Enabled = false;
listBox3.Enabled = false;
}
}
void Button1Click(object sender, EventArgs e)
{
//CharacterColors ccol = new CharacterColors();
//ccol.Show();
MessageBox.Show("Coming Soon.");
CharacterColors ccol = new CharacterColors();
ccol.Show();
}
void ListBox1SelectedIndexChanged(object sender, EventArgs e)

View File

@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -30,6 +30,7 @@
public static bool LoadsAssetsOnline = false;
public static bool ModernClient = false;
public static bool SupportsCharacterCustomization = false;
public static bool AdminMode = false;
//clientinfocreator
public static bool ClientCreator_UsesPlayerName = false;
public static bool ClientCreator_UsesID = false;

View File

@ -62,6 +62,21 @@ namespace RBXLegacyLauncher
this.label30 = new System.Windows.Forms.Label();
this.listBox2 = new System.Windows.Forms.ListBox();
this.label18 = new System.Windows.Forms.Label();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.button17 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.label38 = new System.Windows.Forms.Label();
this.label39 = new System.Windows.Forms.Label();
this.label37 = new System.Windows.Forms.Label();
this.label36 = new System.Windows.Forms.Label();
this.listBox4 = new System.Windows.Forms.ListBox();
this.listBox3 = new System.Windows.Forms.ListBox();
this.label21 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.label40 = new System.Windows.Forms.Label();
this.button11 = new System.Windows.Forms.Button();
@ -81,21 +96,8 @@ namespace RBXLegacyLauncher
this.textBox3 = new System.Windows.Forms.TextBox();
this.label29 = new System.Windows.Forms.Label();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.button17 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.label38 = new System.Windows.Forms.Label();
this.label39 = new System.Windows.Forms.Label();
this.label37 = new System.Windows.Forms.Label();
this.label36 = new System.Windows.Forms.Label();
this.listBox4 = new System.Windows.Forms.ListBox();
this.listBox3 = new System.Windows.Forms.ListBox();
this.label21 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
@ -125,8 +127,9 @@ namespace RBXLegacyLauncher
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage6.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage7.SuspendLayout();
this.tabPage4.SuspendLayout();
this.SuspendLayout();
//
@ -150,8 +153,9 @@ namespace RBXLegacyLauncher
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Controls.Add(this.tabPage6);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Controls.Add(this.tabPage7);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tabControl1.Location = new System.Drawing.Point(12, 137);
@ -179,7 +183,7 @@ namespace RBXLegacyLauncher
this.tabPage1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.tabPage1.Size = new System.Drawing.Size(405, 284);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "JOIN SERVER";
this.tabPage1.Text = "JOIN";
this.tabPage1.ToolTipText = "Join a server via IP Address";
this.tabPage1.UseVisualStyleBackColor = true;
//
@ -285,7 +289,7 @@ namespace RBXLegacyLauncher
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(405, 284);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "START SERVER";
this.tabPage2.Text = "HOST";
this.tabPage2.ToolTipText = "Start a server for other players to play";
this.tabPage2.UseVisualStyleBackColor = true;
//
@ -430,6 +434,155 @@ namespace RBXLegacyLauncher
this.label18.TabIndex = 0;
this.label18.Text = "CLIENT INFORMATION:";
//
// tabPage6
//
this.tabPage6.Controls.Add(this.button17);
this.tabPage6.Controls.Add(this.button16);
this.tabPage6.Controls.Add(this.button15);
this.tabPage6.Controls.Add(this.button14);
this.tabPage6.Controls.Add(this.button13);
this.tabPage6.Controls.Add(this.button12);
this.tabPage6.Controls.Add(this.label38);
this.tabPage6.Controls.Add(this.label39);
this.tabPage6.Controls.Add(this.label37);
this.tabPage6.Controls.Add(this.label36);
this.tabPage6.Controls.Add(this.listBox4);
this.tabPage6.Controls.Add(this.listBox3);
this.tabPage6.Controls.Add(this.label21);
this.tabPage6.Controls.Add(this.label14);
this.tabPage6.Location = new System.Drawing.Point(4, 22);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
this.tabPage6.Size = new System.Drawing.Size(405, 284);
this.tabPage6.TabIndex = 6;
this.tabPage6.Text = "SAVED";
this.tabPage6.ToolTipText = "Lists all your saved servers and ports";
this.tabPage6.UseVisualStyleBackColor = true;
//
// button17
//
this.button17.Location = new System.Drawing.Point(213, 223);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(54, 23);
this.button17.TabIndex = 13;
this.button17.Text = "Add";
this.button17.UseVisualStyleBackColor = true;
this.button17.Click += new System.EventHandler(this.Button17Click);
//
// button16
//
this.button16.Location = new System.Drawing.Point(3, 223);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(60, 23);
this.button16.TabIndex = 12;
this.button16.Text = "Add";
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.Button16Click);
//
// button15
//
this.button15.Location = new System.Drawing.Point(339, 223);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(60, 23);
this.button15.TabIndex = 11;
this.button15.Text = "Reset";
this.button15.UseVisualStyleBackColor = true;
this.button15.Click += new System.EventHandler(this.Button15Click);
//
// button14
//
this.button14.Location = new System.Drawing.Point(137, 223);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(55, 23);
this.button14.TabIndex = 10;
this.button14.Text = "Reset";
this.button14.UseVisualStyleBackColor = true;
this.button14.Click += new System.EventHandler(this.Button14Click);
//
// button13
//
this.button13.Location = new System.Drawing.Point(273, 223);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(60, 23);
this.button13.TabIndex = 9;
this.button13.Text = "Remove";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.Button13Click);
//
// button12
//
this.button12.Location = new System.Drawing.Point(69, 223);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(62, 23);
this.button12.TabIndex = 8;
this.button12.Text = "Remove";
this.button12.UseVisualStyleBackColor = true;
this.button12.Click += new System.EventHandler(this.Button12Click);
//
// label38
//
this.label38.Location = new System.Drawing.Point(213, 261);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(120, 20);
this.label38.TabIndex = 7;
//
// label39
//
this.label39.Location = new System.Drawing.Point(213, 249);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(149, 12);
this.label39.TabIndex = 6;
this.label39.Text = "CURRENT SERVER PORT:";
//
// label37
//
this.label37.Location = new System.Drawing.Point(6, 261);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(120, 20);
this.label37.TabIndex = 5;
//
// label36
//
this.label36.Location = new System.Drawing.Point(6, 249);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(136, 12);
this.label36.TabIndex = 4;
this.label36.Text = "CURRENT SERVER IP:";
//
// listBox4
//
this.listBox4.FormattingEnabled = true;
this.listBox4.Location = new System.Drawing.Point(213, 21);
this.listBox4.Name = "listBox4";
this.listBox4.Size = new System.Drawing.Size(186, 199);
this.listBox4.TabIndex = 3;
this.listBox4.SelectedIndexChanged += new System.EventHandler(this.ListBox4SelectedIndexChanged);
//
// listBox3
//
this.listBox3.FormattingEnabled = true;
this.listBox3.Location = new System.Drawing.Point(6, 21);
this.listBox3.Name = "listBox3";
this.listBox3.Size = new System.Drawing.Size(186, 199);
this.listBox3.TabIndex = 2;
this.listBox3.SelectedIndexChanged += new System.EventHandler(this.ListBox3SelectedIndexChanged);
//
// label21
//
this.label21.Location = new System.Drawing.Point(282, 3);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(59, 15);
this.label21.TabIndex = 1;
this.label21.Text = "PORTS";
//
// label14
//
this.label14.Location = new System.Drawing.Point(67, 3);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(59, 15);
this.label14.TabIndex = 0;
this.label14.Text = "SERVERS";
//
// tabPage5
//
this.tabPage5.Controls.Add(this.label40);
@ -628,154 +781,28 @@ namespace RBXLegacyLauncher
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged);
//
// tabPage6
// tabPage7
//
this.tabPage6.Controls.Add(this.button17);
this.tabPage6.Controls.Add(this.button16);
this.tabPage6.Controls.Add(this.button15);
this.tabPage6.Controls.Add(this.button14);
this.tabPage6.Controls.Add(this.button13);
this.tabPage6.Controls.Add(this.button12);
this.tabPage6.Controls.Add(this.label38);
this.tabPage6.Controls.Add(this.label39);
this.tabPage6.Controls.Add(this.label37);
this.tabPage6.Controls.Add(this.label36);
this.tabPage6.Controls.Add(this.listBox4);
this.tabPage6.Controls.Add(this.listBox3);
this.tabPage6.Controls.Add(this.label21);
this.tabPage6.Controls.Add(this.label14);
this.tabPage6.Location = new System.Drawing.Point(4, 22);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
this.tabPage6.Size = new System.Drawing.Size(405, 284);
this.tabPage6.TabIndex = 6;
this.tabPage6.Text = "SAVED";
this.tabPage6.ToolTipText = "Lists all your saved servers and ports";
this.tabPage6.UseVisualStyleBackColor = true;
this.tabPage7.BackColor = System.Drawing.SystemColors.ControlText;
this.tabPage7.Controls.Add(this.richTextBox1);
this.tabPage7.Location = new System.Drawing.Point(4, 22);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Padding = new System.Windows.Forms.Padding(3);
this.tabPage7.Size = new System.Drawing.Size(405, 284);
this.tabPage7.TabIndex = 7;
this.tabPage7.Text = "DEV CONSOLE";
//
// button17
// richTextBox1
//
this.button17.Location = new System.Drawing.Point(213, 223);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(54, 23);
this.button17.TabIndex = 13;
this.button17.Text = "Add";
this.button17.UseVisualStyleBackColor = true;
this.button17.Click += new System.EventHandler(this.Button17Click);
//
// button16
//
this.button16.Location = new System.Drawing.Point(3, 223);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(60, 23);
this.button16.TabIndex = 12;
this.button16.Text = "Add";
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.Button16Click);
//
// button15
//
this.button15.Location = new System.Drawing.Point(339, 223);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(60, 23);
this.button15.TabIndex = 11;
this.button15.Text = "Reset";
this.button15.UseVisualStyleBackColor = true;
this.button15.Click += new System.EventHandler(this.Button15Click);
//
// button14
//
this.button14.Location = new System.Drawing.Point(137, 223);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(55, 23);
this.button14.TabIndex = 10;
this.button14.Text = "Reset";
this.button14.UseVisualStyleBackColor = true;
this.button14.Click += new System.EventHandler(this.Button14Click);
//
// button13
//
this.button13.Location = new System.Drawing.Point(273, 223);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(60, 23);
this.button13.TabIndex = 9;
this.button13.Text = "Remove";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.Button13Click);
//
// button12
//
this.button12.Location = new System.Drawing.Point(69, 223);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(62, 23);
this.button12.TabIndex = 8;
this.button12.Text = "Remove";
this.button12.UseVisualStyleBackColor = true;
this.button12.Click += new System.EventHandler(this.Button12Click);
//
// label38
//
this.label38.Location = new System.Drawing.Point(213, 261);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(120, 20);
this.label38.TabIndex = 7;
//
// label39
//
this.label39.Location = new System.Drawing.Point(213, 249);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(149, 12);
this.label39.TabIndex = 6;
this.label39.Text = "CURRENT SERVER PORT:";
//
// label37
//
this.label37.Location = new System.Drawing.Point(6, 261);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(120, 20);
this.label37.TabIndex = 5;
//
// label36
//
this.label36.Location = new System.Drawing.Point(6, 249);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(136, 12);
this.label36.TabIndex = 4;
this.label36.Text = "CURRENT SERVER IP:";
//
// listBox4
//
this.listBox4.FormattingEnabled = true;
this.listBox4.Location = new System.Drawing.Point(213, 21);
this.listBox4.Name = "listBox4";
this.listBox4.Size = new System.Drawing.Size(186, 199);
this.listBox4.TabIndex = 3;
this.listBox4.SelectedIndexChanged += new System.EventHandler(this.ListBox4SelectedIndexChanged);
//
// listBox3
//
this.listBox3.FormattingEnabled = true;
this.listBox3.Location = new System.Drawing.Point(6, 21);
this.listBox3.Name = "listBox3";
this.listBox3.Size = new System.Drawing.Size(186, 199);
this.listBox3.TabIndex = 2;
this.listBox3.SelectedIndexChanged += new System.EventHandler(this.ListBox3SelectedIndexChanged);
//
// label21
//
this.label21.Location = new System.Drawing.Point(282, 3);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(59, 15);
this.label21.TabIndex = 1;
this.label21.Text = "PORTS";
//
// label14
//
this.label14.Location = new System.Drawing.Point(67, 3);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(59, 15);
this.label14.TabIndex = 0;
this.label14.Text = "SERVERS";
this.richTextBox1.BackColor = System.Drawing.SystemColors.ControlText;
this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.richTextBox1.ForeColor = System.Drawing.Color.White;
this.richTextBox1.Location = new System.Drawing.Point(3, 3);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(399, 278);
this.richTextBox1.TabIndex = 2;
this.richTextBox1.Text = "";
this.richTextBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyDown);
//
// tabPage4
//
@ -1049,13 +1076,16 @@ namespace RBXLegacyLauncher
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.tabPage6.ResumeLayout(false);
this.tabPage5.ResumeLayout(false);
this.tabPage5.PerformLayout();
this.tabPage6.ResumeLayout(false);
this.tabPage7.ResumeLayout(false);
this.tabPage4.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.Button button20;
private System.Windows.Forms.Label label40;
private System.Windows.Forms.Button button19;

View File

@ -124,19 +124,25 @@ namespace RBXLegacyLauncher
void MainFormLoad(object sender, EventArgs e)
{
string[] lines = File.ReadAllLines("info.txt"); //File is in System.IO
string version = lines[0];
string[] defaultclient = File.ReadAllLines("info.txt");
string defcl = defaultclient[1];
GlobalVars.SelectedClient = defcl;
ConsolePrint("RBXLegacy Launcher version " + version + " loaded. Initializing config.", 4);
if (!File.Exists("config.txt"))
{
ConsolePrint("WARNING 1 - config.txt not found. Creating one with default values.", 5);
WriteConfigValues();
}
if (!File.Exists("servers.txt"))
{
ConsolePrint("WARNING 2 - servers.txt not found. Creating empty file.", 5);
File.Create("servers.txt").Dispose();
}
if (!File.Exists("ports.txt"))
{
ConsolePrint("WARNING 2 - servers.txt not found. Creating empty file.", 5);
File.Create("ports.txt").Dispose();
}
GlobalVars.ClientDir = Path.Combine(Environment.CurrentDirectory, @"clients");
@ -151,8 +157,6 @@ namespace RBXLegacyLauncher
label8.Text = Application.ProductVersion;
GlobalVars.IP = "localhost";
GlobalVars.Map = "Baseplate.rbxl";
string[] lines = File.ReadAllLines("info.txt"); //File is in System.IO
string version = lines[0];
label11.Text = version;
GlobalVars.Version = version;
ReadConfigValues();
@ -293,6 +297,7 @@ namespace RBXLegacyLauncher
textBox4.Text = GlobalVars.RobloxPort.ToString();
label37.Text = GlobalVars.IP;
label38.Text = GlobalVars.RobloxPort.ToString();
ConsolePrint("Config loaded.", 3);
ReadClientValues(GlobalVars.SelectedClient);
}
@ -320,6 +325,7 @@ namespace RBXLegacyLauncher
GlobalVars.RightLegColorID.ToString(),
};
File.WriteAllLines("config.txt", lines);
ConsolePrint("Config Saved.", 3);
}
void ResetConfigValues()
@ -343,6 +349,7 @@ namespace RBXLegacyLauncher
GlobalVars.RightArmColorID = 24;
GlobalVars.LeftLegColorID = 119;
GlobalVars.RightLegColorID = 119;
ConsolePrint("All config settings reset. Reloading config.", 4);
WriteConfigValues();
ReadConfigValues();
}
@ -353,6 +360,7 @@ namespace RBXLegacyLauncher
if (!File.Exists(clientpath))
{
ConsolePrint("ERROR 1 - No clientinfo.txt detected with the client you chose. The client either cannot be loaded, or it is not available.", 2);
MessageBox.Show("No clientinfo.txt detected with the client you chose. The client either cannot be loaded, or it is not available.","RBXLegacy Launcher - Error while loading client", MessageBoxButtons.OK, MessageBoxIcon.Error);
GlobalVars.SelectedClient = "2008";
}
@ -484,6 +492,7 @@ namespace RBXLegacyLauncher
textBox6.Text = GlobalVars.SelectedClientDesc;
label26.Text = GlobalVars.SelectedClient;
ConsolePrint("Client '" + GlobalVars.SelectedClient + "' successfully loaded.", 3);
}
void GeneratePlayerID()
@ -604,7 +613,7 @@ namespace RBXLegacyLauncher
int parsedValue;
if (int.TryParse(textBox3.Text, out parsedValue))
{
if (textBox3.Text == "")
if (textBox3.Text.Equals(""))
{
GlobalVars.CharacterAppearanceID = 0;
}
@ -693,7 +702,7 @@ namespace RBXLegacyLauncher
int parsedValue;
if (int.TryParse(textBox4.Text, out parsedValue))
{
if (textBox4.Text == "")
if (textBox4.Text.Equals(""))
{
//set it to the normal port, 53640. it wouldn't make any sense if we set it to 0.
GlobalVars.RobloxPort = GlobalVars.DefaultRobloxPort;
@ -716,7 +725,7 @@ namespace RBXLegacyLauncher
int parsedValue;
if (int.TryParse(textBox5.Text, out parsedValue))
{
if (textBox5.Text == "")
if (textBox5.Text.Equals(""))
{
GlobalVars.UserID = 0;
}
@ -866,10 +875,7 @@ namespace RBXLegacyLauncher
void Button19Click(object sender, EventArgs e)
{
int timerset = 3000;
int msgdivide = timerset / 1000;
DialogResult result = MessageBox.Show("Be sure to save your config options with the 'Save Config' button before starting a solo game!"+ Environment.NewLine + Environment.NewLine +"Note: The launcher will start up a server and then launch the client "+ msgdivide +" seconds after. If the health bar does not appear, just reset your character. If your character does not move or your character lags after the client window is loaded, just open the server window then minimize it.","RBXLegacy Launcher - Play Solo", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
DialogResult result = MessageBox.Show("Be sure to save your config options with the 'Save Config' button before starting a solo game!","RBXLegacy Launcher - Play Solo", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
if (result == DialogResult.Cancel)
return;
@ -881,6 +887,26 @@ namespace RBXLegacyLauncher
}
}
void Button20Click(object sender, EventArgs e)
{
ServerInfo infopanel = new ServerInfo();
infopanel.Show();
}
void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
//Command proxy
int totalLines = richTextBox1.Lines.Length;
string lastLine = richTextBox1.Lines[totalLines - 1];
if (e.KeyCode == Keys.Enter)
{
richTextBox1.AppendText(Environment.NewLine);
ConsoleProcessCommands(lastLine);
}
}
void StartClient()
{
string luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
@ -940,10 +966,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Client Loaded.", 4, false);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1061,13 +1089,14 @@ namespace RBXLegacyLauncher
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',false);" + quote;
}
}
try
{
ConsolePrint("Play Solo Loaded.", 4, false);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1090,10 +1119,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Server Loaded.", 4, false);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1115,10 +1146,12 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Server Loaded in No3d.", 4, false);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
@ -1139,18 +1172,130 @@ namespace RBXLegacyLauncher
}
try
{
ConsolePrint("Studio Loaded.", 4, false);
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
ConsolePrint("ERROR 2 - Failed to launch RBXLegacy. (" + ex.Message + ")", 2, false);
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
void Button20Click(object sender, EventArgs e)
void ConsolePrint(string text, int type, bool newline = true)
{
ServerInfo infopanel = new ServerInfo();
infopanel.Show();
richTextBox1.AppendText("[" + DateTime.Now.ToShortTimeString() + "]", Color.White);
richTextBox1.AppendText(" - ", Color.White);
if (type == 1)
{
richTextBox1.AppendText(text, Color.White);
}
else if (type == 2)
{
richTextBox1.AppendText(text, Color.Red);
}
else if (type == 3)
{
richTextBox1.AppendText(text, Color.Lime);
}
else if (type == 4)
{
richTextBox1.AppendText(text, Color.Aqua);
}
else if (type == 5)
{
richTextBox1.AppendText(text, Color.Yellow);
}
if (newline == true)
{
richTextBox1.AppendText(Environment.NewLine);
}
}
void ConsoleProcessCommands(string command)
{
if (command.Equals("rbxlegacy server"))
{
StartServer();
}
else if (command.Equals("rbxlegacy server no3d"))
{
StartServerNo3D();
}
else if (command.Equals("rbxlegacy client"))
{
StartClient();
}
else if (command.Equals("rbxlegacy client solo"))
{
StartSolo();
}
else if (command.Equals("rbxlegacy studio"))
{
StartStudio();
}
else if (command.Equals("rbxlegacy config save"))
{
WriteConfigValues();
}
else if (command.Equals("rbxlegacy config load"))
{
ReadConfigValues();
}
else if (command.Equals("rbxlegacy config reset"))
{
ResetConfigValues();
}
else if (command.Equals("rbxlegacy help"))
{
ConsoleRBXLegacyHelp(false);
}
else if (command.Equals("rbxlegacy"))
{
ConsoleRBXLegacyHelp(false);
}
else if (command.Equals("rbxlegacy config"))
{
ConsoleRBXLegacyHelp(true);
}
else if (command.Equals("rbxlegacy kanrisha"))
{
GlobalVars.AdminMode = true;
ConsolePrint("ADMIN MODE ENABLED.", 4);
ConsolePrint("YOU ARE GOD.", 2, false);
}
else
{
ConsolePrint("ERROR 3 - Command is either not registered or valid", 2, false);
}
}
void ConsoleRBXLegacyHelp(bool config)
{
if (config == true)
{
ConsolePrint("rbxlegacy config", 1);
ConsolePrint("-------------------------", 1);
ConsolePrint("= save | Saves the config file", 1);
ConsolePrint("= load | Reloads the config file", 1);
ConsolePrint("= reset | Resets the config file", 1, false);
}
else
{
ConsolePrint("rbxlegacy", 1);
ConsolePrint("---------", 1);
ConsolePrint("= client | Loads client with launcher settings", 1);
ConsolePrint("== solo | Loads client in Play Solo mode with launcher settings", 1);
ConsolePrint("= server | Loads server with launcher settings", 1);
ConsolePrint("== no3d | Loads server in NoGraphics mode with launcher settings", 1);
ConsolePrint("= studio | Loads Roblox Studio with launcher settings", 1);
ConsolePrint("= config", 1);
ConsolePrint("== save | Saves the config file", 1);
ConsolePrint("== load | Reloads the config file", 1);
ConsolePrint("== reset | Resets the config file", 1, false);
}
}
}
}

View File

@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -7,7 +7,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>RBXLegacyLauncher</RootNamespace>
<AssemblyName>RBXLegacyLauncher</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<AppDesignerFolder>Properties</AppDesignerFolder>
@ -45,19 +45,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CharacterColors.cs" />
@ -73,6 +64,7 @@
<DependentUpon>ClientinfoCreator.cs</DependentUpon>
</Compile>
<Compile Include="CryptoRandom.cs" />
<Compile Include="RichTextBoxExtensions.cs" />
<Compile Include="ServerInfo.cs" />
<Compile Include="ServerInfo.Designer.cs">
<DependentUpon>ServerInfo.cs</DependentUpon>

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
// you need this once (only), and it must be in this namespace
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class
| AttributeTargets.Method)]
public sealed class ExtensionAttribute : Attribute {}
}
public static class RichTextBoxExtensions
{
public static void AppendText(this RichTextBox box, string text, Color color)
{
box.SelectionStart = box.TextLength;
box.SelectionLength = 0;
box.SelectionColor = color;
box.AppendText(text);
box.SelectionColor = box.ForeColor;
}
}

View File

@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
<supportedRuntime version="v2.0.50727" />
</startup>
</configuration>

View File

@ -1,7 +1,7 @@
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define AppVer "1.14.1"
#define AppVer "1.15"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.

View File

@ -1,4 +0,0 @@
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<External>null</External>
<External>nil</External>
</roblox>

BIN
charcustom/bodycolors.7z Normal file

Binary file not shown.

View File

@ -1,99 +1,4 @@
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
<External>null</External>
<External>nil</External>
<Item class="Hat" referent="RBX0">
<Properties>
<CoordinateFrame name="AttachmentPoint">
<X>0</X>
<Y>-0.25</Y>
<Z>0</Z>
<R00>1</R00>
<R01>0</R01>
<R02>0</R02>
<R10>0</R10>
<R11>1</R11>
<R12>0</R12>
<R20>0</R20>
<R21>0</R21>
<R22>1</R22>
</CoordinateFrame>
<int name="BackendAccoutrementState">2</int>
<string name="Name">NoHat</string>
<bool name="archivable">true</bool>
</Properties>
<Item class="Part" referent="RBX1">
<Properties>
<bool name="Anchored">false</bool>
<float name="BackParamA">-0.5</float>
<float name="BackParamB">0.5</float>
<token name="BackSurface">0</token>
<token name="BackSurfaceInput">0</token>
<float name="BottomParamA">-0.5</float>
<float name="BottomParamB">0.5</float>
<token name="BottomSurface">0</token>
<token name="BottomSurfaceInput">0</token>
<int name="BrickColor">1</int>
<CoordinateFrame name="CFrame">
<X>-23</X>
<Y>1.20000005</Y>
<Z>17</Z>
<R00>1</R00>
<R01>0</R01>
<R02>0</R02>
<R10>0</R10>
<R11>1</R11>
<R12>0</R12>
<R20>0</R20>
<R21>0</R21>
<R22>1</R22>
</CoordinateFrame>
<bool name="CanCollide">false</bool>
<bool name="CastsShadows">false</bool>
<token name="Controller">0</token>
<bool name="ControllerFlagShown">true</bool>
<bool name="Cullable">true</bool>
<bool name="DraggingV1">false</bool>
<float name="Elasticity">0.5</float>
<token name="FormFactor">2</token>
<float name="Friction">0.300000012</float>
<float name="FrontParamA">-0.5</float>
<float name="FrontParamB">0.5</float>
<token name="FrontSurface">0</token>
<token name="FrontSurfaceInput">0</token>
<float name="LeftParamA">-0.5</float>
<float name="LeftParamB">0.5</float>
<token name="LeftSurface">0</token>
<token name="LeftSurfaceInput">0</token>
<bool name="Locked">true</bool>
<string name="Name">Handle</string>
<float name="Reflectance">0</float>
<float name="RightParamA">-0.5</float>
<float name="RightParamB">0.5</float>
<token name="RightSurface">0</token>
<token name="RightSurfaceInput">0</token>
<Vector3 name="RotVelocity">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Vector3>
<float name="TopParamA">-0.5</float>
<float name="TopParamB">0.5</float>
<token name="TopSurface">0</token>
<token name="TopSurfaceInput">0</token>
<float name="Transparency">1</float>
<Vector3 name="Velocity">
<X>0</X>
<Y>0</Y>
<Z>0</Z>
</Vector3>
<bool name="archivable">true</bool>
<token name="shape">1</token>
<Vector3 name="size">
<X>0.1</X>
<Y>0.1</Y>
<Z>0.1</Z>
</Vector3>
</Properties>
</Item>
</Item>
</roblox>