Open kittenvr opened 2 months ago
If you mean this commit: https://github.com/azalea-rs/azalea-viaversion/commit/c74b5e02b9d29875c79c746bdfb70d1116bda49a
This is already the one, I use as basis on here: https://github.com/EnderKill98/azalea-viaversion/commits/feature/no-default-features-and-update-via-proxy/
Via is still broken, when I update azalea to the current version:
So same issue as in https://github.com/azalea-rs/azalea-viaversion/issues/7. I once tried to fix this, but failed after trying a few hours.
I also tried to update the bot to 1.21: https://github.com/EnderKill98/stasis-bot/commit/698dbebd6ba98d8a6cbf17fc09beaaec6857acb1
It "works". But there is a funny new bug:
Expected messages:
So it seems that some messages get duplicated. I'm honestly getting tired of fixing all these issues. At least commands can now be sent without getting kicked...
The order is also wrong. Maybe my issue of how I log though.
My guess would be, that these changes are somehow responsible: https://github.com/azalea-rs/azalea/commit/ea64fba7f655b9afa03d57e8590c16e024f396f3#diff-6787cba3ef53a6e5c2cd7fd98e0f9b8bf92d9cfd336929bb83aded5a230d716e
But I have no clue what happened there. It seems to have copied itself into a few children. Maybe borrowing broken?
Only seems to affect some of my messages though. So some rare exception.
Can also be tested by joining an example that logs chat onto testpaper.cosmos-ink.net
(server is in offline mode).
Any Ideas @mat-1 ?
For now I'll not update it. ViaVersion is still broken, which keeps my releases in beta-hell, due to a feature not working and the new version seems to have regressions again. I would need to create yet another fork of azela to fix these issues there.
Workaround for now is to just use ViaProxy in front of the bot (the flag --openauthmod
exists, so no need for account setup that is only supported in the GUI).
Use ZenithProxy instead of ViaProxy, it has a bunch of additional modules you might want (auto eat, visual range, auto disconnect, etc), integrated ViaProxy for multi-version support, it can auth for you instead of OpenAuthMod, and you can whitelist an offline username for the bot to join with.
Instead of ViaProxy, use ZenithProxy. It has all the additional modules you might need, integrated ViaProxy, it can auth for you instead of OAM, and you can whitelist an offline username for the bot to join with.
is this hard or how long would it take?
You would set it up yourself, just download the jar or linux binary, run it, optionally setup a discord bot
Changing v.extend(sibling);
to v.push(sibling);
or v.extend(siblings);
in component.rs impl IntoIterator fixes the duplicate issue, but some messages with a lot of nested siblings fail to format properly and just disappear past the first few nests, but it's better than the current azalea bug.
I think I'll just end up yeeting the via-version support for the time being.
I'm already running some of these bots with a separate ViaProxy as a Systemd-Service which works well. Mainly for that I added the native OpenAuthMod support (just stolen from the azalea ViaVersion code). Because that way many bots can use the same ViaProxy to the same server with their own accounts. You can only manage Accounts on the ViaProxy side when running the gui for some reason.
ZenithProxy would also be a suitable replacement ig, but the point of me adding the integrated azalea-viaproxy stuff was mainly the convenience factor. So it probably makes sense to just yeet the feature for now. People just need to stick their own proxy of choice behind it if needed ig.
can you try to add azelea viaversion again the commit said it is fixed