Change messages on dedicated servers

Post here if you need help setting up your server, etc.
Post Reply
User avatar
ROCK
Average Program
Posts: 76
Joined: Fri Feb 18, 2005 4:03 am

Change messages on dedicated servers

Post by ROCK »

Is there a file somewhere that has all the messages that are sent to the screen? I've looked all over the code to find a mess of cout statements but couldn't find them, so i'm wondering if its just infield from the Language packets. Though my changing them seems to have no effect on ouputs. I'm betting lucifer know that answer to my question... He AAALWAAYYS Does.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

lol.

Yes, but I don't know where to point you to find them. aa supports translation, so somewhere there's a few files with all the messages translated for various languages. I know they're stored in /usr/local/games/armagetronad-dedicated, but underneath there, I don't know. (I only know that because I gave the wrong argument to --datafiles a few times and got a bunch of really weird messages that were fixed when I fixed that argument)
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Since Armagetron is localized for other languages, you will find what you need in the english.txt language file (or deutsch.txt). You can change every message the server outputs to the clients. For example, player_win_frag in english.txt is set at default as "\1 core dumped \3 for \2 points.\n", where \1 is the player doing the killing, \3 is the player that is now dead, and \2 is the number of points. You could change it to whatever you want, just keep the \1 etc...
User avatar
ROCK
Average Program
Posts: 76
Joined: Fri Feb 18, 2005 4:03 am

Post by ROCK »

hey hey, I found the right language files, in /usr/local/games/armagetronad-dedicated/language... thanks for your help, I can do some fun junk with this. :wink:
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

I found them too. Not all the strings seem to be getting replaced. How many of the english strings are still actually hardcoded, anyway?
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

If I'm right, none of the strings a normal user should ever see are hard coded any more. What's left are error messages, debug messages and diagnostics. If you find one, it's a bug.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

I think the team kill one might still be hardcoded :oops:.
Image
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Remote admin via chat.
ˌɑrməˈɡɛˌtrɑn
Post Reply