2 years ago
Hey guys!
So i'm using the minecraft server template and it works pretty well!
I was looking into the further configuration, and couldnt find a way to change java version on Railway. Has anyone been able to successfully change java version and get mods installed on the correct forge/minecraft versions?
107 Replies
2 years ago
you can set it via the VERSION environment variable
all variables can be found here:
2 years ago
I haven’t looked into changing the Java version, but changing the MC version is very easy.
2 years ago
fragly was faster
2 years ago
yes
2 years ago
oh yea, my fault
2 years ago
misread
2 years ago
how are you adding mods
2 years ago
cuz its kinda wacky
I have the mods source set as a discord CDN link to a zip file which was in this help form
2 years ago
whats the zip file look like inside
2 years ago
it has to be a specific structure
2 years ago
Whenever I mess with my Minecraft server I use the Filebrowser template to access the volume
2 years ago
I believe this is the one I use? I’ll double check when I get on my pc
not bad but i still need to know how to change the java version <:rooKek:1145479012127355091>
2 years ago
VERSION envvar
2 years ago
that’s the mc version
2 years ago
why do you want to change the java version
2 years ago
i think its possible
2 years ago
I doubt the java version is the issue here, try installing mods correctly using filebrowser and see if that fixes it
2 years ago
java version =/= minecraft version
2 years ago
17 should be fine if it’s not screaming at you
2 years ago
from experience, when mods silently fail without error messages, there’s an installation issue
2 years ago

2 years ago
deploy the template in the project, detach the volume from your mc server service and move it over
2 years ago
you should be fine using 17
2 years ago
move it back and redeploy when you’re done editing
2 years ago
hold on
2 years ago
did you upload a log file?
2 years ago
would help quite a bit to debug
2 years ago
since you didn’t send one I assumed it was failing silently
2 years ago
but that’s probably not a safe assumption
it wasnt failing silently it was just confused about the mods but this makes more sense now
2 years ago
well this is the current structure

2 years ago
it seems fine to me
2 years ago
probably shouldn’t be zipped though?
2 years ago
unzipped
2 years ago
no its fine
2 years ago
the image hes using uses zips for mods
2 years ago
gotcha didn’t know that
2 years ago
also @Morgan you're gonna have to change that pronouns field :/
2 years ago
not acceptable
2 years ago
not sure if theres a download option
2 years ago
2 years ago
lmfao brody has every tool under the sun
2 years ago
what browser?
2 years ago
one sec
2 years ago
thats fine!
so heres an error i found
com.electronwill.nightconfig.core.io.ParsingException: Invalid TOML data: entry "[disableOptimizedDFU]" defined twice in its table.
at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.checkDuplicateKey(TableParser.java:88)
at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:59)
at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)
at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)
at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)
at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)
at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)
at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)
at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181)
[17:06:23] [main/WARN]: Incorrect key [disableOptimizedDFU] was corrected from null to true2 years ago
use the MODPACK var not MODS
That did it! Any chance you know the internal difference in the package?
2 years ago
wdym?
2 years ago
MODS is for a list of mods, MODPACK is for a zip file
@Brody Hey having some issues with filebrowser,
i created it from the template,
unmounted the file browser volume,
unmounted the minecraft volume from the server,
mounted the minecraft volume to the web server,
nothing shows up in file browser
2 years ago
set the USE_VOLUME_ROOT service variable in your Filebrowser service to 1
2 years ago
is that an error message or something?
2 years ago
that can't be good 💀
2 years ago
( please do keep this rule in mind <#727685388893945877> #5 )
2 years ago
no worries
