ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
225 stars 26 forks source link

compile pal crash on lunch #222

Closed domdom2018 closed 9 months ago

domdom2018 commented 11 months ago

Compile Pal Version Compile Pal V28

Describe the bug when lunched it crashes after 1-2s or less

Steps to reproduce don't know. I just downloaded compile pal extracted the zip file opened the extracted folder and lunched compile pal and it crashed

Expected behavior ......to lunch

Debug.log An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.GameConfigurationParser.Parse(String binFolder) in D:\a\CompilePal\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:line 30 at CompilePalX.GameConfigurationManager.LoadGameConfigurations() in D:\a\CompilePal\CompilePal\CompilePalX\GameConfiguration\GameConfigurationManager.cs:line 150 An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.ProgressManager.ErrorProgress() in D:\a\CompilePal\CompilePal\CompilePalX\Compiling\ProgressManager.cs:line 74 at CompilePalX.ExceptionHandler.LogException(Exception e, Boolean crash) in D:\a\CompilePal\CompilePal\CompilePalX\ExceptionHandler.cs:line 35 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.ProgressManager.ErrorProgress() in D:\a\CompilePal\CompilePal\CompilePalX\Compiling\ProgressManager.cs:line 74 at CompilePalX.ExceptionHandler.LogException(Exception e, Boolean crash) in D:\a\CompilePal\CompilePal\CompilePalX\ExceptionHandler.cs:line 35 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at CompilePalX.App.Main()

Crash logs System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.GameConfigurationParser.Parse(String binFolder) in D:\a\CompilePal\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:line 30 at CompilePalX.GameConfigurationManager.LoadGameConfigurations() in D:\a\CompilePal\CompilePal\CompilePalX\GameConfiguration\GameConfigurationManager.cs:line 1

Additional context I am not sure if the crash is due to compile pal being broken or my pc .I don't know please help

Exactol commented 11 months ago

Can you try this build? https://www.dropbox.com/s/27gwbexhqdbwmeq/Compile%20Pal%20028.1.zip?dl=0

domdom2018 commented 11 months ago

tried it just now the same thing hapens

crash log:

System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.GameConfigurationParser.Parse(String binFolder) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:line 30 at CompilePalX.GameConfigurationManager.LoadGameConfigurations() in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfigura

debug.log

Current version: 28.1.0.0 --- Compile Pal 28.1 --- Runtime: win10-x86 Gamedb: DataBlock< name="Half-Life 2" values={[D:\Steam\steamapps\common\Team, Fortress] [2\hl2, ] [GameData0, ] [D:\Steam\steamapps\common\Team1, Fortress] [2\bin\halflife2.fgd, ] [TextureFormat, ] [5, ] [MapFormat, ] [4, ] [DefaultTextureScale, ] [0.250000, ] [DefaultLightmapScale, ] [16, ] [GameExe, ] [D:\Steam\steamapps\common\Team2, Fortress] [2\hl2.exe, ] [DefaultSolidEntity, ] [func_detail, ] [DefaultPointEntity, ] [info_player_start, ] [BSP, ] [D:\Steam\steamapps\common\Team3, Fortress] [2\bin\vbsp.exe, ] [Vis, ] [D:\Steam\steamapps\common\Team4, Fortress] [2\bin\vvis.exe, ] [Light, ] [D:\Steam\steamapps\common\Team5, Fortress] [2\bin\vrad.exe, ] [GameExeDir, ] [D:\Steam\steamapps\common\Team6, Fortress] [2, ] [MapDir, ] [D:\Steam\steamapps\common\Team7, Fortress] [2\sourcesdk_content\hl2\mapsrc, ] [BSPDir, ] [D:\Steam\steamapps\common\Team8, Fortress] [2\hl2\maps, ] [CordonTexture, ] [tools\toolsskybox, ] [MaterialExcludeCount, ] [0, ]} subBlocks=[

]> An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.GameConfigurationParser.Parse(String binFolder) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\GameConfigurationParser.cs:line 30 at CompilePalX.GameConfigurationManager.LoadGameConfigurations() in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\GameConfiguration\GameConfigurationManager.cs:line 150 An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.ProgressManager.ErrorProgress() in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compiling\ProgressManager.cs:line 74 at CompilePalX.ExceptionHandler.LogException(Exception e, Boolean crash) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\ExceptionHandler.cs:line 35 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) An exception was caught by the ExceptionHandler: System.NullReferenceException: Object reference not set to an instance of an object. at CompilePalX.ProgressManager.ErrorProgress() in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\Compiling\ProgressManager.cs:line 74 at CompilePalX.ExceptionHandler.LogException(Exception e, Boolean crash) in C:\Users\10zil\Documents\Projects\C Sharp\CompilePal\CompilePalX\ExceptionHandler.cs:line 35 at System.Threading.Tasks.Task.<>c.b__128_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run() at CompilePalX.App.Main()

Exactol commented 11 months ago

Can you upload your debug.log and send me the GameConfig.txt in the game's bin folder?

domdom2018 commented 11 months ago

here you go

uto, 24. lis 2023. u 01:58 Zach @.***> napisao je:

Can you upload your debug.log and send me the GameConfig.txt in the game's bin folder?

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/222#issuecomment-1776239323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNN262UP36TUNDTTYG7Z3LYA4ADHAVCNFSM6AAAAAA6H4EJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWGIZTSMZSGM . You are receiving this because you authored the thread.Message ID: @.***>

"Configs" { "Games" { "Half-Life 2" { "GameDir" "D:\Steam\steamapps\common\Team Fortress 2\hl2" "Hammer" { "GameData0" "D:\Steam\steamapps\common\Team Fortress 2\bin\halflife2.fgd" "TextureFormat" "5" "MapFormat" "4" "DefaultTextureScale" "0.250000" "DefaultLightmapScale" "16" "GameExe" "D:\Steam\steamapps\common\Team Fortress 2\hl2.exe" "DefaultSolidEntity" "func_detail" "DefaultPointEntity" "info_player_start" "BSP" "D:\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe" "Vis" "D:\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe" "Light" "D:\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe" "GameExeDir" "D:\Steam\steamapps\common\Team Fortress 2" "MapDir" "D:\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\hl2\mapsrc" "BSPDir" "D:\Steam\steamapps\common\Team Fortress 2\hl2\maps" "CordonTexture" "tools\toolsskybox" "MaterialExcludeCount" "0" } } "Team Fortress 2" { "GameDir" "D:\Steam\steamapps\common\Team Fortress 2\tf" "Hammer" { "GameData0" "D:\Steam\steamapps\common\Team Fortress 2\bin\tf.fgd" "TextureFormat" "5" "MapFormat" "4" "DefaultTextureScale" "0.250000" "DefaultLightmapScale" "16" "GameExe" "D:\Steam\steamapps\common\Team Fortress 2\hl2.exe" "DefaultSolidEntity" "func_detail" "DefaultPointEntity" "info_player_teamspawn" "BSP" "D:\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe" "Vis" "D:\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe" "Light" "D:\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe" "GameExeDir" "D:\Steam\steamapps\common\Team Fortress 2" "MapDir" "D:\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc" "BSPDir" "D:\Steam\steamapps\common\Team Fortress 2\tf\maps" "CordonTexture" "tools\toolsskybox" "MaterialExcludeCount" "0" } } } "SDKVersion" "5" }

Exactol commented 11 months ago

Can you upload both as files? Sometimes the formatting gets messed up when it gets pasted

domdom2018 commented 11 months ago

sure I am seeding you this by email so hopefully it will send correctly

uto, 24. lis 2023. u 23:25 Zach @.***> napisao je:

Can you upload both as files? Sometimes the formatting gets messed up when it gets pasted

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/222#issuecomment-1778065348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNN266MYK4IQ3IPO5TF7DDYBAW6PAVCNFSM6AAAAAA6H4EJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYGA3DKMZUHA . You are receiving this because you authored the thread.Message ID: @.***>

"Configs" { "Games" { "Half-Life 2" { "GameDir" "D:\Steam\steamapps\common\Team Fortress 2\hl2" "Hammer" { "GameData0" "D:\Steam\steamapps\common\Team Fortress 2\bin\halflife2.fgd" "TextureFormat" "5" "MapFormat" "4" "DefaultTextureScale" "0.250000" "DefaultLightmapScale" "16" "GameExe" "D:\Steam\steamapps\common\Team Fortress 2\hl2.exe" "DefaultSolidEntity" "func_detail" "DefaultPointEntity" "info_player_start" "BSP" "D:\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe" "Vis" "D:\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe" "Light" "D:\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe" "GameExeDir" "D:\Steam\steamapps\common\Team Fortress 2" "MapDir" "D:\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\hl2\mapsrc" "BSPDir" "D:\Steam\steamapps\common\Team Fortress 2\hl2\maps" "CordonTexture" "tools\toolsskybox" "MaterialExcludeCount" "0" } } "Team Fortress 2" { "GameDir" "D:\Steam\steamapps\common\Team Fortress 2\tf" "Hammer" { "GameData0" "D:\Steam\steamapps\common\Team Fortress 2\bin\tf.fgd" "TextureFormat" "5" "MapFormat" "4" "DefaultTextureScale" "0.250000" "DefaultLightmapScale" "16" "GameExe" "D:\Steam\steamapps\common\Team Fortress 2\hl2.exe" "DefaultSolidEntity" "func_detail" "DefaultPointEntity" "info_player_teamspawn" "BSP" "D:\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe" "Vis" "D:\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe" "Light" "D:\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe" "GameExeDir" "D:\Steam\steamapps\common\Team Fortress 2" "MapDir" "D:\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc" "BSPDir" "D:\Steam\steamapps\common\Team Fortress 2\tf\maps" "CordonTexture" "tools\toolsskybox" "MaterialExcludeCount" "0" } } } "SDKVersion" "5" }

domdom2018 commented 11 months ago

never mind I just downloaded compile pal 25V and it worked it didn't crash.

sri, 25. lis 2023. u 17:34 Domagoj Benko @.***> napisao je:

sure I am seeding you this by email so hopefully it will send correctly

uto, 24. lis 2023. u 23:25 Zach @.***> napisao je:

Can you upload both as files? Sometimes the formatting gets messed up when it gets pasted

— Reply to this email directly, view it on GitHub https://github.com/ruarai/CompilePal/issues/222#issuecomment-1778065348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNN266MYK4IQ3IPO5TF7DDYBAW6PAVCNFSM6AAAAAA6H4EJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZYGA3DKMZUHA . You are receiving this because you authored the thread.Message ID: @.***>

Exactol commented 11 months ago

Looks like it still sent the file contents, uploading the file through the website would be ideal incase theres any formatting that gets messed up. My best guess so far is that it might be a localization issue since it didnt crash when I tried it on my computer. What region/language is windows set to?

domdom2018 commented 11 months ago

debug.log

GameConfig.txt

here you go . My region is set to Croatian and my language is set to Screenshot (68)

domdom2018 commented 11 months ago

also a side note now when I switched to compile pal V25 it seems it breaks my vrad/vvis .so when I launch the game and load any map its full bright but I managed to "fix" it by opening steam > library > team fortress 2 > properties > verify game files .

Exactol commented 11 months ago

Can you try this build? https://www.dropbox.com/scl/fi/izhbxvjcj6knk27ezl00l/Compile-Pal-028.2.zip?rlkey=iiekwopnn2tpbbwdu98nu0erp&dl=0 If it still crashes please send the debug.log

domdom2018 commented 11 months ago

still crashes

debug.log

Exactol commented 10 months ago

Ah, didnt realize you were using hammer++, can you send me this file? D:\Steam\steamapps\common\Team Fortress 2\bin\hammerplusplus\hammerplusplus_gameconfig.txt

domdom2018 commented 10 months ago

here you go hammerplusplus_gameconfig.txt

Exactol commented 10 months ago

That looks corrupted, try renaming the file, relaunching Hammer++, and then opening Compile Pal

domdom2018 commented 10 months ago

thanks it works now.