cabaletta / cabaletta/baritone

Autojump can trigger for one tick

Open
#3,741 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
9.2k
Forks
2.1k
Avg merge
4d 3h
Merged PRs (30d)
3

Description

## Some information
Minecraft version: 1.12.2
Baritone version: srg mapped fb814e912dadf3f6e34358354a86b54674103081 / eabd1150b0a619f7e2adada9dfbd837613bf9414 with local changes to InventoryBehavior.onTick, BuilderProcess.assemble, Helper.logDirect, PathingBehavior.onTick and PathingBehavior.onPlayerUpdate / 93501248cd92ae020003e80dc5f89dcaf4a4d4aa
Other mods (if used): private / no / no

## Exception, error or logs
relevant log excerpt from the second setup
logDebug is changed to not output messages that were already sent (or suppressed) in the previous tick.

[00:50:27] [main/INFO]: [CHAT] [Baritone] Not disabling autojump

[00:50:29] [main/INFO]: [CHAT] [Baritone] > home
[00:50:29] [main/INFO]: [CHAT] [Baritone] Going to: GoalBlock{x=235,y=88,z=394}
[00:50:29] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:29] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:29] [main/INFO]: [CHAT] [Baritone] Took 50ms, 22 movements considered
[00:50:29] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:29] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:29] [main/INFO]: [CHAT] [Baritone] Ticking path
[00:50:29] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:29] [main/INFO]: [CHAT] [Baritone] Movement returns status UNREACHABLE
[00:50:29] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:29] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:29] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=235,y=90,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:29] [main/INFO]: [CHAT] [Baritone] Took 1ms, 22 movements considered
[00:50:29] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:29] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=235,y=90,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:29] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:30] [main/INFO]: [CHAT] [Baritone] All done. At null
[00:50:30] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:30] [main/INFO]: [CHAT] [Baritone] Not ticking path (there is none)
[00:50:31] [Server thread/INFO]: [Player269: Teleported Player269 to 234.5, 89.0, 393.5]
[00:50:31] [main/INFO]: [CHAT] Teleported Player269 to 234.5, 89.0, 393.5
[00:50:33] [main/INFO]: [CHAT] [Baritone] > home
[00:50:33] [main/INFO]: [CHAT] [Baritone] Going to: GoalBlock{x=235,y=88,z=394}
[00:50:33] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:33] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:33] [main/INFO]: [CHAT] [Baritone] Took 0ms, 22 movements considered
[00:50:33] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:33] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:33] [main/INFO]: [CHAT] [Baritone] Ticking path
[00:50:33] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:33] [main/INFO]: [CHAT] [Baritone] Movement returns status UNREACHABLE
[00:50:33] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:33] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:33] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=235,y=90,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:33] [main/INFO]: [CHAT] [Baritone] Took 0ms, 22 movements considered
[00:50:33] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:33] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=235,y=90,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:33] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:34] [main/INFO]: [CHAT] [Baritone] All done. At null
[00:50:34] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:34] [main/INFO]: [CHAT] [Baritone] Not ticking path (there is none)
[00:50:35] [Server thread/INFO]: [Player269: Teleported Player269 to 234.5, 89.0, 393.5]
[00:50:35] [main/INFO]: [CHAT] Teleported Player269 to 234.5, 89.0, 393.5
[00:50:36] [Server thread/INFO]: Saving and pausing game...
[00:50:36] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[00:50:36] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[00:50:36] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[00:50:39] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:42] [main/INFO]: [CHAT] [Baritone] > home
[00:50:42] [main/INFO]: [CHAT] [Baritone] Going to: GoalBlock{x=235,y=88,z=394}
[00:50:42] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:42] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:42] [main/INFO]: [CHAT] [Baritone] Took 0ms, 22 movements considered
[00:50:42] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:42] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:42] [main/INFO]: [CHAT] [Baritone] Ticking path
[00:50:42] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:43] [main/INFO]: [CHAT] [Baritone] Not ticking path (there is none)
[00:50:43] [main/INFO]: [CHAT] [Baritone] Not disabling autojump
[00:50:44] [Server thread/INFO]: [Player269: Teleported Player269 to 234.5, 89.0, 393.5]
[00:50:44] [main/INFO]: [CHAT] Teleported Player269 to 234.5, 89.0, 393.5
[00:50:46] [main/INFO]: [CHAT] [Baritone] > home
[00:50:46] [main/INFO]: [CHAT] [Baritone] Going to: GoalBlock{x=235,y=88,z=394}
[00:50:46] [main/INFO]: [CHAT] [Baritone] Favoring size: 0
[00:50:46] [main/INFO]: [CHAT] [Baritone] Starting to search for path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}
[00:50:46] [main/INFO]: [CHAT] [Baritone] Took 1ms, 22 movements considered
[00:50:46] [main/INFO]: [CHAT] [Baritone] Path ends within loaded chunks
[00:50:46] [main/INFO]: [CHAT] [Baritone] Finished finding a path from BetterBlockPos{x=234,y=89,z=393} to GoalBlock{x=235,y=88,z=394}. 2 nodes considered
[00:50:46] [main/INFO]: [CHAT] [Baritone] Ticking path
[00:50:46] [main/INFO]: [CHAT] [Baritone] Disabling autojump
[00:50:46] [main/INFO]: [CHAT] [Baritone] Not ticking path (there is none)
[00:50:46] [main/INFO]: [CHAT] [Baritone] Not disabling autojump

## How to reproduce
1. Enable autojump
2. Have a path starting with a diagonal descend edging around a single block at foot level so you could walk over it instead of edging around it
3. Depending on your starting position autojump makes Baritone walk over the block

Sub-block position is important because you have to stand at the correct distance to the block at the side to trigger autojump on the first movement tick.

First setup:
https://user-images.githubusercontent.com/68165024/204112515-42c61fef-e1f8-4629-853d-babb98ca452f.mp4

Second setup:
https://user-images.githubusercontent.com/68165024/204113258-40232ff4-8ddc-4007-aa43-5ef674e98afb.mp4

## Modified settings
First setup:
```
allowInventory true
allowDiagonalDescend true
allowDiagonalAscend true
allowParkour true
avoidance true
planAheadFailureTimeoutMS 1000000000000
pruneRegionsFromRAM false
renderGoalAnimated false
shortBaritonePrefix true
```
Second and third setup:
```
allowInventory true
allowDiagonalDescend true
allowDiagonalAscend true
chatDebug true
```
## Final checklist
- [x] I know how to properly use check boxes
- [x] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
- [x] I have included logs, exceptions and / or steps to reproduce the issue.
- [x] I myself have not used any OwO's or UwU's in this issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.