Changing stuff (yes, I know it's unsupported.)

For all the help you need with Armagetron!
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

I know it's unsupported, but I've seen pRu do it, so here goes.
How do I change the color/text of the "Go (Round _ of _)!"?
Image
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by dlh »

Create language/custom.txt in your user data directory*, with contents:

Code: Select all

language Custom
# custom language strings...
In your configs set “LANGUAGE_FIRST Custom”. This needs a recent server version, like 0.2.8.3_rc3.

* By default ~/.armagetronad on Linux, ~/Library/Application Support/Armagetron Advanced on Mac OS X, …
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Z-Man »

For earlier versions, you just edit the relevant language file directly and watch it get overwritten on your next update.
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Lucifer »

Hmmm, I was able to shelter the custom files on earlier server versions, but I don't remember how I did it.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

@dlh How do I make the command in there? A better question would be, How do I make a language?
Image
User avatar
Lucifer
Project Developer
Posts: 8640
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Lucifer »

Best way to learn how to make language files is to look at the three versions of English that are there.
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Mecca
Match Winner
Posts: 799
Joined: Sun May 02, 2004 7:38 pm
Location: I dont know...Im lost

Re: Changing stuff (yes, I know it's unsupported.)

Post by Mecca »

Z-Man wrote:For earlier versions, you just edit the relevant language file directly and watch it get overwritten on your next update.
LOL!
Image
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

OK, so I know how to do that, now how do I change the text for the remote admin command?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Z-Man »

Which text? Usually, just search for the text in question in english_base.txt, copy the whole line over to your custom file, and edit it.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

The
Remote admin command by <name>: <setting><value>
<setting>changed from <value> to <new value>
RA: <setting>changed from <value> to <new value>
text.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Z-Man »

The middle one is 'config_value_changed'. The other two are apparently hardcoded. Well, the first one is. Only the RA: part of the third one is hardoded, the rest is changed with 'config_value_changed', too.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

So, I can't change it then?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Z-Man »

You can, but you need to edit src/engine/ePlayer.cpp, find the text, change it there, and recompile.
User avatar
pie goes moo
Round Winner
Posts: 306
Joined: Wed Aug 12, 2009 10:42 pm
Location: San Antonio, Texas, USA

Re: Changing stuff (yes, I know it's unsupported.)

Post by pie goes moo »

File path to ePlayer.cpp on Mac?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Changing stuff (yes, I know it's unsupported.)

Post by Z-Man »

I've given the full path already. Relative to the root directory where you unpacked the source to, of course.
Post Reply