tModLoader

tModLoader

Discord World Logs
.kenni 🕊 28 Jun, 2024 @ 6:48am
How can I change the language?
Hello, I am currently setting up a small community server. The server is set up on its own Debian system with tModLoader, etc. In the serverconfig.txt, "language=de-DE" is also entered. tModLoader also fetches the config, as the world starts without any further manual configuration.
However, the messages via the webhook are still in English. I actually don't know how to "verify" that the server is in German.
How do I set it so that the webhook sends messages in German (like in-game)?
< >
Showing 1-7 of 7 comments
FlickyFlack  [developer] 2 Jul, 2024 @ 2:03am 
Hey there, sorry for the late response.

The mod uses terrarias own localization keys (with a few exceptions like "The sun is rising").
Assuming you are using the official tModLoader Release from Github, the unedited lines in the serverconfig.txt should look something like this:
#Sets the server language from its language code. #English = en-US, German = de-DE, Italian = it-IT, French = fr-FR, Spanish = es-ES, Russian = ru-RU, Chinese = zh-Hans, Portuguese = pt-BR, Polish = pl-PL, #language=en-US
Please make sure that you are removing the "#" Symbol infront of the language line, if you havent already.
Like so:
language=de-DE
That should, by my knowledge, change the servers language and subsequently the produced log language.
Last edited by FlickyFlack; 2 Jul, 2024 @ 2:04am
.kenni 🕊 2 Jul, 2024 @ 1:43pm 
I use the tmodloader version directly from steam. (via manage-tModLoaderServer.sh install-tml)

The serverconfig.txt was also created during the installation and I also edited it. For example, it automatically selects the world at startup. If the ingame world events are not translated by the client, the server also sends them in-game in German. However, via the webhook the lines are still (unfortunately) in English.

Here a small excerpt from my serverconfig.txt

#Sets the folder where world files will be stored worldpath=<pre-location>/tModLoader/Worlds/ #The location of the banlist. Defaults to "banlist.txt" in the working directory. #banlist=banlist.txt #Adds addition cheat protection. secure=1 #Sets the server language from its language code. #English = en-US, German = de-DE, Italian = it-IT, French = fr-FR, Spanish = es-ES, Russian = ru-RU, Chinese = zh-Hans, Portuguese = pt-BR, Polish = pl-PL, language=de-DE #Automatically forward ports with uPNP upnp=1 #Reduces enemy skipping but increases bandwidth usage. The lower the number the less skipping will happen, but more data is sent. 0 is off. #npcstream=60 #Default system priority 0:Realtime, 1:High, 2:AboveNormal, 3:Normal, 4:BelowNormal, 5:Idle priority=1
FlickyFlack  [developer] 3 Jul, 2024 @ 7:45am 
Originally posted by .kenni 🕊:
(...)

Hmmm.. As far as I know, the status messages for the connected clients are always in their respective locally set language, I could be very wrong though.
I'll try to replicate the issues later on my own vps, I'll get back to you
Last edited by FlickyFlack; 3 Jul, 2024 @ 7:45am
FlickyFlack  [developer] 10 Jul, 2024 @ 1:39am 
Sorry for the late response, I just got around to testing it on my own vps and I could replicate the issues.
I'll have to check a little more why thats happening
.kenni 🕊 10 Jul, 2024 @ 2:24am 
you don't have to apologize for the late response. i'm used to worse :D
that's nice that you were able to replicate that, so i'm not that stupid after all
爆胎 14 Jul, 2024 @ 5:14am 
I also thought about this issue at first. The language of tmodloader should be changed, but I configured language=zh Hanns in server config. txt, but it still doesn't work. I guess it may be a problem with tmodloader. He cannot apply the modified configuration file to create the server. I suggest Discord World Logs can not follow the server language settings, but can directly set the language output in the module configuration. I think this will be better
FlickyFlack  [developer] 26 Jul, 2024 @ 6:41am 
Originally posted by 爆胎:
I also thought about this issue at first. The language of tmodloader should be changed, but I configured language=zh Hanns in server config. txt, but it still doesn't work. I guess it may be a problem with tmodloader. He cannot apply the modified configuration file to create the server. I suggest Discord World Logs can not follow the server language settings, but can directly set the language output in the module configuration. I think this will be better

Thats what I tried as well. When debugging the logged lines in the ingame chat the localization is working fine for singleplayer or host&play instances. There must be some other issue I really couldnt figure out until now, as using a custom enum to override the language value and/or using additional custom translation files did not work. I'll try to find a few other ways and keep you both posted.
< >
Showing 1-7 of 7 comments
Per page: 1530 50