how to use /help for multi game server

Post here if you need help setting up your server, etc.
User avatar
sinewav
Graphic Artist
Posts: 6424
Joined: Wed Jan 23, 2008 3:37 am
Contact:

Re: how to use /help for multi game server

Post by sinewav »

RYON wrote:...i need it to do it between rounds like dbd does and other servers like for example, crazy tronners wild fortress has messages that tell about the next game that is loading and its all before the round starts.
Oh I see what you are saying. I guess you could edit english_base.txt and replace a game-state message with your voting rules instead. Maybe replace the output of "gamestate_deleting_objects" on line 2190? It looks to me like that's what DBD did, though I'm just guessing.
User avatar
RYON
Average Program
Posts: 84
Joined: Sat Jul 10, 2010 7:54 am
Location: OREGON U.S
Contact:

Re: how to use /help for multi game server

Post by RYON »

thmx sine...now i think the last thing i needed for my other game was how to drop a named dz. on my other post how to drop a dz. its a script thing and im still waiting for someone to help me out there. but thnx man.
dkiller
On Lightcycle Grid
Posts: 16
Joined: Sun Oct 10, 2010 5:52 pm

Re: how to use /help for multi game server

Post by dkiller »

i cant say for certain, but I can almost guarantee modifying the file sine is talking about is exactly what path did on that server. Note, he also made different names for core dumping on the scs server also. On the Loose dogfight server, we replaced "core dumped" with lots of 0xfffffs and made color messages there, same sort of edit.
Image
Image
User avatar
RYON
Average Program
Posts: 84
Joined: Sat Jul 10, 2010 7:54 am
Location: OREGON U.S
Contact:

Re: how to use /help for multi game server

Post by RYON »

cool cool..dukevin actualy made me a script and it works well for the games to be shown between rounds.

Code: Select all

#!/usr/bin/php
<?php
$message=array(
"0x808080------------ Choose a game type -------------",
"0x4080ffCAPTURE THE FLAG  0xffffff/vote include ctf.cfg",
"0x00ffffLOOSE DF  0xffffff/vote include loose.cfg",
"0x80e040 U.F.O  0xffffff/vote include ufo.cfg",
"0xff0000HIGHRUBBER30  0xffffff/vote include hr30.cfg",
"0xff0000HIGHRUBBER20  0xffffff/vote include hr20.cfg",
"0x80e040WORMS OF WAR  0xffffff/vote include worms.cfg",
"0x4080ffFORTRESS INVADER  0xffffff/vote include fort.cfg",
"0xc0a020HOUSE OF THE NINJA  0xffffff/vote include ninja.cfg",
"0x00ffffLOOSE DF 20  0xffffff/vote include loose20.cfg",
"0x4040ffHIGHRUBBER low accel 30  0xffffff/vote include hrlow30.cfg",
"0xff0000BOUNDLESS  0xffffff/vote include boundless.cfg",
"0x00ffffGRINDERS  0xffffff/vote include grinders.cfg",
"0xe0c040TURN-BASED TRON  0xffffff/vote include turn.cfg",
"0x4060ffHYBRID  0xffffff/vote include hybrid.cfg",
"0xff77ffSWITCH  0xffffff/vote include switch.cfg",
"0x800080HIGHRUBBER WAR  0xffffff/vote include hrwar.cfg",
"0xffe040RACE FIGHT  0xffffff/vote include racef.cfg",
"0x80a000COBRA 0x60a000COMMANDOS  0xffffff/vote include cobra.cfg",
"0x4040ffACIDoTRON  0xffffff/vote include acid.cfg",
"0xff77ffPYTHON X  0xffffff/vote include python.cfg");

$footer=array("0x808080---------------------------------------------",
"0xff0000SUBMIT A VOTE TO CHANGE GAME......  TYPE 0xffffff/vote include __________.cfg 0xff0000then others can approve or decline it on the main vote\n menu............ (0x808080SCROLL UP (page up) TO VIEW THE GAME LIST0xff0000)",
"0xffffff!!!!!!!!!!!!!!!!!!!0xffe040DO NOT VOTE IN BETWEEN ROUNDS!0xffffff!!!!!!!!!!!!!!!!!!",
"0xffffff!!!!0xffe040If it crashed then someone voted between rounds (just now).0xffffff!!!!");


while(1)
{
  $line = rtrim(fgets(STDIN, 1024));
  if ( preg_match( "/^ROUND_COMMENCING/", $line ) )
  {
    echo "console_message \n";
    foreach($message as $i => $phrase)
    {
	echo "console_message " . $phrase . " \n";
    }
    sleep(1);
    foreach($footer as $i => $phrase)
    {
        echo "console_message " . $phrase . " \n";
    }
  }
}


?>
Post Reply