Kodak 3 Posted February 19, 2015 (edited) Hi, as I am having occasional lags I was trying to put more entries into pinger's hosts to have any idea whether ISP has problem or WG has it (basically putting a host or two from a traceroute to WG servers). I wanted to create a mod for it: import pinger and add some entries to _ping.hosts. I have done that successfully but all the ping info in the game still show only two (EU) entries. Can someone give me a hint what am i doing wrong here? Thanks in advance. ... Config routine try: from xvm_main.python.pinger import _ping except ImportError: _ping = None if _ping: del _ping.hosts[1] for entry in _config.get("hosts", []): _ping.hosts.append({ 'Name': 'WOT ' + str(entry.get('name', 'unknown')), 'Url': str(entry.get('url', 'localhost'))}) DOLOG("pinger hosts: %s" % str(_ping.hosts)) else: DOLOG("no _ping object available") Edited February 19, 2015 by Kodak Quote Share this post Link to post Short link Share on other sites