MonsteHuntGold2- IP to country not working on server

Discussions about Servers

MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Mon Feb 13, 2017 9:23 am

Hi all

I've finally managed to get MH2Gold installed on one of our public servers which was running MH503.
Such a simple task but mega complicated for reasons I won't go on about.

I followed all of the instructions in the readme file but cannot get IP to Country working. I've clearly missed something. All of the mutators needed are added to MApvoteLA13 - Mutators="MonsterHunt2Gold.IP2Country,MonsterHunt2Gold ETC.
See screenshot attached - it says getting country and there are no names shown in the list.

Any help please?

Piley
Attachments
IP2country.jpg
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby Barbie » Mon Feb 13, 2017 9:53 am

Pileyrei wrote:it says getting country and there are no names shown in the list.
Does server's log file have helpful info?
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Barbie
Godlike
 
Posts: 1124
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Mon Feb 13, 2017 11:20 am

Hi Barbie

Thanks for the speedy reply!

Whilst looking through the log I checked my ini and the serverpackages needed were gone!
They were there before! :???:

ServerActors=MonsterHunt2Gold.LinkActor
ServerActors=MonsterHunt2Gold.ServerAdds
ServerPackages=MonsterHunt
ServerPackages=MonsterHunt2Gold

Just rebooted and now server cant find file "MonsterHunt2Gold.LinkActor"

I need to look into this again when home tonight.

Piley
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby Aldebaran » Mon Feb 13, 2017 11:48 am

You have to set up the LinkActor in your MonsterHunt2Gold.ini, perhaps you are using a server for Ip2Country that does not work anymore...
And you don't have to install the original Ip2Country separately, the one for MonsterHunt2Gold is enough.

Your ServerPackages/ServerActors settings are ok.
Last edited by Aldebaran on Fri Feb 17, 2017 1:29 am, edited 1 time in total.
Aldebaran
Adept
 
Posts: 376
Joined: Thu Jan 28, 2016 7:30 pm

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Mon Feb 13, 2017 12:49 pm

Hi Aldebaran

Thanks for the reply.
I found the [MonsterHunt2Gold.LinkActor] section in the ini - thanks.
As per the readme file it says don't touch and I haven't changed anything.

I really am losing my mind!

I did ServerPackages=MonsterHunt2Gold.LinkActor and not ServerActors=MonsterHunt2Gold.LinkActor :ironic:

I'm editing everything from my iPhone at work because my server setup is blocked on our network - no copy paste on the phone, typing it in.

Anyway, server is up now and I will test again tonight. I suspect it will all be fine. Will confirm.
Thank you for helping the UT99 idiot :oops:

Piley
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby JackGriffin » Mon Feb 13, 2017 1:33 pm

Don't ever be afraid to email me directly P. I'll help you with anything you need. Give me server access and I'll fix it for you. So many times it's something incredibly simple like a typo that you just don't see but someone with fresh eyes will notice immediately. We've all done that for each other over the years.
Relocating to Cherno.... Friendly! Friendly! <BLAM BLAM>....grrrr....
JackGriffin
Godlike
 
Posts: 3016
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Mon Feb 13, 2017 2:28 pm

JackGriffin wrote:Don't ever be afraid to email me directly P. I'll help you with anything you need. Give me server access and I'll fix it for you. So many times it's something incredibly simple like a typo that you just don't see but someone with fresh eyes will notice immediately. We've all done that for each other over the years.


What gentleman you are :tu:

Let me see how I get on tonight, hopefully all is good now.

EDIT:

Well IP2Country works nicely now :)

But now the server is crashing any time from 10 seconds to say a minute on join.

Looking at the log I think the IP2Country is the culprit: (ignore the CTF map name - its default after a reboot)
Too many timeouts crash the server

ScriptLog: [IpToCountry] iptocountry.ut-files.com timed out after 10 seconds
ScriptLog: [IpToCountry] iptocountry.ut-files.com failed! Trying the alternate server...
ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
ScriptLog: [IpToCountry] Error while resolving the host http://www.ut-slv.com
ScriptLog: [IpToCountry] http://www.ut-slv.com failed! Trying the alternate server...
ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
ScriptLog: [IpToCountry] Error while resolving the host utgl.unrealadmin.org
ScriptLog: [IpToCountry] utgl.unrealadmin.org failed! Trying the alternate server...
ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
ScriptLog: [IpToCountry] Error while resolving the host iptocountry.ut-files.com
ScriptLog: [IpToCountry] iptocountry.ut-files.com failed! Trying the alternate server...
ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
ScriptLog: [IpToCountry] Error while resolving the host http://www.ut-slv.com
ScriptLog: [IpToCountry] http://www.ut-slv.com failed! Trying the alternate server...
ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
ScriptLog: [IpToCountry] Error while resolving the host utgl.unrealadmin.org
ScriptLog: [IpToCountry] utgl.unrealadmin.org failed! Trying the alternate server...
ScriptLog: [IpToCountry] No data was received during the last session; will attempt to re-resolve utgl.unrealadmin.org upon HTTP client reload.
ScriptLog: [IpToCountry] Too many HTTP errors in one session, HTTP client restarting.
Log: Resolving utgl.unrealadmin.org...
Log: CheckConnectionAttempt: Error while checking socket status

EDIt # 2:

Removed ServerActors=MonsterHunt2Gold.LinkActor
100% causes server crash due to (DNS?) timeouts.
Server stays up if I remove it.

Hmm. What can I do? :(
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby JackGriffin » Tue Feb 14, 2017 2:50 pm

I need to see the rest of your setup. Zip up your ini's: ut, monsterhunt, and mapvote (maybe the server startup batch file too) and email them to me. You are welcome to strip the passwords, etc if that makes you feel better.
Relocating to Cherno.... Friendly! Friendly! <BLAM BLAM>....grrrr....
JackGriffin
Godlike
 
Posts: 3016
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: Hack coder

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Tue Feb 14, 2017 4:56 pm

Thanks Jack - will email to you.

FWIW, our provider setup has always been challenging for want of a better word.
The fact that things never work first time and need all sorts of tweaks to make the most simplest of things work never surprises me.
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby sektor2111 » Tue Feb 14, 2017 8:18 pm

Apology for my entrance here but you have captured my attention with IpToCountry things.

A few time ago I did some changes to this server-tool converting it mainly to states rather than ticks and multiple "GetItemName" queries. Let me share results and techs.
LinkActor spawn as addon as a mutator, or this mutator has to be loaded where ever it needs to be (MapVote, etc). Without mutator nothing is retrieved. Mutator does a slow loop for Playerpawn owning some CData actor. If exist this data actor it will be completed with country things. Once Country things completed (or not) We have a broadcast and a log. Why these ? Ohhh well, It seems like in a server with mapvote and all sort of mutate based things, such an actor refuses to work at mutate command but not in a simple server with less stuff, LOL. However, actor owned by player contains country info - it goes to garbage in 3 seconds if owner is missing. In a simple server (with less mutators) country attempts to get solved and mutate do works with any matter - said attempt because a LAN address bugs things if INI is not completed manually for LAN addresses - OR I have to update IP database with info toward 192.168.x.x family by default.
What I feel is like an improvement since at least I have a log and Screen-Info coming shortly even if Mutate command do sucks.
If you wanna check or play around this is Code - I'm interested about any improvements that can be done.
IpToCountry_st_Source.zip
Directly dependant on Ip2Country internal mutator and using LinkActor as ServerActor.
(7.27 KiB) Downloaded 6 times

Edit:For future probably this tool might be good to trigger player in this operation and preventing server to create other connections than it needs, and getting data directly from player itself...
Underground Location.
User avatar
sektor2111
Godlike
 
Posts: 2452
Joined: Sun May 09, 2010 6:15 pm
Location: Into personal private location.
Personal rank: 0.11

Re: MonsteHuntGold2- IP to country not working on server

Postby Barbie » Tue Feb 14, 2017 9:13 pm

Pileyrei wrote:ScriptWarning: HTTPClient CTF-'FTBRun&Gun.HTTPClient0 (Function MonsterHunt2Gold.HTTPClient.DoBind:000A) BindPort: already bound
This message means that another process has opened that port already. My guess is that your server has loaded a certain Actor twice or even multiple times. Check section [Engine.GameEngine] for duplicates. Also check that the server is not running twice by accident (that happened here a few times).
Pileyrei wrote:
UdpServerUplink.jpg
UdpServerUplink.jpg (11.48 KiB) Viewed 235 times
I hope the
Code: Select all
HTTP://
part is created by forum parser? I'm not really sure but I think that addresses for the http service have to be without the leading protocol prefix "http://".
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Barbie
Godlike
 
Posts: 1124
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: MonsteHuntGold2- IP to country not working on server

Postby sektor2111 » Tue Feb 14, 2017 11:57 pm

Yup... I see often UT using host-name without "http://" (in mapvote too) because those are automated and address gets screwed...
Underground Location.
User avatar
sektor2111
Godlike
 
Posts: 2452
Joined: Sun May 09, 2010 6:15 pm
Location: Into personal private location.
Personal rank: 0.11

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Wed Feb 15, 2017 10:13 am

Thanks Barbie and Sektor.

Here is my Game Engine section - I don't see any duplicates:

    [Engine.GameEngine]
    CacheSizeMegs=8
    UseSound=False
    ServerActors=IpDrv.UdpBeacon
    ServerActors=IpServer.UdpServerQuery
    ServerActors=IpServer.UdpServerUplink MasterServerAddress=utmaster.epicgames.com MasterServerPort=27900
    ServerActors=UWeb.WebServer
    ServerPackages=SoldierSkins
    ServerPackages=CommandoSkins
    ServerPackages=FCommandoSkins
    ServerPackages=SGirlSkins
    ServerPackages=BossSkins
    ServerPackages=TCowMeshSkins
    ServerPackages=TNaliMeshSkins
    ServerPackages=tskmskins
    ServerPackages=epiccustommodels
    ServerPackages=Botpack
    ServerPackages=multimesh
    ServerPackages=Female1Skins
    ServerPackages=Female2Skins
    ServerPackages=Male1Skins
    ServerPackages=Male2Skins
    ServerPackages=Male3Skins
    ServerPackages=SkTrooperSkins
    ServerPackages=ServerSpam
    ServerPackages=MonsterHunt
    ServerPackages=MonsterHunt2Gold
    //ServerActors=MonsterHunt2Gold.LinkActor
    ServerPackages=NWCoreVIII
    ServerPackages=NWMHExtrasVIII
    ServerPackages=NWExtrasVIII
    ServerPackages=NWModifiersVIII
    ServerPackages=NWBoltRifleVIII
    ServerPackages=NWCybotLauncherVIII
    ServerPackages=NWFlameTrackerVIII
    ServerPackages=NWFreezerVIII
    ServerPackages=NWGravitonVIII
    ServerPackages=NWIonizerVIII
    ServerPackages=NWIRPRVIII
    ServerPackages=NWMegatonVIII
    ServerPackages=NWMultiMissileVIII
    ServerPackages=NWNuclearFXVIII
    ServerPackages=NWNuclearLauncherVIII
    ServerPackages=NWRTVIII
    ServerPackages=NWSuperBoltRifleVIII
    ServerPackages=NWTheExecutionerVIII
    ServerPackages=NWTheMinerVIII
    ServerPackages=NWTheOversurrectorVIII
    ServerPackages=NWUltimaProtosVIII
    ServerPackages=NWVulcanVIII
    ServerPackages=NWWREVIII
    ServerActors=MODOSUtilsV25.SplashLogoSA
    ServerPackages=MODOSUtilsV25
    ServerActors=UTIntLogger.UTILActor
    ServerActors=AutoTeamBalance.AutoTeamBalance
    ServerActors=ServerCrashFix_v11.SCFActor
    ServerPackages=MapVoteLA13
    ServerActors=MvReporterXR3p.MvReporter
    ServerPackages=SendTo_v07c
    ServerActors=SendTo_v07c.STWActor
    ServerActors=NPLoader_v16b.NPLActor
    ServerActors=ACEv08h_S.ACEActor
    ServerActors=ACEv08h_EH.ACEEventActor
    ServerPackages=NPLoader_v16b
    ServerPackages=NPLoaderLLU_v16b
    ServerPackages=NPLoaderLLD_v16b
    ServerPackages=NPLoaderLLS_v16b
    ServerPackages=ACEv08h_Cdll
    ServerPackages=IACEv08c
    ServerPackages=ACEv08h_C
    ServerActors=ACE2MVR01.HWIDReporter

And from the Mh2Gold ini:


[MonsterHunt2Gold.LinkActor]
QueryServerHost[0]=iptocountry.ut-files.com
QueryServerHost[1]=www.ut-slv.com
QueryServerHost[2]=utgl.unrealadmin.org
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=/iptocountry/iptocountry16.php
QueryServerFilePath[2]=/iptocountry16.php
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=64.34.170.212
resolvedAddress[1]=216.97.239.125
resolvedAddress[2]=85.236.100.16
resolvedAddress[3]=
MaxTimeout=10
ErrorLimit=5
bNeverPurgeAddress=False
bSpawnAddon=True
IPData[0]=
IPData[1]=
IPData[2]=
SNIP**

I guess it is a forum parser - the http://

Piley
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: MonsteHuntGold2- IP to country not working on server

Postby Barbie » Wed Feb 15, 2017 11:26 am

Whow, a heavy loaded server... ;o) I did not detect duplicates neither.

Just some remarks; most of the packages I've never heard of, nor G00gle put out useful infos for it:
  • NPLoader/ACE: Aren't this anti cheat tools? You use it for MonsterHunt? Do players cheat to get a higher score? oO
  • AutoTeamBalance: Sure that this is useful for MonsterHunt?
Pileyrei wrote:[MonsterHunt2Gold.LinkActor]
QueryServerHost[0]=iptocountry.ut-files.com
QueryServerHost[1]=www.ut-slv.com
QueryServerHost[2]=utgl.unrealadmin.org
See thread Notes to IpToCountry services: <PleaseNoAutoHTTP-thanks>www.ut-slv.com</PleaseNoAutoHTTP-thanks> has been unavailable since ... (years?)
---
PS: In fact the silly forum parser makes
Code: Select all
www.anything
to
Code: Select all
http://www.anything
on preview or submitting. Workaround by
Code: Select all
[size=1]anytext[/size]www.anything
anytext
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Barbie
Godlike
 
Posts: 1124
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: MonsteHuntGold2- IP to country not working on server

Postby Pileyrei » Wed Feb 15, 2017 11:37 am

Thanks Barbie!

Yes lots of packages! I need at least NW3 and MH2Gold. NW3 has all those packages so I can't help that.
I take your point about ACE....lol......don't really need it I suppose. Team balancer as well.

I will have a tidy up and post again. There are a few other things I can remove.

:tu:
http://www.unrealsurvivors.com

Deck 16 only All Weapons: 173.199.74.15:7777


Donate to UT99.org!
Pileyrei
Adept
 
Posts: 474
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Next

Return to Servers

Who is online

Users browsing this forum: No registered users and 2 guests