Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

AT_GOAL PathEvent never triggered

big-lip-bob opened this issue ยท 5 comments

commented

Some information

Operating system: Linux Manjaro 5.12.8-1 x64
Java version: 8u252 x64
Minecraft version: 1.12.2 Forge 2847
Baritone version: 1.2.15 (With API)
Mods

Expectations and Reality

AT_GOAL from PathEvent is never given despite arriving at the goal, which does against my expectations or is at least named counter intuitively then.
Despite receiving all other Baritone events successfully, trough the set listener, this elusive one which is also the most important one doesn't seem to trigger at all (all the rest trigger so i don't see where would i blame myself on this one)?

How to reproduce

Register a listener, (in my case done trough LuaJava for AM), #goto somewhere easy and reacheable, expected to receive an AT_GOAL event, but didn't (did get CALC_STARTED and CALC_FINISHED_NOW_EXECUTING)
Can send the AM snippet on demand. essentially calling registerEventListener on the primary Baritone instance gotten trough the provider, with my listener that dumbly prints the received events on the primary baritone instance from the provider, it works for all, but just this one missing.

Modified settings

None, but for the registered Event Listener (consequences ?)

Final checklist

  • I know how to use Github issues in a constructive manner
commented

The issue is still persistent. Is waiting for the CANCELLED event a reasonable workaround?

commented

Sounds reasonable, if you don't care about #cancel (and any other command activating a nontemporary process) being interpreted as a success.
I think a more complete workaround using a helper process might be possible but unless you really need it it's probably unreasonably complex.

commented

Issue is still persistent in 1.10.2

commented

This is specifically about AT_GOAL not being fired when the CustomGoalProcess finishes.
Apparently it explicitly requests canceling the current segment, resulting in AT_GOAL only being fired when the last movement reports not being safe to cancel (e.g. parkour or water bucket falls)

commented

Well then apparently i am forced to wait aren't i, thanks for the explanation, ill see what can i do about it when ill be free