[SOLVED] Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Moderator: NADEO

Post Reply
User avatar
pt_maps
Posts: 25
Joined: 31 Dec 2011, 17:50

[SOLVED] Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Post by pt_maps »

locate TimeAttack.Script.txt

Code: Select all

/GameData/Scripts/Modes/ShootMania/TimeAttack.Script.txt
/GameData/Scripts/Modes/TrackMania/TimeAttack.Script.txt
/UserData/Scripts/Modes/TrackMania/TimeAttack.Script.txt
edited file (tested in every TM related file at single and both together, now changed back to the one, below)

Code: Select all

/UserData/Scripts/Modes/TrackMania/TimeAttack.Script.txt
edited setting (changed value 300 to 600, currently no effect on server after restart)

Code: Select all

// ---------------------------------- //
// Settings
// ---------------------------------- //
#Setting S_TimeLimit            600     as _("Time limit :") ///< Time limit before going to the next map
#Setting S_WarmUpNb             0       as _("Number of warm up :")
#Setting S_WarmUpDuration       0       as _("Duration of one warm up :")
MatchSettings

Code: Select all

?xml version="1.0" encoding="utf-8" ?>
<playlist>
        <gameinfos>
                <game_mode>0</game_mode>
                <chat_time>10000</chat_time>
                <finishtimeout>1</finishtimeout>
                <allwarmupduration>0</allwarmupduration>
                <disablerespawn>0</disablerespawn>
                <forceshowallopponents>0</forceshowallopponents>
                <script_name>TimeAttack.Script.txt</script_name>
                <rounds_pointslimit>50</rounds_pointslimit>
                <rounds_usenewrules>0</rounds_usenewrules>
                <rounds_forcedlaps>0</rounds_forcedlaps>
                <rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
                <team_pointslimit>5</team_pointslimit>
                <team_maxpoints>6</team_maxpoints>
                <team_usenewrules>0</team_usenewrules>
                <team_pointslimitnewrules>5</team_pointslimitnewrules>
                <timeattack_limit>600000</timeattack_limit>
                <timeattack_synchstartperiod>0</timeattack_synchstartperiod>
                <laps_nblaps>5</laps_nblaps>
                <laps_timelimit>0</laps_timelimit>
                <cup_pointslimit>100</cup_pointslimit>
                <cup_roundsperchallenge>5</cup_roundsperchallenge>
                <cup_nbwinners>3</cup_nbwinners>
                <cup_warmupduration>2</cup_warmupduration>
        </gameinfos>

        <hotseat>
                <game_mode>0</game_mode>
                <time_limit>360000</time_limit>
                <rounds_count>5</rounds_count>
        </hotseat>

        <filter>
                <is_lan>0</is_lan>
                <is_internet>1</is_internet>
                <is_solo>0</is_solo>
                <is_hotseat>0</is_hotseat>
                <sort_index>1000</sort_index>
                <random_map_order>1</random_map_order>
                <force_default_gamemode>0</force_default_gamemode>
        </filter>

        <startindex>0</startindex>
used servermanager is uaseco

Console.Log.XXXX.txt

Code: Select all

[2017/06/12 22:57:24] Starting ManiaPlanet Date=2017-05-31_23_00 Svn=74993 GameVersion=3.3.0...^M
[2017/06/12 22:57:24] Configuration file : custom_dedicated_cfg.txt^M
[2017/06/12 22:57:24] Loading system configuration...^M
[2017/06/12 22:57:24] ...system configuration loaded^M
[2017/06/12 22:57:25] Loading cache...^M
[2017/06/12 22:57:25] ...OK^M
[2017/06/12 22:57:25] Loading dedicated server configuration...^M
[2017/06/12 22:57:25] ...Dedicated server configuration loaded^M
[2017/06/12 22:57:26] Connecting to master server...^M
[2017/06/12 22:57:29] ...OK^M
[2017/06/12 22:57:29] Identifying on master server...^M
[2017/06/12 22:57:30] ...OK^M
[2017/06/12 22:57:34] Listening for xml-rpc commands on port 5000.^M
[2017/06/12 22:57:34] Match settings file : MatchSettings\My_Maps.txt^M
[2017/06/12 22:57:34] Loading match settings...^M
[2017/06/12 22:57:34] ...Match settings loaded^M
[2017/06/12 22:57:34] Autostart server on internet^M
[2017/06/12 22:57:34] URL: maniaplanet://#join=XXXXXXX@TMCanyon@nadeo^M
[2017/06/12 22:57:34] Starting server...^M
[2017/06/12 22:57:35] Loading map pts_MP4_FS_stadium_v12.Map.Gbx (tzrjHadtYpDvPgXrnKu8MoXjp0b)...^M
[2017/06/12 22:57:35] ...Load succeeds^M
[2017/06/12 22:57:35] Script 'Mode:TimeAttack': [LOG]1> [Log] Logs are disabled in the "production" environment.
^M
[2017/06/12 22:57:37] Starting Match...^M
[2017/06/12 22:57:37] ...Synchronization^M
does anyone could help, hours of digging the net aren't leading to a solution for that.
if it's a missconfig by me, i can't find the failure. any help are welcome.

thx for reading.
Last edited by pt_maps on 13 Jun 2017, 15:28, edited 1 time in total.
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Post by reaby »

Hi pt_maps,

I think this is not a bug, even though you might consider it to be.
Uaseco (atleast in past used to force) its own scripts, if i'm not totally wrong, so making changes to the dedicated server scripts doesn't help much. But what helps is to change your matchsettings file, as the game reads the values from there.

So anytime you change ingame script settings, consider saving your matchsettings file. It saves your modified values to file then and is usable after next server restart.

And here is an example of matchsettings file how it should look.

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<playlist>
        <gameinfos>
                <game_mode>0</game_mode>
                <chat_time>10000</chat_time>
                <finishtimeout>1</finishtimeout>
                <allwarmupduration>0</allwarmupduration>
                <disablerespawn>0</disablerespawn>
                <forceshowallopponents>0</forceshowallopponents>
                <script_name>TimeAttack.Script.txt</script_name>
                <rounds_pointslimit>50</rounds_pointslimit>
                <rounds_usenewrules>0</rounds_usenewrules>
                <rounds_forcedlaps>0</rounds_forcedlaps>
                <rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
                <team_pointslimit>5</team_pointslimit>
                <team_maxpoints>6</team_maxpoints>
                <team_usenewrules>0</team_usenewrules>
                <team_pointslimitnewrules>5</team_pointslimitnewrules>
                <timeattack_limit>600000</timeattack_limit>
                <timeattack_synchstartperiod>0</timeattack_synchstartperiod>
                <laps_nblaps>5</laps_nblaps>
                <laps_timelimit>0</laps_timelimit>
                <cup_pointslimit>100</cup_pointslimit>
                <cup_roundsperchallenge>5</cup_roundsperchallenge>
                <cup_nbwinners>3</cup_nbwinners>
                <cup_warmupduration>2</cup_warmupduration>
        </gameinfos>

        <hotseat>
                <game_mode>0</game_mode>
                <time_limit>360000</time_limit>
                <rounds_count>5</rounds_count>
        </hotseat>

        <filter>
                <is_lan>0</is_lan>
                <is_internet>1</is_internet>
                <is_solo>0</is_solo>
                <is_hotseat>0</is_hotseat>
                <sort_index>1000</sort_index>
                <random_map_order>1</random_map_order>
                <force_default_gamemode>0</force_default_gamemode>
        </filter>
        
	<mode_script_settings>
		<!-- Default : <setting name="S_ChatTime" type="integer" value="10"/> -->
		<!-- Default : <setting name="S_UseClublinks" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseClublinksSponsors" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NeutralEmblemUrl" type="text" value=""/> -->
		<!-- Default : <setting name="S_MatchmakingMatchServers" type="text" value=""/> -->
		<!-- Default : <setting name="S_MatchmakingMode" type="integer" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchRatio" type="real" value="-1"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchNbMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_MatchmakingVoteForMap" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingProgressive" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingWaitingTime" type="integer" value="20"/> -->
		<!-- Default : <setting name="S_LobbyRoundPerMap" type="integer" value="6"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerPerRound" type="integer" value="30"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerWait" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerTime" type="integer" value="8"/> -->
		<!-- Default : <setting name="S_LobbyDisplayMasters" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyDisableUI" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_KickTimedOutPlayers" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_MatchmakingLogAPIError" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingLogAPIDebug" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingLogMiscDebug" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_WaitingTime" type="integer" value="180000"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_PlayersNbRatio" type="integer" value="1"/> -->
		<!-- Default : <setting name="S_AllowRespawn" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_UseLegacyXmlRpcCallbacks" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_WarmUpNb" type="integer" value="0"/> -->
		<!-- Default : <setting name="S_WarmUpDuration" type="integer" value="0"/> -->

		<setting name="S_TimeLimit" type="integer" value="600"/>
	</mode_script_settings>
	
        <startindex>0</startindex>
        
	<map>
		<file>Campaigns\TMStadium\01_White\A01.Map.Gbx</file>	
	</map>
</playlist>

User avatar
pt_maps
Posts: 25
Joined: 31 Dec 2011, 17:50

Re: [BUG] Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Post by pt_maps »

thank you for the reply

here the results;

the TimeAttack.Script.txt comes with the server, not with uaseco.

tested matchsettings with new code added below -> still no effect on time limit
deactivated the time limit setting in script file with // -> still no effect

Code: Select all

	<mode_script_settings>
		<!-- Default : <setting name="S_ChatTime" type="integer" value="10"/> -->
		<!-- Default : <setting name="S_UseClublinks" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_UseClublinksSponsors" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_NeutralEmblemUrl" type="text" value=""/> -->
		<!-- Default : <setting name="S_MatchmakingMatchServers" type="text" value=""/> -->
		<!-- Default : <setting name="S_MatchmakingMode" type="integer" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchRatio" type="real" value="-1"/> -->
		<!-- Default : <setting name="S_MatchmakingRematchNbMax" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_MatchmakingVoteForMap" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingProgressive" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingWaitingTime" type="integer" value="20"/> -->
		<!-- Default : <setting name="S_LobbyRoundPerMap" type="integer" value="6"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerPerRound" type="integer" value="30"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerWait" type="integer" value="2"/> -->
		<!-- Default : <setting name="S_LobbyMatchmakerTime" type="integer" value="8"/> -->
		<!-- Default : <setting name="S_LobbyDisplayMasters" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_LobbyDisableUI" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_KickTimedOutPlayers" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_MatchmakingLogAPIError" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingLogAPIDebug" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_MatchmakingLogMiscDebug" type="boolean" value="0"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_WaitingTime" type="integer" value="180000"/> -->
		<!-- Default : <setting name="S_ProgressiveActivation_PlayersNbRatio" type="integer" value="1"/> -->
		<!-- Default : <setting name="S_AllowRespawn" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_UseLegacyXmlRpcCallbacks" type="boolean" value="1"/> -->
		<!-- Default : <setting name="S_WarmUpNb" type="integer" value="0"/> -->
		<!-- Default : <setting name="S_WarmUpDuration" type="integer" value="0"/> -->

		<setting name="S_TimeLimit" type="integer" value="600"/>
	</mode_script_settings>
	
        <startindex>0</startindex>
       
User avatar
fng_thatoneguy
Posts: 722
Joined: 05 Jan 2011, 18:06
Location: That One Place
Contact:

Re: [BUG] Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Post by fng_thatoneguy »

I might be mistaken, but I think you're supposed to set that up for UASECO directly in the config/modescript_settings.xml file. Change the <time_limit> element to 600 and see how that works out for you.

Code: Select all

  <modesetup>
    <!--
    Settings for TimeAttack.Script.txt
    https://www.maniaplanet.com/documentation/dedicated-server/references/settings-list-for-nadeo-gamemodes#time-attack
    //-->
    <timeattack>
      <!-- Time limit in seconds, until the next Map is loaded -->
      <time_limit>600</time_limit> <!-- Default is 300 -->

      <!-- Duration of the warm up phase in rounds (e.g. '20' for 20 secounds warm up, set to '-1' to disable a warm up timer -->
      <warm_up_duration>-1</warm_up_duration>

      <!-- Number of warm up, set to '0' to disable or to '2' for two warum up rounds -->
      <warm_up_number>0</warm_up_number>
    </timeattack>
</modesetup>
Image
User avatar
pt_maps
Posts: 25
Joined: 31 Dec 2011, 17:50

Re: [BUG] Setting S_TimeLimit in TimeAttack.Script.txt doesn't change Time Limit after edit

Post by pt_maps »

fng_thatoneguy wrote: 13 Jun 2017, 14:42 I might be mistaken, but I think you're supposed to set that up for UASECO directly in the config/modescript_settings.xml file. Change the <time_limit> element to 600 and see how that works out for you.

Code: Select all

  <modesetup>
    <!--
    Settings for TimeAttack.Script.txt
    https://www.maniaplanet.com/documentation/dedicated-server/references/settings-list-for-nadeo-gamemodes#time-attack
    //-->
    <timeattack>
      <!-- Time limit in seconds, until the next Map is loaded -->
      <time_limit>600</time_limit> <!-- Default is 300 -->

      <!-- Duration of the warm up phase in rounds (e.g. '20' for 20 secounds warm up, set to '-1' to disable a warm up timer -->
      <warm_up_duration>-1</warm_up_duration>

      <!-- Number of warm up, set to '0' to disable or to '2' for two warum up rounds -->
      <warm_up_number>0</warm_up_number>
    </timeattack>
</modesetup>
that does the trick

awesome, thx for help
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest