Raised This Month: $51 Target: $400
 12% 

GeoIPCity


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 09-05-2014 , 19:32   Re: GeoIPCity
Reply With Quote #71

Quote:
Originally Posted by sidiousbr View Post
Hello, im using geoipcity with connect announce and when anyone connects, it says he is from an unknown country
Update the GeoIP database, according to the download instructions on the first post of this thread.

And make sure that the "geoipcity" extension is actually loaded.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
corymkg
Member
Join Date: Jan 2012
Old 03-18-2015 , 01:00   Re: GeoIPCity
Reply With Quote #72

L 03/18/2015 - 00:56:21: [SM] Unable to load extension "geoipcity.ext": Failed to open: C:\servers\csjailbreak\cstrike\addons\sourcem od\configs\geoip\GeoIPCity.dat


Please help! D:
corymkg is offline
Send a message via Skype™ to corymkg
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 03-18-2015 , 03:10   Re: GeoIPCity
Reply With Quote #73

Quote:
Originally Posted by corymkg View Post
L 03/18/2015 - 00:56:21: [SM] Unable to load extension "geoipcity.ext": Failed to open: C:\servers\csjailbreak\cstrike\addons\sourcem od\configs\geoip\GeoIPCity.dat


Please help! D:
do you have the GeoIPCity.dat file? Should be located: /addons/sourcemod/configs/geoip/

Just double check that then try and load the extension again.

ps: rename GeoLiteCity.dat to GeoIPCity.dat
__________________

Last edited by versatile_bfg; 03-18-2015 at 03:15.
versatile_bfg is offline
Crazygamer34894
Senior Member
Join Date: Feb 2013
Location: Cape Town Western Cape
Old 03-28-2015 , 15:58   Re: GeoIPCity
Reply With Quote #74

Quote:
Originally Posted by versatile_bfg View Post
do you have the GeoIPCity.dat file? Should be located: /addons/sourcemod/configs/geoip/

Just double check that then try and load the extension again.

ps: rename GeoLiteCity.dat to GeoIPCity.dat
having same problem

L 03/18/2015 - 00:56:21: [SM] Unable to load extension "geoipcity.ext": Failed to open: C:\servers\csjailbreak\cstrike\addons\sourcem od\configs\geoip\GeoIPCity.dat

not with Counter strike BUT l4d2. Connect announce 1.6 Plugin with latest Sourcemod 1.7.0 Release NON Development Branch
__________________

Last edited by Crazygamer34894; 03-28-2015 at 16:02.
Crazygamer34894 is offline
Send a message via Yahoo to Crazygamer34894 Send a message via Skype™ to Crazygamer34894
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 03-29-2015 , 19:37   Re: GeoIPCity
Reply With Quote #75

Quote:
Originally Posted by Crazygamer34894 View Post
having same problem

L 03/18/2015 - 00:56:21: [SM] Unable to load extension "geoipcity.ext": Failed to open: C:\servers\csjailbreak\cstrike\addons\sourcem od\configs\geoip\GeoIPCity.dat

not with Counter strike BUT l4d2. Connect announce 1.6 Plugin with latest Sourcemod 1.7.0 Release NON Development Branch
do you have that file there? and if so what is the filename including the extension? What OS is the server.
__________________
versatile_bfg is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-05-2015 , 17:21   Re: GeoIPCity
Reply With Quote #76

But wait a moment, is the record never freed?

PHP Code:
static cell_t sm_Geoip_Get_Record(IPluginContext *pCtx, const cell_t *params)
{
    
char *ip;
    const 
char *region;

    
// Grab the IP and strip the port
    
pCtx->LocalToString(params[1], &ip);
    
StripPort(ip);

    
// Retrive the matching record in the database
    
gir GeoIP_record_by_addr(giip);

    if (
gir)
    {
        
// Expose the data to SourceMod
        
region GeoIP_region_name_by_code(gir->country_codegir->region);

        
pCtx->StringToLocalUTF8(params[2], 45gir->city gir->city ""NULL);
        
pCtx->StringToLocalUTF8(params[3], 45region region ""NULL);
        
pCtx->StringToLocalUTF8(params[4], 45gir->country_name gir->country_name ""NULL);
        
pCtx->StringToLocalUTF8(params[5], 3gir->country_code gir->country_code ""NULL);
        
pCtx->StringToLocalUTF8(params[6], 4gir->country_code3 gir->country_code3 ""NULL);
    }

    
// Return true if we found a match from the IP
    
return gir 0;

GeoIPRecord_delete?
Can someone compile it for me (LINUX) so I can use it?

PHP Code:
bool found false;

if (
gir)
{
  
// do stuff

  
GeoIPRecord_delete(gir);
  
gir NULL;
  
found true;
}

return (
cell_t)found
__________________

Last edited by claudiuhks; 04-05-2015 at 17:24.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-06-2015 , 03:18   Re: GeoIPCity
Reply With Quote #77

claudiuhks: Nice catch, thanks! I'll post a new build soon.
__________________
GoD-Tony is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 04-06-2015 , 04:20   Re: GeoIPCity
Reply With Quote #78

The first post has been updated with v1.1.2 which fixes the above memory leak.
__________________
GoD-Tony is offline
Crazygamer34894
Senior Member
Join Date: Feb 2013
Location: Cape Town Western Cape
Old 04-06-2015 , 20:32   Re: GeoIPCity
Reply With Quote #79

Quote:
Originally Posted by versatile_bfg View Post
do you have that file there? and if so what is the filename including the extension? What OS is the server.
yeah guess what ??

uhhhhhh ..... i had SourceMod 1.7 NON Development Branch installed for l4d2 Windows SRCDS

and uh.... i installed "Connect Announce 1.6" didnt Detect the Extension or the .dat file. at first Default. then i re-named and worked ok. -___-

and ive just installed Geo IP City 1.12
__________________

Last edited by Crazygamer34894; 04-06-2015 at 20:33.
Crazygamer34894 is offline
Send a message via Yahoo to Crazygamer34894 Send a message via Skype™ to Crazygamer34894
legion9491
Junior Member
Join Date: Apr 2015
Old 04-22-2015 , 15:34   Re: GeoIPCity
Reply With Quote #80

Where does it get the information to print to the console/player screen?

I'm looking to add a kick if player isn't in the designated region based on player count
legion9491 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 10:24.


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