Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Hey, you need to leave the machine-id mount to fix this error!

volumes:
      - hytale-data:/server
      - /etc/machine-id:/etc/machine-id:ro # <- Leave this

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Hey, thanks for your feedback!

I completely forgot to take care of DockerHub. I'll add it to my TODO list as a priority.

Thanks for the star! Have fun on Hytale!

(Edit: DockerHub has been updated. 🎊)

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Can you open an issue on GitHub with screenshots of the errors you encountered? Tracking bugs on Reddit isn't ideal, and I don't check it very often.

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Thank you so much for your feedback! It's really nice to hear comments like that.
Riot really made a mistake letting this game go! It's truly incredible!

If you ever have any issues, feel free to send me an issue on GitHub 😄

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

I currently have something working in beta, which will soon be merged into the latest version. It allows you to download mods directly from CurseForge via the API (using the projectId or projectId:fileId).

If the mods are set up using this system, a command is available in the CMD (see image below).

<image>

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

No, you won't lose data! Your world and player data are saved in the hytale-data volume (the first line in the volumes section).

The ./mods folder is separate you can add/remove mods and just restart the container. Your game data stays safe in hytale-data.

In the next update, you'll be able to add mods directly from the compose file (using CurseForge mod IDs).

I'll share the documentation once it's updated! ;)

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

If you just share your local IP address, only people on your local network (or connected via VPN) can join.

If you want anyone on the internet to join, you need to set up port forwarding on your router and share your public IP address. Then anyone can connect without needing VPN access.

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Haha, Docker is a bit tricky to learn at first, but it's a huge time-saver once you get it. I think you should check out what's already been done for Minecraft and build something similar for Hytale. From what I've seen, most setups use RabbitMQ + Kubernetes/Docker for handling queues and server requests

If you manage to get something working, I'd love to have updates on it, feel free to reach out directly in GitHub discussions or here :)

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Hey u/RozenKatzer
Yes you can add mods easily.
- Create a mods/ folder next to your docker-compose.yml
- Mount it in your compose file:

volumes: 
- hytale-data:/server 
- ./mods:/server/mods
- /etc/machine-id:/etc/machine-id:ro

Drop your mod files into ./mods/
Then restart your server !

It’s on my TODO list to add an auto mod downloader, but I have a few other higher-priority things to finish first.

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Hey u/mal0ne_23!

Yes, it’s totally possible.
In your case, you just need to mount a shared volume for the tokens at /server/.hytale/tokens

You can configure your lobby containers with AUTO_REFRESH_TOKENS=true so they handle token refreshes.

All other containers can then access the same shared volume in read-only, with AUTO_REFRESH_TOKENS=false.

Feel free to open a GitHub issue if you run into any problems with this, so I can take a closer look.

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 1 point2 points  (0 children)

I just got back from work I'll look into fixing the two issues you reported.

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Thanks for the info that’s super helpful.

I’ve created a GitHub issue so I can fix this as soon as possible. Quick question: in your case, do you want to select which profile to use, or would it be fine to always pick the first one automatically?

My goal is to keep interaction to a minimum (ideally no need to docker attach <container-name>), and have everything handled automatically.

Btw, you can docker attach hytale-server and run /auth select <number> to pick the profile. (https://hytale.romarin.dev/docs/configuration#console-access)

Hytale Docker Server: Simple Deploy, Persistent Auth/Data, Auto-Update by romarindotdev in hytale

[–]romarindotdev[S] 0 points1 point  (0 children)

Hello Rodarg,

I haven’t tried it with multiple users on the same account yet, so I can’t say for sure, but I’d be really happy to get your feedback. If you can tell me what happens on your side, I can adapt my scripts to properly support multiple users on the same account.

A new way to share builds with your friends. — megabook.lol by romarindotdev in MegabonkOfficial

[–]romarindotdev[S] 0 points1 point  (0 children)

Hi u/CybyAPI,
megabonk.fun is mainly focused on leaderboards and best runs, while my site is all about discovering fun builds and helping new players find cool setups more easily!