Internet DOOM Utilities
Main | Better country flag database for IDE - Forum | Registration | Login
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Better country flag database for IDE
Konar6Date: Saturday, 2013-01-05, 10:29 | Message # 1
Private
Group: Users
Messages: 4
Reputation: 0
Status: Offline
Privet,
As you know, IDE is using a ip2c.dll country database library from ZDaemon, which comes from a free online database,
that however isn't being updated anymore (hasn't been updated since 2010 AFAIK) and the website http://ip-to-country.webhosting.info isn't even working anymore it seems.
As a result, IDE reports unknown or wrong countries for ~1/3 of all servers.

I'd like to suggest a much better database from maxmind.com which is:
- free
- much more precise
- updated every month
- extra easy to implement

It is the database that is used on GV servers on ST, and which Torr Samaho implemented into v1.1:

https://bitbucket.org/Torr_Samaho/zandronum/commits/f59b40146a3225632d103bd76779e41e53ac72c8

To access the database, maxmind.com offers APIs licensed under LGPL (so it should be fine to use them in IDE).
This is basically all the code you need for accessing the database to get the country from an IP in C++:

#include <GeoIP.h>
GeoIP * gi;
gi = GeoIP_new(GEOIP_STANDARD);
FString country;
country = GeoIP_country_code_by_addr ( gi, "/* IP as string here... */");
GeoIP_delete(gi);


Binary database: http://dev.maxmind.com/geoip/geolite
API: http://dev.maxmind.com/geoip/downloadable#Accessing_the_Database-2
 
bondDate: Sunday, 2013-01-06, 04:57 | Message # 2
Admin
Group: Administrators
Messages: 204
Reputation: 1
Status: Offline
heh)
when i read your message, i started ide and what? - ip2c.dll was updated )
did you talk with Kilgore also?

btw, about Zandronum: hope it will send player country info to launcher ?
 
Konar6Date: Sunday, 2013-01-06, 07:04 | Message # 3
Private
Group: Users
Messages: 4
Reputation: 0
Status: Offline
Heh... what a coincidence. I guess he switched to this database http://software77.net/geo-ip/ which is also good.
That indeed helped after so much time with no updates, now even Japan servers have flags.

And no, in the current implementation Zandronum won't send player country info to launchers, but that would be trivial to implement.
But I guess that's up to you to discuss launcher protocol changes with Torr Samaho)
 
  • Page 1 of 1
  • 1
Search:

bond © 2001-2024 Powered by uCoz