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

Module: GeoIP+ (v1.3)


Post New Thread Reply   
 
Thread Tools Display Modes
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-03-2016 , 05:48   Re: Module: GeoIP+ (v1.2)
Reply With Quote #201

@Arkshine - Can you please post the sources? I need to see how you implemented the API. Thanks.
souvikdas95 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-03-2016 , 06:04   Re: Module: GeoIP+ (v1.2)
Reply With Quote #202

As it has been said in the first post, the module in 1.8.3-dev is already updated with this. So, you can see source code on github. This version is just to add compatibility​ with 1.8.2.
__________________

Last edited by Arkshine; 05-03-2016 at 06:05.
Arkshine is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-06-2016 , 07:58   Re: Module: GeoIP+ (v1.2)
Reply With Quote #203

I just looked up the core routine responsible for finding find the entry corresponding to ip provided. If it's not too much to ask for, especially considering that Maxmind is the one who created this API for traversing through the database, can you explain to me how this routine "find_address_in_search_tree" works exactly?
Thanks.

Last edited by souvikdas95; 05-06-2016 at 07:59.
souvikdas95 is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 09-21-2016 , 14:42   Re: Module: GeoIP+ (v1.2)
Reply With Quote #204

Thanks Arkshine

I've found something, when I use the fake bot of deathrun mod, with your module on, the server crashes. Ideas?

Edit, I've found the problem, It's the plugin country_kicker: https://forums.alliedmods.net/showthread.php?p=97613

Edit 2, I was wrong, It's the combination between country_kicker, your module, and deathrun mod (the fake bot causes the crash)

Sorry for the post!

Last edited by sigerman; 09-22-2016 at 18:13.
sigerman is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-23-2016 , 20:08   Re: Module: GeoIP+ (v1.2)
Reply With Quote #205

Quote:
Originally Posted by sigerman View Post
Edit 2, I was wrong, It's the combination between country_kicker, your module, and deathrun mod (the fake bot causes the crash)
May be a easy to solve, remove country_kicker and use a high ping kicker and a cvar checker.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 09-23-2016 , 20:22   Re: Module: GeoIP+ (v1.2)
Reply With Quote #206

Quote:
Originally Posted by addons_zz View Post
May be a easy to solve, remove country_kicker and use a high ping kicker and a cvar checker.
Without country_kicker the server works fine, I've already test that, the problem is, I want to use that mod. I will investigate more, and post my trouble in the thread of country kicker. Thanks for reading. Sorry for bothering.
sigerman is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 10-30-2016 , 09:34   Re: Module: GeoIP+ (v1.2)
Reply With Quote #207

Quote:
Originally Posted by Arkshine View Post
It's not like I don't trust you, but when you declare it in modules.ini, you get a bad load either the module could not be loaded (a real error, like it fails to load specifically under your system), or file doesn't exist in /modules directory.

You can try to set in server.cfg:

log on
meta_debug 8

EDIT: After setting cvars, try first : meta load geoip_amxx_i386.so
Then stop/start your server, then change the map, and paste here the server log from the start. It should give some message if a module could not be loaded or doesn't exist.
Code:
L 10/30/2016 - 15:31:43: [AMXX] Module "cstrike/addons/amxmodx/modules/geoip_amxx_i386.so" failed to load (cstrike/addons/amxmodx/modules/geoip_amxx_i386.so: undefined symbol: sin)
L 10/30/2016 - 15:31:43: Error:
L 10/30/2016 - 15:31:43: [AMXX] Module is not a valid library (file "cstrike/addons/amxmodx/modules/geoip_amxx_i386.so")
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-30-2016 , 10:52   Re: Module: GeoIP+ (v1.2)
Reply With Quote #208

Looks like it misses some linking (likely libm). Will try to update module asap.
__________________
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-31-2016 , 16:27   Re: Module: GeoIP+ (v1.3)
Reply With Quote #209

@bLacK-bLooD : I've updated the module and while I was on it, redid the changes from latest AMXX dev version, updated the maxmind library as well, and created a repository on Github : https://github.com/Arkshine/geoip-plus. Please check if your issue happens again (1.3 you can download from https://github.com/Arkshine/geoip-plus/releases).
__________________

Last edited by Arkshine; 10-31-2016 at 16:28.
Arkshine is offline
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 11-01-2016 , 06:02   Re: Module: GeoIP+ (v1.3)
Reply With Quote #210

Quote:
Originally Posted by Arkshine View Post
@bLacK-bLooD : I've updated the module and while I was on it, redid the changes from latest AMXX dev version, updated the maxmind library as well, and created a repository on Github : https://github.com/Arkshine/geoip-plus. Please check if your issue happens again (1.3 you can download from https://github.com/Arkshine/geoip-plus/releases).
It works now, thanks for the update!
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD 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 07:15.


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