WTWRP MapChange Server

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 322
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

WTWRP MapChange Server

Post by Cobra_Fast »

Hi,

I just made my own map-change up.
There's something special about my map-change: It allows players to choose which map to play next, after the game time exceeded.
A Bot will tell in public chat what maps can be voted on and all you have to do is to say the specific map's number (1 to 6) to the public chat.
The map that gets the majority of votes will be next, otherwise the map with the highest number (at max. 6) will be chosen of the ones with equal votes. If you do not vote, your opinion simply doesn't count.

Infos for tech. interested ppl:
It's written in C#.NET 2.0 (100% Works on linux with actual Mono framework).

Maps currently inside:
  • Fun Park (FFA)
  • Gas Giant
  • z Best Of z
  • Ice Land
  • SunBurst
  • Superstore (FFA)
  • Tanksgiving
  • Diagonal
  • SMD (FFA)
  • Passion
  • BoxyWar (The relicensed version)
  • Trench Warfare
Feel free to suggest maps here!!! (Please also post the BZBB link (or similar) to the map here, too)

This map-change system is yet in experimental evaluation status what leads to unexpectable downtimes. When it's getting close to a stable version I'm going to release source and binary!

Known Problems:
  • The new server won't start, the system's just freezing after taking the exceeded server off.
  • The system does not switch to the server with the majority of votes (seams to be fixed in earliest version)
  • The old server won't shut down, what makes the system stuck.
Please report your own encounters or (possible) solutions here!

UP @ wtwrp.de:5154
User avatar
hutty
Private First Class
Private First Class
Posts: 227
Joined: Thu Jul 02, 2009 8:09 pm

Re: WTWRP MapChange Server

Post by hutty »

sounds fun

kind of like the system that is in alien arena.
For all of you who have asked what a hutty is, there is one as my avatar.

instant map... just add water
User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 322
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: WTWRP MapChange Server

Post by Cobra_Fast »

The following problems have been solved:
  • The new server won't start, the system's just freezing after taking the exceeded server off.
  • The system does not switch to the server with the majority of votes (seams to be fixed in earliest version)
The following new problems have been encountered:
  • The bot fails to connect to the new server -> no poll -> no map change
User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: WTWRP MapChange Server

Post by zaphod »

good idea to give all online players a chance to vote for a map in a rotation!
definitely something needed to finally improve the "little-getting-old-and still-buggy" mapchange plugin!
keep it up ::: good job!




.
.
.
.
Image
User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 322
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: WTWRP MapChange Server

Post by Cobra_Fast »

Ok here it is.
The configuration is set up like (extract from source code):

Code: Select all

             /* WHAT THE CONFIGURATION LOOKS ALIKE:
             * All Options are bound to their specific lines.
             * The following information will start from Line 0 (Human Line 1)
             * ALL PATHS WHICH ARE NOT BEING PASSED TO BZFS NEED TO BE ABSOLUTE!
     (Line) i* OPTION
     --------* ------
             * 
            0* BZFS Binary Location (e.g. C:\Programs\BZFlag\bzfs.exe or /usr/bin/bzfs)
            1* BZFS Game Port (-p)
            2* Value of -public (Game Description) (Place %MAP_NAME% for the actual Map Name)
            3* Value of -groupdb (Groups Database) (if you dont want it, place %DONT_USE% there)
            4* Game Time in Seconds (10min = 600sec, so put 600 for example)
            5* -publicaddr's Value (you cant leave that out. if you dont have a domain use DynDNS)
            6* -password's Value (required for MapChange's @ to show up, otherwise it won't have any status symbol nor protections)
             */
the binary needs to be inside a directory with the bzfs map .conf files. it will take the .conf file-name (without the .conf) as server name for the list.
It will crash on any errors (like config/map errors) and needs to be restarted.
It requires the .NET-Framework version 2.0 (so it will run on unix/linux with mono).

Custom License: Do with it whatever you want to.
Attachments
BZFSMapChange.beta.zip
[BETA] Source, Example Config and Binary contained.
(25.8 KiB) Downloaded 246 times
Post Reply