GeoIPCity
2 Attachment(s)
GeoIPCity
Lately there has been a bit of demand to get the city names from an IP address. After seeing a few attempts in the snippits forum, I decided to create my own addon. This extension will do the same thing, only it's several thousand times faster than the Pawn/SQL/CSV methods that have been posted. It also supports UTF8 (the others did not). Installation:
Usage: You will notice that all of the data is grabbed at once, meaning you only have to make one query and can cache the results to use however you like. PHP Code:
http://forums.alliedmods.net/showpos...3&postcount=47 Changelog: Quote:
|
Re: [EXTENSION] GeoIPCity
Hey
I tried to install it, but my server crashed, and I got this error message: Code:
L 07/15/2010 - 17:38:23: SourceMod error session started I installed it this way: GeoLiteCity (renamed it into GeoIPCity.dat) --> /addons/sourcemod/configs/geoip/ cannounce.smx --> \addons\sourcemod\plugins cannounce.phrases --> \addons\sourcemod\translations geoipcity --> \addons\sourcemod\scripting\include geoipcity folder + geoipcity.ext.dll --> \addons\sourcemod\extensions |
Re: [EXTENSION] GeoIPCity
You aren't supposed to rename or delete the default GeoIP.dat. It stays in the folder along with GeoIPCity.dat. You have to download GeoLiteCity.dat.gz, extract it, then rename THAT one.
|
Re: [EXTENSION] GeoIPCity
I haven't deleted my default GeoIP.dat file.
In \addons\sourcemod\configs\geoip you find both: GeoIP (default file) and GeoIPCity.dat (new file) |
Re: [EXTENSION] GeoIPCity
I just installed this on a clean server and it worked without errors, so it's making believe this is an installation problem.
List all of the files you have in /addons/sourcemod/configs/geoip/ and their file sizes. Sounds like something is mixed up there. |
Re: [EXTENSION] GeoIPCity
GeoIP (default file): 1.027 KB
GeoIPCity.dat (new file): 29.005 KB |
Re: [EXTENSION] GeoIPCity
GeoIP should be GeoIP.dat
|
Re: [EXTENSION] GeoIPCity
It is GeoIP.dat (sry I forgot to write that).
Is it possible that you are collecting every files in one zip file and send it to me? |
Re: [EXTENSION] GeoIPCity
You aren't getting that error from my extension. Can you try download a fresh copy of GeoIP and replace the one you have?
GeoIP.dat.gz If you are still getting that error, delete (and backup) your geoip.ext.dll from the extension directory and then try to load the server. |
Re: [EXTENSION] GeoIPCity
Okay. That file you just gave me is called GeoIP (dat file) - I have renamed it GeoIP.dat
|
All times are GMT -4. The time now is 06:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.