baritone icon indicating copy to clipboard operation
baritone copied to clipboard

IllegalStateException: TRAVERSE_* calculated implausible cost (negative value)

Open wujinjun-MC opened this issue 9 months ago • 6 comments

Some information

Operating system: Windows 11 23H2 (10.0.22631) Java version: 21.0.7 Minecraft version: Fabric 1.21.3 Baritone version: baritone-standalone-fabric-1.11.1 Other mods (if used): ViaFabricPlus-3.5.3

Exception, error or logs

Pathing exception: java.lang.IllegalStateException: TRAVERSE_* calculated implausible cost -*

Logs: latest.log

How to reproduce

  1. Download baritone-standalone-fabric-1.11.1 from releases
  2. Download ViaFabricPlus-3.5.3 from Modrinth
  3. Add both mods to the mods folder / mods list
  4. Run Minecraft 1.21.3
  5. Connect to multiplayer server (e.g. wujinjun1.myqnapcloud.com:25565)
  6. #goto <x> <z> (e.g. #goto 40000 ~)

Modified settings

walkOnWaterOnePenalty 3.0
allowJumpAt256 true
allowParkourAscend false
allowParkour true
allowParkourPlace true
randomLooking113 0.0
randomLooking 0.0
costHeuristic 3.563
maxFallHeightNoWater 448
chunkCaching false

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.

wujinjun-MC avatar Apr 19 '25 05:04 wujinjun-MC

I have a suspicion what's causing this, but so far I've completely failed at reproducing the error. Can you please provide a screenshot of the location from the error message? I'd like to know what kind of blocks cause it to fail.

ZacSharp avatar Apr 20 '25 14:04 ZacSharp

I made two videos, the first video shows the exception in 1.21.3, with client mod and server plugin list; the second video shows the exception in 1.21.5 (Used this port).

https://github.com/user-attachments/assets/f680860e-436a-41dd-b4e7-941ea4a482cf

https://github.com/user-attachments/assets/d419d46c-95dc-48d8-9da2-b6c0469b6121

wujinjun-MC avatar Apr 21 '25 15:04 wujinjun-MC

Sorry I didn't state so explicitly. I do not mean the location where you are when the error occurs, but the location of the faulty movement. That's the position added to the error message by the patch I showed you (CI run here https://github.com/ZacSharp/baritone/actions/runs/14525747965, I just checked and it does say it's for 1.21.5, so you should be able to use that)

ZacSharp avatar Apr 21 '25 23:04 ZacSharp

https://github.com/user-attachments/assets/49404c02-a0f6-409b-accc-724ac175e4da

wujinjun-MC avatar Apr 22 '25 05:04 wujinjun-MC

Ok, I have asked for the same thing three times using different phrasing and you delivered three times the same slightly different thing. Maybe it is a translation issue?

In a last attempt before I give up:

  1. Using the patch, trigger the error message
  2. The error message contains a location, go to that location
  3. Take a screenshot
  4. Post the screenshot here

ZacSharp avatar Apr 22 '25 23:04 ZacSharp

I have asked for the same thing three times using different phrasing and you delivered three times the same slightly different thing.

Sorry for that.

I tested twice.

Case 1:

  1. Connected to my server and entered overwolrd

  2. Randomly teleported to -117.50 102.00 -6.50

Image

  1. #goto 10000 0 and it threw Pathing exception with coordinate -92 65 3

Image

  1. /tp -92 65 3 I was teleported into water (maybe that causes the exception?)

Image

  1. I changed the game mode to spectator and flew up.

Image

Case 2:

  1. Connected to my server and entered real_world_1

  2. Randomly teleported to -74.50 73.00 55.50

  3. #goto 100000 100000 and the new coordinate was -48 62 70

  4. /tp -48 62 70 and I was in water again.

Image

  1. Enable freecam of wurst client and see the surroundings.

Image

wujinjun-MC avatar Apr 23 '25 00:04 wujinjun-MC