thpatch / Universal-THCRAP-Launcher

Basic Universal Launcher for https://github.com/thpatch/thcrap
The Unlicense
43 stars 16 forks source link

[BUG] Error in UTL 1.1.0-pre1 #39

Closed AsyrafFile closed 5 years ago

AsyrafFile commented 5 years ago

When opening UTL after opening I received this error ************** Exception Text ************** System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at Universal_THCRAP_Launcher.MainForm.PopulatePatchList() at Universal_THCRAP_Launcher.MainForm.Form1_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Opening the setting also giving me the message ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Universal_THCRAP_Launcher.MainForm.PopulatePatchList() at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e) at System.Windows.Forms.CheckBox.set_CheckState(CheckState value) at System.Windows.Forms.CheckBox.set_Checked(Boolean value) at Universal_THCRAP_Launcher.SettingsForm.SettingsForm_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The patch list and program list is empty. image

Unchecking hide extension fix the list image

Language selection also gave me the error message ************** Exception Text ************** System.ArgumentNullException: Value cannot be null. Parameter name: path at System.IO.File.ReadAllText(String path) at Universal_THCRAP_Launcher.I18N.UpdateLangResource(String filePath) at Universal_THCRAP_Launcher.SettingsForm.languageComboBox_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Naming type also gave me error message but fixed the game list image

************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Universal_THCRAP_Launcher.MainForm.PopulateGames() at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AsyrafFile commented 5 years ago

Sort button is not working.

lilyremigia commented 5 years ago

Fixed in 9899eb37f1feffb62cc5dcf41de5718e7a0ae5f7