Showing a meassage after every round.

Post here if you need help setting up your server, etc.
Post Reply
User avatar
Self_Destructo
Round Winner
Posts: 317
Joined: Tue Jun 07, 2005 1:24 am
Location: HillBilly Country
Contact:

Showing a meassage after every round.

Post by Self_Destructo »

I would like to show a message to everyone after every round. Is that possible?
User avatar
LETE
Core Dumper
Posts: 128
Joined: Sat May 21, 2005 5:40 am
Location: Hey if i'm not here i'm most likely on the grid

Post by LETE »

put one of these into settings_dedicated.cfg

round_center_message
or
round_console_message

followed by your message, or you could create a file called everytime.cfg and stick it in your config folder, anything you put in there will be loaded after each round, so stick

center_message
or
console_message

followed by your message and it will be displayed after every round, you can do allot of other fun stuff with everytime.cfg besides this.

center-prints a center message
console-prints a message in the chat space.
Image
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

To clarify: round_console_message_1, it goes to 4

Or you could use everytime.cfg like LETE mentioned.
User avatar
LETE
Core Dumper
Posts: 128
Joined: Sat May 21, 2005 5:40 am
Location: Hey if i'm not here i'm most likely on the grid

Post by LETE »

nemostultae wrote:To clarify: round_console_message_1, it goes to 4

Or you could use everytime.cfg like LETE mentioned.
actually, it goes to five. 8)
Image
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Generally you don't want to put center messages in everytime.cfg, they'll get canceled or cut short by other center messages the game decides to display. Also, when you put console messages (or use "SAY" to say something in everytime.cfg), don't make the lines dependent on a specific order. I think that's fixed in cvs or will be fixed sometime in the near future (if it's not already fixed I"ll beat on it eventually anyway), but in current releases, each line in everytime.cfg isn't guaranteed to take effect in the same order they're listed in the file. So you could have:

SAY Hi there
SAY Goodbye

But you might see:

Admin: Goodbye
Admin: Hi there

Worse yet, it's different for every player. :)
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
Self_Destructo
Round Winner
Posts: 317
Joined: Tue Jun 07, 2005 1:24 am
Location: HillBilly Country
Contact:

Post by Self_Destructo »

Thanks guys. Is there one for displaying a message after every match.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Self_Destructo wrote:Thanks guys. Is there one for displaying a message after every match.
Not really, no, but if you go into the language files you can work on the match winner string.
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
Self_Destructo
Round Winner
Posts: 317
Joined: Tue Jun 07, 2005 1:24 am
Location: HillBilly Country
Contact:

Post by Self_Destructo »

One more question. Is there a way to log the server action? All the stuff it shows you at the CP.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Yeah, you can either run the server with --daemon and redirect output to a file, or you can run it with --vardir *yourfile* (I believe) which will output the console to a file. Of course, the --daemon flag is probably still needed there....
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
antix
On Lightcycle Grid
Posts: 39
Joined: Mon Sep 20, 2004 5:54 pm
Location: Edmonton, Alberta

Post by antix »

I noticed that it still doesn't log the console data.
However, I'm experimenting using the command screen -L
and running the server with in the screen, just a small problem, is the log file produced, has some unwanted characters in it. But its a start.
In Nomine AntiX
Distort!
antix
On Lightcycle Grid
Posts: 39
Joined: Mon Sep 20, 2004 5:54 pm
Location: Edmonton, Alberta

Post by antix »

Ok sorry for the double post, was an sql time out, and lol I had to click refresh.

Anyways, i found that using less to view the log(linux os) works great, but using nano or pico, it displays the unwanted characters.

so, just running the server inside a screen with the -L works great.
a log file called screenlog.0 will be created in the current directory where the screen session is started.
In Nomine AntiX
Distort!
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Sounds like a lot of work to go through to generate a log that a simple:
armagetronad-dedicated --daemon > logfile.log
would do. :)

I think it's --vardir that tells the server itself to write the log, and you have to give it a filename. Also, on Mandrake anyway, if you don't redirect the output or otherwise, and you run it from an init.d script, then the log will be output to syslog.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
antix
On Lightcycle Grid
Posts: 39
Joined: Mon Sep 20, 2004 5:54 pm
Location: Edmonton, Alberta

Post by antix »

yeah, that is easier :)
But I wanted to be able to view the console at the same time, and enter console commands.
8)
In Nomine AntiX
Distort!
antix
On Lightcycle Grid
Posts: 39
Joined: Mon Sep 20, 2004 5:54 pm
Location: Edmonton, Alberta

Post by antix »

however if one doesn't need to enter console commands, then they could start the server using the command line you mentioned.

Code: Select all

armagetronad-dedicated -daemon >> ~/.armagetronad/var/games.log
Then use this command to view the log as its being generated.

Code: Select all

tail -f ~/.armagetronad/var/games.log

I edited this post, need double >> for appending
In Nomine AntiX
Distort!
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

The next version looks like it'll have stronger in-game admin, giving access to the console. Tank had that implemented, but I haven't tested it. (After the automake branch is merged I'm going to rebuild Hell on a cvs server to start testing the dedicated server for the release) So we'll finally have logging as the preferred way to run it and still have access to the console, and we'll have it all in-game. :) Yay!
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
Post Reply