This commit is contained in:
Bitl 2017-02-07 04:56:50 -07:00
parent d884c5addf
commit b9f3495111
19 changed files with 7508 additions and 286 deletions

View File

@ -89,54 +89,68 @@ function PlayerNoobify()
end
function CSServer(Port,BodyColors)
assert((type(Port)~="number" or tonumber(Port)~=nil or Port==nil),"CSRun Error: Port must be nil or a number.");
local NetworkServer=game:GetService("NetworkServer");
pcall(NetworkServer.Stop,NetworkServer);
NetworkServer:Start(Port);
Server = game:GetService("NetworkServer")
RunService = game:GetService("RunService")
Server:start(Port, 20)
RunService:run();
game:GetService("Players").PlayerAdded:connect(function(Player)
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' added");
Player:LoadCharacter();
Player.CharacterAdded:connect(function(char)
if (BodyColors == true) then
PlayerColorize();
else
PlayerNoobify();
end
char['Head'].BrickColor = HeadColor;
char['Torso'].BrickColor = TorsoColor;
char['Left Arm'].BrickColor = LArmColor;
char['Left Leg'].BrickColor = LLegColor;
char['Right Arm'].BrickColor = RArmColor;
char['Right Leg'].BrickColor = RLegColor;
end)
Player.Changed:connect(function(Property)
if (Property=="Character") and (Player.Character~=nil) then
local Character=Player.Character;
local Humanoid=Character:FindFirstChild("Humanoid");
if (Humanoid~=nil) then
Humanoid.Died:connect(function() delay(5,function() Player:LoadCharacter() end) end)
if (BodyColors == true) then
PlayerColorize();
else
PlayerNoobify();
end
Player.Character['Head'].BrickColor = HeadColor;
Player.Character['Torso'].BrickColor = TorsoColor;
Player.Character['Left Arm'].BrickColor = LArmColor;
Player.Character['Left Leg'].BrickColor = LLegColor;
Player.Character['Right Arm'].BrickColor = RArmColor;
Player.Character['Right Leg'].BrickColor = RLegColor;
while true do
wait(0.001)
if (Player.Character ~= nil) then
if (Player.Character.Humanoid.Health == 0) then
wait(5)
Player:LoadCharacter()
if (BodyColors == true) then
PlayerColorize();
else
PlayerNoobify();
end
Player.Character['Head'].BrickColor = HeadColor;
Player.Character['Torso'].BrickColor = TorsoColor;
Player.Character['Left Arm'].BrickColor = LArmColor;
Player.Character['Left Leg'].BrickColor = LLegColor;
Player.Character['Right Arm'].BrickColor = RArmColor;
Player.Character['Right Leg'].BrickColor = RLegColor;
elseif (Player.Character.Parent == nil) then
wait(5)
Player:LoadCharacter() -- to make sure nobody is deleted.
if (BodyColors == true) then
PlayerColorize();
else
PlayerNoobify();
end
Player.Character['Head'].BrickColor = HeadColor;
Player.Character['Torso'].BrickColor = TorsoColor;
Player.Character['Left Arm'].BrickColor = LArmColor;
Player.Character['Left Leg'].BrickColor = LLegColor;
Player.Character['Right Arm'].BrickColor = RArmColor;
Player.Character['Right Leg'].BrickColor = RLegColor;
end
end
end)
end
end)
game:GetService("Players").PlayerRemoving:connect(function(Player)
print("Player '" .. Player.Name .. "' with ID '" .. Player.userId .. "' leaving")
end)
game:GetService("RunService"):Run();
pcall(function() game.Close:connect(function() NetworkServer:Stop(); end) end);
-- ChildAdded is being a retard. Sorry for inefficient code.
--[[while wait(0.1) do
print("OMG",#game.NetworkServer:children())
for Index,Child in pairs(NetworkServer:GetChildren()) do
if (Child.className == "") then
IncommingConnection(nil, Child);
end
end
end]]
NetworkServer.IncommingConnection:connect(IncommingConnection);
pcall(function() game.Close:connect(function() Server:Stop(); end) end);
Server.IncommingConnection:connect(IncommingConnection);
end
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Ticket)
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,PantsID,ShirtID,TShirtID,Hat1ID,Hat2ID,Hat3ID,Ticket)
pcall(function() game:SetPlaceID(-1, false) end);
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
@ -149,92 +163,88 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Ticket)
pcall(function() game.CoreGui.RobloxGui.BigPlayerlist:Remove(); end);
end);
end)
game:GetService("RunService"):Run();
assert((ServerIP~=nil and ServerPort~=nil),"CSConnect Error: ServerIP and ServerPort must be defined.");
local function SetMessage(Message) game:SetMessage(Message); end
local Visit,NetworkClient,PlayerSuccess,Player,ConnectionFailedHook=game:GetService("Visit"),game:GetService("NetworkClient");
local function GetClassCount(Class,Parent)
local Objects=Parent:GetChildren();
local Number=0;
for Index,Object in pairs(Objects) do
if (Object.className==Class) then
Number=Number+1;
end
Number=Number+GetClassCount(Class,Object);
local suc, err = pcall(function()
client = game:GetService("NetworkClient")
player = game:GetService("Players"):CreateLocalPlayer(UserID)
player:SetSuperSafeChat(false)
pcall(function() player:SetUnder13(false) end);
pcall(function() player:SetMembershipType(Enum.MembershipType.BuildersClub) end);
pcall(function() player:SetAccountAge(365) end);
if (OutfitID and OutfitID ~= 0) then
player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID;
elseif (ColorHash and ColorHash ~= "") then
local aid = "http://www.roblox.com/asset?id="
local bcid = "http://assetgame.roblox.com/Asset/BodyColors.ashx?avatarHash="
local charapp = bcid..ColorHash..";"..aid..PantsID..";"..aid..ShirtID..";"..aid..TShirtID..";"..aid..Hat1ID.."&version=1;"..aid..Hat2ID.."&version=1;"..aid..Hat3ID.."&version=1;"
player.CharacterAppearance = charapp
else
player.CharacterAppearance=0;
end
return Number;
pcall(function() player.Name=PlayerName or ""; end);
game:GetService("Visit")
end)
local function dieerror(errmsg)
game:SetMessage(errmsg)
wait(math.huge)
end
local function RequestCharacter(Replicator)
local Connection;
Connection=Player.Changed:connect(function(Property)
if (Property=="Character") then
game:ClearMessage();
end
end)
SetMessage("Requesting character...");
Replicator:RequestCharacter();
SetMessage("Waiting for character...");
if not suc then
dieerror(err)
end
local function Disconnection(Peer,LostConnection)
SetMessage("You have lost connection to the game");
end
local function ConnectionAccepted(Peer,Replicator)
Replicator.Disconnection:connect(Disconnection);
local RequestingMarker=true;
game:SetMessageBrickCount();
local Marker=Replicator:SendMarker();
Marker.Received:connect(function()
RequestingMarker=false;
RequestCharacter(Replicator);
local function connected(url, replicator)
replicator.Disconnection:connect(Disconnection);
local marker = nil
local suc, err = pcall(function()
game:SetMessageBrickCount()
marker = replicator:SendMarker()
end)
while RequestingMarker do
Workspace:ZoomToExtents();
wait(0.5);
if not suc then
dieerror(err)
end
marker.Received:connect(function()
local suc, err = pcall(function()
game:ClearMessage()
end)
if not suc then
dieerror(err)
end
end)
end
local function ConnectionFailed(Peer,Code)
SetMessage("Failed to connect to the Game. (ID="..Code..")");
local function rejected()
dieerror("Failed to connect to the Game. (Connection rejected)")
end
pcall(function() settings().Diagnostics:LegacyScriptMode(); end);
pcall(function() game:SetRemoteBuildMode(true); end);
SetMessage("Connecting to server...");
NetworkClient.ConnectionAccepted:connect(ConnectionAccepted);
ConnectionFailedHook=NetworkClient.ConnectionFailed:connect(ConnectionFailed);
NetworkClient.ConnectionRejected:connect(function()
pcall(function() ConnectionFailedHook:disconnect(); end);
SetMessage("Failed to connect to the Game. (Connection rejected)");
local function failed(peer, errcode, why)
dieerror("Failed to connect to the Game. (ID="..errcode.." ["..why.."])")
end
local suc, err = pcall(function()
game:SetMessage("Connecting to server...");
client.ConnectionAccepted:connect(connected)
client.ConnectionRejected:connect(rejected)
client.ConnectionFailed:connect(failed)
client:Connect(ServerIP,ServerPort, 0, 20)
end)
pcall(function() NetworkClient.Ticket=Ticket or ""; end) -- 2008 client has no ticket :O
Player=game:GetService("Players"):CreateLocalPlayer(UserID);
PlayerSuccess=pcall(function() return NetworkClient:Connect(ServerIP,ServerPort) end);
if (not PlayerSuccess) then
SetMessage("Failed to connect to the Game. (Invalid IP Address)");
NetworkClient:Disconnect();
if not suc then
local x = Instance.new("Message")
x.Text = err
x.Parent = workspace
wait(math.huge)
end
if (not Player) then
SetMessage("Failed to connect to the Game. (Player not found)");
NetworkClient:Disconnect();
while true do
wait(0.001)
replicator:SendMarker()
end
pcall(function() Player:SetUnder13(false) end);
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end);
pcall(function() Player:SetAccountAge(365) end);
Player:SetSuperSafeChat(false);
if (OutfitID) then
Player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID;
else
Player.CharacterAppearance=0;
end
pcall(function() Player.Name=PlayerName or ""; end);
pcall(function() Visit:SetUploadUrl(""); end);
end
_G.CSServer=CSServer;

View File

@ -150,7 +150,7 @@ function CSServer(Port,BodyColors)
NetworkServer.IncommingConnection:connect(IncommingConnection);
end
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Ticket)
function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,PantsID,ShirtID,TShirtID,Hat1ID,Hat2ID,Hat3ID,Ticket)
pcall(function() game:SetPlaceID(-1, false) end);
pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end);
@ -211,8 +211,8 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Ticket)
end
end
local function ConnectionFailed(Peer,Code)
SetMessage("Failed to connect to the Game. (ID="..Code..")");
local function ConnectionFailed(Peer, Code, why)
SetMessage("Failed to connect to the Game. (ID="..Code.." ["..why.."])");
end
pcall(function() settings().Diagnostics:LegacyScriptMode(); end);
@ -246,7 +246,16 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Ticket)
pcall(function() Player:SetMembershipType(Enum.MembershipType.BuildersClub) end);
pcall(function() Player:SetAccountAge(365) end);
Player:SetSuperSafeChat(false);
Player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..(OutfitID or 0);
if (OutfitID and OutfitID ~= 0) then
Player.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID;
elseif (ColorHash and ColorHash ~= "") then
local aid = "http://www.roblox.com/asset?id="
local bcid = "http://assetgame.roblox.com/Asset/BodyColors.ashx?avatarHash="
local charapp = bcid..ColorHash..";"..aid..PantsID..";"..aid..ShirtID..";"..aid..TShirtID..";"..aid..Hat1ID.."&version=1;"..aid..Hat2ID.."&version=1;"..aid..Hat3ID.."&version=1;"
Player.CharacterAppearance = charapp
else
Player.CharacterAppearance=0;
end
pcall(function() Player.Name=PlayerName or ""; end);
pcall(function() Visit:SetUploadUrl(""); end);
end

View File

@ -0,0 +1,294 @@
/*
* Created by SharpDevelop.
* User: BITL
* Date: 2/5/2017
* Time: 1:53 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
namespace RBXLegacyLauncher
{
partial class CharacterCustomization
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CharacterCustomization));
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(35, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(217, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Character Color Hash (used for body colors)";
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 26);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(260, 20);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "0";
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
//
// label2
//
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label2.Location = new System.Drawing.Point(9, 58);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(260, 2);
this.label2.TabIndex = 2;
//
// label3
//
this.label3.Location = new System.Drawing.Point(122, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(33, 16);
this.label3.TabIndex = 3;
this.label3.Text = "Outfit";
//
// label4
//
this.label4.Location = new System.Drawing.Point(68, 84);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(49, 14);
this.label4.TabIndex = 4;
this.label4.Text = "Shirt ID";
//
// label5
//
this.label5.Location = new System.Drawing.Point(68, 109);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 14);
this.label5.TabIndex = 5;
this.label5.Text = "Pants ID";
//
// label6
//
this.label6.Location = new System.Drawing.Point(68, 133);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(59, 14);
this.label6.TabIndex = 6;
this.label6.Text = "T-Shirt ID";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(122, 83);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(100, 20);
this.textBox2.TabIndex = 7;
this.textBox2.Text = "0";
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox2.TextChanged += new System.EventHandler(this.TextBox2TextChanged);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(122, 109);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(100, 20);
this.textBox3.TabIndex = 8;
this.textBox3.Text = "0";
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox3.TextChanged += new System.EventHandler(this.TextBox3TextChanged);
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(122, 133);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(100, 20);
this.textBox4.TabIndex = 9;
this.textBox4.Text = "0";
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox4.TextChanged += new System.EventHandler(this.TextBox4TextChanged);
//
// label7
//
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label7.Location = new System.Drawing.Point(9, 160);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(260, 2);
this.label7.TabIndex = 10;
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(122, 184);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(100, 20);
this.textBox5.TabIndex = 17;
this.textBox5.Text = "0";
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged);
//
// textBox6
//
this.textBox6.Location = new System.Drawing.Point(122, 209);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(100, 20);
this.textBox6.TabIndex = 16;
this.textBox6.Text = "0";
this.textBox6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox6.TextChanged += new System.EventHandler(this.TextBox6TextChanged);
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(122, 233);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(100, 20);
this.textBox7.TabIndex = 15;
this.textBox7.Text = "0";
this.textBox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox7.TextChanged += new System.EventHandler(this.TextBox7TextChanged);
//
// label8
//
this.label8.Location = new System.Drawing.Point(68, 233);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(59, 14);
this.label8.TabIndex = 14;
this.label8.Text = "Hat 3 ID";
//
// label9
//
this.label9.Location = new System.Drawing.Point(68, 209);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(49, 14);
this.label9.TabIndex = 13;
this.label9.Text = "Hat 2 ID";
//
// label10
//
this.label10.Location = new System.Drawing.Point(68, 184);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(49, 14);
this.label10.TabIndex = 12;
this.label10.Text = "Hat 1 ID";
//
// label11
//
this.label11.Location = new System.Drawing.Point(122, 164);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(33, 16);
this.label11.TabIndex = 11;
this.label11.Text = "Hats";
//
// label12
//
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label12.Location = new System.Drawing.Point(9, 260);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(260, 2);
this.label12.TabIndex = 18;
//
// label13
//
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.ForeColor = System.Drawing.Color.Red;
this.label13.Location = new System.Drawing.Point(9, 266);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(260, 74);
this.label13.TabIndex = 19;
this.label13.Text = resources.GetString("label13.Text");
this.label13.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// CharacterCustomization
//
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(281, 336);
this.Controls.Add(this.label13);
this.Controls.Add(this.label12);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.textBox6);
this.Controls.Add(this.textBox7);
this.Controls.Add(this.label8);
this.Controls.Add(this.label9);
this.Controls.Add(this.label10);
this.Controls.Add(this.label11);
this.Controls.Add(this.label7);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "CharacterCustomization";
this.Text = "Character Customization";
this.Load += new System.EventHandler(this.CharacterCustomizationLoad);
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
}
}

View File

@ -0,0 +1,174 @@
/*
* Created by SharpDevelop.
* User: BITL
* Date: 2/5/2017
* Time: 1:53 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace RBXLegacyLauncher
{
/// <summary>
/// Description of CharacterCustomization.
/// </summary>
public partial class CharacterCustomization : Form
{
public CharacterCustomization()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void CharacterCustomizationLoad(object sender, EventArgs e)
{
textBox1.Text = GlobalVars.Custom_ColorID;
textBox2.Text = GlobalVars.Custom_ShirtsID.ToString();
textBox3.Text = GlobalVars.Custom_PantsID.ToString();
textBox4.Text = GlobalVars.Custom_TShirtsID.ToString();
textBox5.Text = GlobalVars.Custom_Hat1ID.ToString();
textBox6.Text = GlobalVars.Custom_Hat2ID.ToString();
textBox7.Text = GlobalVars.Custom_Hat3ID.ToString();
}
void TextBox1TextChanged(object sender, EventArgs e)
{
GlobalVars.Custom_ColorID = textBox1.Text;
}
void TextBox2TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox2.Text, out parsedValue))
{
if (textBox2.Text == "")
{
GlobalVars.Custom_ShirtsID = 0;
textBox2.Text = "0";
}
else
{
GlobalVars.Custom_ShirtsID = Convert.ToInt32(textBox2.Text);
}
}
else
{
textBox2.Text = "0";
}
}
void TextBox3TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox3.Text, out parsedValue))
{
if (textBox3.Text == "")
{
GlobalVars.Custom_PantsID = 0;
textBox3.Text = "0";
}
else
{
GlobalVars.Custom_PantsID = Convert.ToInt32(textBox3.Text);
}
}
else
{
textBox3.Text = "0";
}
}
void TextBox4TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox4.Text, out parsedValue))
{
if (textBox4.Text == "")
{
GlobalVars.Custom_TShirtsID = 0;
textBox4.Text = "0";
}
else
{
GlobalVars.Custom_TShirtsID = Convert.ToInt32(textBox4.Text);
}
}
else
{
textBox4.Text = "0";
}
}
void TextBox5TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox5.Text, out parsedValue))
{
if (textBox5.Text == "")
{
GlobalVars.Custom_Hat1ID = 0;
textBox5.Text = "0";
}
else
{
GlobalVars.Custom_Hat1ID = Convert.ToInt32(textBox5.Text);
}
}
else
{
textBox5.Text = "0";
}
}
void TextBox6TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox7.Text, out parsedValue))
{
if (textBox6.Text == "")
{
GlobalVars.Custom_Hat2ID = 0;
textBox6.Text = "0";
}
else
{
GlobalVars.Custom_Hat2ID = Convert.ToInt32(textBox6.Text);
}
}
else
{
textBox6.Text = "0";
}
}
void TextBox7TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox3.Text, out parsedValue))
{
if (textBox7.Text == "")
{
GlobalVars.Custom_Hat3ID = 0;
textBox7.Text = "0";
}
else
{
GlobalVars.Custom_Hat3ID = Convert.ToInt32(textBox7.Text);
}
}
else
{
textBox7.Text = "0";
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -49,6 +49,7 @@ namespace RBXLegacyLauncher
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.button3 = new System.Windows.Forms.Button();
this.checkBox6 = new System.Windows.Forms.CheckBox();
this.checkBox7 = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// checkBox1
@ -93,16 +94,16 @@ namespace RBXLegacyLauncher
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(10, 173);
this.textBox1.Location = new System.Drawing.Point(8, 191);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(310, 194);
this.textBox1.Size = new System.Drawing.Size(310, 211);
this.textBox1.TabIndex = 4;
this.textBox1.TextChanged += new System.EventHandler(this.TextBox1TextChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(9, 154);
this.label1.Location = new System.Drawing.Point(8, 172);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(100, 16);
this.label1.TabIndex = 5;
@ -118,7 +119,7 @@ namespace RBXLegacyLauncher
//
// button1
//
this.button1.Location = new System.Drawing.Point(165, 402);
this.button1.Location = new System.Drawing.Point(162, 437);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(154, 30);
this.button1.TabIndex = 7;
@ -128,7 +129,7 @@ namespace RBXLegacyLauncher
//
// button2
//
this.button2.Location = new System.Drawing.Point(9, 402);
this.button2.Location = new System.Drawing.Point(8, 437);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(150, 30);
this.button2.TabIndex = 10;
@ -148,7 +149,7 @@ namespace RBXLegacyLauncher
//
// button3
//
this.button3.Location = new System.Drawing.Point(9, 373);
this.button3.Location = new System.Drawing.Point(8, 408);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(308, 23);
this.button3.TabIndex = 12;
@ -166,11 +167,23 @@ namespace RBXLegacyLauncher
this.checkBox6.UseVisualStyleBackColor = true;
this.checkBox6.CheckedChanged += new System.EventHandler(this.CheckBox6CheckedChanged);
//
// checkBox7
//
this.checkBox7.Location = new System.Drawing.Point(9, 145);
this.checkBox7.Name = "checkBox7";
this.checkBox7.Size = new System.Drawing.Size(212, 24);
this.checkBox7.TabIndex = 14;
this.checkBox7.Text = "This client supports custom characters.";
this.checkBox7.UseVisualStyleBackColor = true;
this.checkBox7.CheckedChanged += new System.EventHandler(this.CheckBox7CheckedChanged);
//
// ClientinfoEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(332, 439);
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(332, 479);
this.Controls.Add(this.checkBox7);
this.Controls.Add(this.checkBox6);
this.Controls.Add(this.button3);
this.Controls.Add(this.checkBox5);
@ -191,6 +204,7 @@ namespace RBXLegacyLauncher
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.CheckBox checkBox7;
private System.Windows.Forms.CheckBox checkBox6;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.CheckBox checkBox5;

View File

@ -95,7 +95,7 @@ namespace RBXLegacyLauncher
ofd.Title = "Load clientinfo.txt";
if (ofd.ShowDialog() == DialogResult.OK)
{
string line1, line2, line3, line4, line5, line6, line7;
string line1, line2, line3, line4, line5, line6, line7, line8;
using(StreamReader reader = new StreamReader(ofd.FileName))
{
@ -106,6 +106,7 @@ namespace RBXLegacyLauncher
line5 = reader.ReadLine();
line6 = reader.ReadLine();
line7 = reader.ReadLine();
line8 = reader.ReadLine();
}
Boolean bline1 = bool.Parse(line1);
@ -126,7 +127,10 @@ namespace RBXLegacyLauncher
Boolean bline6 = bool.Parse(line6);
GlobalVars.ClientCreator_ModernClient = bline6;
GlobalVars.ClientCreator_SelectedClientDesc = line7;
Boolean bline7 = bool.Parse(line7);
GlobalVars.ClientCreator_SupportsCharacterCustomization = bline7;
GlobalVars.ClientCreator_SelectedClientDesc = line8;
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
@ -134,6 +138,7 @@ namespace RBXLegacyLauncher
checkBox4.Checked = GlobalVars.ClientCreator_SupportsAppearanceID;
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
checkBox6.Checked = GlobalVars.ClientCreator_ModernClient;
checkBox7.Checked = GlobalVars.ClientCreator_SupportsCharacterCustomization;
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
}
}
@ -150,7 +155,7 @@ namespace RBXLegacyLauncher
if (sfd.ShowDialog() == DialogResult.OK)
{
string[] lines = { GlobalVars.ClientCreator_UsesPlayerName.ToString(), GlobalVars.ClientCreator_UsesID.ToString(), GlobalVars.ClientCreator_SupportsLocalPlay.ToString(), GlobalVars.ClientCreator_SupportsAppearanceID.ToString(), GlobalVars.ClientCreator_LoadsAssetsOnline.ToString(), GlobalVars.ClientCreator_ModernClient.ToString(), GlobalVars.ClientCreator_SelectedClientDesc.ToString() };
string[] lines = { GlobalVars.ClientCreator_UsesPlayerName.ToString(), GlobalVars.ClientCreator_UsesID.ToString(), GlobalVars.ClientCreator_SupportsLocalPlay.ToString(), GlobalVars.ClientCreator_SupportsAppearanceID.ToString(), GlobalVars.ClientCreator_LoadsAssetsOnline.ToString(), GlobalVars.ClientCreator_ModernClient.ToString(), GlobalVars.ClientCreator_SupportsCharacterCustomization.ToString() ,GlobalVars.ClientCreator_SelectedClientDesc.ToString() };
File.WriteAllLines(sfd.FileName, lines);
}
}
@ -181,6 +186,7 @@ namespace RBXLegacyLauncher
GlobalVars.ClientCreator_SupportsAppearanceID = false;
GlobalVars.ClientCreator_LoadsAssetsOnline = false;
GlobalVars.ClientCreator_ModernClient = false;
GlobalVars.ClientCreator_SupportsCharacterCustomization = false;
GlobalVars.ClientCreator_SelectedClientDesc = "";
checkBox1.Checked = GlobalVars.ClientCreator_UsesPlayerName;
checkBox2.Checked = GlobalVars.ClientCreator_UsesID;
@ -188,6 +194,7 @@ namespace RBXLegacyLauncher
checkBox4.Checked = GlobalVars.ClientCreator_SupportsAppearanceID;
checkBox5.Checked = GlobalVars.ClientCreator_LoadsAssetsOnline;
checkBox6.Checked = GlobalVars.ClientCreator_ModernClient;
checkBox7.Checked = GlobalVars.ClientCreator_SupportsCharacterCustomization;
textBox1.Text = GlobalVars.ClientCreator_SelectedClientDesc;
}
@ -202,5 +209,17 @@ namespace RBXLegacyLauncher
GlobalVars.ClientCreator_ModernClient = false;
}
}
void CheckBox7CheckedChanged(object sender, EventArgs e)
{
if (checkBox7.Checked == true)
{
GlobalVars.ClientCreator_SupportsCharacterCustomization = true;
}
else if (checkBox7.Checked == false)
{
GlobalVars.ClientCreator_SupportsCharacterCustomization = false;
}
}
}
}

View File

@ -8,6 +8,7 @@
public static bool BodyColors = true;
public static string Map = "Baseplate.rbxl";
public static int RobloxPort = 53640;
public static int DefaultRobloxPort = 53640;
//player settings
public static int UserID = 0;
public static string PlayerName = "Player";
@ -16,6 +17,7 @@
public static bool LocalPlayMode = false;
public static int CharacterAppearanceID = 0;
public static bool UseAppearanceID = false;
public static bool UseCustomAppearanceID = false;
//client shit
public static string SelectedClient = "2008";
public static bool UsesPlayerName = false;
@ -25,6 +27,7 @@
public static string SelectedClientDesc = "";
public static bool LoadsAssetsOnline = false;
public static bool ModernClient = false;
public static bool SupportsCharacterCustomization = false;
//clientinfocreator
public static bool ClientCreator_UsesPlayerName = false;
public static bool ClientCreator_UsesID = false;
@ -33,4 +36,13 @@
public static bool ClientCreator_LoadsAssetsOnline = false;
public static bool ClientCreator_ModernClient = false;
public static string ClientCreator_SelectedClientDesc = "";
public static bool ClientCreator_SupportsCharacterCustomization = false;
//charcustom
public static string Custom_ColorID = "";
public static int Custom_PantsID = 0;
public static int Custom_ShirtsID = 0;
public static int Custom_TShirtsID = 0;
public static int Custom_Hat1ID = 0;
public static int Custom_Hat2ID = 0;
public static int Custom_Hat3ID = 0;
}

View File

@ -40,10 +40,6 @@ namespace RBXLegacyLauncher
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label29 = new System.Windows.Forms.Label();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.label17 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
@ -52,18 +48,32 @@ namespace RBXLegacyLauncher
this.textBox1 = new System.Windows.Forms.TextBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.label32 = new System.Windows.Forms.Label();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label12 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.listBox1 = new System.Windows.Forms.ListBox();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label30 = new System.Windows.Forms.Label();
this.listBox2 = new System.Windows.Forms.ListBox();
this.label21 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.button8 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.label35 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label34 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.label29 = new System.Windows.Forms.Label();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
@ -75,7 +85,6 @@ namespace RBXLegacyLauncher
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button3 = new System.Windows.Forms.Button();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
@ -88,11 +97,13 @@ namespace RBXLegacyLauncher
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.button6 = new System.Windows.Forms.Button();
this.textBox5 = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage4.SuspendLayout();
this.SuspendLayout();
//
@ -116,22 +127,19 @@ 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.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, 113);
this.tabControl1.Location = new System.Drawing.Point(12, 137);
this.tabControl1.Multiline = true;
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(398, 319);
this.tabControl1.Size = new System.Drawing.Size(398, 295);
this.tabControl1.TabIndex = 1;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.checkBox4);
this.tabPage1.Controls.Add(this.textBox3);
this.tabPage1.Controls.Add(this.label29);
this.tabPage1.Controls.Add(this.checkBox3);
this.tabPage1.Controls.Add(this.label17);
this.tabPage1.Controls.Add(this.label16);
this.tabPage1.Controls.Add(this.label4);
@ -142,54 +150,16 @@ namespace RBXLegacyLauncher
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.tabPage1.Size = new System.Drawing.Size(390, 293);
this.tabPage1.Size = new System.Drawing.Size(390, 269);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "JOIN SERVER";
this.tabPage1.UseVisualStyleBackColor = true;
//
// checkBox4
//
this.checkBox4.Location = new System.Drawing.Point(182, 50);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(147, 18);
this.checkBox4.TabIndex = 21;
this.checkBox4.Text = "Use Character Outfit IDs";
this.checkBox4.UseVisualStyleBackColor = true;
this.checkBox4.CheckedChanged += new System.EventHandler(this.CheckBox4CheckedChanged);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(80, 90);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(218, 20);
this.textBox3.TabIndex = 20;
this.textBox3.Text = "0";
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox3.TextChanged += new System.EventHandler(this.TextBox3TextChanged);
//
// label29
//
this.label29.Location = new System.Drawing.Point(114, 71);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(149, 19);
this.label29.TabIndex = 19;
this.label29.Text = "Character Outfit ID (Optional)";
//
// checkBox3
//
this.checkBox3.Location = new System.Drawing.Point(68, 50);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(108, 18);
this.checkBox3.TabIndex = 18;
this.checkBox3.Text = "Local Play Mode";
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged);
//
// label17
//
this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label17.Location = new System.Drawing.Point(6, 197);
this.label17.Location = new System.Drawing.Point(6, 190);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(378, 2);
this.label17.TabIndex = 14;
@ -198,7 +168,7 @@ namespace RBXLegacyLauncher
//
this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label16.Location = new System.Drawing.Point(6, 115);
this.label16.Location = new System.Drawing.Point(6, 49);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(378, 2);
this.label16.TabIndex = 13;
@ -208,11 +178,11 @@ namespace RBXLegacyLauncher
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.Color.Red;
this.label4.Location = new System.Drawing.Point(54, 115);
this.label4.Location = new System.Drawing.Point(6, 51);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(273, 84);
this.label4.Size = new System.Drawing.Size(378, 139);
this.label4.TabIndex = 4;
this.label4.Text = resources.GetString("label4.Text");
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -221,9 +191,9 @@ namespace RBXLegacyLauncher
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button1.Location = new System.Drawing.Point(80, 202);
this.button1.Location = new System.Drawing.Point(80, 195);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(218, 80);
this.button1.Size = new System.Drawing.Size(218, 68);
this.button1.TabIndex = 3;
this.button1.Text = "JOIN SERVER";
this.button1.UseVisualStyleBackColor = true;
@ -255,8 +225,6 @@ namespace RBXLegacyLauncher
// tabPage2
//
this.tabPage2.Controls.Add(this.label32);
this.tabPage2.Controls.Add(this.checkBox2);
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Controls.Add(this.label20);
this.tabPage2.Controls.Add(this.label19);
this.tabPage2.Controls.Add(this.button2);
@ -265,48 +233,28 @@ namespace RBXLegacyLauncher
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(390, 293);
this.tabPage2.Size = new System.Drawing.Size(390, 269);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "START SERVER";
this.tabPage2.UseVisualStyleBackColor = true;
//
// label32
//
this.label32.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label32.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label32.ForeColor = System.Drawing.Color.Red;
this.label32.Location = new System.Drawing.Point(117, 150);
this.label32.Location = new System.Drawing.Point(6, 166);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(141, 40);
this.label32.Size = new System.Drawing.Size(378, 53);
this.label32.TabIndex = 19;
this.label32.Text = "NOTE: Be sure you have port forwarded the port 53640 before you start a public se" +
"rver.";
this.label32.Text = "NOTE: Be sure you have port forwarded the server\'s port before you start a public" +
" server. This port can be found and changed in the OPTIONS tab.";
this.label32.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// checkBox2
//
this.checkBox2.Checked = true;
this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox2.Location = new System.Drawing.Point(98, 207);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(176, 17);
this.checkBox2.TabIndex = 16;
this.checkBox2.Text = "Random Body Color Patterns";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox2.CheckedChanged += new System.EventHandler(this.CheckBox2CheckedChanged);
//
// label12
//
this.label12.Location = new System.Drawing.Point(141, 193);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(87, 17);
this.label12.TabIndex = 15;
this.label12.Text = "Server Settings:";
//
// label20
//
this.label20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label20.Location = new System.Drawing.Point(6, 191);
this.label20.Location = new System.Drawing.Point(6, 219);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(378, 2);
this.label20.TabIndex = 14;
@ -315,7 +263,7 @@ namespace RBXLegacyLauncher
//
this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label19.Location = new System.Drawing.Point(6, 146);
this.label19.Location = new System.Drawing.Point(6, 164);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(378, 2);
this.label19.TabIndex = 13;
@ -324,9 +272,9 @@ namespace RBXLegacyLauncher
//
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.button2.Location = new System.Drawing.Point(98, 230);
this.button2.Location = new System.Drawing.Point(98, 224);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(176, 57);
this.button2.Size = new System.Drawing.Size(176, 39);
this.button2.TabIndex = 2;
this.button2.Text = "START SERVER";
this.button2.UseVisualStyleBackColor = true;
@ -351,24 +299,36 @@ namespace RBXLegacyLauncher
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(6, 22);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(378, 121);
this.listBox1.Size = new System.Drawing.Size(378, 134);
this.listBox1.TabIndex = 0;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged);
//
// tabPage3
//
this.tabPage3.Controls.Add(this.textBox6);
this.tabPage3.Controls.Add(this.label30);
this.tabPage3.Controls.Add(this.listBox2);
this.tabPage3.Controls.Add(this.label21);
this.tabPage3.Controls.Add(this.label18);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(390, 293);
this.tabPage3.Size = new System.Drawing.Size(390, 269);
this.tabPage3.TabIndex = 4;
this.tabPage3.Text = "CLIENTS";
this.tabPage3.UseVisualStyleBackColor = true;
//
// textBox6
//
this.textBox6.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.textBox6.Location = new System.Drawing.Point(6, 201);
this.textBox6.Multiline = true;
this.textBox6.Name = "textBox6";
this.textBox6.ReadOnly = true;
this.textBox6.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBox6.Size = new System.Drawing.Size(378, 62);
this.textBox6.TabIndex = 4;
this.textBox6.Text = "textBox6";
//
// label30
//
this.label30.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -390,14 +350,6 @@ namespace RBXLegacyLauncher
this.listBox2.TabIndex = 2;
this.listBox2.SelectedIndexChanged += new System.EventHandler(this.ListBox2SelectedIndexChanged);
//
// label21
//
this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label21.Location = new System.Drawing.Point(6, 198);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(378, 92);
this.label21.TabIndex = 1;
//
// label18
//
this.label18.Location = new System.Drawing.Point(3, 183);
@ -406,6 +358,170 @@ namespace RBXLegacyLauncher
this.label18.TabIndex = 0;
this.label18.Text = "CLIENT INFORMATION:";
//
// tabPage5
//
this.tabPage5.Controls.Add(this.checkBox5);
this.tabPage5.Controls.Add(this.button8);
this.tabPage5.Controls.Add(this.button7);
this.tabPage5.Controls.Add(this.label35);
this.tabPage5.Controls.Add(this.textBox4);
this.tabPage5.Controls.Add(this.label34);
this.tabPage5.Controls.Add(this.label12);
this.tabPage5.Controls.Add(this.label33);
this.tabPage5.Controls.Add(this.label31);
this.tabPage5.Controls.Add(this.label2);
this.tabPage5.Controls.Add(this.checkBox2);
this.tabPage5.Controls.Add(this.checkBox4);
this.tabPage5.Controls.Add(this.textBox3);
this.tabPage5.Controls.Add(this.label29);
this.tabPage5.Controls.Add(this.checkBox3);
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
this.tabPage5.Size = new System.Drawing.Size(390, 269);
this.tabPage5.TabIndex = 5;
this.tabPage5.Text = "OPTIONS";
this.tabPage5.UseVisualStyleBackColor = true;
//
// checkBox5
//
this.checkBox5.Location = new System.Drawing.Point(213, 18);
this.checkBox5.Name = "checkBox5";
this.checkBox5.Size = new System.Drawing.Size(149, 24);
this.checkBox5.TabIndex = 36;
this.checkBox5.Text = "Use Custom Outfits";
this.checkBox5.UseVisualStyleBackColor = true;
this.checkBox5.CheckedChanged += new System.EventHandler(this.CheckBox5CheckedChanged);
//
// button8
//
this.button8.Enabled = false;
this.button8.Location = new System.Drawing.Point(213, 42);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(149, 42);
this.button8.TabIndex = 35;
this.button8.Text = "Customize Character (Advanced)";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.Button8Click);
//
// button7
//
this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button7.Location = new System.Drawing.Point(105, 219);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(158, 44);
this.button7.TabIndex = 34;
this.button7.Text = "Save Config";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.Button7Click);
//
// label35
//
this.label35.Location = new System.Drawing.Point(77, 126);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(222, 16);
this.label35.TabIndex = 33;
this.label35.Text = "PORT (Used for starting and joining servers)";
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(77, 145);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(211, 20);
this.textBox4.TabIndex = 32;
this.textBox4.Text = "53640";
this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox4.TextChanged += new System.EventHandler(this.TextBox4TextChanged);
//
// label34
//
this.label34.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label34.Location = new System.Drawing.Point(6, 177);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(378, 2);
this.label34.TabIndex = 31;
//
// label12
//
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label12.Location = new System.Drawing.Point(6, 87);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(378, 2);
this.label12.TabIndex = 30;
//
// label33
//
this.label33.Location = new System.Drawing.Point(141, 179);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(79, 13);
this.label33.TabIndex = 29;
this.label33.Text = "LAN OPTIONS";
//
// label31
//
this.label31.Location = new System.Drawing.Point(128, 89);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(110, 14);
this.label31.TabIndex = 28;
this.label31.Text = "SERVER SETTINGS";
//
// label2
//
this.label2.Location = new System.Drawing.Point(77, 5);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(222, 13);
this.label2.TabIndex = 27;
this.label2.Text = "PLAYER OPTIONS AND CUSTOMIZATION";
//
// checkBox2
//
this.checkBox2.Checked = true;
this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox2.Location = new System.Drawing.Point(96, 106);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(176, 17);
this.checkBox2.TabIndex = 26;
this.checkBox2.Text = "Random Body Color Patterns";
this.checkBox2.UseVisualStyleBackColor = true;
//
// checkBox4
//
this.checkBox4.Location = new System.Drawing.Point(22, 21);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(147, 18);
this.checkBox4.TabIndex = 25;
this.checkBox4.Text = "Use Character Outfit IDs";
this.checkBox4.UseVisualStyleBackColor = true;
this.checkBox4.CheckedChanged += new System.EventHandler(this.CheckBox4CheckedChanged);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(22, 64);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(147, 20);
this.textBox3.TabIndex = 24;
this.textBox3.Text = "0";
this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox3.TextChanged += new System.EventHandler(this.TextBox3TextChanged);
//
// label29
//
this.label29.Location = new System.Drawing.Point(6, 42);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(201, 19);
this.label29.TabIndex = 23;
this.label29.Text = "Character ID (Optional, used for outfits)";
//
// checkBox3
//
this.checkBox3.Location = new System.Drawing.Point(128, 195);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(108, 18);
this.checkBox3.TabIndex = 22;
this.checkBox3.Text = "Local Play Mode";
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox3.CheckedChanged += new System.EventHandler(this.CheckBox3CheckedChanged);
//
// tabPage4
//
this.tabPage4.Controls.Add(this.label11);
@ -418,7 +534,7 @@ namespace RBXLegacyLauncher
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(390, 293);
this.tabPage4.Size = new System.Drawing.Size(390, 269);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "ABOUT";
this.tabPage4.UseVisualStyleBackColor = true;
@ -445,7 +561,7 @@ namespace RBXLegacyLauncher
//
this.label9.Location = new System.Drawing.Point(6, 96);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(378, 131);
this.label9.Size = new System.Drawing.Size(378, 170);
this.label9.TabIndex = 4;
this.label9.Text = resources.GetString("label9.Text");
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -519,20 +635,11 @@ namespace RBXLegacyLauncher
this.label13.TabIndex = 7;
this.label13.Text = "ID:";
//
// label14
//
this.label14.Location = new System.Drawing.Point(59, 88);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(87, 13);
this.label14.TabIndex = 8;
this.label14.Text = "0";
this.label14.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// button4
//
this.button4.Location = new System.Drawing.Point(152, 67);
this.button4.Location = new System.Drawing.Point(12, 105);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(84, 40);
this.button4.Size = new System.Drawing.Size(224, 26);
this.button4.TabIndex = 9;
this.button4.Text = "Regenerate Player ID";
this.button4.UseVisualStyleBackColor = true;
@ -541,9 +648,9 @@ namespace RBXLegacyLauncher
// button5
//
this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button5.Location = new System.Drawing.Point(302, 111);
this.button5.Location = new System.Drawing.Point(250, 111);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(106, 20);
this.button5.Size = new System.Drawing.Size(158, 20);
this.button5.TabIndex = 10;
this.button5.Text = "Save Config";
this.button5.UseVisualStyleBackColor = true;
@ -553,7 +660,7 @@ namespace RBXLegacyLauncher
//
this.textBox2.Location = new System.Drawing.Point(59, 65);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(87, 20);
this.textBox2.Size = new System.Drawing.Size(177, 20);
this.textBox2.TabIndex = 11;
this.textBox2.Text = "Player";
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
@ -581,7 +688,7 @@ namespace RBXLegacyLauncher
this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label23.Location = new System.Drawing.Point(242, 46);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(2, 66);
this.label23.Size = new System.Drawing.Size(2, 85);
this.label23.TabIndex = 14;
//
// label24
@ -636,6 +743,17 @@ namespace RBXLegacyLauncher
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.Button6Click);
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(59, 86);
this.textBox5.Multiline = true;
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(177, 18);
this.textBox5.TabIndex = 20;
this.textBox5.Text = "0";
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -643,6 +761,7 @@ namespace RBXLegacyLauncher
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(412, 444);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.button6);
this.Controls.Add(this.label28);
this.Controls.Add(this.label27);
@ -655,7 +774,6 @@ namespace RBXLegacyLauncher
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.label14);
this.Controls.Add(this.label13);
this.Controls.Add(this.button3);
this.Controls.Add(this.checkBox1);
@ -674,10 +792,25 @@ namespace RBXLegacyLauncher
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.tabPage5.ResumeLayout(false);
this.tabPage5.PerformLayout();
this.tabPage4.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.CheckBox checkBox5;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label label33;
private System.Windows.Forms.Label label34;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.Label label35;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.CheckBox checkBox4;
@ -695,12 +828,10 @@ namespace RBXLegacyLauncher
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.CheckBox checkBox2;

View File

@ -70,41 +70,66 @@ namespace RBXLegacyLauncher
if (result == DialogResult.Cancel)
return;
string luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
string luafile = "";
if (GlobalVars.ModernClient == true)
{
luafile = "rbxasset://scripts\\\\CSMPFunctions_Modern.lua";
}
else if (GlobalVars.ModernClient == false)
{
luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
}
string rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
string quote = "\"";
string args = "";
if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs())
if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.CharacterAppearanceID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player'," + GlobalVars.CharacterAppearanceID + ");" + quote;
}
//how the fuck does this even happen? oh well.
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.CharacterAppearanceID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player'," + GlobalVars.CharacterAppearanceID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorID + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorID + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + ");" + quote;
}
//how the fuck does this even happen? oh well.
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorID + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorID + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + ");" + quote;
}
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "');" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player');" + quote;
}
//how the fuck does this even happen? oh well.
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "');" + quote;
}
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs())
else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits())
{
args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player');" + quote;
}
@ -113,7 +138,14 @@ namespace RBXLegacyLauncher
{
GeneratePlayerID();
}
Process.Start(rbxexe, args);
try
{
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
if (GlobalVars.CloseOnLaunch == true)
{
this.Close();
@ -126,7 +158,15 @@ namespace RBXLegacyLauncher
if (result == DialogResult.Cancel)
return;
string luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
string luafile = "";
if (GlobalVars.ModernClient == true)
{
luafile = "rbxasset://scripts\\\\CSMPFunctions_Modern.lua";
}
else if (GlobalVars.ModernClient == false)
{
luafile = "rbxasset://scripts\\\\CSMPFunctions.lua";
}
string mapfile = GlobalVars.MapsDir + @"\\" + GlobalVars.Map;
string rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
string quote = "\"";
@ -139,7 +179,14 @@ namespace RBXLegacyLauncher
{
args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSServer(" + GlobalVars.RobloxPort + ",false);";
}
Process.Start(rbxexe, args);
try
{
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
if (GlobalVars.CloseOnLaunch == true)
{
this.Close();
@ -164,8 +211,14 @@ namespace RBXLegacyLauncher
{
args = quote + mapfile + quote;
}
Process.Start(rbxexe, args);
try
{
Process.Start(rbxexe, args);
}
catch (Exception ex)
{
DialogResult result2 = MessageBox.Show("Failed to launch RBXLegacy. (Error: " + ex.Message + ")","RBXLegacy Launcher - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
if (GlobalVars.CloseOnLaunch == true)
{
this.Close();
@ -196,7 +249,7 @@ namespace RBXLegacyLauncher
void ReadConfigValues()
{
string line1, line2, line3, line4, line5, line6, line7, line8;
string line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17;
using(StreamReader reader = new StreamReader("config.txt"))
{
@ -208,6 +261,15 @@ namespace RBXLegacyLauncher
line6 = reader.ReadLine();
line7 = reader.ReadLine();
line8 = reader.ReadLine();
line9 = reader.ReadLine();
line10 = reader.ReadLine();
line11 = reader.ReadLine();
line12 = reader.ReadLine();
line13 = reader.ReadLine();
line14 = reader.ReadLine();
line15 = reader.ReadLine();
line16 = reader.ReadLine();
line17 = reader.ReadLine();
}
bool bline1 = Convert.ToBoolean(line1);
@ -231,6 +293,32 @@ namespace RBXLegacyLauncher
GlobalVars.Map = line8;
int iline9 = Convert.ToInt32(line9);
GlobalVars.RobloxPort = iline9;
bool bline10 = Convert.ToBoolean(line10);
GlobalVars.UseCustomAppearanceID = bline10;
GlobalVars.Custom_ColorID = line11;
int iline12 = Convert.ToInt32(line12);
GlobalVars.Custom_ShirtsID = iline12;
int iline13 = Convert.ToInt32(line13);
GlobalVars.Custom_PantsID = iline13;
int iline14 = Convert.ToInt32(line14);
GlobalVars.Custom_TShirtsID = iline14;
int iline15 = Convert.ToInt32(line15);
GlobalVars.Custom_Hat1ID = iline15;
int iline16 = Convert.ToInt32(line16);
GlobalVars.Custom_Hat2ID = iline16;
int iline17 = Convert.ToInt32(line17);
GlobalVars.Custom_Hat3ID = iline17;
if (GlobalVars.CloseOnLaunch == true)
{
checkBox1.Checked = true;
@ -254,12 +342,26 @@ namespace RBXLegacyLauncher
textBox3.Enabled = true;
checkBox4.Enabled = true;
checkBox4.Checked = true;
checkBox5.Enabled = false;
}
else if (GlobalVars.UseAppearanceID == false)
{
textBox3.Enabled = false;
checkBox4.Enabled = false;
checkBox4.Checked = false;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = true;
}
}
if (GlobalVars.UseCustomAppearanceID == false)
{
checkBox5.Checked = false;
}
else if (GlobalVars.UseCustomAppearanceID == true)
{
checkBox5.Checked = true;
}
if (iline3 == 0)
@ -269,7 +371,7 @@ namespace RBXLegacyLauncher
}
else
{
label14.Text = Convert.ToString(iline3);
textBox5.Text = Convert.ToString(iline3);
}
textBox2.Text = GlobalVars.PlayerName;
@ -278,12 +380,13 @@ namespace RBXLegacyLauncher
label28.Text = GlobalVars.Map;
listBox1.SelectedItem = GlobalVars.Map;
textBox3.Text = GlobalVars.CharacterAppearanceID.ToString();
textBox4.Text = GlobalVars.RobloxPort.ToString();
ReadClientValues(GlobalVars.SelectedClient);
}
void WriteConfigValues()
{
string[] lines = { GlobalVars.CloseOnLaunch.ToString(), GlobalVars.BodyColors.ToString(), GlobalVars.UserID.ToString(), GlobalVars.PlayerName.ToString(), GlobalVars.SelectedClient.ToString(), GlobalVars.CharacterAppearanceID.ToString(), GlobalVars.UseAppearanceID.ToString(), GlobalVars.Map.ToString() };
string[] lines = { GlobalVars.CloseOnLaunch.ToString(), GlobalVars.BodyColors.ToString(), GlobalVars.UserID.ToString(), GlobalVars.PlayerName.ToString(), GlobalVars.SelectedClient.ToString(), GlobalVars.CharacterAppearanceID.ToString(), GlobalVars.UseAppearanceID.ToString(), GlobalVars.Map.ToString(), GlobalVars.RobloxPort.ToString(), GlobalVars.UseCustomAppearanceID.ToString(), GlobalVars.Custom_ColorID.ToString(), GlobalVars.Custom_ShirtsID.ToString(), GlobalVars.Custom_PantsID.ToString(), GlobalVars.Custom_TShirtsID.ToString(), GlobalVars.Custom_Hat1ID.ToString(), GlobalVars.Custom_Hat2ID.ToString(), GlobalVars.Custom_Hat3ID.ToString()};
File.WriteAllLines("config.txt", lines);
}
@ -293,10 +396,11 @@ namespace RBXLegacyLauncher
if (!File.Exists(clientpath))
{
MessageBox.Show("No clientinfo.txt detected with the client you chose. The client cannot be loaded.","RBXLegacy Launcher - Error while loading client", MessageBoxButtons.OK, MessageBoxIcon.Error);
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";
}
string line1, line2, line3, line4, line5, line6, line7;
string line1, line2, line3, line4, line5, line6, line7, line8;
using(StreamReader reader = new StreamReader(clientpath))
{
@ -307,6 +411,7 @@ namespace RBXLegacyLauncher
line5 = reader.ReadLine();
line6 = reader.ReadLine();
line7 = reader.ReadLine();
line8 = reader.ReadLine();
}
bool bline1 = Convert.ToBoolean(line1);
@ -327,7 +432,10 @@ namespace RBXLegacyLauncher
bool bline6 = Convert.ToBoolean(line6);
GlobalVars.ModernClient = bline6;
GlobalVars.SelectedClientDesc = line7;
bool bline7 = Convert.ToBoolean(line7);
GlobalVars.SupportsCharacterCustomization = bline7;
GlobalVars.SelectedClientDesc = line8;
if (GlobalVars.UsesPlayerName == true)
{
@ -340,12 +448,12 @@ namespace RBXLegacyLauncher
if (GlobalVars.UsesID == true)
{
label14.Enabled = true;
textBox5.Enabled = true;
button4.Enabled = true;
}
else if (GlobalVars.UsesID == false)
{
label14.Enabled = false;
textBox5.Enabled = false;
button4.Enabled = false;
checkBox3.Enabled = false;
GlobalVars.LocalPlayMode = false;
@ -364,20 +472,35 @@ namespace RBXLegacyLauncher
if (GlobalVars.SupportsAppearanceID == false)
{
checkBox4.Enabled = false;
checkBox4.Checked = false;
textBox3.Enabled = false;
GlobalVars.UseAppearanceID = false;
}
else if (GlobalVars.SupportsAppearanceID == true)
{
checkBox4.Enabled = true;
if (GlobalVars.UseCustomAppearanceID == false)
{
checkBox4.Enabled = true;
}
if (GlobalVars.UseAppearanceID == false)
{
textBox3.Enabled = false;
checkBox4.Checked = false;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = true;
}
}
else if (GlobalVars.UseAppearanceID == true)
{
textBox3.Enabled = true;
checkBox4.Checked = true;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = false;
button8.Enabled = false;
}
}
}
@ -390,7 +513,20 @@ namespace RBXLegacyLauncher
label30.Visible = true;
}
label21.Text = GlobalVars.SelectedClientDesc;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = true;
button8.Enabled = true;
}
else if (GlobalVars.SupportsCharacterCustomization == false)
{
checkBox5.Enabled = false;
checkBox5.Checked = false;
button8.Enabled = false;
GlobalVars.UseCustomAppearanceID = false;
}
textBox6.Text = GlobalVars.SelectedClientDesc;
label26.Text = GlobalVars.SelectedClient;
}
@ -433,7 +569,7 @@ namespace RBXLegacyLauncher
}
//2147483647 is max id.
GlobalVars.UserID = randomID;
label14.Text = Convert.ToString(GlobalVars.UserID);
textBox5.Text = Convert.ToString(GlobalVars.UserID);
}
void TextBox1TextChanged(object sender, EventArgs e)
@ -507,7 +643,23 @@ namespace RBXLegacyLauncher
void TextBox3TextChanged(object sender, EventArgs e)
{
GlobalVars.CharacterAppearanceID = Convert.ToInt32(textBox3.Text);
int parsedValue;
if (int.TryParse(textBox3.Text, out parsedValue))
{
if (textBox3.Text == "")
{
GlobalVars.CharacterAppearanceID = 0;
textBox3.Text = "0";
}
else
{
GlobalVars.CharacterAppearanceID = Convert.ToInt32(textBox3.Text);
}
}
else
{
textBox3.Text = "0";
}
}
void Button6Click(object sender, EventArgs e)
@ -518,16 +670,34 @@ namespace RBXLegacyLauncher
void CheckBox4CheckedChanged(object sender, EventArgs e)
{
if (checkBox4.Checked == true)
if (GlobalVars.SupportsAppearanceID == true)
{
GlobalVars.UseAppearanceID = true;
textBox3.Enabled = true;
if (checkBox4.Checked == true)
{
GlobalVars.UseAppearanceID = true;
textBox3.Enabled = true;
GlobalVars.UseCustomAppearanceID = false;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = false;
button8.Enabled = false;
if (checkBox5.Checked == true)
{
GlobalVars.UseCustomAppearanceID = false;
checkBox5.Checked = false;
}
}
}
else if (checkBox4.Checked == false)
{
GlobalVars.UseAppearanceID = false;
textBox3.Enabled = false;
if (GlobalVars.SupportsCharacterCustomization == true)
{
checkBox5.Enabled = true;
}
}
}
else if (checkBox4.Checked == false)
{
GlobalVars.UseAppearanceID = false;
textBox3.Enabled = false;
}
}
bool IsUsingCharacterOutfitIDs()
@ -543,5 +713,97 @@ namespace RBXLegacyLauncher
return true;
}
bool IsUsingCustomOutfits()
{
if (GlobalVars.SupportsCharacterCustomization == false)
return false;
if (GlobalVars.UseCustomAppearanceID == false)
return false;
return true;
}
void Button7Click(object sender, EventArgs e)
{
WriteConfigValues();
}
void TextBox4TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox4.Text, out parsedValue))
{
if (textBox4.Text == "")
{
//set it to the normal port, 53640. it wouldn't make any sense if we set it to 0.
GlobalVars.RobloxPort = GlobalVars.DefaultRobloxPort;
textBox4.Text = GlobalVars.DefaultRobloxPort.ToString();
}
else
{
GlobalVars.RobloxPort = Convert.ToInt32(textBox4.Text);
}
}
else
{
textBox4.Text = GlobalVars.DefaultRobloxPort.ToString();
}
}
void TextBox5TextChanged(object sender, EventArgs e)
{
int parsedValue;
if (int.TryParse(textBox5.Text, out parsedValue))
{
if (textBox5.Text == "")
{
GlobalVars.UserID = 0;
textBox5.Text = "0";
}
else
{
GlobalVars.UserID = Convert.ToInt32(textBox5.Text);
}
}
else
{
textBox5.Text = "0";
}
}
void CheckBox5CheckedChanged(object sender, EventArgs e)
{
if (checkBox5.Checked == true)
{
GlobalVars.UseCustomAppearanceID = true;
button8.Enabled = true;
if (GlobalVars.SupportsAppearanceID == true)
{
checkBox4.Enabled = false;
if (checkBox4.Checked == true)
{
GlobalVars.UseAppearanceID = false;
checkBox4.Checked = false;
}
}
}
else if (checkBox5.Checked == false)
{
GlobalVars.UseCustomAppearanceID = false;
button8.Enabled = false;
if (GlobalVars.SupportsAppearanceID == true)
{
checkBox4.Enabled = true;
}
}
}
void Button8Click(object sender, EventArgs e)
{
CharacterCustomization ccustom = new CharacterCustomization();
ccustom.Show();
}
}
}

View File

@ -202,14 +202,15 @@
On8f3Y6OTrejo9Pt6Oh0Ozo63Y6OTrejo/Hr1/8Ak7ap1Jj4mP8AAAAASUVORK5CYII=
</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>NOTE: Make sure the server you join is in the region of the world you live in! (i.e West US, East US, Europe, etc). If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER. If you tried to connect to the server and you get an error, REJOIN THE SERVER. If the server requires a different port than the normal ROBLOX port (53640), change it in the OPTIONS tab.</value>
</data>
<data name="label30.Text" xml:space="preserve">
<value>WARNING: This client loads assets directly from a server. This means that you may not be able to play it over a LAN or local connection without internet access. This may also mean that some things won't load (i.e the healthbar)</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>NOTE: Make sure the server you join is in the region of the world you live in! (i.e West US, East US, Europe, etc). If you have a problem where you can't see your character, REGENERATE YOUR PLAYER ID THEN REJOIN THE SERVER. If you tried to connect to the server and you get an error, REJOIN THE SERVER.</value>
</data>
<data name="label9.Text" xml:space="preserve">
<value>ROBLOX and the ROBLOX Clients were made by the ROBLOX Corporation. The ROBLOX Corporation does not support or endorse the creation of RBXLegacy. Bitl is not affiliated with the ROBLOX Corporation or its subsidiaries. Bitl does not own any of the content included with RBXLegacy. The clients 2008-2010 are not modified in any way. However, a modified 2011 client was added which was modified by the RBXPri team. LUA scripts were used to build a client that can connect to LAN and the Internet. The LUA scripts used were borrowed from the RBXPri client and merged into 1 single script. All credit for the LUA code included with the RBXPri client goes to the RBXPri team.</value>
<value>ROBLOX and the ROBLOX Clients were made by the ROBLOX Corporation. The ROBLOX Corporation does not support or endorse the creation of RBXLegacy. Bitl is not affiliated with the ROBLOX Corporation or its subsidiaries. Bitl does not own any of the content included with RBXLegacy. The clients 2008-2010 are not modified in any way. However, a modified 2011 client and a modified Mid-2008 client are included, both not modified by Bitl. LUA scripts were used to build a client that can connect to LAN and the Internet. The LUA scripts used were borrowed from the RBXPri client and merged into 1 single script. All credit for the LUA code included with the RBXPri client goes to the RBXPri team. All credit for the LUA code used with "non-modern" clients goes to Scripter John.
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

View File

@ -60,6 +60,10 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CharacterCustomization.cs" />
<Compile Include="CharacterCustomization.Designer.cs">
<DependentUpon>CharacterCustomization.cs</DependentUpon>
</Compile>
<Compile Include="ClientinfoCreator.cs" />
<Compile Include="ClientinfoCreator.Designer.cs">
<DependentUpon>ClientinfoCreator.cs</DependentUpon>
@ -74,6 +78,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="CharacterCustomization.resx">
<DependentUpon>CharacterCustomization.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ClientinfoCreator.resx">
<DependentUpon>ClientinfoCreator.cs</DependentUpon>
</EmbeddedResource>

View File

@ -1,7 +0,0 @@
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\bin\Release\RBXLegacyLauncher.exe.config
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\bin\Release\RBXLegacyLauncher.exe
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.csprojResolveAssemblyReference.cache
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.ClientinfoEditor.resources
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.MainForm.resources
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.csproj.GenerateResource.Cache
C:\Users\BITL\Documents\GitHub\RBXLegacy-src\RBXLegacyLauncher\RBXLegacyLauncher\obj\Release\RBXLegacyLauncher.exe

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.7.2"
#define AppVer "1.8.1"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.