Fair4CTF: version 2.4! (updated for BZFlag 2.4 by allejo)

Expand and mod your server.
Post Reply
pacman87
Private First Class
Private First Class
Posts: 23
Joined: Sat Jul 01, 2006 3:35 pm

Fair4CTF: version 2.4! (updated for BZFlag 2.4 by allejo)

Post by pacman87 » Tue Dec 18, 2007 11:20 am

New in v2.4:
Updated by allejo to be compatible with BZFlag 2.4.
Added LGPL v2.1 license.

New in v2.2:
fixed the "head out of scope" error in line 140
fixed the enum errors in line 444
fixed the unused var team in line 603

I don't have my windows build env set up since i built a new desktop, so i haven't had a chance to compile this, but it should work...

Let me know if there's any problems.

Major changes (v2.1):
1. The illegal grab count is cleared 60 seconds after the last illegal grab, instead of after a legit flag grab.
2. "/ctf list" now shows a list of all players, their illegal grab count, and the time of their last grab.
3. Fixed a bug that occasionally caused clients to crash.
4. Added support to turn off team messages on fair/unfair state changes (illegal grabs still trigger messages).


Any comments/concerns/feature request, let me know ;)



Straight from the README.txt:

Fair4CTF plugin version 2.1 (March 23, 2008)

Author: pacman87
Based initially on LouMan's timedctf plugin, almost entirely rewritten
In-game commands based partially on L4m3r's fairCTF plugin's handler
===========================================
FEATURES:
-control up to 4 team CTF matches
-autokick or autokill players who keep trying to grab an off-limits flag


DESCRIPTION:
This plugin allows CTF to be enabled or disabled based on each pair of teams. Fair teams are determined by the ratio of the difference in size to the size of the largest team [(large-small)/large]. This version uses a fixed maximum ratio of 0.25, so a difference of 1 player would be fair from 3v4 up, and a difference of 2 players would be fair from 6v8 up.

Each team can always take their flag, regardless of the number of players on any team. Smaller teams can take flags from larger teams (and if successful, will encourage players to switch and even the teams). CTF is only limited for the larger team.

For example, if team sizes are 3v4v5v8 (R,G,B,P), then Red, being the smallest team, could take any other flag. Green is considered "fair" with Red ( (4-3)/4 = 0.25 ), so Green can capture Red's flag. Green can also capture Blue or Purple, because Green is the smaller team. Blue cannot take Red's flag ( (5-3)/5 = 0.4 ), but can take Green's flag ( (5-4)/5 = 0.2 ) and Purple's flag. Purple cannot take any team's flag.

Also, this plugin allows players who repeatedly attempt to take a weaker team's flag when CTF is disallowed to be /killed or /kicked. Each time a player grabs a flag that's off-limits, his count will be increased. When the count reaches a configurable threshold, the player will be /killed or /kicked, depending on the plugin mode. A player who's flag is removed during a flag run due to team changes (parts or joins) will not count toward the threshold.

The illegal flag count is reset 60 seconds after the last illegal grab.


The automatic /kicking or /killing can be disable by using a threshold value of 0.

PARAMETERS:
This plugin takes one parameter: the illegal grab threshold.
This line in your *.conf file:

-loadplugin /path/to/fair4ctf,5

will set the threshold to 5. The default value is 3.

COMMANDS:
This plugin may be controlled in-game using /ctf [...]. Valid commands are:
/ctf on: activates the plugin (default state)
/ctf off: disables the plugin (allows CTF to procede unimpeeded)
/ctf kick: set the plugin to kick players who reach the illegal grab threshold
/ctf kill: set the plugin to kill players who reach the threshold (default)
/ctf obsmsgon: sends 'enabled' and 'disabled' updates to observers
Standard behavior is to only notify the teams who are affected when
allowable CTF pairings change. This setting also sends updates to observers
/ctf obsmsgoff: opposite of obsmsgon. (default state)
/ctf msgon: like obsmsgon, but for the teams playing
/ctf msgoff: like obsmsgoff, but for the teams playing
/ctf grabs: tells the current illegal grab threshold. (default is 3)
/ctf grabs #: sets the illegal grab threshold to #, where # is between 0 and 99
/ctf list: lists current players and their number of illegal grabs

All these commands require the "FAIRCTF" permission be granted.
Attachments
fair4ctf_bz2.4.zip
Source code, v2.4 (compatible with bz2.4)
(6.81 KiB) Downloaded 130 times
fair4ctf_src2.2.zip
Source update (no .dll for this one as I don't have my win build env up) if there's any compile errors in this one, let me know.
(13.73 KiB) Downloaded 293 times
fair4ctf_src2.1.zip
Source code, v2.1
(14.05 KiB) Downloaded 489 times
fair4ctf_src2.0.zip
Source code, v2.0
(13.91 KiB) Downloaded 473 times
Last edited by pacman87 on Sat Sep 29, 2012 8:20 pm, edited 6 times in total.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Wed Dec 19, 2007 1:12 am

This makes me happy: "autokick or autokill players who keep trying to grab an off-limits flag."

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Wed Jan 23, 2008 10:32 am

anyone got a solution to load the plugin on MacOS X 10.5 Leopard?
it seems that the folder "/usr/local/lib/" cannot be accessed and the plugin doesn't load ...
anyway...why is it stored in that folder and not in the plugin's folder of the app?
.
.
.
Image

F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s » Wed Jan 23, 2008 2:24 pm

> anyone got a solution to load the plugin on MacOS X 10.5 Leopard?
> it seems that the folder "/usr/local/lib/" cannot be accessed and the plugin doesn't load ...
> anyway...why is it stored in that folder and not in the plugin's folder of the app?


First of all, are you building from source, and running ./configure with --enable-shared ? To access your /usr directory (with Finder), go to your root folder (typically named "Macintosh HD" or whatever you named it), type Cmd-Shift-G , and type in "/usr".

Also, if you want to put your files wherever you want, try running configure like:
./configure --enable-shared --prefix=/Users/yourusername/path-to-bzflag/whereyouwantthefiles

Then, plugins will be in the "lib" directory of that last folder.

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Wed Jan 23, 2008 3:42 pm

no ... im not building ...
i went the "lazy" way and downloaded the plugin, created the folder lib in /usr/local/ put the plugin there and was running fine under 10.4 ...
since 10.5 it will not load the plugins in that folder anymore ...
.
.
.
Image

User avatar
blast
General
General
Posts: 4735
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Post by blast » Wed Jan 23, 2008 4:18 pm

The plugin doesn't have to be in a specific location. Provide the full path to the plugin when you load it.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Wed Jan 23, 2008 7:43 pm

tried .... nope ....

this is what bzfs with a -ddd start tells me
Plugin:/usr/local/lib/fairCTF.so found but expects an older API version (15), upgrade it
WARNING: unable to load the plugin; /usr/local/lib/fairCTF.so
.
.
.
Image

F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s » Wed Jan 23, 2008 9:15 pm

You will probably have to build BZFS from source, then. It looks like the plugin you downloaded was for 2.0.8, while the version of BZFS you have is 2.0.10 (maybe).

pacman87
Private First Class
Private First Class
Posts: 23
Joined: Sat Jul 01, 2006 3:35 pm

this is not the plugin you're looking for

Post by pacman87 » Thu Jan 24, 2008 5:26 am

I believe you're referring to the fairCTF plugin, found here:
http://my.bzflag.org/bb/viewtopic.php?t=6776

This is a different plugin, written by me. Since I don't have a mac to build this plugin, if you want it, you'll have to build it yourself.

However, from reading through the other thread, the only pre-compiled plugin for OSX is the one that you found didn't work (10.4), so you'll have build it yourself regardless (or ask nicely for someone with a mac who knows what they're doing to do it for you).

-pacman87

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Thu Jan 24, 2008 10:32 am

so ::: let me ask someone with the right mac skills
very very very nicely
please!!! could help me someone to build the Fair4CTF plugin to make it work on Mac OS 10.5 and bzfs 2.0.10
it would be highly appreciated!!!!!
.
.
.
Image

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Fri Jan 25, 2008 3:02 am

zaphod wrote:so ::: let me ask someone with the right mac skills
very very very nicely
please!!! could help me someone to build the Fair4CTF plugin to make it work on Mac OS 10.5 and bzfs 2.0.10
it would be highly appreciated!!!!!
I'll try.

1) Download the xCode tools from developer.apple.com. You will have to be a member to download it, but membership is free.

2) Get bzflag sources, either from svn or the downloads page. You should get a version greater than or equal to the version required by the plugin that is not greater than 2.0.11.

3) Open /applications/utilities/terminal.app

4) Cd to the root bzflag folder. If you've never used the terminal before, cd means change directory. Here is an example of how to do it: $cd /path/to/bzflag.

5) You should already have the plug-in before getting to this step. I'm not redoing the numbers.

6) Cd to plugins/ from the root bzflag directory.

7) Type "sh newplug.sh Fair4CTF" or whatever the name of the plug-in is. The name is case sensitive, so make sure the name you choose is exactly the same as the plug-in name or the main source file. The main source file should have the same name as the plug-in.

8) Now move all of the .cpp and .h files and Makefile.am to the directory that newplug.sh created. It should be bzflag/plugins/Fair4CTF depending on the name of the plug-in. I'm assuming you want to install Fair4CTF and not FairCTF.

9) After that you have to edit bzflag/configure.ac and bzflag/plugins/Makefile.am by adding your new plug-in. Scroll down for details on how to go about this.

10) In the terminal, cd back to the root bzflag folder and type these commands:

./autogen.sh
./configure --enable-shared --enable-plugins --disable-client --disable-bzadmin
make

11) If everything was done right, you will have a plug-in in bzflag/plugins/Fair4CTF/.libs


The bzflag/plugins/makefile.am looks like this:

Code: Select all

SUBDIRS = \
	plugin_utils \
	HoldTheFlag \
	Phoenix \
	RogueGenocide \
	SAMPLE_PLUGIN \
	airspawn \
	chathistory \
	flagStay \
Just add the plug-in with the rest, following the same format.

Configure.ac:

Code: Select all

	plugins/killall/Makefile
	plugins/koth/Makefile
	plugins/logDetail/Makefile
	plugins/nagware/Makefile
	plugins/playHistoryTracker/Makefile
	plugins/python/Makefile
	plugins/rabbitTimer/Makefile
Also add the plug-in in configure.ac, following the same format. You'll need to scroll down nearthe bottom of the file.


I've been in and out of classes for 12 hours today, but hopefully everything is correct. If you have any questions please ask.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Fri Jan 25, 2008 3:38 am

I went ahead and compiled fair4ctf, and line 52 should be

Code: Select all

std::vector<std::pair<int,int> > illegalGrabs;
instead of

Code: Select all

std::vector<std::pair<int,int>> illegalGrabs;
because the compiler interprets ">>" as operator>>.

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Fri Jan 25, 2008 3:44 am

Here is a ppc binary and a source file. It was compiled on OS X 10.5 and bzflag 2.0.11.
Attachments
fair4ctf.tar
(100 KiB) Downloaded 517 times

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Sat Jan 26, 2008 9:51 am

hi Enigma ....
where to start and how much to thank you ??? i dont know !!!
but let me tell you and all the forum community ::: this is a phantastic place !!!
you get REAL help here and Enigma who sits here after a 12 hours day and trys to explain to a noob how to compile a plugin and ends up doing it himself .... unique!!!
thank you very much Enigma!!!

at least i have to share my experience with your explanations and lets do it the same way as you listed it.
here we go:

1) Xcode 3.0 is installed

2) so i got via SVN and Terminal the bzflag sources
(svn co https:/ /bzflag.svn.sourceforge.net/svnroot/bzflag/trunk/bzflag)
and it has been installed in a folder "bzflag in my user folder

3) ok ... Terminal is open (i know it a bit ;-))

4) i used: cd "/Users/zaph/bzflag"

5) don't understand excactly what you ment by:
You should already have the plug-in before getting to this step.
6) here a little question why i have to cd to the plugins folder and i'm not doing it directly in step (4)
but i go ahead: cd "/Users/zaph/bzflag/plugins"

7) then i launched the command "sh newplug.sh Fair4CTF" (lets keep the name Fair4CTF)

result:

Code: Select all

cp -pR ./SAMPLE_PLUGIN ./Fair4CTF
rm -rf ./Fair4CTF/.svn
find Fair4CTF -type f -exec perl -pi -e "s/SAMPLE_PLUGIN/Fair4CTF/g" '{}' \;
mv ./Fair4CTF/SAMPLE_PLUGIN.cpp ./Fair4CTF/Fair4CTF.cpp
mv ./Fair4CTF/SAMPLE_PLUGIN.def ./Fair4CTF/Fair4CTF.def
mv ./Fair4CTF/SAMPLE_PLUGIN.sln ./Fair4CTF/Fair4CTF.sln
mv ./Fair4CTF/SAMPLE_PLUGIN.vcproj ./Fair4CTF/Fair4CTF.vcproj
perl -pi -e 's/(.*SAMPLE_PLUGIN.*)/\1
	Fair4CTF \/' ./Makefile.am
perl -pi -e 's/(.*SAMPLE_PLUGIN\/Makefile.*)/\1
	Fair4CTF\/Makefile/' ./configure.ac
Running autogen.sh, please wait...
sh autogen.sh >/dev/null 2>&1
ERROR: autogen.sh failed
i got these files in the new folder Fair4CTF : Fair4CTF.cpp, def, sln, vcproj, Makefile.am and README.txt
but i guess the "ERROR: autogen.sh failedERROR: autogen.sh failed" will make me stop here and will end my learning process to compile "my first plugin" ?!!?

so i went ahead and decompressed your "HIGHLY APPRECIATED" binary and source file ...
certainly just silly but optimistic i tried to use straight ahead the "fair4ctf.so" and launched bzfs ... and guess what?

Code: Select all

WARNING: unable to load the plugin; /usr/local/lib/fairCTF.so
is it my version of bzfs (BZFlag-2.0.10RC3) that it doesn't load?
any hint where i could find 2.0.11?

well a HUGE thanks for the effort and time you use to launch a noob into plugin-compiling!!!!!
i hope you dont five up on me ........ ;-)
.
.
.
Image

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Mon Jan 28, 2008 7:28 am

2) so i got via SVN and Terminal the bzflag sources
(svn co https:/ /bzflag.svn.sourceforge.net/svnroot/bzflag/trunk/bzflag)
and it has been installed in a folder "bzflag in my user folder
You need to get the 2.0 branch.

Code: Select all

svn co https://bzflag.svn.sourceforge.net/svnroot/bzflag/branches/v2_0branch/bzflag
5) don't understand excactly what you ment by:
Quote:
You should already have the plug-in before getting to this step.
I meant you should have the source file for the plug-in. There is only one source file, so after you run newplug.sh, replace bzflag/plugins/fair4ctf/fair4ctf.cpp with the one I posted (the original one will result in a compiler error if you compile it). When you replace the file, make sure the name is exactly the same as the parameter you passed to newplug.sh (Fair4CTF.cpp and fair4ctf.cpp are different).

6) here a little question why i have to cd to the plugins folder and i'm not doing it directly in step (4)
but i go ahead: cd "/Users/zaph/bzflag/plugins"
Heh, good point. I guess it might be easiest to just do everything from the root bzflag folder.


Here are a few quick tip for using the terminal:

1) There are two types of paths: relative paths and absolute paths. Absolute paths begin at the root filesystem and begin with a '/'. Relative paths are relative to the current working directory and do not begin with a '/'. For example, if you are currently at /usr/local/, you can cd to /usr/local/include by typing the command "cd include". So you could just "cd /users/zaph/bzflag" and then run "sh plugins/newplug.sh fair4ctf".

2) You can also go backwards by typing "cd ../"

3) The shell translates '~' as your home directory. For example, "cd ~/bzflag" is interpreted by the shell as "cd /users/zaph/bzflag".
is it my version of bzfs (BZFlag-2.0.10RC3) that it doesn't load?
any hint where i could find 2.0.11?
When you checkout bzflag from svn, you are getting 2.0.11. Plug-ins compiled for 2.0.11 may or may not work with 2.0.10.

(Note: I intentionally left periods outside of quotes so that the period wouldn't be mistaken as part of the command.)

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Mon Jan 28, 2008 10:16 am

hey enigma ... thx again for the GREAT input!!!
sorry that i didn't keep an update here ::: i spent the whole weekend in seeking, reading, learning, trying, re-reading, messing-up, re-reading, re-trying, seeking over again, re-learning, re-doing ............... and finally i made it work :-)
i guess the only thing left is now to build an 2.0.11 version to use the plugin with (because it still doesn't load with "BZFlag-2.0.10RC3")!
so i went ahead and started to build the 2.0.11 version and the subject doesn't belong here anymore:
i posted my "problem" of build failed at FTVectoriser here http://my.bzflag.org/bb/viewtopic.php?t=11845
saw you were active at this matter as well ;-)
thanks again and i WILL make the fair4CTF plugin work!!!!!!!
.
.
.
Image

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Mon Jan 28, 2008 9:37 pm

One last try. Here is fair4ctf compiled on 2.0.10. The source file and the binary are included.
Attachments
fair4ctf.tar
(100 KiB) Downloaded 505 times

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Tue Jan 29, 2008 9:01 am

Enigma ::: thanks, thanks and thanks again for your help!!!
it is highly appreciated ... believe me!!!
and it works .... your "built" is running smoothly ..... :-)

pacman87 ::: a BIG thanks for you in making this plugin!!
very smart&clever one and it works just fine ..... ;-)

if you wanna "see" it ::: up and running on zaphod.links-clan.net : 6000
.
.
.
Image

pacman87
Private First Class
Private First Class
Posts: 23
Joined: Sat Jul 01, 2006 3:35 pm

Version 2.0!

Post by pacman87 » Sat Mar 22, 2008 7:50 pm

this plugin has been updated with some features and a bugfix. see first post for details.

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Post by zaphod » Sun Mar 23, 2008 2:16 pm

what is a LITTLE annoying are the messages each time a player joins or leaves ....
it would be an improvement to add a feature
- to turn off messages completely and only get warned when you grab a flag while teams are uneven ...
- or a "silent" server message without the beeping ....
just a suggestion to improve this great working plugin!
.
.
.
Image

pacman87
Private First Class
Private First Class
Posts: 23
Joined: Sat Jul 01, 2006 3:35 pm

Post by pacman87 » Mon Mar 24, 2008 12:02 am

zaphod:

you can now disable the team messages (v2.1). if you're compiling your own, change line 51 from:

msg = true;
to:
msg = false;

so the plugin defaults to silent (which I think is what you want).

thanks for the feedback!

Quol
Private First Class
Private First Class
Posts: 112
Joined: Mon Feb 10, 2003 9:10 pm
Location: Montreal, Quebec, Canada

Post by Quol » Mon Mar 31, 2008 4:08 am

Hey Pacman87,

I downloaded and compiled version 2.0, but 2.1 is giving me a compile error on line 140 in the for loop:

PlayerInfo *spot;
for (spot = ctf.head; spot != NULL; ) {
spot = ctf.head->next;
free(head);
head = spot;
}

I think it should be:

......
free(ctf.head);
ctf.head = spot;
}

that compiles fine for me...

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Fair4CTF: version 2.1!

Post by zaphod » Mon Feb 16, 2009 12:39 pm

well :: its me again and i tried to compile the fair4ctf plugin on the server.
usually i have no problems to compile plugins but it seems i have not much luck with yours?!
anyway ::: can you see from the output what went wrong?
thanks again for helping me out!!!

Code: Select all

zaphod:/usr/bzflag/plugins/fair4ctf# make
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include    -I../../include -I../../plugins/plugin_utils -g -O2  -Wall -W -mtune=i686 -ffast-math -fno-exceptions -MT fair4ctf_la-fair4ctf.lo -MD -MP -MF .deps/fair4ctf_la-fair4ctf.Tpo -c -o fair4ctf_la-fair4ctf.lo `test -f 'fair4ctf.cpp' || echo './'`fair4ctf.cpp
 g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../plugins/plugin_utils -g -O2 -Wall -W -mtune=i686 -ffast-math -fno-exceptions -MT fair4ctf_la-fair4ctf.lo -MD -MP -MF .deps/fair4ctf_la-fair4ctf.Tpo -c fair4ctf.cpp  -fPIC -DPIC -o .libs/fair4ctf_la-fair4ctf.o
fair4ctf.cpp: In function 'int bz_Unload()':
fair4ctf.cpp:140: error: 'head' was not declared in this scope
fair4ctf.cpp: In member function 'virtual void FCTF::process(bz_EventData*)':
fair4ctf.cpp:444: warning: enumeration value 'bz_eNullEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eCaptureEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_ePlayerDieEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_ePlayerSpawnEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eZoneEntryEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eZoneExitEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eChatMessageEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eUnknownSlashCommand' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGetPlayerSpawnPosEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGetAutoTeamEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eAllowPlayer' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eTickEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGetWorldEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGetPlayerInfoEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eAllowSpawn' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eListServerUpdateEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eBanEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eHostBanEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eKickEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eKillEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_ePlayerPausedEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eMessageFilteredEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGameStartEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eGameEndEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eSlashCommandEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_ePlayerAuthEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eServerMsgEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eShotFiredEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_ePlayerUpdateEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eNetDataSendEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eNetDataReceveEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eLogingEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eShotEndedEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eFlagTransferredEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eFlagDroppedEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eFlagResetEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eAllowCTFCapEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eMsgDebugEvent' not handled in switch
fair4ctf.cpp:444: warning: enumeration value 'bz_eLastEvent' not handled in switch
fair4ctf.cpp: In member function 'virtual bool FCTF::handle(int, bzApiString, bzApiString, bzAPIStringList*)':
fair4ctf.cpp:603: warning: unused variable 'team'
make: *** [fair4ctf_la-fair4ctf.lo] Error 1
.
.
.
Image

User avatar
zaphod
Sergeant
Sergeant
Posts: 352
Joined: Sun Jan 23, 2005 3:20 pm
Location: beteigeuze-system
Contact:

Re: Fair4CTF: version 2.2! (compile error fixes)

Post by zaphod » Tue Jul 07, 2009 7:13 am

works impeccable!
Thank you very much for this great plugin and so many happy players you made with it!


.
.
.
.
Image

User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 759
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Fair4CTF: version 2.2! (compile error fixes)

Post by allejo » Mon Jul 18, 2011 4:20 am

Plugin updated to 2.4

Edit: Updated the .zip file to include the README file per request. License LGPL 2.1 per request of pacman87

Edit #2: Check first post for updated version for BZ 2.4
Here's my personal website and my open source projects are available on GitHub; I work on a lot of cool things.

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest