Urban Terror Forums: Game servers MOTD randomizer v0.1 - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Game servers MOTD randomizer v0.1 Rate Topic: -----

#1 User is offline   Nexu Icon

  •   clan leader   
  • Account: nexu
  • Main tag: |it|
  • Country:
  • Joined: 26-June 07
  • Posts: 4,265

Posted 10 December 2007 - 12:12 PM

[glow=red,2,300]DISCLAIMER: This script might not be useful or work at all for you. Use at your own risk.[/glow]

I wrote this MOTD randomizer for my game servers (to give people something to read during map changes, kinda like in COD where you get random quotes after you died).
Files: http://nexu.pwner.or...ys/motd-update/
It's a shell script and rcon binary for Linux. You don't need shell access to the game-server machine since it's all done through RCON.

Example usage:

Let say you game server ip is 1.2.3.4 running on port 27960 and the rcon password is secretz.
./motd-update.sh 1.2.3.4:27960 secretz

This will update the MOTD on the game server once, taken a random quote from the text file quotes.txt (lines in quotes.txt should not exceed 70 characters per line or it will not fit on the loading screen!). There is an example quotes.txt included (the one i'm currently using for Intribe Cuddle Room and Intribe Cuddle Inn).

If you wants to update the MOTD every 10 minutes:
while true; do ./motd-update.sh 1.2.3.4:27960 secretz; sleep 600; done

Best would be to run this in a screen session.

#2 User is offline   Phantomas71 Icon

  • Account: phantomas71
  • Country:
  • Joined: 01-March 10
  • Posts: 662

Posted 10 December 2007 - 01:59 PM

I've noticed that when i went to play there,
really nice

#3 User is offline   MatchMaker (old) Icon

  • Joined: 07-September 07
  • Posts: 59

Posted 11 December 2007 - 08:22 AM

Quote

[glow=red,2,300]DISCLAIMER: This script might not be useful or work at all for you. Use at your own risk.[/glow]

I wrote this MOTD randomizer for my game servers (to give people something to read during map changes, kinda like in COD where you get random quotes after you died).
Files: http://89.106.68.26/...ys/motd-update/
It's a shell script and rcon binary for Linux. You don't need shell access to the game-server machine since it's all done through RCON.

Example usage:

Let say you game server ip is 1.2.3.4 running on port 27960 and the rcon password is secretz.
./motd-update.sh 1.2.3.4:27960 secretz

This will update the MOTD on the game server once, taken a random quote from the text file quotes.txt (lines in quotes.txt should not exceed 70 characters per line or it will not fit on the loading screen!). There is an example quotes.txt included (the one i'm currently using for Intribe Cuddle Room and Intribe Cuddle Inn).

If you wants to update the MOTD every 10 minutes:
while true; do ./motd-update.sh 1.2.3.4:27960 secretz; sleep 600; done

Best would be to run this in a screen session.


already had this like couple months ago :)

#4 User is offline   {C9}Wolverine (old) Icon

  • Joined: 16-November 07
  • Posts: 4,017
  • LocationWashington State, USA

Posted 11 December 2007 - 08:49 AM

Be nice if a windows version was available.....

#5 User is offline   Kendle Icon

  •   verified user   
    www.urban-zone.org
  • Account: kendle
  • Country:
  • Joined: 28-February 10
  • Posts: 306

Posted 11 December 2007 - 08:56 AM

Quote

already had this like couple months ago :)


Thanks for sharing ;)

bullet_loaderAdvertisement

#6 User is offline   ViO Icon

  • Account: vio
  • Main tag: |.SPA.|
  • Joined: 28-February 10
  • Posts: 17

Posted 05 March 2008 - 04:14 AM

I see te cellshading screenshot! Its cool!
How to put te urbanterror whit cellshading?
PD: Sorry for my bad english :P

#7 User is offline   Cene (old) Icon

  • Joined: 09-June 08
  • Posts: 45

Posted 19 June 2008 - 03:44 PM

Sorry for bumping an old topic..

I was just wondering if you had the sources for "qcmd" binary? I'm working on a (Perl) script for my own server, and I was looking for a way to remotely execute rcon commands without joining to the server..

Thanks for the script btw. Simple and works well. :P

#8 User is offline   Parantido (old) Icon

  • Joined: 24-January 08
  • Posts: 96

Posted 20 June 2008 - 08:43 AM

Hi Cene,

i've alredy done something like this in Mandingo, and i've stripped out needed code due a similar request in the past.

You can find code here

http://www.urtitalia...wtopic.php?8551 (Urban Terror italian community)

Programming language is perl too.

Bye

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942