Client crashes with a faulty DNS resolution
Recently my ISP, Comcast, suffered a DNS server "outage" which prevented me from playing TribesNext online. I understand.. it happens, so I opted for a LAN-only day of it when I discovered that TN crashes when it doesn't have internet access or without DNS even in LAN-only mode.
Without much else to do I decided to chase down the bug. I ended up in file t2csri_list.cs at line 339. It seems that a TN client will crash whenever that local variable %server is used while empty.
I'm going to hazard a suggestion by replacing all of line 339 in file t2csri_list.cs with this instead;
Best wishes.
-- jimmy
Without much else to do I decided to chase down the bug. I ended up in file t2csri_list.cs at line 339. It seems that a TN client will crash whenever that local variable %server is used while empty.
I'm going to hazard a suggestion by replacing all of line 339 in file t2csri_list.cs with this instead;
if (%server !$= "") { %this.connect(%server); }
Best wishes.
-- jimmy
Comments
Unfortunately, there is only one real way to test if DNS is functional, and that is to try to resolve an address.
However it works out in the end, perhaps the script can be safely avoided all together if the global variable $arg does not equal "-online" since everything in that script hinges on an active internet connection anyway?
Something like this at the top of the file to prevent its execution when the client is using -nologin;
I think that was why I had the impression that my original suggestion had worked when in fact it had no affect at all. WTF! How irritating.
Using Writers support.vl2 to load a little script that does nothing but call TNbite::get(); after t2csri_list.cs is loaded.. everything original runs just fine. Now that crap isn't working either. That makes about as much sense to me as drinking a whole pot of coffee just before bed.