[bf1942] We REALLY need the BF2 Python API
andrewa at bigpond.net.au
Mon Jun 27 04:03:06 EDT 2005
Thanks for the reply.
Ive had a shot at merging the files, but they really are so different it
makes me cry :)
Maybe the BF2CC guys are on this list too and can come up with a solution -
Running both scripts would be ideal.
----- Original Message -----
From: "Einar S. Idsø" <esi at itk.ntnu.no>
To: <bf1942 at icculus.org>
Sent: Monday, June 27, 2005 5:54 PM
Subject: Re: [bf1942] We REALLY need the BF2 Python API
> I'm afraid not. But does BF2CC use an admin script entirely different
> from the default.py that came with the installation? We haven't removed
> any functionality from that script, only added to it (unless Panic
> decided to make some last-minute changes after I left ;)). So bfno.py
> should be a drop-in replacement for default.py.
> The main modifications are:
> 1. Added a writer class for debugging. This was STRONGLY based on Steven
> Hartland's multiplay.py. Difference is that ours also opens a UDP log to
> a configurable port.
> 2. Kept Steven Hartland's brilliant idea of placing a file called
> adminsettings.con alongside the maplist.con file for additional options.
> 3. Made the options dictionary globally accessible by assigning it to
> 4. Registered a callback function to fire at mapchange. It will reread
> the adminsettings.con file so that changes to ping limits will be active
> from next round.
> If BF2CC does indeed use an adminscript different from default.py, you
> could take a closer look at the code. You just may be able to merge
> BF2CC's adminfile with ours. Modifications 2 and 3 are absolutely
> necessary. Mod 1 is just for practical reasons (a log is nice to have,
> eh?), and Mod 4 is recommended but not necessary. Good luck! :)
> Andrew Armstrong wrote:
> > I currently have the default admin script from BF2CC, and dont want to
> > lose its functionality.
> > Can I use your high ping kick script w/o using your modified admin
> > script, which would have to replace BF2CC's?
> > Thanks
> > - Plasma
> > ----- Original Message ----- From: "Frode H" <panic at battlefield.no>
> > To: <bf1942 at icculus.org>
> > Sent: Monday, June 27, 2005 9:54 AM
> > Subject: Re: [bf1942] We REALLY need the BF2 Python API
> >> There has been a couple of questions about our ping kick
> >> script, and so Einar (Kybber) has created a script category on the FOM
> >> wiki:
> >> http://bf2.fun-o-matic.org/index.php/Scripts
> >> And we finally managed to brush up our code so that we dared to
> >> release it to the public. We haven't gotten an answer from Andreas
> >> about the copyright, but I'm hoping that it's ok. If not I just have
> >> to remove it I suppose. Our two scripts
> >> Modified admin script that offers logging and more.
> >> http://bf2.fun-o-matic.org/index.php/Scripts:Modified_admin_script
> >> Script for kicking high pingers:
> >> http://bf2.fun-o-matic.org/index.php/Scripts:Kicking_for_high_ping
> >> More documentation will follow, but right now the missis is lying in
> >> bed, and I'm not all that popular...
> >> Anyway, have a ball, gentlemen :-)
> >> P.S. Priv message on the fun-o-matic bf2 wiki:
> >>> No offence to you guys, but could you possibly keep your
> >>> "vapourware" (I doubt it's that, but it feels like the best term) off
> >>> the wiki until you're actually ready to post it? There's two
> >>> "scripts" on that page now that belong to you that don't even
> >>> exist
> >>> Cheers Boff
> >> Hey...be patient man............ Sometimes stuff take longer than
> >> you expect, right?
More information about the Bf1942