Raised This Month: $32 Target: $400
 8% 

Module: GeoIP+ (v1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 02-21-2015 , 05:56   Re: Module: GeoIP+ (v1.2)
Reply With Quote #181

It's fixed now. The only problem left is that when the city is unknown, then nothing gets printed. "error" or "unknown" should be printed so we get some feedback from the module.

client_print(0, print_chat, "%s has connected from [%s] [%s]", szName, szCountry, szCity);

Would output:

Player has connected from [Denmark][]

Instead, it could be like this:

Player has connected from [Denmark][error]

Last edited by bLacK-bLooD; 02-21-2015 at 05:56.
bLacK-bLooD is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-21-2015 , 06:46   Re: Module: GeoIP+ (v1.2)
Reply With Quote #182

This is intended this way. This up to author's plugin to display what they want on failure, since returning "error" or "nc" is quite silly and plugin should anyway always checks if there is a result.
__________________

Last edited by Arkshine; 02-21-2015 at 06:48.
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-21-2015 , 10:24   Re: Module: GeoIP+ (v1.2)
Reply With Quote #183

You can do:
PHP Code:
if(szCity[0] == EOS)
{
    
copy(szCitycharsmax(szCity), "Error")

__________________
HamletEagle is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 06-16-2015 , 07:21   Re: Module: GeoIP+ (v1.2)
Reply With Quote #184

Downloaded latest from: http://dev.maxmind.com/geoip/geoip2/geolite2/#Downloads
Code:
Database metadata
Node count:    3123232
Record size:   28 bits

    IP version:    IPv6

Binary format: 2.0
Build epoch:   1433333254 (2015-06-03 12:07:34 UTC)
Type:          GeoLite2-City
Languages:     de en es fr ja pt-BR ru zh-CN
en:   GeoLite2 City database
Code:
AMX Mod X 1.8.3-dev+4751 (http://www.amxmodx.org)
Authors:
        David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
        Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
        Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
        Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun  1 2015 12:46:29
Built from: https://github.com/alliedmodders/amxmodx/commit/3792e7d
Build ID: 4751:3792e7d
Core mode: JIT+ASM32
Code:
geoip_city(disconip, disconresult, charsmax(disconresult), -1)
Code:
format(disconconn, charsmax(disconconn), "bla-bla-bla from %s has been dropped", disconresult)

geoip dump returns some info, but I can't see city in dump
it means that my ip adrr isn't in their db?

Last edited by ZASTRELIS; 06-16-2015 at 07:46.
ZASTRELIS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-16-2015 , 08:00   Re: Module: GeoIP+ (v1.2)
Reply With Quote #185

If you don't see city, then it's not available. It's the free version, you can't expect having 100% reliable information. Unfortunately you have to deal with it. Database is updated often, all you can do is updating often too in hoping more data are inserted.
__________________

Last edited by Arkshine; 06-16-2015 at 09:52.
Arkshine is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 06-16-2015 , 09:20   Re: Module: GeoIP+ (v1.2)
Reply With Quote #186

Quote:
Originally Posted by Arkshine View Post
If you don't see city, then it's not available. It's the free version, you can't expect having 100% reliable information. Unfortunately you have to deal with it. Database is update often, all you can do is updating often too.
ZASTRELIS is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-12-2015 , 18:58   Re: Module: GeoIP+ (v1.2)
Reply With Quote #187

Really nice, ty Arkshine. : )
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-18-2015 , 07:53   Re: Module: GeoIP+ (v1.2)
Reply With Quote #188

Is this the latest version of GeoIP ?
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
l33tcso
New Member
Join Date: Dec 2015
Old 12-18-2015 , 08:06   Re: Module: GeoIP+ (v1.2)
Reply With Quote #189

i use ZPA 1.6.1 i added a few things which requesting GeopIP, but when i try to compile my main coide i getting these things

// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(66) : warning 207: unknown #pragma
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(66) : error 038: extra characters on line
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(81) : warning 207: unknown #pragma
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(81) : error 038: extra characters on line
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(94) : warning 207: unknown #pragma
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\include\geoip.inc(94) : error 038: extra characters on line
l33tcso is offline
Send a message via Skype™ to l33tcso
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-18-2015 , 08:35   Re: Module: GeoIP+ (v1.2)
Reply With Quote #190

@iLlegalzp: what do you mean?
@l33tcso: In geoip.inc, comment any lines starting with #pragma. Forgot the remove them.
__________________
Arkshine is offline
Reply



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 12:09.


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