Monthly Target: $400 Donations: $299

[ANY] Hattrick's Geo Resolver (1.0) [Aug 11, 2015] +Plug-ins

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Yam Inside®™℠
Join Date: Jan 2010
Location: At home FFS
Old 08-01-2015 , 15:32   [ANY] Hattrick's Geo Resolver (1.0) [Aug 11, 2015] +Plug-ins
Reply With Quote #1


This extension is intended to resolve geographical information by the IP address (IPV4 only) and does only work on Windows and Linux.

It uses two free C libraries and databases at the same time (MaxMind's GeoLiteCity and GeoLite2-City) in order to improve the look-up process ensuring that there are less chances to fail retrieving a record.

Furthermore, you can also run in the same time another two paid MaxMind databases (GeoIPCity and GeoIPISP), if you own them.

How it works?

It starts scanning by using the free databases, to see if a result is retrieved, then it continues by scanning with the other databases, completing the missing fields that appear as "N/A" or "Err"/ "Error".


It supports updating the databases while the game server changes map, without manually restarting it. Read the instructions inside the zipped file.



This is how a complete record looks like


This is how the INC file looks like


This is a test suite plug-in


This is how to manually install the databases in /addons/sourcemod/data/GeoResolver directory.

Download and un-zip the next two files:

1.	GeoLite2 City	@
2.	GeoLite City	@

Their un-zipped names are:

1.	GeoLite2-City.mmdb
2.	GeoLiteCity.dat


1.	GeoIPCity.dat
2.	GeoIPISP.dat

* Put these files too if you want a better accuracy and you own them.

1.0 @ Aug 1, 2015 - Initial release.
1.0 @ Aug 2, 2015 - Updated INC file and added Connect-Announce plug-in.
1.0 @ Aug 6, 2015 - Updated INC file adding new functions [GeoR_Reload, GeoR_Databases]
                  - Updated plug-ins.
                  - Added new plug-in that allows you to update the database files at map change,
                    without manually restarting the game server.
                  - Added Regular-Expressions library in order to validate the IPV4 address, for safety purposes.
1.0 @ Aug 11, 2015 - Updated Windows and Linux binaries.
                  - Updated PCRE library.
                  - Updated IP Address PCRE pattern.
                  - Updated Makefile flags.
                  - Removed a few GLIBC dependences on Linux build.
Attached Files
File Type: zip [Source Code] (523.7 KB, 10 views)
File Type: zip (426.6 KB, 17 views)

Last edited by claudiuhks; 08-10-2015 at 19:39. Reason: Added Connect-Announce plug-in
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Join Date: Jun 2013
Location: Romania, Tecuci
Old 08-08-2015 , 16:11   Re: [ANY] Hattrick's Geo Resolver (1.0) [Aug 6, 2015] +Plug-ins
Reply With Quote #2

Very nice my friend! Good job!

hadesownage is offline
Send a message via Yahoo to hadesownage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 21:51.

Powered by vBulletin®
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Theme made by Freecode