2
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]  (Read 34438 times)

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #30 on: June 22, 2010, 09:48:49 PM »
Thanks for helping me out here... Strange thing is that it works on my CoD2 server for names.

I've added some debug info, would you mind to download latest version and test it once again?

Offline Armani

  • Jr. Member
  • **
  • Posts: 20
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #31 on: June 22, 2010, 10:43:28 PM »
Sure :D
done I downloaded the latest version and the logfile attached ;)
PS: All my tests are done on a COD4 server.

[attachment deleted by maintenance]

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #32 on: June 23, 2010, 02:35:18 PM »
I need the complete log, do you have it from the start? I need to see what's loading...

Offline Armani

  • Jr. Member
  • **
  • Posts: 20
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #33 on: June 23, 2010, 11:14:11 PM »
Done,
Full log attached.

[attachment deleted by maintenance]

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #34 on: June 26, 2010, 09:25:37 PM »
There are no ignored IP's in your config:
CountryfilterPlugin: Ignored IP's: []

Offline Armani

  • Jr. Member
  • **
  • Posts: 20
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #35 on: June 28, 2010, 04:31:23 PM »
OK, but I have added some names and an IP to get ignored ... unless I am doing it wrong:

I do it like this:

Code: [Select]
<set name="names">name</set> //in case I want to ignore one name
<set name="names">name1, name2, name3</set>  //in case I want to ignore more than one name.

and also:

<set name="ips">88.89.X.Y</set>   //one IP
<set name="ips">88.89.X.Y, 88.89.X.Y, 88.89.X.Y</set> //more than one IP

But even though I still get in the b3 log:
CountryfilterPlugin: Ignored IP's: []

PS: I also tried to point it to a test file with IPs in it like that :
<set name="ips">/home/ips.txt</set>
but also it didnt work I still get the same in the b3 log.

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #36 on: June 30, 2010, 10:12:44 PM »
Tested it and it works fine on my server. Can you post your complete config?

Also pushed version 1.1.8 after testing. Now stripping leading and trailing whitespaces from the entries.

Offline Armani

  • Jr. Member
  • **
  • Posts: 20
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #37 on: June 30, 2010, 10:47:01 PM »
Well I don't know what to say, I feel like annoying you but :P it is still the same both the complete log file and config file attached ;)

[attachment deleted by maintenance]

Offline zskull

  • Jr. Member
  • **
  • Posts: 15
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #38 on: August 03, 2010, 01:40:44 AM »
Where is the import b3.lib.PurePythonGeoIP
from b3.lib.PurePythonGeoIP import GeoIP in the new one at? also here is my log

Code: [Select]
 Loading Plugin #12 countryfilter [C:\UserFiles\skyline\GameServers\TC74518002072160751770063\extplugins\conf\countryfilter.xml]
100802 16:33:30 INFO Could not load built in plugin countryfilter (No module named countryfilter)
100802 16:33:30 INFO trying external plugin directory : C:\UserFiles\skyline\GameServers\TC74518002072160751770063\extplugins
100802 16:33:30 CRITICAL Error loading plugin: No module named GeoIP.PurePythonGeoIP
Traceback (most recent call last):
File "b3\parser.pyo", line 497, in loadPlugins
File "b3\parser.pyo", line 565, in pluginImport
File "C:\UserFiles\user\extplugins\countryfilter.py", line 25, in
ImportError: No module named GeoIP.PurePythonGeoIP

Where is 1.1.8 i see the one from  July 29 but not the 1.1.8

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #39 on: August 03, 2010, 02:23:57 AM »
If you download the one from the download section, you'll have the latest version. Currently that's version 1.2.0. Don't let the 1.1.6 in the github link mislead you.

Along with the latest version of the bot that should work with the import of the library.
You can check if you have the library by looking in the b3/lib/ folder, it should contain a file called PurePythonGeoIP.py

Offline macbok

  • Jr. Member
  • **
  • Posts: 35
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #40 on: August 23, 2010, 08:58:28 PM »
Hi,

does it work for UrT? coz i tried everything.. but it does not seem's to work for me i have standalone version of b3..

i've updated GeoIP.dat

added this code to .xml (<plugin config="@b3/extplugins/conf/countryfilter.xml" name="countryfilter" priority="16" />)

and uploaded .py and .xml files.. but it does not work.. m i doing anything wrong?

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #41 on: August 23, 2010, 09:50:40 PM »
Please send the beginning part (where all plugins are loaded and a player connects) of your b3.log. Also you can remove  'priority="16"' part from your xml line. It's not required anymore. (Assuming you're using b3 version 1.3+)

Offline bozotheclown

  • Jr. Member
  • **
  • Posts: 16
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #42 on: November 26, 2010, 05:26:31 AM »
is there any way to get countryfilter to show city (or city, state) as well as the connecting from country as it shows by default?

Offline xlr8or

  • [ www.xlrstats.com ]
  • Project Lead
  • Hero Member
  • *
  • Posts: 2057
    • The Art of Tactical Gaming
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #43 on: November 28, 2010, 12:45:17 PM »
Not without rewriting the code. It was designed to be a country filter and therefor I chose to use the country database. Nothing is impossible, so it could be rewritten to use GeoCity info. I won't do that tho, this plugin is a good starting point for ppl who want to alter the code and possibly release a city version of it.

Offline Jerreee

  • Newbie
  • *
  • Posts: 2
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #44 on: May 25, 2011, 01:16:12 PM »
Hey, i'm getting this error :

Code: [Select]
110525 12:55:47	INFO	STDOUT Error: [Errno 2] No such file or directory: 'conf\\extplugins\\GeoIP\\GeoIP.dat'
  File "b3\__init__.pyo", line 177, in start
  File "b3\parser.pyo", line 393, in start
  File "b3\parser.pyo", line 657, in startPlugins
  File "D:\Documents and Settings\Marina\Mijn documenten\jeroen\Cod MW2 server\b3\B3 UP2DATE\B3 testingshit\extplugins\countryfilter.py", line 89, in onStartup
  File "b3\lib\PurePythonGeoIP.pyo", line 61, in open

Do you have any idea what i've been doing wrong?

Tnx in advance

 


Rate this page +1 at Google Search

anything