hectorgimenez / koolo

Diablo II Resurrected bot written in Go
MIT License
64 stars 34 forks source link

suggestion #271

Open pampppp opened 1 month ago

pampppp commented 1 month ago

Details

hi, i have suggestion for upgrade the bot i dont know Go but i think i will try to learn litle for try to do that but i am noob x)

1) make bot moving after x hammer shoot for reset hammer spawn position and stop bloking bot 5 minut shooting hammer in void (some map, the merce is struk in other room and cannot kill bloked monsted) ex: shoot 5 hamme, move 2 step, shoot 5 hammer, move 2stop, etc

it make it realy better for non teleport bot hammerdin i guess

2) autorestart bot when fatal error coming and shuting doown the bot

Version

dev

Logs

time=04:19:18 level=ERROR msg="fatal error detected, forcing shutdown" supervisor=pap error="runtime error: index out of range [800] with length 800" stacktrace="goroutine 11201 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/hectorgimenez/koolo/internal.(SupervisorManager).Start.func2.1()\n\tgithub.com/hectorgimenez/koolo/internal/manager.go:76 +0x108\npanic({0x18a6200?, 0xc007524180?})\n\truntime/panic.go:770 +0x132\ngithub.com/hectorgimenez/koolo/internal/pather.(World).To(...)\n\tgithub.com/hectorgimenez/koolo/internal/pather/world.go:59\ngithub.com/hectorgimenez/koolo/internal/pather.(PathFinder).GetPath(_, {{{0xbb8, 0x12e8}, {0x0, 0x0, {0x0, 0x0}}, {0xc007deca00, 0x8, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/pather/path_finder.go:138 +0xad2\ngithub.com/hectorgimenez/koolo/internal/action.(Builder).MoveTo.func1({{{0xbb8, 0x12e8}, {0x0, 0x0, {0x0, 0x0}}, {0xc007deca00, 0x8, 0x8}, {0xc007588008, ...}, ...}, ...})\n\tgithub.com/hectorgimenez/koolo/internal/action/move.go:244 +0x1554\ngithub.com/hectorgimenez/koolo/internal/action.(Chain).NextStep(_, {{{0xbb8, 0x12e8}, {0x0, 0x0, {0x0, 0x0}}, {0xc007deca00, 0x8, 0x8}, ...}, ...}, ...)\n\tgithub.com/hectorgimenez/koolo/internal/action/action_chain.go:34 +0x65\ngithub.com/hectorgimenez/koolo/internal.(Bot).Run(0xc00071c180, {0x1b0fa20, 0xc000ba0140}, 0x0, {0xc00108a300, 0x7, 0x8})\n\tgithub.com/hectorgimenez/koolo/internal/bot.go:177 +0x1c36\ngithub.com/hectorgimenez/koolo/internal.(SinglePlayerSupervisor).Start(0xc0001ea000)\n\tgithub.com/hectorgimenez/koolo/internal/single_supervisor.go:70 +0x485\ngithub.com/hectorgimenez/koolo/internal.(SupervisorManager).Start.func2()\n\tgithub.com/hectorgimenez/koolo/internal/manager.go:82 +0xa2\ncreated by github.com/hectorgimenez/koolo/internal.(*SupervisorManager).Start in goroutine 11195\n\tgithub.com/hectorgimenez/koolo/internal/manager.go:69 +0x21d\n"