Server setting for time between mapvote and loading next map

Discussions about Servers
Aldebaran
Masterful
Posts: 672
Joined: Thu Jan 28, 2016 7:30 pm

Server setting for time between mapvote and loading next map

Post by Aldebaran »

I am looking for a server value that defines the pause time after finished mapvote and start loading the voted map, so people don't have to wait these 5-6 seconds where nothing is be done.
I looked already in nexgen-ini, mapvote-ini and server-ini but can't find a matching value for it, but I saw some other servers have shortened this waiting period.
First I thought ServerTravelPause in server-ini should be that what I am looking for but it seems not.
User avatar
Barbie
Godlike
Posts: 2770
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Server setting for time between mapvote and loading next

Post by Barbie »

I have never noticed that there is a pause after a (means more than 50%) voting and loading the map. :what:

Example of log:
ucc.init.log wrote:[ EVENT ] The game has ended after 1073 sec.
[MESSAGE] 50 seconds left to vote.
Barbie has voted for MH-Omni-[Rage]
[MESSAGE] Barbie voted for MH-Omni-[Rage]
STomper2008 has voted for MH-Omni-[Rage]
[MESSAGE] STomper2008 voted for MH-Omni-[Rage]
KillerGirl has voted for MH-Omni-[Rage]
[MESSAGE] KillerGirl voted for MH-Omni-[Rage]
[MESSAGE] MH-Omni-[Rage] has won.
(no pause detected here)
ProcessServerTravel: MH-Omni-[Rage].unr?game=BarbiesWorld.MonsterHunt
NotifyAcceptingConnection: Server MyLevel refused
NotifyAcceptingConnection: Server MyLevel refused
...
<EDIT>
What's the address of your server that we could have a look?
</EDIT>
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Aldebaran
Masterful
Posts: 672
Joined: Thu Jan 28, 2016 7:30 pm

Re: Server setting for time between mapvote and loading next

Post by Aldebaran »

Ok then something else happens in this time, perhaps this time period is greater if the map needs longer to load serverside.
Today I realized on a Bunnytrack server that this time after finished voting was very short before the screen gets black with the loading message, so I thought this could be configurable.
I tested it once more and the waiting time was only about 4 seconds, so it is not a big issue for me now... my fault :-)
Perhaps I was too fast asking here.
ShaiHulud
Adept
Posts: 459
Joined: Sat Dec 22, 2012 6:37 am

Re: Server setting for time between mapvote and loading next

Post by ShaiHulud »

You might want to investigate NextSwitchCountdown in LevelInfo.uc. I tested this by setting it to 0 in my custom GameType, and it reduced the map switch time from around 17 seconds to about 7. But do so advisedly!

Code: Select all

float  NextSwitchCountdown  Amount of time to wait before traveling to next map, gives clients time to receive final RPCs
...so there could potentially be end-of-level clean-up issues here if the period is foreshortened drastically (I guess?).

I see (via a Google search for NextSwitchCountdown - with "Verbatim" turned on) that Wormbo has a UT2004 actor called "RandomMapSwitcher", which includes a class called InstantRandomMapSwitch, and inside of that class this script segment (see the note in the final line):

Code: Select all

function PickRandomMapFromList(MapList List)
{
  local array<string> Maps;

  Maps = List.GetMaps();
  log("Randomly picking from a list of " $ Maps.Length $ " maps.", 'CrashRecovery');
  Level.ServerTravel(Maps[Rand(Maps.Length)], false);
  Level.NextSwitchCountdown = 0; // instant map change
}
User avatar
Deepu
Adept
Posts: 350
Joined: Mon Nov 11, 2013 7:56 am
Personal rank: Average
Location: India

Re: Server setting for time between mapvote and loading next

Post by Deepu »

Try this server 89.163.253.19:7777, after vote completed it will switch faster..
Pileyrei
Masterful
Posts: 745
Joined: Tue May 05, 2009 3:10 pm
Personal rank: UT Survivor

Re: Server setting for time between mapvote and loading next

Post by Pileyrei »

I think I know where this setting is as Ive seen some our old servers switch levels almost immediately after the vote etc.

Will post back.
Image

Our Server
Image

[donate][/donate]
Donate to UT99.org!
User avatar
sektor2111
Godlike
Posts: 6397
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Server setting for time between mapvote and loading next

Post by sektor2111 »

Are you talking about ServerTravelPause ? That's an IpDrv setting and... I'm using 0.1 there.