help for 1vs1 plugin needed

Questions, comments, and news on the server side plug-ins and it's API
Post Reply
User avatar
zongo
Private First Class
Private First Class
Posts: 106
Joined: Wed Oct 01, 2003 7:26 am
Location: Basel, Switzerland, Europe
Contact:

help for 1vs1 plugin needed

Post by zongo »

Heya

I need someone who is so kind to do a plugin for the upcoming 1vs1 Contest...

It should be kinda easy stuff, but unfortunately i dunno how to do it...:(

I'd like to implement a /contest command on the 1vs1 servers that does something similar to the current /official command coded by Pimpi.

Pimpi said it shouldnt be hardcoded anymore and that someone should do a plugin. Being himself on vacation i'm looking for someone before the contest starts...

For those who are not familiar with the /official command it does the following: if both players type /official and if the game ends without interruptions (no player quitting) then the score (+ player names and date) is stored and sent to 1vs1 email address the next day with a special "official" tag.

Now the /contest command should do the same accept that it says that the players were playing a game for the contest and that it should be a plugin...

Hope all this is clear...:)
Thx for helping me!
visit http://1vs1.bzleague.com
and dub's site http://dub.bzleague.com
join #dub channel on irc!
mistake
Private First Class
Private First Class
Posts: 124
Joined: Wed Jun 15, 2005 12:12 am

Post by mistake »

What happend to /championship?
mistake
User avatar
zongo
Private First Class
Private First Class
Posts: 106
Joined: Wed Oct 01, 2003 7:26 am
Location: Basel, Switzerland, Europe
Contact:

Post by zongo »

the /championship command only worked for the 1st contest some time ago. Pimpi couldnt make it work this year for whatever reason...and anyways it was hardcoded. Atm the 1vs1 servers run an old version of bzfs if i am correct, this is due to the /official command which is hardcoded and works only on this old version...
visit http://1vs1.bzleague.com
and dub's site http://dub.bzleague.com
join #dub channel on irc!
catay
Private First Class
Private First Class
Posts: 62
Joined: Sat May 28, 2005 2:41 pm

Post by catay »

I will have a look at it if nobody else is already doing it. No promises, not sure
I am able to do it ... . :)

The 1vs1 one patch that Pimpi wrote seems to work also on 2.0.8 as far as i tried.
It seems the score stuff gets written out to the bzflag logging. So I think the
/contest stuff has to do the same right ?
On the server will probably run some script that gets those strings out of the
logfile and mails them to you.

Anyway, I will do my best to come up with something but like I said .. no promises. ;)

catay
User avatar
Hannibal
Private First Class
Private First Class
Posts: 1073
Joined: Mon May 02, 2005 10:27 pm
Contact:

Post by Hannibal »

I couldve sworn that L4m3r made a plugin by the name of 1on1rules or something near that. Check the Plugin Releases forum. Or send L4 a PM.

EDIT: Found it.

http://my.bzflag.org/bb/viewtopic.php?t=7088
Games don't make people violent, lag does.
ImageImage
User avatar
Pimpinella
Private First Class
Private First Class
Posts: 96
Joined: Wed Nov 19, 2003 4:50 pm
Location: Jever, NDS, Germany

Post by Pimpinella »

just a short note:

1vs1 is a server patch, therefor it needs to be updated if the code it patches to changes it needs to be updated too. the patch command has some kind of fuzzy logic, so it mght still work fine in many cases, most probably some manual work is needed to copy and paste parts of the patch to the correct places where patch failed, or ever repair things when interfces have changed.
All this isn´t really much work, but it needs to be done and unfortunately i´m busy in a way, that i cannot effort to spend any time on it (nor any other coding at all).

When i initially wrote the 1vs1 patch plugins weren´t available, so this was the only way to implement it and i never added it to the main code tree because bzfs was suffering from "featureitis" even then - so i resisted to bloat the code even more.
Now that it´s possible to make it as a plugin this is the way to go - if there´s somebody willing to spend some time on it. Once written it will run with any future version of bzfs unless the API changes reasonably. No regulary updating will be neccessary.

Pimpi
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post by Theme97 »

Hannibal wrote:I couldve sworn that L4m3r made a plugin by the name of 1on1rules or something near that.
Yes, he wrote a oneOnOneRules plug-in, but that doesn't mimic Pimpi's /official command. It takes your flag if you kill someone else while playing in a 1v1.

I'm willing to write it. I've already written 6 other plug-ins. (2 more on the way! ;))
Image
User avatar
zongo
Private First Class
Private First Class
Posts: 106
Joined: Wed Oct 01, 2003 7:26 am
Location: Basel, Switzerland, Europe
Contact:

Post by zongo »

Heya!

Thx Theme97!!!
That would be greaaaaaaat! :)
visit http://1vs1.bzleague.com
and dub's site http://dub.bzleague.com
join #dub channel on irc!
catay
Private First Class
Private First Class
Posts: 62
Joined: Sat May 28, 2005 2:41 pm

Post by catay »

I have some first prototype of Pimpi's 1vs1 patch in plugin format.
It tries to mimic as much as possible Pimpi's original version.

There is also a /contest & /official command .... and logs the scores to a file at the end
of a match. Also matches get recorded ...

The scores get logged this way :

official 2006-7-26 catay01-catay 10-1
contest 2006-7-26 catay-catay01 10-1
contest 2006-7-26 catay01-catay 10-1
official 2006-7-26 catay-catay02 10-1

An external script in crontab should be take care of mailing this content to the
right person .. I guess thats also the way it is now ..

This is still prototype and not well tested .. so there are BUGS in it. :)
I will release it to the public if it's some what stable ...

You can try it out at 1vs1.catay.be 5156

Feedback is welcome . :)
User avatar
zongo
Private First Class
Private First Class
Posts: 106
Joined: Wed Oct 01, 2003 7:26 am
Location: Basel, Switzerland, Europe
Contact:

Post by zongo »

yay! thx sooo much catay!
Gonna test it real soon!
visit http://1vs1.bzleague.com
and dub's site http://dub.bzleague.com
join #dub channel on irc!
User avatar
Pimpinella
Private First Class
Private First Class
Posts: 96
Joined: Wed Nov 19, 2003 4:50 pm
Location: Jever, NDS, Germany

Post by Pimpinella »

However a meteorite was also going to write a plugin, you hould probably pool your efforts ;)

Pimpi

P.S. great thing btw. i always planned to rewrite the stuff but never got to it.
catay
Private First Class
Private First Class
Posts: 62
Joined: Sat May 28, 2005 2:41 pm

Post by catay »

Check out the Plug-in Release section on this forum to get the plugin.

catay.
User avatar
A Meteorite
Private First Class
Private First Class
Posts: 1786
Joined: Thu Apr 28, 2005 12:56 am
Location: California, U.S.
Contact:

Post by A Meteorite »

Pimpinella wrote:However a meteorite was also going to write a plugin, you hould probably pool your efforts ;)
...huh? What plugin are you speaking of? But, it does sound like a good idea once school and homework gets under control.
Image
Owner @ BZFX
Core Admin @ CAN

Email me: bzmet…@gmail.com
Theme97
Private First Class
Private First Class
Posts: 221
Joined: Fri Nov 11, 2005 8:04 pm
Contact:

Post by Theme97 »

Pimpinella wrote:However a meteorite was also going to write a plugin, you hould probably pool your efforts ;)
I believe that was me, and I never got around to it because I was a bit lazy... :D
Theme97 wrote:Yes, he wrote a oneOnOneRules plug-in, but that doesn't mimic Pimpi's /official command. It takes your flag if you kill someone else while playing in a 1v1.

I'm willing to write it. I've already written 6 other plug-ins. (2 more on the way! ;))
Image
User avatar
Pimpinella
Private First Class
Private First Class
Posts: 96
Joined: Wed Nov 19, 2003 4:50 pm
Location: Jever, NDS, Germany

Post by Pimpinella »

yep, was a mistake, sorry meteorite and theme

Pimpi
Post Reply