From 80c298592186e8e796692edfbb5f1e7d20c9f7e7 Mon Sep 17 00:00:00 2001 From: IveBeenAlone Date: Sun, 18 Jan 2026 10:26:43 -0500 Subject: [PATCH] Fixed bug when spaces are in file paths nothing would launch. Also added a tooltip explaining what a UUID is. --- Form1.Designer.cs | 20 ++++++++++++-------- Form1.cs | 13 ++++++++++--- Form1.resx | 7 +++++-- Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/Form1.Designer.cs b/Form1.Designer.cs index 90580f7..233bfb4 100644 --- a/Form1.Designer.cs +++ b/Form1.Designer.cs @@ -38,7 +38,7 @@ this.checkUsername = new System.Windows.Forms.CheckBox(); this.checkUUID = new System.Windows.Forms.CheckBox(); this.btnPlay = new System.Windows.Forms.Button(); - this.imageList1 = new System.Windows.Forms.ImageList(this.components); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.SuspendLayout(); // // textBoxUsername @@ -62,9 +62,11 @@ this.labelUUID.AutoSize = true; this.labelUUID.Location = new System.Drawing.Point(12, 94); this.labelUUID.Name = "labelUUID"; - this.labelUUID.Size = new System.Drawing.Size(42, 13); + this.labelUUID.Size = new System.Drawing.Size(67, 13); this.labelUUID.TabIndex = 5; - this.labelUUID.Text = "8 Digits"; + this.labelUUID.Text = "8 Digit UUID"; + this.toolTip1.SetToolTip(this.labelUUID, "This is used to store player inventory data,\r\nas well as the username on servers." + + "\r\nIf it is different than the last one you used\r\nyou wont have your inventory."); this.labelUUID.Click += new System.EventHandler(this.label2_Click); // // textBoxUUID @@ -117,11 +119,13 @@ this.btnPlay.UseVisualStyleBackColor = true; this.btnPlay.Click += new System.EventHandler(this.button2_Click); // - // imageList1 + // toolTip1 // - this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; - this.imageList1.ImageSize = new System.Drawing.Size(16, 16); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; + this.toolTip1.AutoPopDelay = 10000; + this.toolTip1.InitialDelay = 200; + this.toolTip1.ReshowDelay = 100; + this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; + this.toolTip1.ToolTipTitle = "UUID"; // // Form1 // @@ -153,7 +157,7 @@ private System.Windows.Forms.CheckBox checkUsername; private System.Windows.Forms.CheckBox checkUUID; private System.Windows.Forms.Button btnPlay; - private System.Windows.Forms.ImageList imageList1; + private System.Windows.Forms.ToolTip toolTip1; } } diff --git a/Form1.cs b/Form1.cs index 484b51b..4ae5fd3 100644 --- a/Form1.cs +++ b/Form1.cs @@ -168,16 +168,23 @@ namespace HelloWorld string Hytaleappdir = "\\release\\package\\game\\latest"; string HytaleJava = "\\release\\package\\jre\\latest\\bin\\java.exe"; - string arguments = " --app-dir "+workingDirectory+Hytaleappdir+" --user-dir "+baseDirectory+"UserData --java-exec "+ workingDirectory + HytaleJava+" --auth-mode offline --uuid 13371337-1337-1337-1337-1337"+textBoxUUID.Text+" --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app + string GamePath = "\"" + workingDirectory + "\\" + relativeExePath + "\""; //hytale.exe + string AppPath = "\"" + workingDirectory + Hytaleappdir + "\""; // game\latest + string UserdataPath = "\"" + baseDirectory + "UserData"+"\""; // game\latest + string JavaPath = "\"" + workingDirectory + HytaleJava + "\""; // java + + string arguments = " --app-dir " +AppPath+ " --user-dir " + UserdataPath + " --java-exec " + JavaPath + " --auth-mode offline --uuid 13371337-1337-1337-1337-1337" + textBoxUUID.Text + " --name \"" + textBoxUsername.Text + "\""; // Command-line arguments for the VB app ProcessStartInfo startInfo = new ProcessStartInfo { - FileName = relativeExePath, + FileName = GamePath, Arguments = arguments, UseShellExecute = true, - WorkingDirectory = workingDirectory }; + Console.WriteLine("Launching:"); + Console.WriteLine(GamePath + arguments); + try { Process.Start(startInfo); diff --git a/Form1.resx b/Form1.resx index f3fc41c..0813c84 100644 --- a/Form1.resx +++ b/Form1.resx @@ -117,8 +117,11 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 17, 17 + + 17, 10 + + + 192 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index a30d462..84d29fc 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ using System.Runtime.InteropServices; // Build Number // Revision // -[assembly: AssemblyVersion("2.8.13.0")] -[assembly: AssemblyFileVersion("2.8.13.0")] +[assembly: AssemblyVersion("2.9.7.0")] +[assembly: AssemblyFileVersion("2.9.7.0")]