Monthly Target: $400 Donations: $299
 74% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
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

Summary

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".

Features

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

Pictures

Console
Spoiler



This is how a complete record looks like

Spoiler


This is how the INC file looks like

Spoiler


This is a test suite plug-in

Spoiler


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

Code:
Download and un-zip the next two files:

1.	GeoLite2 City	@	http://dev.maxmind.com/geoip/geoip2/geolite2/
2.	GeoLite City	@	http://dev.maxmind.com/geoip/legacy/geolite/

Their un-zipped names are:

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



*********************************************
// FOR THOSE WHO OWN PAID VERSIONS AS WELL //

1.	GeoIPCity.dat
2.	GeoIPISP.dat


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

Code:
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] GeoResolver.zip (523.7 KB, 10 views)
File Type: zip GeoResolver.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
hadesownage
Member
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
Reply


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