Changing stuff (yes, I know it's unsupported.)
- 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.)
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 _)!"?
How do I change the color/text of the "Go (Round _ of _)!"?
Re: Changing stuff (yes, I know it's unsupported.)
Create language/custom.txt in your user data directory*, with contents: 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, …
Code: Select all
language Custom
# custom language strings...
* By default ~/.armagetronad on Linux, ~/Library/Application Support/Armagetron Advanced on Mac OS X, …
Re: Changing stuff (yes, I know it's unsupported.)
For earlier versions, you just edit the relevant language file directly and watch it get overwritten on your next update.
- 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.)
Hmmm, I was able to shelter the custom files on earlier server versions, but I don't remember how I did it.
- 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.)
@dlh How do I make the command in there? A better question would be, How do I make a language?
- 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.)
Best way to learn how to make language files is to look at the three versions of English that are there.
Re: Changing stuff (yes, I know it's unsupported.)
LOL!Z-Man wrote:For earlier versions, you just edit the relevant language file directly and watch it get overwritten on your next update.
- 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.)
OK, so I know how to do that, now how do I change the text for the remote admin command?
Re: Changing stuff (yes, I know it's unsupported.)
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.
- 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.)
The
text.Remote admin command by <name>: <setting><value>
<setting>changed from <value> to <new value>
RA: <setting>changed from <value> to <new value>
Re: Changing stuff (yes, I know it's unsupported.)
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.
- 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.)
So, I can't change it then?
Re: Changing stuff (yes, I know it's unsupported.)
You can, but you need to edit src/engine/ePlayer.cpp, find the text, change it there, and recompile.
- 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.)
File path to ePlayer.cpp on Mac?
Re: Changing stuff (yes, I know it's unsupported.)
I've given the full path already. Relative to the root directory where you unpacked the source to, of course.