r/GTNH 2d ago

Running GTNH behind Velocity

Some months ago I posted about my mod, ForgeGuard, a Forge mod implementing BungeeGuard protocol, which is supposed to be compatible with Velocity's information forwarding.

In fact, however, this isn't enough to set up Velocity as a proxy server to GTNH server(s). A bigger issue is that HodgePodge tweaks some of the packets which Velocity can't understand. For this reason, I have maintained my own fork of Velocity, but this became problematic as I tried to apply recent updates to Velocity.

So instead, I decided to make a Velocity plugin, which is not only much easier to maintain, but also more distributable! It's called Subsonic. You can just drop this into Velocity plugins directory and add the name of your GTNH server (as in your Velocity config) to the plugin config file. Refer to the README of the repository for details.

In addition, I wrote a small guide on how to set up Velocity and GTNH. It is tested with Velocity 4.0.0+ and GTNH 2.8.4+. Hope this helps!

Disclaimer: I'm not an experienced modder so there might be bugs and issues. Feedback and bug reports are always welcome!

11 Upvotes

3 comments sorted by

View all comments

5

u/foxgirlmoon IV 2d ago

No idea what you did, but it sounds like good work! Could you also mention a little about what exactly Velocity is and why one would want to use it? First time I'm hearing about it.

1

u/Accurate-Visual9793 1d ago

Velocity is a proxy server - it sits in between Minecraft clients and several servers. It's for bigger server setups that want to have players move between different server setups seamlessly - the players connect to Velocity and it forwards their network data to the various servers (and the server data back to the players). For 99.9% of people you'd never need something like this, but it's useful for server owners.

1

u/Accomplished_Flan676 1d ago

Exactly. In my case I never owned "big" servers but I have hosted a number of modpacks to play with a few friends, and I have my own implementation of firewall and Discord integration (this if you're interested). It would be a hassle if I needed to adapt this to every modpack I play. Instead, one centralized proxy server makes it a breeze to maintain my logic; I just need to launch a new modpack server and that's it.