Commit Graph

496 Commits

Author SHA1 Message Date
Leijurv
ea5914f776
cmt 2018-08-14 15:58:53 -07:00
Leijurv
c780454b78
comment 2018-08-14 15:43:04 -07:00
Leijurv
9aefcebddf
api 2018-08-14 15:32:16 -07:00
Leijurv
92b3ac93d0
check 2018-08-14 15:24:23 -07:00
Leijurv
72f7c564a1
getter 2018-08-14 15:22:52 -07:00
Leijurv
7bc9969d93
throwaways setting 2018-08-14 15:19:35 -07:00
Leijurv
45375c45bb
simplified 2018-08-14 15:16:38 -07:00
Leijurv
bb453a94b9
beautiful settings 2018-08-14 15:04:41 -07:00
Leijurv
c67c9582c4
Thanks IntelliJ for that amazingly helpful performance optimization suggestion 2018-08-14 13:23:57 -07:00
Leijurv
3a68009194
don't allocate for up(0) 2018-08-14 11:25:30 -07:00
Leijurv
2e7f5048dc
this is so sad 2018-08-14 10:50:41 -07:00
Leijurv
60d246ecc9
betterblockpos 2018-08-14 10:47:31 -07:00
Leijurv
46593fc1a4
less indentation 2018-08-14 08:28:35 -07:00
leijurv
1e731b3246 path fading 2018-08-13 21:05:35 -07:00
leijurv
578e08a893 split out into baritone api 2018-08-13 20:57:29 -07:00
leijurv
c9a6a36f67 init before init 2018-08-13 20:37:48 -07:00
leijurv
d399857309 Merge branch 'leijurv-settings' 2018-08-13 20:20:54 -07:00
leijurv
e4d6d6ff64 missed a spot 2018-08-13 20:19:27 -07:00
leijurv
ebee78b035 optim 2018-08-13 20:18:12 -07:00
leijurv
04005b6e59 more settings 2018-08-13 20:17:16 -07:00
leijurv
b97852dd68 vines patch tempfix 2018-08-13 20:09:27 -07:00
Leijurv
f881ba5e59
first attempt at settings 2018-08-13 17:16:22 -07:00
Leijurv
eee43ad5d1
sanik 2018-08-13 17:03:48 -07:00
Leijurv
b15ebef880
refactor 2018-08-13 16:59:59 -07:00
Leijurv
25b0348916
tweaks 2018-08-13 16:56:09 -07:00
Leijurv
bc9f76d1c7
misc fixes to coefficients, descend, and pathexecutor 2018-08-13 16:41:08 -07:00
Leijurv
4ba5d81b5c
maybe fixed descend 2018-08-13 15:44:52 -07:00
Leijurv
4eb46ebe0f
guard 2018-08-13 13:49:05 -07:00
Leijurv
532d4d1f31
sprinting yay 2018-08-13 13:40:50 -07:00
Leijurv
5acb86e390
im idiot 2018-08-13 13:32:10 -07:00
Leijurv
40dfed7e9d
hopefully deal with soul sand properly 2018-08-13 13:18:42 -07:00
Leijurv
dbca100e55
cancel paths on exit 2018-08-13 13:13:42 -07:00
Leijurv
4c653e1d31
cooler messages 2018-08-13 13:00:57 -07:00
Leijurv
7a28b029ce
render next path 2018-08-13 12:57:21 -07:00
Leijurv
58a1f65044
cutoff at edge of loaded chunks 2018-08-13 12:56:08 -07:00
Leijurv
9190e82b20
tweak time limit 2018-08-13 12:42:46 -07:00
Leijurv
85fdc2df34
planning ahead 2018-08-13 12:35:44 -07:00
Leijurv
88c81a9635
we do this 2018-08-13 11:50:49 -07:00
Leijurv
5d46a3d0d9
fixed recalculating movement cost 2018-08-13 11:49:36 -07:00
Leijurv
2e184c1b4c
disallow place ascend when no throwaway is present 2018-08-13 08:38:49 -07:00
Leijurv
945d5ef3f7
add comment 2018-08-13 08:31:59 -07:00
Leijurv
2bf09cc5a3
allow some break and fall 2018-08-13 08:28:43 -07:00
leijurv
a311829605 oh my god i'm literally an idiot 2018-08-13 07:14:11 -07:00
leijurv
e2f8561847 auto tool v1 lol 2018-08-13 07:08:53 -07:00
leijurv
83cc5ec861 soul sand sucks 2018-08-13 07:07:42 -07:00
leijurv
3a228803b6 soul sand fixes 2018-08-13 07:05:28 -07:00
Leijurv
7c175bac67
highlight walkaround blocks better 2018-08-12 08:40:44 -07:00
Leijurv
462ac1b03a
i literally hate magma 2018-08-12 08:24:53 -07:00
Leijurv
df1f6da526
fixed walking through fire 2018-08-12 08:17:23 -07:00
Leijurv
524a32375d
tweaked 2018-08-12 07:58:22 -07:00
Leijurv
b61863661f
todo 2018-08-11 21:36:54 -07:00
Leijurv
f8d1675973
pushing around corners 2018-08-11 21:27:46 -07:00
Leijurv
cf3d3cb48d
i cannot believe that actually fixed it 2018-08-11 20:55:51 -07:00
Leijurv
31113c2702
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-11 20:05:50 -07:00
Leijurv
816253cc87
maybe this will fix it 2018-08-11 20:05:46 -07:00
Brady
3eb28f39cb
Fix integer division in floating point context 2018-08-11 20:49:00 -05:00
Leijurv
6480c8ce73
added movementpillar 2018-08-11 18:45:02 -07:00
Leijurv
b5b7863d9a
this actually fixes breaking blocks 2018-08-11 18:05:55 -07:00
Leijurv
d3ae1d27c8
setting goal to playerFeet is fixed and misc cleanup 2018-08-11 17:13:12 -07:00
Leijurv
ae2d1131a5
oh wait yeah you also have to jump 2018-08-11 17:10:23 -07:00
Leijurv
ebad3de005
it helps to actually walk towards where you're going lol 2018-08-11 17:09:32 -07:00
Leijurv
d1e999dc8f
this fixes soul sand but it does not fix my soul 2018-08-11 17:05:47 -07:00
Leijurv
4afce12785
ascend placable 2018-08-11 17:03:18 -07:00
Leijurv
df8e0d313b
throwaway context 2018-08-11 15:03:14 -07:00
Leijurv
b4d389d432
no water buckets in the nether 2018-08-11 14:44:29 -07:00
Leijurv
48227bae60
so annoying 2018-08-11 13:31:21 -07:00
Leijurv
141c71cb8b
too much talking 2018-08-11 13:09:13 -07:00
Leijurv
6d78b7f083
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-11 13:08:22 -07:00
Leijurv
b829a666d4
sprinting 2018-08-11 13:08:16 -07:00
Brady
273a00753d
Refactor some event related things 2018-08-11 00:03:16 -05:00
Brady
6900fb2ade
Replace some GL 1.1 calls with GlStateManager calls 2018-08-10 23:43:23 -05:00
Brady
2d16157d1b
Create CachedChunk BitSet validity method 2018-08-10 22:25:02 -05:00
Brady
ff929b9260
Add hotbar check for presence of water bucket 2018-08-10 22:24:26 -05:00
Leijurv
3dc544b120
goal parsing 2018-08-10 10:45:18 -07:00
Leijurv
9dd5aa21b1
nudge to level 2018-08-10 10:45:13 -07:00
Brady
22a6a4285f
Use the actual game's code in ToolSet#getStrVsBlock 2018-08-10 00:08:29 -05:00
Brady
326d979c0b
Clean up PathRenderer 2018-08-09 20:25:43 -05:00
Leijurv
e6494cdf53
hell merge 2018-08-09 16:44:41 -07:00
Leijurv
f4f67d77b6
more optim 2018-08-09 16:37:56 -07:00
Leijurv
71c36a7b0b
render optim 2018-08-09 16:37:08 -07:00
Brady
9fd207040e
Fix unnecessary unboxing/reboxing of Floats in Rotation 2018-08-09 18:26:17 -05:00
Brady
4ea4e5fa43
Simplify LookBehaviorUtils's reachableCenter method 2018-08-09 18:24:46 -05:00
Brady
ef3c9999c8
LookBehaviorUtils cleanups 2018-08-09 17:07:35 -05:00
Brady
80ef73c279
Move path rendering methods to new class 2018-08-09 16:48:10 -05:00
Brady
2b6d86dcdd
Move fromAngleAndDirection to GoalXZ 2018-08-09 16:35:42 -05:00
Brady
4d32ba131a
Fix deprecation warning 2018-08-09 16:05:14 -05:00
Leijurv
d3891a8f11
don't render parts of the path you've already finished 2018-08-09 13:08:56 -07:00
Leijurv
28ee485a87
render the same movement many times in a row as just one longer line 2018-08-09 13:03:13 -07:00
Leijurv
a1dc98589c
fixed descend into water 2018-08-09 12:53:34 -07:00
Brady
f55686295c
Remove redundant inheritance of Helper in PathExecutor 2018-08-08 23:13:36 -05:00
Leijurv
a6b5d423d5
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-08 17:04:06 -07:00
Leijurv
ea10c136c8
better output 2018-08-08 17:04:01 -07:00
Brady
f7037bf775
Some general cleanups to goal implementations 2018-08-08 18:55:20 -05:00
Leijurv
1f5874876b
don't pick up the water before landing 2018-08-08 16:07:08 -07:00
Leijurv
64ecbe20bf
select the bucket 2018-08-08 16:02:29 -07:00
Leijurv
879e2135e6
look at same coord as later location check 2018-08-08 16:01:35 -07:00
Leijurv
0bf9567833
it returns so no else needed 2018-08-08 16:00:54 -07:00
Leijurv
c23ed73321
unbraced ifs are a crime 2018-08-08 16:00:04 -07:00
Leijurv
e131734657
todo 2018-08-08 15:59:29 -07:00
Leijurv
0ba018388a
optim 2018-08-08 15:56:13 -07:00
Leijurv
24496d1de7
fixed crucial bug that prevented you from falling all the way to bedrock 2018-08-08 15:55:18 -07:00
Leijurv
6148166f71
optim 2018-08-08 15:55:04 -07:00
Howard Stark
9f803bc185
Fix target rotation logic 2018-08-08 15:54:20 -07:00
Leijurv
3023a5b4f6
lol 2018-08-08 15:53:28 -07:00
Leijurv
cbdb4fb5ea
fix bucket pathfind issue 2018-08-08 15:41:58 -07:00
Leijurv
c6998198a2
efficiency 2018-08-08 15:38:17 -07:00
Leijurv
38afa1b63c
helper for 0.5 center 2018-08-08 15:31:41 -07:00
Leijurv
b1462d5649
even if holding a bucket, landing in water means done 2018-08-08 15:27:14 -07:00
Howard Stark
04571426fe
Pick up water from bucket during fall 2018-08-08 14:44:16 -07:00
Howard Stark
f4e4b23054
Change water bucket item stack name 2018-08-08 14:22:13 -07:00
Brady
8de0d0ccd3
Replace water bucket stack creation with a constant value 2018-08-08 16:19:47 -05:00
Howard Stark
18431d78e3
Refactor moveTowards to be more stateful 2018-08-08 12:51:04 -07:00
Howard Stark
174f84da73
Prevent damaging falls in the Nether 2018-08-08 12:33:44 -07:00
Brady
db01331560
Remove arbitrary old Minebot hooks 2018-08-08 03:37:29 -05:00
Brady
ebde6f26e9
Created MemoryBehavior
Includes basic memory of inventories that have been interacted with.
2018-08-08 03:35:29 -05:00
Brady
6a13e2da64
Fix my inability to replace template members 2018-08-07 23:15:22 -05:00
Brady
27f7b5a3cc
Add GNU General Public License v3 2018-08-07 22:16:53 -05:00
Brady
27d686674e
Clean up connected position code 2018-08-07 22:03:41 -05:00
Brady
3f7b552577
Cached Chunk Path Finding 2018-08-07 19:41:13 -05:00
Brady
b5ddd17131
Clean up angle calculation 2018-08-07 19:36:51 -05:00
Brady
adb6904d53
Replace ToolSet parameter in cost calculation with CalculationContext 2018-08-07 16:36:32 -05:00
Brady
fc082f42e7
General cleanups to the movement system. 2018-08-07 16:14:36 -05:00
Leijurv
732ab5273c
maybe fix 2018-08-07 08:13:51 -07:00
Leijurv
a2b867bf39
reduced drowning 2018-08-07 08:09:27 -07:00
Leijurv
6dd43372f1
when a movement ends, clear all inputs, not just the ones it set on 2018-08-07 08:05:18 -07:00
Leijurv
f9a819b6a5
fix random traverse sprinting 2018-08-07 08:01:26 -07:00
Leijurv
1210db5d37
fixed diagonal movement destination 2018-08-07 08:01:17 -07:00
Leijurv
8516eab043
MovementDiagonal 2018-08-07 07:52:49 -07:00
Leijurv
42749f2325
add thisway 2018-08-07 07:47:37 -07:00
Leijurv
b5a6112bde
fixed fall detection 2018-08-07 07:39:55 -07:00
Howard Stark
b7eaf881a0
Clean falling movement generation 2018-08-07 06:41:45 -07:00
Howard Stark
e30405c0ca
Simplify fall logic and move methods 2018-08-07 06:16:38 -07:00
Brady
8b63a3adad
Fixed cached chunks not loading from file properly 2018-08-07 01:11:49 -05:00
Brady
f047dd08b0
Fix bad block lookups with cached chunks 2018-08-07 00:48:02 -05:00
Leijurv
5cdacb4939
continuous pathfinding and clearing 2018-08-06 21:07:15 -07:00
Leijurv
6e0df6e9fd
ladder descend works 2018-08-06 20:54:58 -07:00
Leijurv
d0708992d4
must use 0.5 instead of bounding box center for descending ladders 2018-08-06 20:52:19 -07:00
Leijurv
9e8154dd5e
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 19:52:41 -07:00
Leijurv
703c3b766b
water drop works 2018-08-06 19:48:09 -07:00
Brady
3f81453622
Added packet send and receive listeners 2018-08-06 21:41:17 -05:00
Leijurv
beb56dca5b
merge 2018-08-06 19:31:10 -07:00
Leijurv
1d0c71d2b8
descend lookback is pretty much fixed 2018-08-06 19:30:12 -07:00
Brady
67f5d22280
Change isFlowing parameter to BlockPos for 1.13 changes 2018-08-06 20:25:46 -05:00
Brady
e4492b654d
Fix a couple instances of redundant IBlockState parameters 2018-08-06 20:18:16 -05:00
Brady
70dfb40e5f
Create constant for throwaway items 2018-08-06 19:50:39 -05:00
Brady
1beff941d2
Add fallback item constant to ToolSet 2018-08-06 19:43:20 -05:00
Howard Stark
24cbb5e149
Fix location of method 2018-08-06 17:34:49 -07:00
Brady
5b3eb5a375
Add rotation method to respect relative angles 2018-08-06 19:16:33 -05:00
Howard Stark
207947f7dd
Working MovementFall 2018-08-06 17:10:28 -07:00
Leijurv
a806eaaca7
disable sprinting for now 2018-08-06 17:01:28 -07:00
Leijurv
8eaa64148b
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 16:58:10 -07:00
Leijurv
c6bee3addb
even more mega smooth 2018-08-06 16:58:06 -07:00
Brady
1332dd573e
Fix onPlayerUpdate not being called 2018-08-06 18:56:57 -05:00
Leijurv
d8a99f8459
replaced 2018-08-06 16:12:41 -07:00
Leijurv
34bedb58c7
merge 2018-08-06 16:10:05 -07:00
Leijurv
2cbf8fff9b
render improvements 2018-08-06 16:09:28 -07:00
Howard Stark
d357a48710
Add cost-only MovementFall 2018-08-06 16:07:54 -07:00
Howard Stark
6ecc928039
MovementDescend update properly sets status 2018-08-06 16:07:24 -07:00
Howard Stark
5e665554ea
Relocate MovementHelper and Movement utility methods 2018-08-06 16:06:18 -07:00
Leijurv
4caf6a8265
traverse block placing and rendering 2018-08-06 15:53:35 -07:00
Howard Stark
1a33d9462d
Fix unneeded method call on BlockStateInterface internals 2018-08-06 15:52:12 -07:00
Howard Stark
0fd11f80f5
Rename Movements 2018-08-06 15:23:08 -07:00
Howard Stark
1397b137ae
Explode MovementHelper methods into more fitting places 2018-08-06 14:32:54 -07:00
Leijurv
ee4ed0cc65
MovementFall 2018-08-06 14:04:55 -07:00
Leijurv
4fa64059af
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-06 13:51:13 -07:00
Leijurv
233f1d9e3e
if already looking at the block, no need to change rotation 2018-08-06 13:50:38 -07:00
Howard Stark
a4ccfe50a7
Add TickEvent typecheck 2018-08-06 13:07:30 -07:00
Howard Stark
f320c6710a
Fix instant crash on mainmenu 2018-08-06 15:54:06 -04:00
Leijurv
3eef5e2972
undo 2018-08-06 11:48:30 -07:00
Leijurv
25663c54e7
more binary heap performance optims 2018-08-06 08:54:13 -07:00
Leijurv
dff3e1efe5
sanity checks in pathfinder 2018-08-06 08:42:26 -07:00
Leijurv
d884c2dea8
comment 2018-08-06 08:34:08 -07:00
Leijurv
0f37e214aa
MovementDescend 2018-08-06 08:27:50 -07:00
Leijurv
16e31fee88
numNodes debug output 2018-08-06 07:14:20 -07:00
Leijurv
95086bdcb4
slowpath option 2018-08-06 07:01:25 -07:00
Brady
5964ac60b4
Restrict LookBehavior constructor 2018-08-06 03:28:57 -05:00
Brady
e27724aca5
findPath doesn't throw an exception 2018-08-06 03:23:40 -05:00
Brady
e41a04a0d3
Fix BufferBuilder locals that were incorrectly named 2018-08-06 02:48:42 -05:00
Brady
e8149f166f
Utilize Optional return types where mostly applicable 2018-08-06 02:21:47 -05:00
Brady
091c19ca72
Fix possible NullPointerExceptions caused by last commit
Silly Brady forgot how Optional works!
2018-08-05 23:45:50 -05:00
Brady
23db615695
Clean up Optional bad practices 2018-08-05 23:42:17 -05:00
Brady
aa635360a2
Fixed gay comment 16x16 regions = bad 2018-08-05 21:13:59 -05:00
Leijurv
0a8fb574b5
don't jump on air anymore 2018-08-05 22:09:29 -04:00
Howard Stark
b96ee346f9
Fix failed path cancellation 2018-08-05 22:08:23 -04:00
Howard Stark
586024b57e
Fix improper indice check on blocks to break 2018-08-05 22:07:13 -04:00
Leijurv
3b88cd319f
fix 2018-08-05 22:05:26 -04:00
Leijurv
cfc222a5db
fixed 2018-08-05 22:04:14 -04:00
Leijurv
3b1ceea211
whoops 2018-08-05 22:02:56 -04:00
Leijurv
603b33277c
player, not center of player feet 2018-08-05 22:00:37 -04:00
Howard Stark
a35a6409ab
Invert check on Movement passability checkC 2018-08-05 21:57:53 -04:00
Howard Stark
2f06857858
Pathing is functioning 2018-08-05 21:52:55 -04:00
Leijurv
5b96e6cd57
target rotation for traverse and ascend 2018-08-05 21:25:25 -04:00
Howard Stark
785e5377e6
Clean up Movement input behavior 2018-08-05 21:17:54 -04:00
Leijurv
988124e444
almost works 2018-08-05 21:17:04 -04:00
Howard Stark
fedbe724ef
Update status when movement is prepared 2018-08-05 21:00:36 -04:00
Howard Stark
e9fedef203
Switch from Float Tuple to Rotation 2018-08-05 20:54:30 -04:00
Howard Stark
3c6415d486
Fix target creation of Movement superclass 2018-08-05 20:50:59 -04:00
Leijurv
84aeca710e
Merge branch 'master' of github.com:cabaletta/baritone 2018-08-05 20:48:26 -04:00
Leijurv
67b9532f99
🅱️ erge 2018-08-05 20:48:02 -04:00
Howard Stark
34dd0f985f
Change visibility on LookBehaviorUtils intenal methods 2018-08-05 20:42:46 -04:00