BrowserFix

Discuss and provide feedback on Maps.
Post Reply
User avatar
captainsnarf
Posts: 2713
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

BrowserFix

Post by captainsnarf »

BrowserFix - Fix those pesky question marks in the browser list when your netspeed is greater than 10000.

Download here BrowserFix.zip

Usage

1) Edit User.ini file.

2) Replace the default RulesListBoxClass with "BrowserFix.BrowserFix" class. Example

[GUI2K4.UT2k4Browser_ServerListPageInternet]
;RulesListBoxClass=GUI2K4.UT2K4Browser_RulesListBox
RulesListBoxClass=BrowserFix.BrowserFix

[GUI2K4.UT2k4Browser_ServerListPageFavorites]
;RulesListBoxClass=GUI2K4.UT2K4Browser_RulesListBox
RulesListBoxClass=BrowserFix.BrowserFix

[GUI2K4.UT2k4Browser_ServerListPageLAN]
;RulesListBoxClass=GUI2K4.UT2K4Browser_RulesListBox
RulesListBoxClass=BrowserFix.BrowserFix

[GUI2K4.UT2k4Browser_ServerListPageBuddy]
;RulesListBoxClass=GUI2K4.UT2K4Browser_RulesListBox
RulesListBoxClass=BrowserFix.BrowserFix

Since this is adding an unknown class, it will probably get flagged by antitcc. Hopefully we can get this whitelisted.

here is the code

Code: Select all

// work around netspeed > 10000 issue with server list

class BrowserFix extends UT2K4Browser_RulesListBox;

var int SavedNetSpeed;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    Super.Initcomponent(MyController, MyOwner);
    SavedNetSpeed=class'Engine.Player'.default.ConfiguredInternetSpeed;
    PlayerOwner().ConsoleCommand("netspeed 9999");
}

event Free()
{
    PlayerOwner().ConsoleCommand("netspeed "$SavedNetSpeed);
    super.Free();
}

defaultproperties
{
}
User avatar
infinitecat
Posts: 144
Joined: Tue Jun 08, 2021 3:02 pm
Location: Dallas

Re: BrowserFix

Post by infinitecat »

Thanks for looking into this, Cap'n!
User avatar
pooty
Posts: 4535
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: BrowserFix

Post by pooty »

We should be ok from an AntiTCC perspective since we know about it.
And its not replacing GUI2K4 anywhere else just browser?
User avatar
Anonymous.
Posts: 372
Joined: Sat Jun 12, 2021 10:54 pm

Re: BrowserFix

Post by Anonymous. »

Nice, thanks
User avatar
captainsnarf
Posts: 2713
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: BrowserFix

Post by captainsnarf »

pooty wrote: Mon Apr 10, 2023 11:01 pm We should be ok from an AntiTCC perspective since we know about it.
And its not replacing GUI2K4 anywhere else just browser?
Yeah. You can see from the code and setup it just replaces the rules listbox specifically.
User avatar
captainsnarf
Posts: 2713
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: BrowserFix

Post by captainsnarf »

New version! Download here BrowserFix_1.1.zip

Sometimes my netspeed would get stuck at the 9999 browserfix value. This version should fix that issue.
User avatar
captainsnarf
Posts: 2713
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: BrowserFix

Post by captainsnarf »

There is a new fix for this. It does not require BrowserFix anymore. To fix the server browser, make this change to User.ini

Code: Select all

[XInterface.GUIController]
MaxSimultaneousPings=35
It is recommended you do this instead of install BrowserFix as it triggers AntiTCC.
Post Reply