hectorgimenez / koolo

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

Keeps going to vendor buying mana potions... #193

Closed hamptone69 closed 4 months ago

hamptone69 commented 4 months ago

Details

Keeps going to vendor buying mana potions and then sells them, goes back out of town to instantly TP to town and repeat buy/sell mana pots

time=2024-05-02T09:31:52.188-07:00 level=WARN msg="Game finished with errors, reason: fatal error detected, Koolo will try to exit game and create a new one: runtime error: invalid memory address or nil pointer dereference\n Stacktrace: goroutine 787 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/hectorgimenez/koolo/internal.(Bot).Run.func2()\n\tgithub.com/hectorgimenez/koolo/internal/bot.go:73 +0x3d\npanic({0xc81c00?, 0x12425f0?})\n\truntime/panic.go:770 +0x132\ngithub.com/hectorgimenez/koolo/internal/action.(Builder).UsePortalInTown.func1({{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, {0xc000fbe008, ...}, ...}, ...})\n\tgithub.com/hectorgimenez/koolo/internal/action/tpactions.go:28 +0x206\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:33 +0x63\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/actionchain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal/action.(*Chain).NextStep(, {{{0x3a98, 0x12c0}, {0x0, 0x0, {0x0, 0x0}}, {0xc001ec8e00, 0x7, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/action_chain.go:42 +0x17c\ngithub.com/hectorgimenez/koolo/internal.(Bot).Run(0xc000149b80, {0xe4e770, 0xc00026a0a0}, 0x0, {0xc000394bb0, 0x1, 0x1})\n\tgithub.com/hectorgimenez/koolo/internal/bot.go:164 +0x199e\ngithub.com/hectorgimenez/koolo/internal.(SinglePlayerSupervisor).Start.func1()\n\tgithub.com/hectorgimenez/koolo/internal/single_supervisor.go:71 +0x27f\ncreated by github.com/hectorgimenez/koolo/internal.(*SinglePlayerSupervisor).Start in goroutine 767\n\tgithub.com/hectorgimenez/koolo/internal/single_supervisor.go:45 +0x188\n. Game total time: 108.30s" supervisor=hamp time=2024-05-02T09:31:57.509-07:00 level=INFO msg=Stopping... configuration=hamp time=2024-05-02T09:31:57.509-07:00 level=INFO msg="Finished stopping" configuration=hamp time=2024-05-02T09:32:03.605-07:00 level=INFO msg="Waiting for character selection screen..."

Version

newest