[Resolved] DHS plugin protocol mismatch bug - “the Forge byte”

Hey guys! So i'm using [DHS] 0.6.1 on my paper server which i believe does not support the latest nightly build for 1.21.1 client in #links-n-downloads. I've also tried DH 2.3.0 RC1 in #announcements , but F3 also showed Server does not support DH message. So i want to try a build that's actually supported by the server plugin, in the DHS 0.6.0 release notes:
Adds support for DH 2.3.0 nightlies built after 2024-10-18.
Does anyone still retain a nightly build from that time? gitlab artifacts only kept the recent builds. Thanks in advance! Ping me if u need anything, configs, modlist, i'd be happy to provide! UPDATE latest discussion reveals this as an underlying bug named “the Forge byte” with DH 2.3.0 RC1 and DHS 0.6.1 on MC version 1.21.1 for both client and server UPDATE2 latest testing confirms it works for this setup: Server(v1.21.1) PAPER with DHSv0.6.1-for-1.21.1 Server docker-compose.yml:
services:
mc:
image: itzg/minecraft-server
container_name: mc
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: PAPER
VERSION: "1.21.1"
ONLINE_MODE: "TRUE"
MEMORY: 4G
MAX_MEMORY: 8G
ports:
- "25566:25566" # remapped port to 25566
- "25049:25049"
volumes:
- ./data:/data
restart: unless-stopped
services:
mc:
image: itzg/minecraft-server
container_name: mc
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: PAPER
VERSION: "1.21.1"
ONLINE_MODE: "TRUE"
MEMORY: 4G
MAX_MEMORY: 8G
ports:
- "25566:25566" # remapped port to 25566
- "25049:25049"
volumes:
- ./data:/data
restart: unless-stopped
Client(v1.21.1) fabric loader with DH2.3.0-RC1-for-1.21.1 (Along with Simply Optimized modpackv4.3-for-1.21.1)
Solution:
Hehe, that's indeed great :) I suspect you accidentally used DHS for an older version of Minecraft when you tested before. I should output this info in the log
Jump to solution
39 Replies
Puhpine
Puhpine2mo ago
If the RC doesn't work, you have a different problem Are you sure the plugin gets loaded?
ecaphet
ecaphetOP2mo ago
[15:51:57 INFO]: [DHS] Enabling DHSupport v0.6.1
[15:51:57 INFO]: [DHS] Using Paper scheduler.
[15:51:57 INFO]: [DHS] Ready!
[15:51:57 INFO]: [DHS] Enabling DHSupport v0.6.1
[15:51:57 INFO]: [DHS] Using Paper scheduler.
[15:51:57 INFO]: [DHS] Ready!
console logs for server and i get this:
[18:17:13 WARN]: [DHS] Unsupported protocol version: 1536
[18:17:13 WARN]: [DHS] Unsupported protocol version: 1536
when logging in with RC1 and the client does say Server does not support DH
Puhpine
Puhpine2mo ago
Can you confirm there isn't a second DH in your mods folder?
ecaphet
ecaphetOP2mo ago
I'm using prism launcher as mod manager but i'll check manually Confirmed. All the other DH jar files have been appended with .disabled by prism. essentially non existent. I can try deleting them just to be safe.
Miki_P98
Miki_P982mo ago
I guess try re-downloading latest DHS plugin as well
ecaphet
ecaphetOP2mo ago
will do. I'll try reinstalling all DH related mods/plugins
ecaphet
ecaphetOP2mo ago
Tried re downloading and reinstalling DHS and DH RC1, restarted server and client. no luck. server logs is attached. Paper 1.20.2 server modlist:
ecaphet@debian-omen:~/hdd/apps/minecraft-docker/data/plugins$ ls *.jar
ActionHealth-3.5.9-all.jar DHS-0.6.1_for_MC-1.20.2.jar TreeAssist.jar
ChestSort-13.6.5.jar floodgate-spigot.jar ViaVersion-5.2.0.jar
Chunky-1.3.92.jar InteractionVisualizer-1.18.7.1.jar waypoints-4.5.1.jar
CommandAPI-9.5.1.jar ProtocolLib.jar
ecaphet@debian-omen:~/hdd/apps/minecraft-docker/data/plugins$ ls *.jar
ActionHealth-3.5.9-all.jar DHS-0.6.1_for_MC-1.20.2.jar TreeAssist.jar
ChestSort-13.6.5.jar floodgate-spigot.jar ViaVersion-5.2.0.jar
Chunky-1.3.92.jar InteractionVisualizer-1.18.7.1.jar waypoints-4.5.1.jar
CommandAPI-9.5.1.jar ProtocolLib.jar
will attach client momentarily
Puhpine
Puhpine2mo ago
Have you tried with just DH? Maybe one of the other mods like viaversion is messing with it
ecaphet
ecaphetOP2mo ago
let me try that. tho i don't think i can disable viaversion cuz my client is 1.21.1 and server is 1.20.2.
Puhpine
Puhpine2mo ago
Just download viafabricplus on the client and you don't even need viaversion But I suggest you make a new server on 1.21.1 to test if it works with a client that only has DH
ecaphet
ecaphetOP2mo ago
Using server version 1.21.1 with only DHS and still getting not supported message On my client side i'm using modpack "Simply Optimized" 1.21.1-4.3 with three additional mods : Iris 1.8.1, DH 2.3.0 RC1, Controlify 2.0.0 beta.21 Update: Tried with vanilla 1.21.1 with only DH 2.3.0 RC1 installed, still same issue. The only idea i have left is that server is using bungeecord as proxy. Is there proper support for it for DHS? Bungeecord has GeyserMC and floodgate installed.
пшш
пшш2mo ago
viaversion is not supported
ecaphet
ecaphetOP2mo ago
Good to know! I'll mark it for deprecation. Tho i've tried a vanilla server with only DHS and a vanilla fabric client with only DH and getting message DH not supported. I'm trying to untangle the topology for my bungeecord proxy and see if a naked server will have any problems or not tried with bare bones server with no proxy. still failed. i’ve ran out of ideas posting the client log
ecaphet
ecaphetOP2mo ago
пшш
пшш2mo ago
server log?
ecaphet
ecaphetOP2mo ago
server log here.
ecaphet
ecaphetOP2mo ago
server docker file:
services:
mc:
image: itzg/minecraft-server
container_name: mc
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: PAPER
VERSION: "1.21.1"
ONLINE_MODE: "TRUE"
MEMORY: 4G
MAX_MEMORY: 8G
ports:
- "25566:25566"
- "25049:25049"
volumes:
- ./data:/data
restart: unless-stopped
services:
mc:
image: itzg/minecraft-server
container_name: mc
tty: true
stdin_open: true
environment:
EULA: "TRUE"
TYPE: PAPER
VERSION: "1.21.1"
ONLINE_MODE: "TRUE"
MEMORY: 4G
MAX_MEMORY: 8G
ports:
- "25566:25566"
- "25049:25049"
volumes:
- ./data:/data
restart: unless-stopped
server plugin: DHS 0.6.1 client mod: fabric loader, DH 2.3.0 RC1
пшш
пшш2mo ago
@Jckf any ideas?
ecaphet
ecaphetOP2mo ago
Client OS: SteamOS 3.6.20 Playing on steam deck rn if it helps at all Server OS: Debian 6.1.0-23-amd64 Using 25566 port to communicate to server. im temporarily off to do stuff. Ping me for anything! Thanks!
Jckf
Jckf2mo ago
What's the question here? The plugin is currently 2 protocol versions behind and so is known to not work with DH nightlies Last couple of months or so have been too busy, and now we're in the holiday season which isn't exactly calm either :/ But I will be updating it when I have a day or two do so
Puhpine
Puhpine5w ago
The problem is that it's not working with RC1
Jckf
Jckf5w ago
Ah, the protocol version it shows in the log is completely invalid. This is probably an issue with "the Forge byte"
ecaphet
ecaphetOP5w ago
Hey @Jckf Thanks for your work on the plugin! Do you mind explaining “the Forge byte”? I was having trouble googling this issue. Don’t feel obligated tho, i’d be perfectly fine to wait for the next release. happy holidays! updated title to reflect on the latest progress in this thread 🙂 will test current packages against older versions of server and client MC. right now 1.21.1 is confirmed to suffer from this bug.
Jckf
Jckf5w ago
The Forge byte is an extra byte at the beginning of every message between DH and the server that is present for certain setups. It looks to me like your setup is using it when it's not expected, or not using it when it is expected DHS only uses it when you download a version ment for 1.20.4 or older @пшш will have to answer when DH uses it. Maybe we can figure out why there's an apparent mismatch Eh No actually I can see in your plugins list that you have DHS for 1.20.2 This is the wrong version for your server
пшш
пшш5w ago
entire server is 1.20.2 and client is 1.21.1 seems i missed it, super confusing as i said earlier, viaversion is not supported, and MC versions must match for DH to work correctly
ecaphet
ecaphetOP5w ago
@пшш @Jckf Hey guys sry i wasn't being clear enough. So far I've done testing against: - server 1.21.1; client 1.21.1. - server 1.20.2; client 1.21.1. There are in total two server logs and one client log in this thread. The older server log belongs to 1.20.2 server, newer one -> 1.21.1 Server is deployed via docker. can look at docker compose block mentioned above for configuration. (only for first testing server 1.21.1 config was attached above) In both testings, no mods/plugins other than DH(client) and DHS(server) is used, except for the second one viaversion was used.(I did not know it was unsupported at the time). The plugin list Jckf you saw was for initial second testing. and i've removed the extra mods and did the testing too. I'm yet to do testing for older client version. Appreciate you guys for responding at xmas eve. you guys are awesome🌟 lmk if you have any questions!
пшш
пшш5w ago
try redownloading plugins
ecaphet
ecaphetOP5w ago
it’s actually the first thing i did
Jckf
Jckf5w ago
@ecaphet So you've tried Paper 1.21.1 + DHS 0.6.1 for 1.21.1 with a 1.21.1 client? Please show the logs for this exact combination
Jckf
Jckf5w ago
Merry Christmas :) Sadly I cannot tell from the server log which Minecraft version DHS was compiled for, but it looks to me like it is for one that has this problematic "Forge byte" enabled. Are you able to re-test?
ecaphet
ecaphetOP5w ago
happy to. i'll locate the jar file and retest with latest release!
Jckf
Jckf5w ago
Appreciate it
ecaphet
ecaphetOP5w ago
great news! i've retested the jars and now my client reports full DH support! i've been in game for a while and can see the data.sqlite being populated in DHSupport folder, and lods popping up in the client! It's a christmas miracle
Solution
Jckf
Jckf5w ago
Hehe, that's indeed great :) I suspect you accidentally used DHS for an older version of Minecraft when you tested before. I should output this info in the log
ecaphet
ecaphetOP5w ago
I believe so too! Could be the symlink messing stuff up@_@ I appreciate all your help and wish you happy holidays! I'll mark this thread as resolved and update the descriptions!
Jckf
Jckf5w ago
👌 Let me know if you need anything else
Jckf
Jckf5w ago
Adding a new log message on startup as a response to this thread
No description
Jckf
Jckf5w ago
I am DHS x for MC y

Did you find this page helpful?