Resource icon

Approved GeoIP 2.2

No permission to download

tarynkelley

Moderator
Moderator
Nov 14, 2015
559
107
28
Parts Unknown
I'm sometimes receiving this error:

Code:
[GeoIP] Error: System.FormatException: Input string was not in the correct forma
t
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
  at GeoIP.GeoIP+IPData..ctor (System.String ip, System.String data, System.Stri
ng keyweneed) [0x00000] in <filename unknown>:0
  at GeoIP.GeoIP.GetDataOfIP (System.String ip) [0x00000] in <filename unknown>:
0
[GeoIP] Error: System.FormatException: Input string was not in the correct forma
t
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
  at GeoIP.GeoIP+IPData..ctor (System.String ip, System.String data, System.Stri
ng keyweneed) [0x00000] in <filename unknown>:0
  at GeoIP.GeoIP.GetDataOfIP (System.String ip) [0x00000] in <filename unknown>:
0
with this IP for example:

https://stats.pluton.team/PlutonGeoIP/?ip=46.16.37.195
 

tarynkelley

Moderator
Moderator
Nov 14, 2015
559
107
28
Parts Unknown
I suspect that a GeoIP query creates a small lag on the rust server. I see it with the CountryBlackList plugin for example. Everytime a player is joining and a GeoIP query is made, its lagging a little.

Is there any way to improve the performance or maybe also cache queries?
 
  • Agree
Reactions: PearlJ

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,469
113
At your house.
github.com

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
[GeoIP] Error: System.FormatException: Input string was not in the correct format
at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
at GeoIP.GeoIP+IPData..ctor (System.String ip, System.String data, System.String keyweneed) [0x00000] in <filename unknown>:0
at GeoIP.GeoIP.GetDataOfIP (System.String ip) [0x00000] in <filename unknown>:0
User Connected: (76561197962743659)



when i ban some player ,ban work ok ,but no kick
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
I keep getting NoneType error with:
Python:
try:
    import clr
    clr.AddReferenceByPartialName("Fougerite", "GeoIP")
    import Fougerite, GeoIP
    from GeoIP import GeoIP as RealGeoIP  
except:
    raise ImportError("Failed to reference the GeoIP.dll, Download from: http://fougerite.com/resources/geoip.135/")

geo = RealGeoIP.Instance
...
...
        IPData = geo.GetDataOfIP("123.2.112.41")
        if IPData is None:
            Util.Log("Bro, it's returning None")
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
on my server (frag-Ventrino) This plugin gives me 1-2 seconds of lag when connecting a player ... I decided not to use it.
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
on my server (frag-Ventrino) This plugin gives me 1-2 seconds of lag when connecting a player ... I decided not to use it.
How do you know it's this plugin? I don't think this plugin uses any type of on player connected hook
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
How do you know it's this plugin? I don't think this plugin uses any type of on player connected hook

as is this plugin ????? easy !!!!
;GeoIp = GeoIp and the problem of lag in the connection does not happen .... 100% problem is this plugin

I can invite you to my server to see yourself it's like I'm commenting
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,469
113
At your house.
github.com