OneVsOne plugin Initial release

Expand and mod your server.
Post Reply
catay
Private First Class
Private First Class
Posts: 62
Joined: Sat May 28, 2005 2:41 pm

OneVsOne plugin Initial release

Post by catay » Sun Aug 27, 2006 7:38 pm

The OneVsOne plugin makes it possible to play
one versus one matches. This plugin is heavily
based on the original 1vs1 patch from Pimpinella.
It also behaves almost the same.

For more info read the README. :)

You can find the plugin at :

http://www.catay.be/OneVsOne-1.0.0.tar.gz


catay

PS : big thanks to Thonolan for the last minute tests :)

User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis » Mon Sep 25, 2006 5:32 pm

Hey all!
I can't compile on Windows and Debian 3.1 stable (x86):

OneVsOne.cpp(203) : error C3861: 'snprintf': Designator was not found also with a argument-referred search
OneVsOne.cpp(207) : error C3861: 'bz_stopRecBuf': Designator was not found also with a argument-referred search
OneVsOne.cpp(268) : error C3861: 'bz_stopRecBuf': Designator was not found also with a argument-referred search
OneVsOne.cpp(367) : error C3861: 'bz_stopRecBuf': Designator was not found also with a argument-referred search
OneVsOne.cpp(413) : error C3861: 'bz_stopRecBuf': Designator was not found also with a argument-referred search

What is my mistake? :)

romfis

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Mon Sep 25, 2006 5:53 pm

the first one is not your mistake. The author of the plugin wrote the plugin wrote the code asuming a linux like compiler ( windows has _snprintf, not snprintf).

the second means that you have an older version of the bzflag API. The plugin probably requires the CVS code for 2.0.x. 2.0.8 did not have the stop buffer function.
ImageJeffM

User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis » Mon Sep 25, 2006 7:50 pm

And 2.0.9??
I testing that on 2.0.8 and 2.0.9.

romfis

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Mon Sep 25, 2006 7:56 pm

2.0.9 is CVS for 2.0.x, and it does have the stopRecBuf function.
ImageJeffM

User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis » Mon Sep 25, 2006 8:07 pm

OK, Thanks JeffM!
I load NEW from CVS and "tries" compile.

romfis

User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis » Mon Sep 25, 2006 10:46 pm

Under Debian with 2.0.9 can i compile and under windows change i (snprintf, on _snprintf) in OneVsOne.cpp.

And here is next error under BZFlag Version 2.0.9. :(
LINK: fatal error LNK1181: Input file 'bzfs.lib' cannot be opened

romfis

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Mon Sep 25, 2006 11:51 pm

you need to put the bzfs.lib file in the same folder as the plugin project. If you are using a premade binary version of bzfs, then there was a bzfs.lib file included with the installer ( in the api folder ). if you built your own bzfs, then the lib will be in the /src/bzflag dir after you build.

This is all assuming your using visual studio to compile the plugin.
ImageJeffM

User avatar
optic delusion
Special Forces
Special Forces
Posts: 1011
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Naming.

Post by optic delusion » Wed Sep 27, 2006 3:06 am

I think this makes three (or 4?) different plugins for 1versus1.

... just to differentiate, The one planet mofo uses is called oneOnOneRules.
Ours drops your flag after every kill, So you get only one kill per flag, making it impossible to camp.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Re: Naming.

Post by L4m3r » Wed Sep 27, 2006 4:43 am

A-Delusion wrote:I think this makes three (or 4?) different plugins for 1versus1.

... just to differentiate, The one planet mofo uses is called oneOnOneRules.
Ours drops your flag after every kill, So you get only one kill per flag, making it impossible to camp.
...and the OneOnOneRules plugin is not designed for exclusive use on a 1v1 server, but rather to enforce the one-on-one flag-drop courtesy on larger servers when there are only two players present (so one dude doesn't get a GM and drive the other guy out by pissing him off).
Optimism is just a milder alternative to denial.

catay
Private First Class
Private First Class
Posts: 62
Joined: Sat May 28, 2005 2:41 pm

Post by catay » Mon Oct 02, 2006 10:06 am

Sry, Romfis, I indeed only tested the plugin on Linux.

User avatar
romfis
Private First Class
Private First Class
Posts: 215
Joined: Tue Jan 18, 2005 6:33 pm
Location: Österreich / Wien
Contact:

Post by romfis » Mon Oct 02, 2006 11:58 am

No, problem... is compiled! :)

Next Problem for my is under Debian 3.1 Stable (x86) i can't compile BZFlag 2.0.9 (bzfs and BZAdmin, better with BZFlag). The CVS Version is another compile funktion as 2.0.8. Example under 2.0.9 is "configure" not found. :)

romfis

Post Reply