Page 1 of 1

WTWRP MapChange Server

Posted: Sun Feb 28, 2010 4:22 pm
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

Re: WTWRP MapChange Server

Posted: Mon Mar 01, 2010 1:54 pm
by hutty
sounds fun

kind of like the system that is in alien arena.

Re: WTWRP MapChange Server

Posted: Sun Mar 07, 2010 2:30 pm
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

Re: WTWRP MapChange Server

Posted: Thu Mar 11, 2010 8:26 am
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!




.

Re: WTWRP MapChange Server

Posted: Thu Apr 29, 2010 6:23 pm
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.