Master server shutting down on Jan 24th

General Comments, Questions about all things OmnipotentS that don't go in other topics/forums
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Master server shutting down on Jan 24th

Post by captainsnarf »

I was holding out on making a mutator myself. i didn't want to steal concord's thunder! :) I'll try making one that simply changes the value without any prompts, spectate mode, or other stuff.
User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by pooty »

Yeah its not like there's any reason or value to keep the old master servers anyway after the 24th.
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Master server shutting down on Jan 24th

Post by captainsnarf »

Download here! SimpleServerSwitcher.zip

It could be simplified (I was trying stuff) but seems to work ok

Code: Select all


class MutSimpleServerSwitcher extends Mutator;

var bool bSwitched;

replication
{
    reliable if(Role == ROLE_Authority)
        ClientUpdateToGameSpy;
}

simulated function bool IsUpdatedToGameSpy()
{
    return class'IpDrv.MasterServerLink'.default.MasterServerList.Length == 1 &&
    class'IpDrv.MasterServerLink'.default.MasterServerList[0].Address == "utmaster.openspy.net";
}

simulated function UpdateToGameSpy()
{
    class'IpDrv.MasterServerLink'.default.MasterServerList.Length = 1;
    class'IpDrv.MasterServerLink'.default.MasterServerList[0].Address = "utmaster.openspy.net";
    class'IpDrv.MasterServerLink'.default.MasterServerList[0].Port = 28902;
    class'IpDrv.MasterServerLink'.static.StaticSaveConfig();
}

simulated function ClientUpdateToGameSpy()
{
    if(Role == ROLE_Authority)
        return;

    if(!IsUpdatedToGameSpy())
        UpdateToGameSpy();
}

simulated function Tick(float DT)
{
    super.Tick(DT);
    if(Role < ROLE_Authority && !bSwitched)
    {
        ClientUpdateToGameSpy();
        Disable('Tick');
        bSwitched=true;
    }
}

defaultproperties
{
    FriendlyName="Simple Server Switcher"
    Description="Simple Server Switcher changes the players master server configuration from Epic to OpenSpy"
    RemoteRole=ROLE_SimulatedProxy
    bNetTemporary=true
    bAlwaysRelevant=true
    bAddToServerPackages=True
    bSwitched=False
}
User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by pooty »

Do we want to display a screen message?
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Master server shutting down on Jan 24th

Post by captainsnarf »

pooty wrote: Mon Jan 09, 2023 10:19 am Do we want to display a screen message?
That's probably a good idea. I noticed we have a new server message already that says something like 'be sure to change your master server list! check forum!' We could update it to instead say 'your master server has been switched to OpenSpy. check forum!'
User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by pooty »

Yeah that works. If they don't bother to read, they probably won't bother to change it and then wonder why they can't see the server... ;)

I'll update the server with it later today.
User avatar
Enyo
Posts: 1626
Joined: Mon Apr 05, 2021 11:27 pm
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by Enyo »

pooty wrote: Mon Jan 09, 2023 11:49 am Yeah that works. If they don't bother to read, they probably won't bother to change it and then wonder why they can't see the server... ;)

I'll update the server with it later today.
With snarf's server switcher mod, could you make it required to change their master server to OpenSpy before they're allowed to join the game? Force them to click the button before it let's them join? Seems like that would be the easiest solution to make sure everyone switches.
“Never argue with stupid people, they will drag you down to their level and then beat you with experience.”
― Mark Twain
User avatar
captainsnarf
Posts: 2632
Joined: Tue Jul 06, 2021 1:51 pm
Location: Washington
Server Sponsor: Yes
Server Admin: Yes
Contact:

Re: Master server shutting down on Jan 24th

Post by captainsnarf »

There is nothing to click. When they join our server, their master gets switched. We don't ask :twisted: :D
User avatar
Enyo
Posts: 1626
Joined: Mon Apr 05, 2021 11:27 pm
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by Enyo »

captainsnarf wrote: Mon Jan 09, 2023 1:54 pm There is nothing to click. When they join our server, their master gets switched. We don't ask :twisted: :D
Even better! What they don't know doesn't hurt them.
“Never argue with stupid people, they will drag you down to their level and then beat you with experience.”
― Mark Twain
User avatar
pooty
Posts: 4358
Joined: Sat Apr 03, 2021 10:22 am
Location: Michigan
Server Sponsor: Yes
Server Admin: Yes

Re: Master server shutting down on Jan 24th

Post by pooty »

Its active on the server. I think it was active yesterday (after a crash) since I changed the command line but didn't restart since folks were on.
Post Reply