help for 1vs1 plugin needed
- zongo
- Private First Class
- Posts: 106
- Joined: Wed Oct 01, 2003 7:26 am
- Location: Basel, Switzerland, Europe
- Contact:
help for 1vs1 plugin needed
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!
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!
- zongo
- Private First Class
- Posts: 106
- Joined: Wed Oct 01, 2003 7:26 am
- Location: Basel, Switzerland, Europe
- Contact:
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...
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
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
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
EDIT: Found it.
http://my.bzflag.org/bb/viewtopic.php?t=7088
- Pimpinella
- Private First Class
- Posts: 96
- Joined: Wed Nov 19, 2003 4:50 pm
- Location: Jever, NDS, Germany
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
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
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.Hannibal wrote:I couldve sworn that L4m3r made a plugin by the name of 1on1rules or something near that.
I'm willing to write it. I've already written 6 other plug-ins. (2 more on the way! )
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 .
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 .
- Pimpinella
- Private First Class
- Posts: 96
- Joined: Wed Nov 19, 2003 4:50 pm
- Location: Jever, NDS, Germany
- A Meteorite
- Private First Class
- Posts: 1786
- Joined: Thu Apr 28, 2005 12:56 am
- Location: California, U.S.
- Contact:
...huh? What plugin are you speaking of? But, it does sound like a good idea once school and homework gets under control.Pimpinella wrote:However a meteorite was also going to write a plugin, you hould probably pool your efforts
Owner @ BZFX
Core Admin @ CAN
Email me: bzmet…@gmail.com
I believe that was me, and I never got around to it because I was a bit lazy...Pimpinella wrote:However a meteorite was also going to write a plugin, you hould probably pool your efforts
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! )
- Pimpinella
- Private First Class
- Posts: 96
- Joined: Wed Nov 19, 2003 4:50 pm
- Location: Jever, NDS, Germany