dexyfex / CodeWalker

https://www.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map
469 stars 205 forks source link

Can't start when working directory is not as expected #189

Open Sainan opened 1 year ago

Sainan commented 1 year ago

CodeWalker expects the working directory to be the same directory where the EXE is located. This causes an issue when launching it via the start menu in Windows, e.g. just typing "CodeWalker" and pressing [Enter] as one might do. In specific, the issue is that CodeWalker can't load the 3 icons due to a "File not found" error, which is followed by an out of bounds error:

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 CodeWalker.WorldForm.Init()