Missing Country Flags

Discussions about UT99
Buggie
Godlike
Posts: 2697
Joined: Sat Mar 21, 2020 5:32 am

Re: Missing Country Flags

Post by Buggie »

From my experience this is a problem with database file. Some players work. Some not.
Buggie
Godlike
Posts: 2697
Joined: Sat Mar 21, 2020 5:32 am

Re: Missing Country Flags

Post by Buggie »

Barbie wrote: Tue Feb 15, 2022 3:36 pm Any ideas? :noidea
Need debug then. Get some IPs which not detected, check in database.
If it fine, need go next and check code for understand why it is not work.
If not fine, need search more fresh db.
Also some players show correctly. Some other players too. So I think base is outdated or broken or in wrong format after some records.
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Barbie wrote: Tue Feb 15, 2022 3:36 pmthe last months the country flags are not all visible anymore in network play
I've found the reason: the first given lookup server in server's IpToCountry.ini was "www.wharthog.com" which has not responded since mid 2021. IpToCountry should have tried the next given items in the list but it seems that does not work.
Now the first entry (that means it is at index 0) is a working service and the country flags work again.

(See also List of working IpToCountry services.)
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Hitman
Adept
Posts: 281
Joined: Mon Aug 16, 2010 11:01 am
Location: Sweden
Contact:

Re: Missing Country Flags

Post by Hitman »

Seams like most dont respond so atm I only 1 left, is there some guide to set it up yourself since I have a server-machine?

[IpToCountry.LinkActor]
QueryServerHost[0]=utgl.unrealadmin.org
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=170.249.236.23
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Hitman wrote: Wed Sep 07, 2022 5:18 pm Seams like most dont respond so atm I only 1 left, is there some guide to set it up yourself since I have a server-machine?
In 2016 I started the thread Notes to IpToCountry services and updated it in March 2022 the last time.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Que
Inhuman
Posts: 781
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: Missing Country Flags

Post by Que »

So are we down to 1 server for iptocountry?
Unrealadmins.org?
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Que wrote: Thu Sep 08, 2022 12:11 am So are we down to 1 server for iptocountry?
Unrealadmins.org?
:omfg:
Do you refer to Hitman's post?
I rechecked the IpToCountry services today and found 4 working ones.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Hitman
Adept
Posts: 281
Joined: Mon Aug 16, 2010 11:01 am
Location: Sweden
Contact:

Re: Missing Country Flags

Post by Hitman »

Barbie wrote: Thu Sep 08, 2022 11:45 am
Que wrote: Thu Sep 08, 2022 12:11 am So are we down to 1 server for iptocountry?
Unrealadmins.org?
:omfg:
Do you refer to Hitman's post?
I rechecked the IpToCountry services today and found 4 working ones.
Still confusing for some, can you put up a copy off your own working settings?
User avatar
Que
Inhuman
Posts: 781
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: Missing Country Flags

Post by Que »

here's mine;

Code: Select all

[ipToCountry.LinkActor]
QueryServerHost[0]=iptocountry.ut-files.com
QueryServerHost[1]=iptocountry.unrealteam.de
QueryServerHost[2]=www.unrealkillers.com
QueryServerHost[3]=utgl.unrealadmin.org
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=/iptocountry16.php
QueryServerFilePath[2]=/iptocountry/iptocountry16.php
QueryServerFilePath[3]=/iptocountry16.php
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=192.111.155.210
resolvedAddress[1]=188.68.47.21
resolvedAddress[2]=172.67.137.125
resolvedAddress[3]=158.106.137.11
MaxTimeout=10
ErrorLimit=5
bNeverPurgeAddress=False
bSpawnAddon=True
looks like this release has files for you to setup your own server;

Image Image

Note: there's nothing in the .logs to indicate which server IPToCountry is connected to or querying.
provided the sources inside attached file perhaps someone could output a few lines to the .log file indicating which server is being utilized and if any problems connecting
to query servers then output that info also to the .logs.

Automatically merged

For some reason Iptocountry gets some players countries totally wrong. No idea why.

Automatically merged

Barbie wrote: Thu Sep 08, 2022 11:45 am I rechecked the IpToCountry services today and found 4 working ones.
How did you check them.. just manually through webbrowser?
Attachments
ipToCountry-1.6.zip
(961.62 KiB) Downloaded 6 times
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Que wrote: Sat Sep 10, 2022 3:02 am How did you check them.. just manually through webbrowser?
Yep. Recently I have added a link named test where it can be tested by web browser easily.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Hitman
Adept
Posts: 281
Joined: Mon Aug 16, 2010 11:01 am
Location: Sweden
Contact:

Re: Missing Country Flags

Post by Hitman »

It seams that if the first server in line get a lag/hickup it dont jump to the next so it shows some other flag, so I created my own on the machine we rent (in Germany) and all works perfect so far.
QueryServerHost[0]=unrealmayhem.com
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=176.9.104.176
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Hitman wrote: Sat Sep 10, 2022 5:02 pm It seams that if the first server in line get a lag/hickup it dont jump to the next so it shows some other flag
Yep, a bug in IpToCountry, as I wrote above.

Automatically merged

I think I found the error: switching to next server is only done when DNS resolving fails.
If there is already an IP address stored in IpToCountry.ini ("resolvedAddress") for that server, DNS resolving does not happen and next server is never taken.
Workaround: set all 4 variables resolvedAddress to an empty string and write protect IpToCountry.ini.
Example for IpToCountry.ini

Code: Select all

[IpToCountry.LinkActor]
QueryServerHost[0]=unrealkillers.com
QueryServerHost[1]=utgl.unrealadmin.org
QueryServerHost[2]=iptocountry.ut-files.com
QueryServerHost[3]=forum.gameclan.pl
QueryServerFilePath[0]=/iptocountry/iptocountry16.php
QueryServerFilePath[1]=/iptocountry16.php
QueryServerFilePath[2]=/iptocountry16.php
QueryServerFilePath[3]=/iptocountry/index.php
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
MaxTimeout=10
ErrorLimit=5
bNeverPurgeAddress=False
bSpawnAddon=True
IPDataIndex=0
resolvedAddress[0]=
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Que
Inhuman
Posts: 781
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...
Contact:

Re: Missing Country Flags

Post by Que »

But what about all the data that fills the ini with the 255 entries?

What are these for?
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
User avatar
Barbie
Godlike
Posts: 2792
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Missing Country Flags

Post by Barbie »

Que wrote: Sat Sep 10, 2022 10:07 pm But what about all the data that fills the ini with the 255 entries?

What are these for?
Do you mean var config string IPData[256];? These are cache entries for client's IP, hostname and country. Once determined, the entries stays in memory until next server restart/next map (not sure) regardless of a write protected INI file so that the performance impact should be neglectable.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Post Reply