hectorgimenez / koolo

Diablo II Resurrected bot written in Go
MIT License
72 stars 48 forks source link

Koolo.exe crashes/exits upon start, Windows 10 ltsc 21h2, 19044.4291 #189

Closed addeboiii closed 4 months ago

addeboiii commented 4 months ago

Details

https://imgur.com/LANrYWg

The app window just flashes and then crashes/exit. The log file is empty. Nothing in windows event viewer. Disabled firewall and defender, but issue persist. Happening with all versions using the new GUI (0.4.0-beta2 to 0.4.0-beta6). Versions without GUI work fine.

Anyone have clue what is missing? Feels like some sort of package that is not included on LTSC maybe?

Version

v0.4.0-beta6

GFKSolar commented 4 months ago

delete ur char configs. wrong line in config

addeboiii commented 4 months ago

You mean I should delete the "TEMPLATE" character config? There are no character configs.. No type of modification has been done to any of the files. I just download latest release, launch the exe and the result can been seen in the gif. If I clone the project and use build.bat, same result.

addeboiii commented 4 months ago

The exe is always run as admin. It is the only user account on the client and it is local administrator.

When I launch it with go run main.go, and the config folder "koolo-main\build\config" copied to koolo-main\cmd\koolo. https://i.imgur.com/amgF9ZB.gif

cmd output:

C:\Users\Fedsmoker\Desktop\koolo-main\cmd\koolo>go run main.go
panic: The system could not find the environment option that was entered.

goroutine 27 [running]:
main.main.func1()
        C:/Users/Fedsmoker/Desktop/koolo-main/cmd/koolo/main.go:57 +0x285
golang.org/x/sync/errgroup.(*Group).Go.func1()
        C:/Users/Fedsmoker/go/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
        C:/Users/Fedsmoker/go/pkg/mod/golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
exit status 2
hectorgimenez commented 4 months ago

mmm looks like the error is related to the webview initialization, it's weird because all the latest versions of windows 10 and windows 11 already come with it preinstalled.

Just in case, you can try to download it: https://developer.microsoft.com/en-us/microsoft-edge/webview2?form=MA13LH you can try the standalone installer for your architecture, if it's already installed it will tell you when you run it, otherwise install it and restart and try again.

hamptone69 commented 4 months ago

Same error for me and i have webview2:( just auto closes but mine actually makes the game then closes

hectorgimenez commented 4 months ago

Same error for me and i have webview2:( just auto closes but mine actually makes the game then closes

I don't think it's related to this issue, to me yours is more about the d2lod game, check the log file please

hamptone69 commented 4 months ago

Same error for me and i have webview2:( just auto closes but mine actually makes the game then closes

I don't think it's related to this issue, to me yours is more about the d2lod game, check the log file please

time=2024-05-01T23:58:09.577-07:00 level=INFO msg="Waiting for character selection screen..." time=2024-05-01T23:58:35.660-07:00 level=INFO msg="Character selection screen found" time=2024-05-01T23:58:35.660-07:00 level=INFO msg="Selecting character..." time=2024-05-01T23:58:47.439-07:00 level=INFO msg="Character found" time=2024-05-01T23:58:51.861-07:00 level=DEBUG msg="Fetching map data..."

the second before char loads into game bot auto closes / d2r stays open though

hectorgimenez commented 4 months ago

Same error for me and i have webview2:( just auto closes but mine actually makes the game then closes

I don't think it's related to this issue, to me yours is more about the d2lod game, check the log file please

time=2024-05-01T23:58:09.577-07:00 level=INFO msg="Waiting for character selection screen..." time=2024-05-01T23:58:35.660-07:00 level=INFO msg="Character selection screen found" time=2024-05-01T23:58:35.660-07:00 level=INFO msg="Selecting character..." time=2024-05-01T23:58:47.439-07:00 level=INFO msg="Character found" time=2024-05-01T23:58:51.861-07:00 level=DEBUG msg="Fetching map data..."

the second before char loads into game bot auto closes / d2r stays open though

yes, it's related to the d2lod instalaltion for sure, fetching map data is done via old game client. Please, be sure your config is correctly pointing to your 1.13c (and no other version) of d2 lord of destruction installation directory

hamptone69 commented 4 months ago

Ok i fixed that and its not closing but now im attempting to use leveling script and it jsut keeps opening and closing the skill hot key f1-f8 and nothing else tried both paladin and sorc level 1s

hectorgimenez commented 4 months ago

Ok i fixed that and its not closing but now im attempting to use leveling script and it jsut keeps opening and closing the skill hot key f1-f8 and nothing else tried both paladin and sorc level 1s

short answer: don't expect too much for the leveling script. But you can disable auto skill binding (not working well yet) and assign the skills manually, any key should be fine, koolo will autodetect them. image

addeboiii commented 4 months ago

mmm looks like the error is related to the webview initialization, it's weird because all the latest versions of windows 10 and windows 11 already come with it preinstalled.

Just in case, you can try to download it: https://developer.microsoft.com/en-us/microsoft-edge/webview2?form=MA13LH you can try the standalone installer for your architecture, if it's already installed it will tell you when you run it, otherwise install it and restart and try again.

This resolved the issue. Thanks.