Minecraft server
morgandri1
HOBBYOP

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

morgandri1
HOBBYOP

2 years ago

N/A


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


morgandri1
HOBBYOP

2 years ago

Thats the minecraft version right?


2 years ago

yes


2 years ago

oh yea, my fault


morgandri1
HOBBYOP

2 years ago

yeah


2 years ago

misread


morgandri1
HOBBYOP

2 years ago

nw!


morgandri1
HOBBYOP

2 years ago

so yeah i have it running on version 1.19.2 w/ FORGE as the type.


morgandri1
HOBBYOP

2 years ago

but the mods don't seem to download and i think java version is wrong


2 years ago

how are you adding mods


2 years ago

cuz its kinda wacky


morgandri1
HOBBYOP

2 years ago

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


morgandri1
HOBBYOP

2 years ago

its just a bunch of mods lol


morgandri1
HOBBYOP

2 years ago

just a bunch of compressed files


morgandri1
HOBBYOP

2 years ago


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


morgandri1
HOBBYOP

2 years ago

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


morgandri1
HOBBYOP

2 years ago

yeh


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


morgandri1
HOBBYOP

2 years ago

cuz its on version 17 rn lol


morgandri1
HOBBYOP

2 years ago

and i'm trying to run a 1.19.2 forge server


2 years ago

java version =/= minecraft version


morgandri1
HOBBYOP

2 years ago

yeah i know


2 years ago

17 should be fine if it’s not screaming at you


morgandri1
HOBBYOP

2 years ago

but doesnt 1.19.2 require ^18?


2 years ago

from experience, when mods silently fail without error messages, there’s an installation issue


morgandri1
HOBBYOP

2 years ago

Ok cool. How do i get the template on if i'm using the file browser?


morgandri1
HOBBYOP

2 years ago

yeah


2 years ago

1216068685027086600


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


morgandri1
HOBBYOP

2 years ago

whats the structure the mods folder needs?


2 years ago

hold on


morgandri1
HOBBYOP

2 years ago

ohhhh interesting


2 years ago

did you upload a log file?


morgandri1
HOBBYOP

2 years ago

nah probs should


2 years ago

would help quite a bit to debug


morgandri1
HOBBYOP

2 years ago

one sec


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


morgandri1
HOBBYOP

2 years ago

it wasnt failing silently it was just confused about the mods but this makes more sense now


morgandri1
HOBBYOP

2 years ago

i deleted the container so lemme spin it back up and get the log


2 years ago

well this is the current structure

1216069329184096300


2 years ago

it seems fine to me


2 years ago

probably shouldn’t be zipped though?


morgandri1
HOBBYOP

2 years ago

what should it be then?


2 years ago

unzipped


2 years ago

no its fine


morgandri1
HOBBYOP

2 years ago

how does one upload a folder unzipped


morgandri1
HOBBYOP

2 years ago

ok


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 :/


morgandri1
HOBBYOP

2 years ago

how do i download my logs?


2 years ago

not acceptable


morgandri1
HOBBYOP

2 years ago

sorryyyyy


morgandri1
HOBBYOP

2 years ago

how do i download my logfile? cant seem to find the button


2 years ago

not sure if theres a download option


morgandri1
HOBBYOP

2 years ago

ah ok


2 years ago


2 years ago

lmfao brody has every tool under the sun


morgandri1
HOBBYOP

2 years ago

lol doesnt work on my browser


morgandri1
HOBBYOP

2 years ago

but its ok ill just c/p


morgandri1
HOBBYOP

2 years ago


morgandri1
HOBBYOP

2 years ago

shit that only got a bit of it


2 years ago

what browser?


morgandri1
HOBBYOP

2 years ago

arc


morgandri1
HOBBYOP

2 years ago


2 years ago

one sec


morgandri1
HOBBYOP

2 years ago

fuck still only partial


morgandri1
HOBBYOP

2 years ago

i assume the log explorer is authenticated


morgandri1
HOBBYOP

2 years ago

neb, mind if i DM you a read-only invite link to the project?


2 years ago

thats fine!


morgandri1
HOBBYOP

2 years ago

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 true

2 years ago

use the MODPACK var not MODS


morgandri1
HOBBYOP

2 years ago

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


morgandri1
HOBBYOP

2 years ago

ah


morgandri1
HOBBYOP

2 years ago

Thanks!


morgandri1
HOBBYOP

2 years ago

how do i close the post?


morgandri1
HOBBYOP

2 years ago

@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


morgandri1
HOBBYOP

2 years ago

"something really went wrong" LOL


morgandri1
HOBBYOP

2 years ago

@Fragly


2 years ago

is that an error message or something?


morgandri1
HOBBYOP

2 years ago

1216082723245002800


2 years ago

that can't be good 💀


morgandri1
HOBBYOP

2 years ago

oh no config file used error


morgandri1
HOBBYOP

2 years ago

@Brody


2 years ago

( please do keep this rule in mind <#727685388893945877> #5 )


morgandri1
HOBBYOP

2 years ago

oopsie


morgandri1
HOBBYOP

2 years ago

sorry guys


morgandri1
HOBBYOP

2 years ago

will stop


2 years ago

no worries


Loading...