-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handling multipacket responses #9
Comments
Hmm, this app currently depends on (is at the mercy of) https://github.com/james4k/rcon, which apparently hasn't been updated since 2012 😟 I should probably either fork that library or just consume the packet processing into this repo... |
...yeah, I'm just going to re-implement the rcon packet handling since it's a pretty easy protocol. With that I'll go with the 2nd bullet, 3rd trick, as you suggested. |
Thanks! look forward to it 👍 |
But yeah, apart from the weirdness when you have multiple packets, latest forge works great with this. It'd be super seriously nice if colour formatting became terminal colour formatting, but that's a big stretch probably :D |
Agreed. It's doable, as researched in #4, just need to get around to it. |
What's an example of a command that'll typically get a fragmented response? |
yeah. help works, if you have a couple of mods with commands installed. or install a big fat modpack and run forge mods |
I have my changes finished locally but still haven't found a modpack that ends up producing fragmented responses. What was a specific mod or pack you know induces fragmentation? |
the towncraft pack (https://www.curseforge.com/minecraft/modpacks/towncraft) using forge 34.1.23 should do it if you do "forge mods" |
Since you mentioned that specific version, I ran Forge
...and more Is there a 1.12.2 build of Forge backpatched with MinecraftForge/MinecraftForge@5f29289 ? |
No, we don't support 1.12.2 anymore... It looks like the pack you were referring is a 1.14 pack, not a 1.16 pack. The link above has a 1.16 version - I was using it to test this very forge fix ;) |
I had used your link :), but I now see they only provide a 1.12 server pack. That's what I must have downloaded out of habit. I'll piece together a scenario using their 1.16 file. Thanks. |
With 1.16, many "client" packs will "just work" as server packs, the many structural changes I pushed towards mods means that it's harder (not impossible, sadly) to make a mod that won't at least "load and do nothing" on the server side. |
Hi, So I think I've fixed RCON in forge for proper multipacket responses that don't overflow..
Sadly, your cli doesn't properly handle them. https://wiki.vg/RCON#Fragmentation discusses how you might go about it...
I'd suggest the third trick, with an invalid packet that you discard afterwards.
MinecraftForge/MinecraftForge@5f29289
The text was updated successfully, but these errors were encountered: