Custom config file server side download

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

Huene

New Member
Jul 29, 2019
46
0
0
I was just wondering if you could allow the launcher to download configuration files from a customizable server, so for example if I wanted to use gregtech different than the FTB default, I can put it in a web accessible location, provide my playerbase with the configuration url and my players could add that url to the launcher to get those config files from my server and put them in the correct location automatically.
 

Yos

New Member
Jul 29, 2019
10
0
0
I was thinking of something like this would be nice too. I originally thought that the server could just push its config on connect, but then I realized that most likely all the mods are already configured by the time you're done with the Mojang logo. So the other option would be a launcher/client mod/server mod combo.

The server mod would have its mod config files pre-packaged as a zip (probably created on server start) with a checksum, and when a new client connects, the client mod will check if it has the server's file, and if it doesn't, download it. The client mod would place this zip in a location and then set up some sort of path reference for that config. Then you'd be asked to restart minecraft. By default the client mod would have a config that stated which of those config downloads was active based off the last connected server, but would easily be able to be changed by a launcher. Really, they wouldn't have to be separate mods, just different portions of the same. And since the server paradigm is also there for single player play, it would by default create these config setups based off the local config files for Single Player/Lan games.

The important thing would be if the launcher could integrate selecting between these configpacks before start, to prevent having to do too many game restarts to fix configs.

I'm even somewhat interested in seeing what it'd take to actually do the mod work myself, if someone had some good starting points.
 

Dex Luther

New Member
Jul 29, 2019
294
2
1
This should already be in Minecraft by default. It should work like the texture download from the server. I don't know why it's not already in Vanilla, but it should be!
 

Yos

New Member
Jul 29, 2019
10
0
0
It might be part of vanilla, but it doesn't have anything to do with mod configs. This is to fix things like NEI being broken because the client config for a mod is different than the server config. I am thinking about this because I've been prepping to run a small server for my friends but I want to make a few tweaks (disabling the crafting of Descriptive books, to basically require an /op intervention to make new ages... server runs fine but I want to keep it that way). Sure, I could help each one manually get their configs right (which would then effect their ssp unless they make additional copies of their minecraft folders), but something that actually feels more built-in to FML would be better.

Though, I'm sure this will be fixed when the MCAPI gets finished, but that isn't looking to be in the near future.
 
Status
Not open for further replies.