baritone icon indicating copy to clipboard operation
baritone copied to clipboard

Please add a brief but descriptive title

Open kittenvr opened this issue 2 years ago • 7 comments

Some information

Operating system: windows 11 Java version: 1.17 Minecraft version: 1.20 Baritone version: elytra Other mods (if used): Mods: [✔] baritone-api-fabric-1.20.1-elytra-beta-v1 [✔] fabric-api-0.87.0+1.20.1 [✔] indium-1.0.25+mc1.20.1 [✔] lithium-fabric-mc1.20.1-0.11.2 [✔] reeses_sodium_options-1.6.4+mc1.20.1-build.94 [✔] sodium-extra-0.5.1+mc1.20.1-build.112 [✔] sodium-fabric-mc1.20.1-0.5.2 [✔] viafabricplus-2.8.2 [✔] Wurst-Client-v7.35.2-MC1.20

Exception, error or logs

Please find your latest.log or debug.log in this folder and attach it to the issue

Linux: ~/.minecraft/logs/

Windows: %appdata%/.minecraft/logs/

Mac: /Library/Application\ Support/minecraft/logs/

How to reproduce

  1. make the bot do something like #litematica or #sel shell block
  2. run #buildInLayers

Modified settings

[Baritone] > modified [Baritone] All modified settings: [Baritone) allowBreak (Boolean) [Baritone] blockReachDistance (Float) [Baritone] maxFallHeightBucket (Integer) [Baritone] maxFall HeightNoWater (Integer) [Baritone] [Baritone] [Baritone] [Baritone [Baritone]

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 have not used any OwO's or UwU's in this issue.

kittenvr avatar Aug 23 '23 17:08 kittenvr

and what is the issue?

rycbar0 avatar Aug 23 '23 17:08 rycbar0

and what is the issue?

it crash

kittenvr avatar Aug 23 '23 17:08 kittenvr

do you have a game/crash log?

rycbar0 avatar Aug 23 '23 17:08 rycbar0

do you have a game/crash log?

yes, its in the Exception, error or logs section

kittenvr avatar Aug 23 '23 17:08 kittenvr

@rycbar0 you need to click it

kittenvr avatar Aug 23 '23 17:08 kittenvr

thanks i found it. i first missed it because you linked it behind the default text where to find it.

i think the line that throws the error is this one but i cant figure out what "<parameter2>" is because the function there doesnt have any parameters https://github.com/cabaletta/baritone/blob/3873aae7100926913536ec5f9c03f8f88e8d5f65/src/main/java/baritone/process/BuilderProcess.java#L1079

rycbar0 avatar Aug 23 '23 17:08 rycbar0

My bet:

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.block.state.BlockState.getBlock()" because "second" is null
    at baritone.process.BuilderProcess.sameBlockState(BuilderProcess.java:1021)
    at baritone.process.BuilderProcess.containsBlockState(BuilderProcess.java:1043) (inlined into the lambda method)
    at baritone.process.BuilderProcess.lambdaInAssemble(BuilderProcess.java:713)
    at java.lang.Iterable.forEach(Iterable.java:75)
    at baritone.process.BuilderProcess.assemble(BuilderProcess.java:710)
    at baritone.process.BuilderProcess.onTick(BuilderProcess.java:594 or 596)
   ...

When enabling buildInLayers the schematic shrinks so positions in incorrectPositions can become out of bounds which in turn causes bcc.getSchematic to return null here and then things blow up here

ZacSharp avatar Sep 05 '23 16:09 ZacSharp