Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

not compatible with "BetterChat"

ClaraCrazy opened this issue ยท 11 comments

commented

Some information

Operating system: Win10
Java version: 8
Minecraft version: 1.12.2
Baritone version: ? Impact (guessing that's the newest then)
Other mods (if used): BetterChat, Lambda

Exception, error or logs

Looked through it. apparently betterchat routs all chat to [com.llamalad7.betterchat.gui.GuiBetterChat] but baritone is ignored and still goes to the normal [net.minecraft.client.gui.GuiNewChat] for whatever reason which is not displayed.
2022-05-19-7.log

How to reproduce

  1. Instal forge & betterchat
  2. load impact
  3. run .b help and see nothing happen

Modified settings

--Not applicable --

Final checklist

  • I know how to manipulate checkboxes properly
  • I have included the version of Minecraft I'm running, baritone's version, and forge mods (if used).
  • I have included logs, exceptions, and/or steps to reproduce the issue.
  • I have not used any OwO's or UwU's till this point of the issue and might use some after just because its mentioned here

UwO - in all seriousness tho.. who would use that in a regular issue? By adding that checkbox you really ask for it.

commented

Betterchat redirects chat by replacing mc.ingameGui.persistentChatGUI with its own chat gui and Baritone doesn't follow the redirect because it grabs and caches a lambda instance for mc.ingameGui.getChatGUI().printChatMessage when Baritones settings class is loaded.
mc.ingameGui.getChatGUI() is a getter for mc.ingameGui.persistentChatGUI which is private final, so the return value is not expected to change.

commented

so... is there any way to fix / change this? @ZacSharp

commented

It's actually pretty easy.

commented

that does indeed look fairly easy. shame I probably wont be able to do this myself bc even if I download the source, apply that small change and build it, impact will still use its version (or at least I'm guessing) so I'll have to wait till this is first updated here and then in impact to pull the newest release,

commented

Impact doesn't seem to be updating anymore, so it likely wont be added.

commented

rip. any way I can do that myself? got zero clue about mc modding stuff

commented

It's a setting value so you just need to run a line like

BaritoneAPI.getSettings().logger.value = msg -> Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(msg);

when the game starts from any other mod (the pr just changes the default).

commented

Pardon my stupidity. Where am I supposed to run this? @ZacSharp Certainly not in chat as that just gives an "invalid command" from baritone

commented

Because its not a command...

commented

Pardon my stupidity. Where am I supposed to run this? @ZacSharp Certainly not in chat as that just gives an "invalid command" from baritone

Unfortunately this setting is just able to be changed from a different mod, so you need to wait for the pr to be merged.

commented

so you need to wait for the pr to be merged.

well, it's also grabbable from https://github.com/cabaletta/baritone/actions/runs/2355205046