Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
500139c
first test for crystal aura
emyfops Nov 10, 2024
ca69b2c
Merge branch 'master' into feature/combat
emyfops Jan 5, 2025
ca63e6d
crystal aura
emyfops Jan 5, 2025
f4cee65
better checks and visualization
emyfops Jan 6, 2025
0b6eff3
Update CrystalAura.kt
emyfops Jan 8, 2025
50fec70
Merge branch 'master' into feature/combat
emyfops Jan 9, 2025
2781a5e
Merge branch 'master' into feature/combat
emyfops Jan 9, 2025
743911b
Merge branch 'master' into feature/combat
Avanatiker Jan 9, 2025
63f358f
removed caura delay check
emyfops Jan 9, 2025
e93d412
inlined killaura target
emyfops Jan 9, 2025
f7f8794
feat: tps clock
emyfops Jan 9, 2025
ac67df8
Merge branch 'feature/combat' of https://github.com/Avanatiker/NeoLam…
emyfops Jan 9, 2025
7631fa4
Rework ServerTPS
Avanatiker Jan 9, 2025
9329c6f
Fix esp builder bounding box not shifted by position
Avanatiker Jan 9, 2025
b03a3d9
Add RotationMode.NONE
Avanatiker Jan 9, 2025
4341b84
ESP builder rename
Avanatiker Jan 9, 2025
d262d00
Dynamic targeting range
Avanatiker Jan 9, 2025
2ed4623
Use disconnect to clean up server tps
Avanatiker Jan 9, 2025
89ac694
Crystal Aura rewrite
Avanatiker Jan 9, 2025
5310b56
Troll PvPers
Avanatiker Jan 9, 2025
bcb6546
Get state a bit later
Avanatiker Jan 9, 2025
b13b9ea
Merge branch 'master' into feature/combat
Avanatiker Jan 9, 2025
6791554
Merge branch 'master' into feature/combat
Avanatiker Jan 10, 2025
8be6c5f
Fix rotation validity checks and crystal placement
Avanatiker Jan 10, 2025
31c2ff8
Explosion targeting
Avanatiker Jan 10, 2025
e9d244c
Merge branch 'master' into feature/combat
Avanatiker Jan 10, 2025
178f35a
Fix missing merge stuff
Avanatiker Jan 10, 2025
9dd364a
coordinate hud module
emyfops Jan 10, 2025
4e391c0
ref: fakeplayer nil id
emyfops Jan 10, 2025
45ca49f
ref: coordinate hud
emyfops Jan 11, 2025
da168c0
Fix LimitedDecayQueue MutableIterator
Avanatiker Jan 12, 2025
1bba52a
CrystalAura exploding
Avanatiker Jan 12, 2025
5d7a706
fix: fake player targeting
emyfops Jan 12, 2025
ac6054b
ref: use mc's reach
emyfops Jan 12, 2025
4d7df22
ref: raycast arguments
emyfops Jan 12, 2025
bd40575
disable fake player on shutdown
emyfops Jan 12, 2025
f218933
clear caura on disable
emyfops Jan 12, 2025
3af2f41
fix: kill aura reach
emyfops Jan 12, 2025
156d16c
Disable FakePlayer on disconnect
Avanatiker Jan 13, 2025
64218f1
Timer (for delays and periodic actions)
blade1234567 Jan 15, 2025
3fd3626
FakePlayer crash fix
blade1234567 Jan 16, 2025
ae4e40f
async crystal aura
blade1234567 Jan 17, 2025
f38db93
Merge branch 'master' into feature/combat
emyfops Jan 17, 2025
d5c51e4
idk what happened
emyfops Jan 17, 2025
a9ab201
Lightfast CrystalAura
blade1234567 Jan 19, 2025
fd89186
OP Predictions
blade1234567 Jan 19, 2025
d72809c
Rotation & refactor
blade1234567 Jan 19, 2025
cb85548
Timer refactor
blade1234567 Jan 20, 2025
1c710ae
Fixed & improved predictions
blade1234567 Jan 20, 2025
bc19659
Cleaned up & improved predictions
blade1234567 Jan 20, 2025
0fbd682
Accurate Timer with duration type
Avanatiker Jan 21, 2025
478dd20
Request system, Rotation request rework, HotbarManager
blade1234567 Feb 2, 2025
6c9993a
Remove deprecated rotation fix and fix wrong hit check
Avanatiker Feb 4, 2025
e38cdb3
Use proper update event
Avanatiker Feb 4, 2025
b7c9113
Make requests data classes so we can debug them better
Avanatiker Feb 4, 2025
82396e2
Merge branch 'master' into feature/combat
Avanatiker Feb 5, 2025
ebe0bd4
Configuration delegation
Avanatiker Feb 6, 2025
d22b73d
Fix default values and visibility
Avanatiker Feb 6, 2025
3876523
UpdatableLazy Kdocs
Avanatiker Feb 6, 2025
e60615f
Some fixes
Avanatiker Feb 6, 2025
fca9ae2
Decision making on tick post
Avanatiker Feb 6, 2025
f70179f
Add build config to simulator
Avanatiker Feb 6, 2025
42c1c0e
Task duration
Avanatiker Feb 6, 2025
d95eda5
Fix player collision check for simulation
Avanatiker Feb 6, 2025
30cc651
Surface scan margin
Avanatiker Feb 6, 2025
4d63c79
Move breaking into build task. Item pickup strategy still missing
Avanatiker Feb 7, 2025
1614f38
Distinct block update event for server updates
Avanatiker Feb 7, 2025
50654c6
Fix stuff
Avanatiker Feb 7, 2025
51db458
Revert to old surface scan function as new one was flawed and it hurts
Avanatiker Feb 7, 2025
48f1144
Propagating Blueprint
Avanatiker Feb 7, 2025
4adfb18
Nullable withdrawal or deposit tasks
Avanatiker Feb 7, 2025
505ba1d
Sort build results by rotation distance
Avanatiker Feb 7, 2025
db4a568
Cleanup
Avanatiker Feb 7, 2025
6bd7d89
Indicate non raycasting rotation. Not yet possible bc of internal cas…
Avanatiker Feb 7, 2025
f181bd4
Baritone movement fix, surface scan for rotation dsl
blade1234567 Feb 7, 2025
a7b7d63
Fix BuildTask context build timing, block inaccurate pathing positions
Avanatiker Feb 7, 2025
75965ba
FakePlayer refactor, ca speed debug
blade1234567 Feb 8, 2025
48fc1d7
Merge remote-tracking branch 'origin/feature/combat' into feature/combat
blade1234567 Feb 8, 2025
1e73519
resettableLazy() -> updatableLazy()
Avanatiker Feb 7, 2025
7ca5a36
Bring back placement blocking by entities result
Avanatiker Feb 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleaned up & improved predictions
  • Loading branch information
blade1234567 committed Jan 20, 2025
commit bc19659dc408f9b9180296668bc56612de4999dc
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ object CrystalAura : Module(

/* Prediction */
private val prediction by setting("Prediction", PredictionMode.None) { page == Page.Prediction }
private val predictionPackets by setting("Prediction Packets", 1, 1..20) { page == Page.Prediction && prediction.isActive }
private val packetLifetime by setting("Packet Lifetime", 300L, 50L..1000L) { page == Page.Prediction && prediction.onPlace }
private val packetPredictions by setting("Packet Predictions", 1, 0..20, 1) { page == Page.Prediction && prediction.onPacket }
private val placePredictions by setting("Place Predictions", 4, 1..20, 1) { page == Page.Prediction && prediction.onPlace }
private val packetLifetime by setting("Packet Lifetime", 500L, 50L..1000L) { page == Page.Prediction && prediction.onPlace }

/* Targeting */
private val targeting = Targeting.Combat(this, 10.0) { page == Page.Targeting }
Expand Down Expand Up @@ -169,12 +170,14 @@ object CrystalAura : Module(
}
}

// Prediction
listen<EntityEvent.EntitySpawn> { event ->
// Update last received entity spawn
// Update last received entity spawn
listen<EntityEvent.EntitySpawn>(alwaysListen = true) { event ->
lastEntityId = event.entity.id
predictionTimer.reset()
}

// Prediction
listen<EntityEvent.EntitySpawn> { event ->
val crystal = event.entity as? EndCrystalEntity ?: return@listen
val pos = crystal.baseBlockPos

Expand All @@ -183,26 +186,18 @@ object CrystalAura : Module(
opportunity.crystal = crystal

// Run packet prediction
if (activeOpportunity != opportunity) return@listen
if (!prediction.isActive || activeOpportunity != opportunity) return@listen

when {
prediction.onPlace -> {
explodeInternal(lastEntityId)
}
explodeInternal(lastEntityId)

prediction.onPacket -> {
repeat(predictionPackets) {
val offset = if (prediction.postPlace) 0 else it
explodeInternal(lastEntityId + offset)

if (prediction.postPlace) {
placeInternal(pos, Hand.MAIN_HAND)
lastEntityId++
placeTimer.reset()
}
}
}
if (!prediction.onPacket) return@listen

repeat(packetPredictions) {
placeInternal(pos, Hand.MAIN_HAND)
explodeInternal(++lastEntityId)
}

placeTimer.reset()
}

listen<EntityEvent.EntityRemoval> { event ->
Expand Down Expand Up @@ -441,18 +436,12 @@ object CrystalAura : Module(
if (prediction.onPlace) predictionTimer.runIfNotPassed(packetLifetime, false) {
val last = lastEntityId

repeat(predictionPackets) {
if (it != 0 && prediction.postPlace) {
placeInternal(blockPos, Hand.MAIN_HAND)
}

repeat(placePredictions) {
explodeInternal(++lastEntityId)
}

if (prediction == PredictionMode.StepDeferred) {
lastEntityId = last + 1
crystal = null
}
lastEntityId = last + 1
crystal = null
}

placeTimer.reset()
Expand Down Expand Up @@ -527,18 +516,18 @@ object CrystalAura : Module(
}

@Suppress("Unused")
private enum class PredictionMode(val onPacket: Boolean, val onPlace: Boolean, val postPlace: Boolean) {
private enum class PredictionMode(val onPacket: Boolean, val onPlace: Boolean) {
// Prediction disable
None(false, false, false),
None(false, false),

// Predict on packet receive
SemiPacket(true, false, false),
Packet(true, false, true),
Packet(true, false),

// Predict on place
SemiDeferred(false, true, false),
Deferred(false, true, true),
StepDeferred(false, true, false); // the best method
Deferred(false, true),

// Predict on both timings
Mixed(true, true);

val isActive = onPacket || onPlace
}
Expand Down
Loading