diff --git a/CSMPFunctions.lua b/CSMPFunctions.lua index ce200a2..53f8eb0 100644 --- a/CSMPFunctions.lua +++ b/CSMPFunctions.lua @@ -59,9 +59,9 @@ LLegColor=BrickColor.DarkGray(); RArmColor=BrickColor.DarkGray(); RLegColor=BrickColor.DarkGray(); --localized hats. -Hat1 = "rbxasset://charcustom/hats/fedora.rbxm" -Hat2 = "rbxasset://charcustom/hats/fedora.rbxm" -Hat3 = "rbxasset://charcustom/hats/fedora.rbxm" +Hat1 = "fedora.rbxm" +Hat2 = "fedora.rbxm" +Hat3 = "fedora.rbxm" function PlayerColorize() if (rbxlegacyversion == "pre-alpha") then @@ -301,331 +301,7 @@ function CSServer(Port,BodyColors) end end -function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,ColorHash,PantsID,ShirtID,TShirtID,Hat1ID,Hat2ID,Hat3ID,Hat1Version,Hat2Version,Hat3Version,Ticket) - if (rbxlegacyversion == "delta") then - pcall(function() game:SetPlaceID(-1, false) end); - pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end); - - pcall(function() - game:GetService("GuiService").Changed:connect(function() - pcall(function() game:GetService("GuiService").ShowLegacyPlayerList=true; end); - pcall(function() game.CoreGui.RobloxGui.PlayerListScript:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.PlayerListTopRightFrame:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.BigPlayerListWindowImposter:Remove(); end); - 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); - end - return Number; - 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..."); - 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); - end) - while RequestingMarker do - Workspace:ZoomToExtents(); - wait(0.5); - end - end - - local function ConnectionFailed(Peer, Code, why) - SetMessage("Failed to connect to the Game. (ID="..Code.." ["..why.."])"); - 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)"); - end) - - pcall(function() NetworkClient.Ticket=Ticket or ""; end) -- 2008 client has no ticket :O - PlayerSuccess,Player=pcall(function() return NetworkClient:PlayerConnect(UserID,ServerIP,ServerPort) end); - - if (not PlayerSuccess) then - SetMessage("Failed to connect to the Game. (Invalid IP Address)"); - NetworkClient:Disconnect(); - end - - if (not PlayerSuccess) then - local Error,Message=pcall(function() - Player=game:GetService("Players"):CreateLocalPlayer(UserID); - NetworkClient:Connect(ServerIP,ServerPort); - end); - if (not Error) then - SetMessage("Failed to connect to the Game."); - end - 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 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="..Hat1Version..";"..aid..Hat2ID.."&version="..Hat2Version..";"..aid..Hat3ID.."&version="..Hat3Version..";" - Player.CharacterAppearance = charapp - else - Player.CharacterAppearance=0; - end - pcall(function() Player.Name=PlayerName or ""; end); - pcall(function() Visit:SetUploadUrl(""); end); - game:GetService("Visit"); - elseif (rbxlegacyversion == "delta-gamma") then - pcall(function() game:SetPlaceID(-1, false) end); - pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end); - - pcall(function() - game:GetService("GuiService").Changed:connect(function() - pcall(function() game:GetService("GuiService").ShowLegacyPlayerList=true; end); - pcall(function() game.CoreGui.RobloxGui.PlayerListScript:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.PlayerListTopRightFrame:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.BigPlayerListWindowImposter:Remove(); end); - 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); - end - return Number; - 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..."); - 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); - end) - while RequestingMarker do - Workspace:ZoomToExtents(); - wait(0.5); - end - end - - local function ConnectionFailed(Peer, Code, why) - SetMessage("Failed to connect to the Game. (ID="..Code.." ["..why.."])"); - 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)"); - end) - - pcall(function() NetworkClient.Ticket=Ticket or ""; end) -- 2008 client has no ticket :O - PlayerSuccess,Player=pcall(function() return NetworkClient:PlayerConnect(UserID,ServerIP,ServerPort) end); - - if (not PlayerSuccess) then - SetMessage("Failed to connect to the Game. (Invalid IP Address)"); - NetworkClient:Disconnect(); - end - - if (not PlayerSuccess) then - local Error,Message=pcall(function() - Player=game:GetService("Players"):CreateLocalPlayer(UserID); - NetworkClient:Connect(ServerIP,ServerPort); - end); - if (not Error) then - SetMessage("Failed to connect to the Game."); - end - 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 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="..Hat1Version..";"..aid..Hat2ID.."&version="..Hat2Version..";"..aid..Hat3ID.."&version="..Hat3Version..";" - Player.CharacterAppearance = charapp - else - Player.CharacterAppearance=0; - end - pcall(function() Player.Name=PlayerName or ""; end); - pcall(function() Visit:SetUploadUrl(""); end); - 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); - - pcall(function() - game:GetService("GuiService").Changed:connect(function() - pcall(function() game:GetService("GuiService").ShowLegacyPlayerList=true; end); - pcall(function() game.CoreGui.RobloxGui.PlayerListScript:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.PlayerListTopRightFrame:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.BigPlayerListWindowImposter:Remove(); end); - pcall(function() game.CoreGui.RobloxGui.BigPlayerlist:Remove(); end); - end); - end) - - 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="..Hat1Version..";"..aid..Hat2ID.."&version="..Hat2Version..";"..aid..Hat3ID.."&version="..Hat3Version..";" - player.CharacterAppearance = charapp - else - player.CharacterAppearance=0; - end - pcall(function() player.Name=PlayerName or ""; end); - game:GetService("Visit"); - end) - - local function dieerror(errmsg) - game:SetMessage(errmsg) - wait(math.huge) - end - - if not suc then - dieerror(err) - end - - local function disconnect(peer,lostconnection) - game:SetMessage("You have lost connection to the game") - end - - local function connected(url, replicator) - replicator.Disconnection:connect(disconnect) - local marker = nil - local suc, err = pcall(function() - game:SetMessageBrickCount() - marker = replicator:SendMarker() - end) - 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 rejected() - dieerror("Failed to connect to the Game. (Connection rejected)") - end - - 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) - if (rbxlegacyversion == "pre-alpha") then - game.GuiRoot.MainMenu["Toolbox"]:Remove() - game.GuiRoot.MainMenu["Edit Mode"]:Remove() - else - game.GuiRoot.MainMenu["Tools"]:Remove() - game.GuiRoot.MainMenu["Insert"]:Remove() - end - game.GuiRoot.RightPalette.ReportAbuse:Remove() - end) - - if not suc then - local x = Instance.new("Message") - x.Text = err - x.Parent = workspace - wait(math.huge) - end - end -end - ---same function but with our new localized customization system! -function CSConnect2(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,Hat3ID,Ticket) +function CSConnect(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,Ticket) if (rbxlegacyversion == "delta") then pcall(function() game:SetPlaceID(-1, false) end); pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end); @@ -951,6 +627,58 @@ function CSConnect2(UserID,ServerIP,ServerPort,PlayerName,OutfitID,Hat1ID,Hat2ID end end +function CSSolo(UserID,PlayerName,BodyColors,OutfitID,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,Ticket) + local plr = game.Players:CreateLocalPlayer(UserID); + game:GetService("RunService"):run(); + if (rbxlegacyversion == "gamma") then + game.Workspace:InsertContent("rbxasset://Fonts//Health2010.rbxm"); + elseif (rbxlegacyversion == "delta-gamma") then + game.Workspace:InsertContent("rbxasset://Fonts//Health2010.rbxm"); + end + plr.Name = PlayerName; + plr:LoadCharacter(); + if (BodyColors == true) then + PlayerColorize(); + else + PlayerNoobify(); + end + plr.Character['Head'].BrickColor = HeadColor; + plr.Character['Torso'].BrickColor = TorsoColor; + plr.Character['Left Arm'].BrickColor = LArmColor; + plr.Character['Left Leg'].BrickColor = LLegColor; + plr.Character['Right Arm'].BrickColor = RArmColor; + plr.Character['Right Leg'].BrickColor = RLegColor; + if (OutfitID and OutfitID ~= 0) then + plr.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..OutfitID; + elseif (Hat1ID and Hat1ID ~= 0) then + Hat1 = "rbxasset://charcustom/hats/"..Hat1ID + Hat2 = "rbxasset://charcustom/hats/"..Hat2ID + Hat3 = "rbxasset://charcustom/hats/"..Hat3ID + local charapp = "rbxasset://charcustom/CharacterColors.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 + wait(5) + plr:LoadCharacter() + if (BodyColors == true) then + PlayerColorize(); + else + PlayerNoobify(); + end + plr.Character['Head'].BrickColor = HeadColor; + plr.Character['Torso'].BrickColor = TorsoColor; + plr.Character['Left Arm'].BrickColor = LArmColor; + plr.Character['Left Leg'].BrickColor = LLegColor; + plr.Character['Right Arm'].BrickColor = RArmColor; + plr.Character['Right Leg'].BrickColor = RLegColor; + end + end +end + _G.CSServer=CSServer; _G.CSConnect=CSConnect; -_G.CSConnect2=CSConnect2; \ No newline at end of file +_G.CSSolo=CSSolo; \ No newline at end of file diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.Designer.cs b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.Designer.cs index 0e6a9cd..091e3fe 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.Designer.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.Designer.cs @@ -77,8 +77,8 @@ namespace RBXLegacyLauncher this.button38 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); - this.button39 = new System.Windows.Forms.Button(); this.button40 = new System.Windows.Forms.Button(); + this.button39 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 @@ -476,33 +476,33 @@ namespace RBXLegacyLauncher this.label2.Size = new System.Drawing.Size(80, 16); this.label2.TabIndex = 39; // - // button39 - // - this.button39.Location = new System.Drawing.Point(170, 186); - this.button39.Name = "button39"; - this.button39.Size = new System.Drawing.Size(255, 24); - this.button39.TabIndex = 40; - this.button39.Text = "Save Colors"; - this.button39.UseVisualStyleBackColor = true; - this.button39.Click += new System.EventHandler(this.Button39Click); - // // button40 // - this.button40.Location = new System.Drawing.Point(170, 156); + this.button40.Location = new System.Drawing.Point(170, 159); this.button40.Name = "button40"; - this.button40.Size = new System.Drawing.Size(255, 24); + this.button40.Size = new System.Drawing.Size(255, 22); this.button40.TabIndex = 41; this.button40.Text = "Reset Colors"; this.button40.UseVisualStyleBackColor = true; this.button40.Click += new System.EventHandler(this.Button40Click); // + // button39 + // + this.button39.Location = new System.Drawing.Point(170, 187); + this.button39.Name = "button39"; + this.button39.Size = new System.Drawing.Size(255, 23); + this.button39.TabIndex = 42; + this.button39.Text = "Save Colors"; + this.button39.UseVisualStyleBackColor = true; + this.button39.Click += new System.EventHandler(this.Button39Click); + // // CharacterColors // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(437, 222); - this.Controls.Add(this.button40); this.Controls.Add(this.button39); + this.Controls.Add(this.button40); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.button35); @@ -551,8 +551,8 @@ namespace RBXLegacyLauncher this.Load += new System.EventHandler(this.CharacterColorsLoad); this.ResumeLayout(false); } - private System.Windows.Forms.Button button40; private System.Windows.Forms.Button button39; + private System.Windows.Forms.Button button40; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button button38; diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.cs b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.cs index 8932618..54e318c 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterColors.cs @@ -83,10 +83,10 @@ namespace RBXLegacyLauncher { WriteColorConfigValues(); } - if (!File.Exists(GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\CharacterColors.rbxm")) - { - WriteColorModel(); - } + //if (!File.Exists(GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\CharacterColors.rbxm")) + //{ + //WriteColorModel(); + //} label2.Text = SelectedPart; button1.BackColor = ConvertStringtoColor("Color [A=255, R=245, G=205, B=47]"); button2.BackColor = ConvertStringtoColor("Color [A=255, R=13, G=105, B=172]"); @@ -179,31 +179,37 @@ namespace RBXLegacyLauncher if (SelectedPart == "Head") { HeadColor = ColorID; + GlobalVars.HeadColorID = 24; button1.BackColor = ButtonColor; } else if (SelectedPart == "Torso") { TorsoColor = ColorID; + GlobalVars.TorsoColorID = 23; 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; } } @@ -434,7 +440,7 @@ namespace RBXLegacyLauncher void Button39Click(object sender, EventArgs e) { - WriteColorModel(); + //WriteColorModel(); WriteColorConfigValues(); MessageBox.Show("Colors Saved!"); } @@ -513,7 +519,7 @@ namespace RBXLegacyLauncher button4.BackColor = ConvertStringtoColor("Color [A=255, R=245, G=205, B=47]"); button5.BackColor = ConvertStringtoColor("Color [A=255, R=164, G=189, B=71]"); button6.BackColor = ConvertStringtoColor("Color [A=255, R=164, G=189, B=71]"); - WriteColorModel(); + //WriteColorModel(); WriteColorConfigValues(); MessageBox.Show("Colors Reset!"); } diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.Designer.cs b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.Designer.cs index 898962a..96d9b3e 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.Designer.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.Designer.cs @@ -37,34 +37,6 @@ namespace RBXLegacyLauncher 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.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.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.label13 = new System.Windows.Forms.Label(); - this.label14 = new System.Windows.Forms.Label(); - this.textBox8 = new System.Windows.Forms.TextBox(); - this.textBox9 = new System.Windows.Forms.TextBox(); - this.textBox10 = new System.Windows.Forms.TextBox(); - this.label15 = new System.Windows.Forms.Label(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.label7 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.label18 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); @@ -72,359 +44,65 @@ namespace RBXLegacyLauncher this.listBox2 = new System.Windows.Forms.ListBox(); this.listBox1 = new System.Windows.Forms.ListBox(); this.button1 = new System.Windows.Forms.Button(); - this.tabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.tabPage2.SuspendLayout(); this.SuspendLayout(); // - // label1 - // - this.label1.Location = new System.Drawing.Point(28, 2); - 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(9, 19); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(240, 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); - // - // label3 - // - this.label3.Location = new System.Drawing.Point(109, 74); - 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(46, 96); - 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(47, 122); - 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(46, 148); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(57, 14); - this.label6.TabIndex = 6; - this.label6.Text = "T-Shirt ID"; - // - // textBox2 - // - this.textBox2.Location = new System.Drawing.Point(109, 93); - 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(109, 119); - 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(109, 145); - 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); - // - // textBox5 - // - this.textBox5.Location = new System.Drawing.Point(83, 195); - 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(83, 224); - 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(83, 252); - 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(28, 255); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(49, 14); - this.label8.TabIndex = 14; - this.label8.Text = "Hat 3 ID"; - // - // label9 - // - this.label9.Location = new System.Drawing.Point(28, 227); - 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(28, 198); - 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(120, 176); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(33, 16); - this.label11.TabIndex = 11; - this.label11.Text = "Hats"; - // - // label13 - // - this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label13.ForeColor = System.Drawing.Color.Red; - this.label13.Location = new System.Drawing.Point(3, 275); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(249, 69); - this.label13.TabIndex = 19; - this.label13.Text = resources.GetString("label13.Text"); - this.label13.TextAlign = System.Drawing.ContentAlignment.TopCenter; - // - // label14 - // - this.label14.Location = new System.Drawing.Point(189, 176); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(42, 16); - this.label14.TabIndex = 23; - this.label14.Text = "Version"; - // - // textBox8 - // - this.textBox8.Location = new System.Drawing.Point(189, 195); - this.textBox8.Name = "textBox8"; - this.textBox8.Size = new System.Drawing.Size(40, 20); - this.textBox8.TabIndex = 24; - this.textBox8.Text = "1"; - this.textBox8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBox8.TextChanged += new System.EventHandler(this.TextBox8TextChanged); - // - // textBox9 - // - this.textBox9.Location = new System.Drawing.Point(189, 224); - this.textBox9.Name = "textBox9"; - this.textBox9.Size = new System.Drawing.Size(40, 20); - this.textBox9.TabIndex = 25; - this.textBox9.Text = "1"; - this.textBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBox9.TextChanged += new System.EventHandler(this.TextBox9TextChanged); - // - // textBox10 - // - this.textBox10.Location = new System.Drawing.Point(189, 252); - this.textBox10.Name = "textBox10"; - this.textBox10.Size = new System.Drawing.Size(40, 20); - this.textBox10.TabIndex = 26; - this.textBox10.Text = "1"; - this.textBox10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBox10.TextChanged += new System.EventHandler(this.TextBox10TextChanged); - // - // label15 - // - this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label15.ForeColor = System.Drawing.Color.Red; - this.label15.Location = new System.Drawing.Point(12, 42); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(233, 27); - this.label15.TabIndex = 27; - this.label15.Text = "Note: THIS IS REQUIRED IN ORDER FOR THE OUTFIT TO WORK."; - this.label15.TextAlign = System.Drawing.ContentAlignment.TopCenter; - // - // tabControl1 - // - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Location = new System.Drawing.Point(9, 12); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.ShowToolTips = true; - this.tabControl1.Size = new System.Drawing.Size(263, 367); - this.tabControl1.TabIndex = 28; - this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); - // - // tabPage1 - // - this.tabPage1.Controls.Add(this.label7); - this.tabPage1.Controls.Add(this.label2); - this.tabPage1.Controls.Add(this.textBox10); - this.tabPage1.Controls.Add(this.label15); - this.tabPage1.Controls.Add(this.textBox9); - this.tabPage1.Controls.Add(this.textBox1); - this.tabPage1.Controls.Add(this.textBox8); - this.tabPage1.Controls.Add(this.label1); - this.tabPage1.Controls.Add(this.textBox5); - this.tabPage1.Controls.Add(this.label14); - this.tabPage1.Controls.Add(this.textBox6); - this.tabPage1.Controls.Add(this.label13); - this.tabPage1.Controls.Add(this.textBox7); - this.tabPage1.Controls.Add(this.label11); - this.tabPage1.Controls.Add(this.label8); - this.tabPage1.Controls.Add(this.textBox2); - this.tabPage1.Controls.Add(this.label9); - this.tabPage1.Controls.Add(this.label3); - this.tabPage1.Controls.Add(this.label10); - this.tabPage1.Controls.Add(this.label4); - this.tabPage1.Controls.Add(this.label5); - this.tabPage1.Controls.Add(this.label6); - this.tabPage1.Controls.Add(this.textBox4); - this.tabPage1.Controls.Add(this.textBox3); - this.tabPage1.Location = new System.Drawing.Point(4, 22); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(255, 341); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "Custom Outfit (Online)"; - this.tabPage1.ToolTipText = "Requires Internet Connection"; - this.tabPage1.UseVisualStyleBackColor = true; - // - // label7 - // - this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label7.Location = new System.Drawing.Point(12, 72); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(228, 2); - this.label7.TabIndex = 29; - // - // label2 - // - this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label2.Location = new System.Drawing.Point(12, 174); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(228, 2); - this.label2.TabIndex = 28; - // - // tabPage2 - // - this.tabPage2.Controls.Add(this.label18); - this.tabPage2.Controls.Add(this.label17); - this.tabPage2.Controls.Add(this.label16); - this.tabPage2.Controls.Add(this.label12); - this.tabPage2.Controls.Add(this.listBox3); - this.tabPage2.Controls.Add(this.listBox2); - this.tabPage2.Controls.Add(this.listBox1); - this.tabPage2.Controls.Add(this.button1); - 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(255, 341); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "Custom Outfit (Local)"; - this.tabPage2.UseVisualStyleBackColor = true; - // - // label18 - // - this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.label18.Location = new System.Drawing.Point(6, 58); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(243, 2); - this.label18.TabIndex = 7; - // // label17 // - this.label17.Location = new System.Drawing.Point(108, 245); + this.label17.Location = new System.Drawing.Point(111, 245); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(35, 18); - this.label17.TabIndex = 6; + this.label17.TabIndex = 37; this.label17.Text = "Hat 3"; // // label16 // - this.label16.Location = new System.Drawing.Point(108, 157); + this.label16.Location = new System.Drawing.Point(111, 157); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(35, 13); - this.label16.TabIndex = 5; + this.label16.TabIndex = 36; this.label16.Text = "Hat 2"; // // label12 // - this.label12.Location = new System.Drawing.Point(108, 69); + this.label12.Location = new System.Drawing.Point(111, 69); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(35, 13); - this.label12.TabIndex = 4; + this.label12.TabIndex = 35; this.label12.Text = "Hat 1"; // // listBox3 // this.listBox3.FormattingEnabled = true; - this.listBox3.Location = new System.Drawing.Point(6, 266); + this.listBox3.Location = new System.Drawing.Point(9, 266); this.listBox3.Name = "listBox3"; this.listBox3.Size = new System.Drawing.Size(243, 69); - this.listBox3.TabIndex = 3; + this.listBox3.TabIndex = 34; this.listBox3.SelectedIndexChanged += new System.EventHandler(this.ListBox3SelectedIndexChanged); // // listBox2 // this.listBox2.FormattingEnabled = true; - this.listBox2.Location = new System.Drawing.Point(6, 173); + this.listBox2.Location = new System.Drawing.Point(9, 173); this.listBox2.Name = "listBox2"; this.listBox2.Size = new System.Drawing.Size(243, 69); - this.listBox2.TabIndex = 2; + this.listBox2.TabIndex = 33; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.ListBox2SelectedIndexChanged); // // listBox1 // this.listBox1.FormattingEnabled = true; - this.listBox1.Location = new System.Drawing.Point(6, 85); + this.listBox1.Location = new System.Drawing.Point(9, 85); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(243, 69); - this.listBox1.TabIndex = 1; + this.listBox1.TabIndex = 32; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.ListBox1SelectedIndexChanged); // // button1 // - this.button1.Location = new System.Drawing.Point(6, 6); + this.button1.Location = new System.Drawing.Point(9, 12); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(243, 40); - this.button1.TabIndex = 0; + this.button1.Size = new System.Drawing.Size(243, 54); + this.button1.TabIndex = 31; this.button1.Text = "Edit Character Colors"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.Button1Click); @@ -434,54 +112,28 @@ 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(281, 391); - this.Controls.Add(this.tabControl1); + this.ClientSize = new System.Drawing.Size(259, 344); + this.Controls.Add(this.label17); + this.Controls.Add(this.label16); + this.Controls.Add(this.label12); + this.Controls.Add(this.listBox3); + this.Controls.Add(this.listBox2); + this.Controls.Add(this.listBox1); + this.Controls.Add(this.button1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "CharacterCustomization"; this.Text = "Character Customization"; this.Load += new System.EventHandler(this.CharacterCustomizationLoad); - this.tabControl1.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); - this.tabPage1.PerformLayout(); - this.tabPage2.ResumeLayout(false); this.ResumeLayout(false); } + private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label12; private System.Windows.Forms.Label label16; private System.Windows.Forms.Label label17; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label7; private System.Windows.Forms.ListBox listBox2; private System.Windows.Forms.ListBox listBox3; private System.Windows.Forms.ListBox listBox1; - private System.Windows.Forms.TabPage tabPage2; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.TabControl tabControl1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Label label15; - private System.Windows.Forms.TextBox textBox10; - private System.Windows.Forms.TextBox textBox9; - private System.Windows.Forms.TextBox textBox8; - private System.Windows.Forms.Label label14; - private System.Windows.Forms.Label label13; - 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.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.TextBox textBox1; - private System.Windows.Forms.Label label1; } } diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs index 7ac7524..6e53e5a 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.cs @@ -32,280 +32,56 @@ namespace RBXLegacyLauncher void CharacterCustomizationLoad(object sender, EventArgs e) { - textBox1.Text = GlobalVars.Custom_ColorHash; - 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(); - textBox8.Text = GlobalVars.Custom_Hat1Version.ToString(); - textBox9.Text = GlobalVars.Custom_Hat2Version.ToString(); - textBox10.Text = GlobalVars.Custom_Hat3Version.ToString(); - - if (GlobalVars.CustomMode == 0) - { - tabControl1.SelectedTab = tabControl1.TabPages["tabPage1"]; - } - else if (GlobalVars.CustomMode == 1) - { - tabControl1.SelectedTab = tabControl1.TabPages["tabPage2"]; - } - } - - void TextBox1TextChanged(object sender, EventArgs e) - { - GlobalVars.Custom_ColorHash = textBox1.Text; - } - - void TextBox2TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox2.Text, out parsedValue)) - { - if (textBox2.Text == "") + string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats"; + if (Directory.Exists(hatdir)) + { + DirectoryInfo dinfo = new DirectoryInfo(hatdir); + FileInfo[] Files = dinfo.GetFiles("*.rbxm"); + foreach( FileInfo file in Files ) { - GlobalVars.Custom_ShirtsID = 0; + listBox1.Items.Add(file.Name); + listBox2.Items.Add(file.Name); + listBox3.Items.Add(file.Name); } - else - { - GlobalVars.Custom_ShirtsID = Convert.ToInt32(textBox2.Text); - } - } - else - { - GlobalVars.Custom_ShirtsID = 0; - } - } - - void TextBox3TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox3.Text, out parsedValue)) - { - if (textBox3.Text == "") - { - GlobalVars.Custom_PantsID = 0; - } - else - { - GlobalVars.Custom_PantsID = Convert.ToInt32(textBox3.Text); - } - } - else - { - GlobalVars.Custom_PantsID = 0; - } - } - - void TextBox4TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox4.Text, out parsedValue)) - { - if (textBox4.Text == "") - { - GlobalVars.Custom_TShirtsID = 0; - } - else - { - GlobalVars.Custom_TShirtsID = Convert.ToInt32(textBox4.Text); - } - } - else - { - GlobalVars.Custom_TShirtsID = 0; - } - } - - void TextBox5TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox5.Text, out parsedValue)) - { - if (textBox5.Text == "") - { - GlobalVars.Custom_Hat1ID = 0; - } - else - { - GlobalVars.Custom_Hat1ID = Convert.ToInt32(textBox5.Text); - } - } - else - { - GlobalVars.Custom_Hat1ID = 0; - } - } - - void TextBox6TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox6.Text, out parsedValue)) - { - if (textBox6.Text == "") - { - GlobalVars.Custom_Hat2ID = 0; - } - else - { - GlobalVars.Custom_Hat2ID = Convert.ToInt32(textBox6.Text); - } - } - else - { - GlobalVars.Custom_Hat2ID = 0; - } - } - - void TextBox7TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox7.Text, out parsedValue)) - { - if (textBox7.Text == "") - { - GlobalVars.Custom_Hat3ID = 0; - } - else - { - GlobalVars.Custom_Hat3ID = Convert.ToInt32(textBox7.Text); - } - } - else - { - GlobalVars.Custom_Hat3ID = 0; - } - } - - void TextBox8TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox8.Text, out parsedValue)) - { - if (textBox8.Text == "") - { - GlobalVars.Custom_Hat1Version = 1; - } - else - { - GlobalVars.Custom_Hat1Version = Convert.ToInt32(textBox8.Text); - } - } - else - { - GlobalVars.Custom_Hat1Version = 1; - } - } - - void TextBox9TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox9.Text, out parsedValue)) - { - if (textBox9.Text == "") - { - GlobalVars.Custom_Hat2Version = 1; - } - else - { - GlobalVars.Custom_Hat2Version = Convert.ToInt32(textBox9.Text); - } - } - else - { - GlobalVars.Custom_Hat2Version = 1; - } - } - - void TextBox10TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (int.TryParse(textBox10.Text, out parsedValue)) - { - if (textBox10.Text == "") - { - GlobalVars.Custom_Hat3Version = 1; - } - else - { - GlobalVars.Custom_Hat3Version = Convert.ToInt32(textBox10.Text); - } - } - else - { - GlobalVars.Custom_Hat3Version = 1; - } + listBox1.SelectedItem = GlobalVars.Custom_Hat1ID_Offline; + listBox2.SelectedItem = GlobalVars.Custom_Hat2ID_Offline; + listBox3.SelectedItem = GlobalVars.Custom_Hat3ID_Offline; + 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("on this client."); + listBox1.Enabled = false; + listBox2.Enabled = false; + listBox3.Enabled = false; + button1.Enabled = false; + } } void Button1Click(object sender, EventArgs e) { - CharacterColors ccol = new CharacterColors(); - ccol.Show(); - } - - void tabControl1_SelectedIndexChanged(object sender, EventArgs e) - { - if (tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"])//your specific tabname - { - string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats"; - if (Directory.Exists(hatdir)) - { - DirectoryInfo dinfo = new DirectoryInfo(hatdir); - FileInfo[] Files = dinfo.GetFiles("*.rbxm"); - foreach( FileInfo file in Files ) - { - listBox1.Items.Add(file.Name); - listBox2.Items.Add(file.Name); - listBox3.Items.Add(file.Name); - } - listBox1.SelectedItem = GlobalVars.Custom_Hat1ID_Offline; - listBox2.SelectedItem = GlobalVars.Custom_Hat2ID_Offline; - listBox3.SelectedItem = GlobalVars.Custom_Hat3ID_Offline; - GlobalVars.CustomMode = 1; - } - else - { - GlobalVars.CustomMode = 0; - listBox1.Items.Add("Offline character customization is not supported"); - listBox1.Items.Add("on this client."); - button1.Enabled = false; - } - } - else - { - GlobalVars.CustomMode = 0; - listBox1.Items.Clear(); - listBox2.Items.Clear(); - listBox3.Items.Clear(); - } + //CharacterColors ccol = new CharacterColors(); + //ccol.Show(); + MessageBox.Show("Coming Soon."); } void ListBox1SelectedIndexChanged(object sender, EventArgs e) { - string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats"; - if (Directory.Exists(hatdir)) - { - GlobalVars.Custom_Hat1ID_Offline = listBox1.SelectedItem.ToString();; - } + GlobalVars.Custom_Hat1ID_Offline = listBox1.SelectedItem.ToString(); } void ListBox2SelectedIndexChanged(object sender, EventArgs e) { - string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats"; - if (Directory.Exists(hatdir)) - { - GlobalVars.Custom_Hat2ID_Offline = listBox2.SelectedItem.ToString();; - } + GlobalVars.Custom_Hat2ID_Offline = listBox2.SelectedItem.ToString(); } void ListBox3SelectedIndexChanged(object sender, EventArgs e) { - string hatdir = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\charcustom\\hats"; - if (Directory.Exists(hatdir)) - { - GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedItem.ToString();; - } + GlobalVars.Custom_Hat3ID_Offline = listBox3.SelectedItem.ToString(); } } } diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.resx b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.resx index cec12cf..3ce0458 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.resx +++ b/RBXLegacyLauncher/RBXLegacyLauncher/CharacterCustomization.resx @@ -117,9 +117,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - NOTE: Whatever you enter into these boxes will be automatically saved into the Launcher. These values will be kept until you close the Launcher, so please save your Launcher configuration before closing! - diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/GlobalVars.cs b/RBXLegacyLauncher/RBXLegacyLauncher/GlobalVars.cs index 8b6233d..e8da9b0 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/GlobalVars.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/GlobalVars.cs @@ -3,6 +3,7 @@ public static string ClientDir = ""; public static string ScriptsDir = ""; public static string MapsDir = ""; + public static string CustomPlayerDir = ""; public static string IP = "localhost"; public static string Version = ""; //server settings. @@ -39,19 +40,13 @@ public static string ClientCreator_SelectedClientDesc = ""; public static bool ClientCreator_SupportsCharacterCustomization = false; //charcustom - public static string Custom_ColorHash = ""; - 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; - public static int Custom_Hat1Version = 1; - public static int Custom_Hat2Version = 1; - public static int Custom_Hat3Version = 1; - //charcustom offline - public static int CustomMode = 0; public static string Custom_Hat1ID_Offline = "NoHat.rbxm"; public static string Custom_Hat2ID_Offline = "NoHat.rbxm"; public static string Custom_Hat3ID_Offline = "NoHat.rbxm"; + public static int HeadColorID = 24; + public static int TorsoColorID = 23; + public static int LeftArmColorID = 24; + public static int RightArmColorID = 24; + public static int LeftLegColorID = 119; + public static int RightLegColorID = 119; } \ No newline at end of file diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs index dc1e2ba..5744bff 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.Designer.cs @@ -49,6 +49,7 @@ namespace RBXLegacyLauncher this.label3 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.tabPage2 = new System.Windows.Forms.TabPage(); + this.button20 = new System.Windows.Forms.Button(); this.button18 = new System.Windows.Forms.Button(); this.label32 = new System.Windows.Forms.Label(); this.label20 = new System.Windows.Forms.Label(); @@ -119,7 +120,6 @@ namespace RBXLegacyLauncher this.label28 = new System.Windows.Forms.Label(); this.button6 = new System.Windows.Forms.Button(); this.textBox5 = new System.Windows.Forms.TextBox(); - this.button20 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); @@ -289,6 +289,16 @@ namespace RBXLegacyLauncher this.tabPage2.ToolTipText = "Start a server for other players to play"; this.tabPage2.UseVisualStyleBackColor = true; // + // button20 + // + this.button20.Location = new System.Drawing.Point(352, 244); + this.button20.Name = "button20"; + this.button20.Size = new System.Drawing.Size(38, 23); + this.button20.TabIndex = 21; + this.button20.Text = "Info"; + this.button20.UseVisualStyleBackColor = true; + this.button20.Click += new System.EventHandler(this.Button20Click); + // // button18 // this.button18.Location = new System.Drawing.Point(201, 230); @@ -999,16 +1009,6 @@ namespace RBXLegacyLauncher this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.textBox5.TextChanged += new System.EventHandler(this.TextBox5TextChanged); // - // button20 - // - this.button20.Location = new System.Drawing.Point(352, 244); - this.button20.Name = "button20"; - this.button20.Size = new System.Drawing.Size(38, 23); - this.button20.TabIndex = 21; - this.button20.Text = "Info"; - this.button20.UseVisualStyleBackColor = true; - this.button20.Click += new System.EventHandler(this.Button20Click); - // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs index 73e760c..3db150f 100644 --- a/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs +++ b/RBXLegacyLauncher/RBXLegacyLauncher/MainForm.cs @@ -81,6 +81,11 @@ namespace RBXLegacyLauncher } void Button1Click(object sender, EventArgs e) { + if (GlobalVars.LocalPlayMode == true) + { + GeneratePlayerID(); + } + DialogResult result = MessageBox.Show("Be sure to save your config options with the 'Save Config' button before you join a server!","RBXLegacy Launcher - Join Server", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (result == DialogResult.Cancel) return; @@ -140,6 +145,8 @@ namespace RBXLegacyLauncher GlobalVars.ScriptsDir = GlobalVars.ScriptsDir.Replace(@"\",@"\\"); GlobalVars.MapsDir = Path.Combine(Environment.CurrentDirectory, @"maps"); GlobalVars.MapsDir = GlobalVars.MapsDir.Replace(@"\",@"\\"); + GlobalVars.CustomPlayerDir = Path.Combine(Environment.CurrentDirectory, @"charcustom"); + GlobalVars.CustomPlayerDir = GlobalVars.CustomPlayerDir.Replace(@"\",@"\\"); label5.Text = Environment.CurrentDirectory; label8.Text = Application.ProductVersion; GlobalVars.IP = "localhost"; @@ -153,7 +160,7 @@ namespace RBXLegacyLauncher void ReadConfigValues() { - string line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17, line18, line19, line20, line21, line22, line23, line24; + string line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17, line18, line19; using(StreamReader reader = new StreamReader("config.txt")) { @@ -176,11 +183,6 @@ namespace RBXLegacyLauncher line17 = reader.ReadLine(); line18 = reader.ReadLine(); line19 = reader.ReadLine(); - line20 = reader.ReadLine(); - line21 = reader.ReadLine(); - line22 = reader.ReadLine(); - line23 = reader.ReadLine(); - line24 = reader.ReadLine(); } bool bline1 = Convert.ToBoolean(line1); @@ -210,41 +212,22 @@ namespace RBXLegacyLauncher bool bline10 = Convert.ToBoolean(line10); GlobalVars.UseCustomAppearanceID = bline10; - GlobalVars.Custom_ColorHash = line11; - - int iline12 = Convert.ToInt32(line12); - GlobalVars.Custom_ShirtsID = iline12; - - int iline13 = Convert.ToInt32(line13); - GlobalVars.Custom_PantsID = iline13; + GlobalVars.Custom_Hat1ID_Offline = line11; + GlobalVars.Custom_Hat2ID_Offline = line12; + GlobalVars.Custom_Hat3ID_Offline = line13; int iline14 = Convert.ToInt32(line14); - GlobalVars.Custom_TShirtsID = iline14; - + GlobalVars.HeadColorID = iline14; int iline15 = Convert.ToInt32(line15); - GlobalVars.Custom_Hat1ID = iline15; - + GlobalVars.TorsoColorID = iline15; int iline16 = Convert.ToInt32(line16); - GlobalVars.Custom_Hat2ID = iline16; - + GlobalVars.LeftArmColorID = iline16; int iline17 = Convert.ToInt32(line17); - GlobalVars.Custom_Hat3ID = iline17; - + GlobalVars.RightArmColorID = iline17; int iline18 = Convert.ToInt32(line18); - GlobalVars.Custom_Hat1Version = iline18; - + GlobalVars.LeftLegColorID = iline18; int iline19 = Convert.ToInt32(line19); - GlobalVars.Custom_Hat2Version = iline19; - - int iline20 = Convert.ToInt32(line20); - GlobalVars.Custom_Hat3Version = iline20; - - int iline21 = Convert.ToInt32(line21); - GlobalVars.CustomMode = iline21; - - GlobalVars.Custom_Hat1ID_Offline = line22; - GlobalVars.Custom_Hat2ID_Offline = line23; - GlobalVars.Custom_Hat3ID_Offline = line24; + GlobalVars.RightLegColorID = iline19; if (GlobalVars.CloseOnLaunch == true) { @@ -326,20 +309,15 @@ namespace RBXLegacyLauncher GlobalVars.Map.ToString(), GlobalVars.RobloxPort.ToString(), GlobalVars.UseCustomAppearanceID.ToString(), - GlobalVars.Custom_ColorHash.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(), - GlobalVars.Custom_Hat1Version.ToString(), - GlobalVars.Custom_Hat2Version.ToString(), - GlobalVars.Custom_Hat3Version.ToString(), - GlobalVars.CustomMode.ToString(), GlobalVars.Custom_Hat1ID_Offline.ToString(), GlobalVars.Custom_Hat2ID_Offline.ToString(), GlobalVars.Custom_Hat3ID_Offline.ToString(), + GlobalVars.HeadColorID.ToString(), + GlobalVars.TorsoColorID.ToString(), + GlobalVars.LeftArmColorID.ToString(), + GlobalVars.RightArmColorID.ToString(), + GlobalVars.LeftLegColorID.ToString(), + GlobalVars.RightLegColorID.ToString(), }; File.WriteAllLines("config.txt", lines); } @@ -356,17 +334,15 @@ namespace RBXLegacyLauncher GlobalVars.Map = "Baseplate.rbxl"; GlobalVars.RobloxPort = 53640; GlobalVars.UseCustomAppearanceID = false; - GlobalVars.Custom_ColorHash = ""; - GlobalVars.Custom_ShirtsID = 0; - GlobalVars.Custom_PantsID = 0; - GlobalVars.Custom_TShirtsID = 0; - GlobalVars.Custom_Hat1ID = 0; - GlobalVars.Custom_Hat2ID = 0; - GlobalVars.Custom_Hat3ID = 0; - GlobalVars.CustomMode = 0; GlobalVars.Custom_Hat1ID_Offline = "NoHat.rbxm"; GlobalVars.Custom_Hat2ID_Offline = "NoHat.rbxm"; GlobalVars.Custom_Hat3ID_Offline = "NoHat.rbxm"; + GlobalVars.HeadColorID = 24; + GlobalVars.TorsoColorID = 23; + GlobalVars.LeftArmColorID = 24; + GlobalVars.RightArmColorID = 24; + GlobalVars.LeftLegColorID = 119; + GlobalVars.RightLegColorID = 119; WriteConfigValues(); ReadConfigValues(); } @@ -504,7 +480,6 @@ namespace RBXLegacyLauncher checkBox5.Checked = false; button8.Enabled = false; GlobalVars.UseCustomAppearanceID = false; - GlobalVars.CustomMode = 0; } textBox6.Text = GlobalVars.SelectedClientDesc; @@ -707,14 +682,6 @@ namespace RBXLegacyLauncher return true; } - bool IsInOfflineMode() - { - if(GlobalVars.CustomMode == 1) - return true; - - return false; - } - void Button7Click(object sender, EventArgs e) { WriteConfigValues(); @@ -906,7 +873,7 @@ namespace RBXLegacyLauncher if (result == DialogResult.Cancel) return; - PlaySolo(timerset); + StartSolo(); if (GlobalVars.CloseOnLaunch == true) { @@ -920,6 +887,9 @@ namespace RBXLegacyLauncher string rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe"; string quote = "\""; string args = ""; + string HatIDOffline1 = GlobalVars.Custom_Hat1ID_Offline; + string HatIDOffline2 = GlobalVars.Custom_Hat2ID_Offline; + string HatIDOffline3 = GlobalVars.Custom_Hat3ID_Offline; 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; @@ -928,7 +898,6 @@ namespace RBXLegacyLauncher { 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() && !IsUsingCustomOutfits()) { args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.CharacterAppearanceID + ");" + quote; @@ -937,39 +906,21 @@ namespace RBXLegacyLauncher { 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() && IsUsingCustomOutfits() && !IsInOfflineMode()) + 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_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) + 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_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - //how the fuck does this even happen? oh well. - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) + 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_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) + 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_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - //how the fuck does this even happen? oh well. - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player',0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { @@ -979,7 +930,6 @@ namespace RBXLegacyLauncher { 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() && !IsUsingCustomOutfits()) { args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "');" + quote; @@ -988,11 +938,6 @@ namespace RBXLegacyLauncher { args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'" + GlobalVars.IP + "'," + GlobalVars.RobloxPort + ",'Player');" + quote; } - - if (GlobalVars.LocalPlayMode == true) - { - GeneratePlayerID(); - } try { Process.Start(rbxexe, args); @@ -1003,85 +948,120 @@ namespace RBXLegacyLauncher } } - void StartClientSolo() + void StartSolo() { string luafile = "rbxasset://scripts\\\\CSMPFunctions.lua"; + string mapfile = GlobalVars.MapsDir + @"\\" + GlobalVars.Map; string rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe"; string quote = "\""; string args = ""; + string HatIDOffline1 = GlobalVars.Custom_Hat1ID_Offline; + string HatIDOffline2 = GlobalVars.Custom_Hat2ID_Offline; + string HatIDOffline3 = GlobalVars.Custom_Hat3ID_Offline; + + if (GlobalVars.BodyColors == true) + { if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.CharacterAppearanceID + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',true," + GlobalVars.CharacterAppearanceID + ");" + quote; } else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player'," + GlobalVars.CharacterAppearanceID + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',true," + GlobalVars.CharacterAppearanceID + ");" + 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,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.CharacterAppearanceID + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',true," + GlobalVars.CharacterAppearanceID + ");" + quote; } else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'Player'," + GlobalVars.CharacterAppearanceID + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',true," + GlobalVars.CharacterAppearanceID + ");" + quote; } - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',true,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',true,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - //how the fuck does this even happen? oh well. - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',true,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - //how the fuck does this even happen? oh well. - else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "',0,'" + GlobalVars.Custom_Hat1ID_Offline + "','" + GlobalVars.Custom_Hat2ID_Offline + "','" + GlobalVars.Custom_Hat3ID_Offline + "');" + quote; - } - else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits() && !IsInOfflineMode()) - { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect2(0,'localhost''," + GlobalVars.RobloxPort + ",'Player',0,'" + GlobalVars.Custom_ColorHash + "'," + GlobalVars.Custom_PantsID + "," + GlobalVars.Custom_ShirtsID + "," + GlobalVars.Custom_TShirtsID + "," + GlobalVars.Custom_Hat1ID + "," + GlobalVars.Custom_Hat2ID + "," + GlobalVars.Custom_Hat3ID + "," + GlobalVars.Custom_Hat1Version + "," + GlobalVars.Custom_Hat2Version + "," + GlobalVars.Custom_Hat3Version + ");" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',true,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; } else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "');" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',true);" + quote; } else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(" + GlobalVars.UserID + ",'localhost'," + GlobalVars.RobloxPort + ",'Player');" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',true);" + 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,'localhost'," + GlobalVars.RobloxPort + ",'" + GlobalVars.PlayerName + "');" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',true);" + quote; } else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) { - args = "-script " + quote + "dofile('" + luafile + "'); _G.CSConnect(0,'localhost'," + GlobalVars.RobloxPort + ",'Player');" + quote; + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',true);" + quote; + } + } + else if (GlobalVars.BodyColors == false) + { + if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',false," + GlobalVars.CharacterAppearanceID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',false," + GlobalVars.CharacterAppearanceID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',false," + GlobalVars.CharacterAppearanceID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',false," + GlobalVars.CharacterAppearanceID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',false,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',false,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',false,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',false,0,'" + HatIDOffline1 + "','" + HatIDOffline2 + "','" + HatIDOffline3 + "'," + GlobalVars.HeadColorID + "," + GlobalVars.TorsoColorID + "," + GlobalVars.LeftArmColorID + "," + GlobalVars.RightArmColorID + "," + GlobalVars.LeftLegColorID + "," + GlobalVars.RightLegColorID + ");" + quote; + } + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "',false);" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == true && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(" + GlobalVars.UserID + ",'Player',false);" + quote; + } + else if (GlobalVars.UsesPlayerName == true && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'" + GlobalVars.PlayerName + "',false);" + quote; + } + else if (GlobalVars.UsesPlayerName == false && GlobalVars.UsesID == false && !IsUsingCharacterOutfitIDs() && !IsUsingCustomOutfits()) + { + args = quote + mapfile + "\" -script \"dofile('" + luafile + "'); _G.CSSolo(0,'Player',false);" + quote; + } } - if (GlobalVars.LocalPlayMode == true) - { - GeneratePlayerID(); - } try { Process.Start(rbxexe, args); @@ -1167,21 +1147,6 @@ namespace RBXLegacyLauncher } } - void PlaySolo(int timerset) - { - StartServerNo3D(); - if (Process.GetProcessesByName("RobloxApp").Length > 0) - { - System.Threading.Timer timer = null; - timer = new System.Threading.Timer((obj) => - { - StartClientSolo(); - timer.Dispose(); - }, - null, timerset, System.Threading.Timeout.Infinite); - } - } - void Button20Click(object sender, EventArgs e) { ServerInfo infopanel = new ServerInfo(); diff --git a/RBXLegacySetup.iss b/RBXLegacySetup.iss index d859cfb..b47c82a 100644 --- a/RBXLegacySetup.iss +++ b/RBXLegacySetup.iss @@ -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.13.2" +#define AppVer "1.14" [Setup] ; NOTE: The value of AppId uniquely identifies this application. diff --git a/charcustom/CharacterColors.rbxm b/charcustom/CharacterColors.rbxm index 0b24b2e..ab10a6c 100644 --- a/charcustom/CharacterColors.rbxm +++ b/charcustom/CharacterColors.rbxm @@ -1,17 +1,4 @@ - - null - nil - - - 24 - 24 - 119 - Body Colors - 24 - 119 - 23 - true - - + null + nil \ No newline at end of file diff --git a/charcustom/hats/OhNoes.rbxm b/charcustom/hats/OhNoes.rbxm new file mode 100644 index 0000000..adfb1b0 --- /dev/null +++ b/charcustom/hats/OhNoes.rbxm @@ -0,0 +1,116 @@ + + null + nil + + + + 0 + -0.75 + 0 + 1 + 0 + -0 + -0 + 1 + 0 + 0 + 0 + 1 + + 2 + ONOHat + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 194 + + 0.5 + 4.4000001 + 0 + 0 + 0 + -1 + 0 + 1 + -0 + 1 + 0 + -0 + + false + 0 + true + false + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 2 + 1.60000002 + 1 + + + + + rbxasset://charcustom/hats/fonts/ono.mesh + 5 + Mesh + + 1 + 1 + 1 + + rbxasset://charcustom/hats/textures/ono.png + + 1 + 1 + 1 + + true + + + + + \ No newline at end of file diff --git a/charcustom/hats/fonts/ono.mesh b/charcustom/hats/fonts/ono.mesh new file mode 100644 index 0000000..3bf8ccb --- /dev/null +++ b/charcustom/hats/fonts/ono.mesh @@ -0,0 +1,3 @@ +version 1.00 +24 +[5.38969,-0.901281,0.16894][-3.04123e-007,0,2][0.524416,0.01,0][5.38969,1.36734,0.16894][-1.52061e-007,0,1][0.524416,0.332368,0][-5.38969,1.36734,0.168939][-3.04123e-007,0,2][0.01,0.332368,0][-5.38969,1.36734,0.168939][-3.04123e-007,0,2][0.01,0.332368,0][-5.38969,-0.901281,0.168939][-1.52061e-007,0,1][0.01,0.01,0][5.38969,-0.901281,0.16894][-3.04123e-007,0,2][0.524416,0.01,0][5.38969,-0.901281,-0.168939][2.98593e-007,0,-2][0.00861186,0.357678,0][-5.38969,-0.901281,-0.16894][1.49297e-007,0,-1][0.97849,0.349214,0][-5.38969,1.36734,-0.16894][2.98593e-007,0,-2][0.981303,0.671569,0][-5.38969,1.36734,-0.16894][2.98593e-007,0,-2][0.981303,0.671569,0][5.38969,1.36734,-0.168939][1.49297e-007,0,-1][0.011425,0.680033,0][5.38969,-0.901281,-0.168939][2.98593e-007,0,-2][0.00861186,0.357678,0][5.38969,-0.901281,0.16894][-3.04123e-007,0,2][0.524416,0.910826,0][-5.38969,-0.901281,0.168939][-1.52061e-007,0,1][0.01,0.910826,0][-5.38969,-0.901281,-0.16894][1.49297e-007,0,-1][0.01,0.862814,0][-5.38969,-0.901281,-0.16894][1.49297e-007,0,-1][0.01,0.862814,0][5.38969,-0.901281,-0.168939][2.98593e-007,0,-2][0.524416,0.862814,0][5.38969,-0.901281,0.16894][-3.04123e-007,0,2][0.524416,0.910826,0][-5.38969,-0.901281,0.168939][-1.52061e-007,0,1][0.867856,0.0580122,0][-5.38969,1.36734,0.168939][-3.04123e-007,0,2][0.545489,0.0580122,0][-5.38969,1.36734,-0.16894][2.98593e-007,0,-2][0.545489,0.01,0][-5.38969,1.36734,-0.16894][2.98593e-007,0,-2][0.545489,0.01,0][-5.38969,-0.901281,-0.16894][1.49297e-007,0,-1][0.867856,0.01,0][-5.38969,-0.901281,0.168939][-1.52061e-007,0,1][0.867856,0.0580122,0][-5.38969,1.36734,0.168939][-3.04123e-007,0,2][0.524416,0.979911,0][5.38969,1.36734,0.16894][-1.52061e-007,0,1][0.01,0.979911,0][5.38969,1.36734,-0.168939][1.49297e-007,0,-1][0.01,0.931899,0][5.38969,1.36734,-0.168939][1.49297e-007,0,-1][0.01,0.931899,0][-5.38969,1.36734,-0.16894][2.98593e-007,0,-2][0.524416,0.931899,0][-5.38969,1.36734,0.168939][-3.04123e-007,0,2][0.524416,0.979911,0][5.38969,1.36734,0.16894][-1.52061e-007,0,1][0.87548,0.222302,0][5.38969,-0.901281,0.16894][-3.04123e-007,0,2][0.553112,0.222302,0][5.38969,-0.901281,-0.168939][2.98593e-007,0,-2][0.553112,0.17429,0][5.38969,-0.901281,-0.168939][2.98593e-007,0,-2][0.553112,0.17429,0][5.38969,1.36734,-0.168939][1.49297e-007,0,-1][0.87548,0.17429,0][5.38969,1.36734,0.16894][-1.52061e-007,0,1][0.87548,0.222302,0][0.193074,-1.67472,0.0965369][-3.08714e-007,0,2][0.485952,0.834718,0][0.193074,1.67472,0.0965369][-1.54357e-007,0,1][0.01,0.834718,0][-0.193074,1.67472,0.0965369][-3.08714e-007,0,2][0.01,0.779847,0][-0.193074,1.67472,0.0965369][-3.08714e-007,0,2][0.01,0.779847,0][-0.193074,-1.67472,0.0965369][-1.54357e-007,0,1][0.485952,0.779847,0][0.193074,-1.67472,0.0965369][-3.08714e-007,0,2][0.485952,0.834718,0][0.193074,-1.67472,-0.0965369][3.08714e-007,0,-2][0.01,0.751751,0][-0.193074,-1.67472,-0.0965369][1.54357e-007,0,-1][0.01,0.69688,0][-0.193074,1.67472,-0.0965369][3.08714e-007,0,-2][0.485952,0.69688,0][-0.193074,1.67472,-0.0965369][3.08714e-007,0,-2][0.485952,0.69688,0][0.193074,1.67472,-0.0965369][1.54357e-007,0,-1][0.485952,0.751751,0][0.193074,-1.67472,-0.0965369][3.08714e-007,0,-2][0.01,0.751751,0][0.193074,-1.67472,0.0965369][-3.08714e-007,0,2][0.60036,0.89025,0][-0.193074,-1.67472,0.0965369][-1.54357e-007,0,1][0.545489,0.89025,0][-0.193074,-1.67472,-0.0965369][1.54357e-007,0,-1][0.545489,0.862814,0][-0.193074,-1.67472,-0.0965369][1.54357e-007,0,-1][0.545489,0.862814,0][0.193074,-1.67472,-0.0965369][3.08714e-007,0,-2][0.60036,0.862814,0][0.193074,-1.67472,0.0965369][-3.08714e-007,0,2][0.60036,0.89025,0][-0.193074,-1.67472,0.0965369][-1.54357e-007,0,1][0.99,0.807283,0][-0.193074,1.67472,0.0965369][-3.08714e-007,0,2][0.514048,0.807283,0][-0.193074,1.67472,-0.0965369][3.08714e-007,0,-2][0.514048,0.779847,0][-0.193074,1.67472,-0.0965369][3.08714e-007,0,-2][0.514048,0.779847,0][-0.193074,-1.67472,-0.0965369][1.54357e-007,0,-1][0.99,0.779847,0][-0.193074,-1.67472,0.0965369][-1.54357e-007,0,1][0.99,0.807283,0][-0.193074,1.67472,0.0965369][-3.08714e-007,0,2][0.60036,0.959334,0][0.193074,1.67472,0.0965369][-1.54357e-007,0,1][0.545489,0.959334,0][0.193074,1.67472,-0.0965369][1.54357e-007,0,-1][0.545489,0.931899,0][0.193074,1.67472,-0.0965369][1.54357e-007,0,-1][0.545489,0.931899,0][-0.193074,1.67472,-0.0965369][3.08714e-007,0,-2][0.60036,0.931899,0][-0.193074,1.67472,0.0965369][-3.08714e-007,0,2][0.60036,0.959334,0][0.193074,1.67472,0.0965369][-1.54357e-007,0,1][0.991906,0.74528,0][0.193074,-1.67472,0.0965369][-3.08714e-007,0,2][0.515954,0.74528,0][0.193074,-1.67472,-0.0965369][3.08714e-007,0,-2][0.515954,0.717844,0][0.193074,-1.67472,-0.0965369][3.08714e-007,0,-2][0.515954,0.717844,0][0.193074,1.67472,-0.0965369][1.54357e-007,0,-1][0.991906,0.717844,0][0.193074,1.67472,0.0965369][-1.54357e-007,0,1][0.991906,0.74528,0] \ No newline at end of file diff --git a/charcustom/hats/textures/ono.png b/charcustom/hats/textures/ono.png new file mode 100644 index 0000000..c7b7b61 Binary files /dev/null and b/charcustom/hats/textures/ono.png differ