Custom language string for individual servers.

Post here if you need help setting up your server, etc.
Post Reply
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Custom language string for individual servers.

Post by Moofie »

Okay, so I have custom language setup, but it loads the file for every server (well, the ones that have LANGUAGE_FIRST Custom). Can you set it up so that each server can load a different one?

Servers are setup with this guide: http://wiki.armagetronad.org/index.php/ ... x_computer
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Custom language string for individual servers.

Post by LOVER$BOY »

Title sure got me confused for a little bit... :P

Nope. Not possible unless you set LANGUAGE_FIRST to different language names for each server you host.

If you plan on using individual custom language, then you should probably think about this: http://vertrex.tk/wiki/index.php?title= ... OM_MESSAGE

You can have different custom strings in the same language files and use that command to load them at your leisure.
Image
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: Custom language string for individual servers.

Post by Moofie »

What do you mean by setting to different language names? I tried making a loosecustom.txt and put "language Loose" in the first line. Didn't work.

I'll check that out too.
Last edited by Moofie on Tue Jan 15, 2013 2:55 am, edited 1 time in total.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Custom language string for individual servers.

Post by LOVER$BOY »

Moofie wrote:What do you mean by setting to different language names? I tried that, make a loosecustom.txt and put language Loose in the first line. Didn't work.
Did you make sure to "include loosecustom.txt" in languages.txt?
Image
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: Custom language string for individual servers.

Post by Moofie »

I didn't even know that file existed! Thanks!

It worked! Problem solved, thank you
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Custom language string for individual servers.

Post by LOVER$BOY »

Heh, am I cool or what? :D

Good work! ;)
Image
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Custom language string for individual servers.

Post by Light »

A better way would be to set --userdatadir. It's a parameter to the line you execute the server on, just stick it after --vardir which I assume you already have.

Then, inside of the data directory, create a language folder and a file called custom.txt
Now it will use what you add to that, and fall back on american + en base for what you don't have. So you only have to add the things you want to change.
Moofie
Core Dumper
Posts: 125
Joined: Fri Jan 27, 2012 1:36 am
Location: Ohio
Contact:

Re: Custom language string for individual servers.

Post by Moofie »

Light you seem to have misunderstood what my problem was, I have that, but that file would then be used for every server with custom language. I wanted a different language per server.
User avatar
Light
Reverse Outside Corner Grinder
Posts: 1667
Joined: Thu Oct 20, 2011 2:11 pm

Re: Custom language string for individual servers.

Post by Light »

Explained to him in-game. If someone else needs it explained further, just ask and I'll explain it here too if my last post wasn't enough.
Post Reply