ManiaPlanet Server 2015-03-09

Moderator: NADEO

User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: ManiaPlanet Server 2015-03-09

Post by Eole »

Chase only for now.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: ManiaPlanet Server 2015-03-09

Post by undef.de »

It seems that the ListMethod GetCurrentMapInfo() always return 1 checkpoint on calling shortly after the LibXmlRpc_LoadingMap callback:

Code: Select all

array(16) {
  ["UId"]=>
  string(27) "UB1VR89yRyCztFQDX6M0_DIYF0f"
  ["Name"]=>
  string(20) "$O$FFFBottleneck 1.1"
  ["FileName"]=>
  string(31) "MX/Bottleneck 1.1_19871.Map.gbx"
  ["Author"]=>
  string(8) "undef.de"
  ["Environnement"]=>
  string(6) "Canyon"
  ["Mood"]=>
  string(3) "Day"
  ["BronzeTime"]=>
  int(87000)
  ["SilverTime"]=>
  int(69000)
  ["GoldTime"]=>
  int(61000)
  ["AuthorTime"]=>
  int(57488)
  ["CopperPrice"]=>
  int(6483)
  ["LapRace"]=>
  bool(false)
  ["NbLaps"]=>
  int(0)
  ["NbCheckpoints"]=>
  int(1)
  ["MapType"]=>
  string(15) "TrackMania\Race"
  ["MapStyle"]=>
  string(0) ""
}
But this Map has 18 checkpoints: http://tm.mania-exchange.com/tracks/view/19871


EDIT1:
Just tested with the dedicated server release 2015-02-18b and the ListMethod GetCurrentMapInfo() didn't have this problem in that release.


EDIT2:
After some more testing i figured out, that the ListMethod GetCurrentMapInfo() returns the wrong amount of Checkpoints for the current map only if one Player has finished the previous map. If nobody finish the previous map, then GetCurrentMapInfo() always returns the correct amount of Checkpoints for the current map.

If the previous map was a multilap map, then GetCurrentMapInfo() always returns the correct amount of Checkpoints for the current map.


EDIT3:
If i use the ListMethod GetCurrentMapInfo() shortly after a LibXmlRpc_BeginMap callback, then the correct amount of Checkpoints for the current map is returned.


Btw.: Testing were made in TimeAttack.Script.txt.
Last edited by undef.de on 06 Apr 2015, 09:43, edited 2 times in total.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: ManiaPlanet Server 2015-03-09

Post by undef.de »

There is a mystic thing going on with the dedicated Server in a scripted gamemode: Map change needs longer with only one player connected.

Only one Player (need around 34 - 123 sec.!)

Code: Select all

[2015-04-05 10:28:20] [Event] Begin Podium
[2015-04-05 10:28:35] [Event] End Podium
[2015-04-05 10:28:35] [Event] Unloading Map
[2015-04-05 10:29:09] [Map] Changing from [»Shorty! #11] to [Very Short || 67] [Env: 'Stadium', Uid: 'unnLYmf91gMwptIPB129hejQjWb', Id: 604]
[2015-04-05 10:29:09] [Event] Loading Map
[2015-04-05 10:29:09] [LocalRecords] Currently no record on [Very Short || 67]
[2015-04-05 10:29:09] [Event] Begin Map
[2015-04-05 10:29:10] [Event] Begin Playing

[2015-04-05 10:36:42] [Event] Begin Podium
[2015-04-05 10:36:57] [Event] End Podium
[2015-04-05 10:36:57] [Event] Unloading Map
[2015-04-05 10:39:00] [Map] Changing from [Don´t Drink And Build Maps!] to [Very Short || 68] [Env: 'Stadium', Uid: 'vsQNM4prERncuM_A_tQ35a8hTB3', Id: 480]
[2015-04-05 10:39:00] [Event] Loading Map
[2015-04-05 10:39:00] [LocalRecords] Current record on [Very Short || 68] is 1:03.330 and held by [undef.de]
[2015-04-05 10:39:01] [Event] Begin Map
[2015-04-05 10:39:01] [Event] Begin Playing
The last log entry was made while the gameclient was minimized and i was working in a other programm, the first entry was made while the gameclient was in front.


Two Players (need around 11 - 19 sec.)

Code: Select all

[2015-04-05 10:44:30] [Event] Begin Podium
[2015-04-05 10:44:45] [Event] End Podium
[2015-04-05 10:44:45] [Event] Unloading Map
[2015-04-05 10:44:56] [Map] Changing from [Very Short || 68] to [Very Short || 63] [Env: 'Stadium', Uid: 'w3oS46lvqVZWuI_7FHGyv7EGAy8', Id: 694]
[2015-04-05 10:44:56] [Event] Loading Map
[2015-04-05 10:44:56] [LocalRecords] Currently no record on [Very Short || 63]
[2015-04-05 10:44:57] [Event] Begin Map
[2015-04-05 10:44:57] [Event] Begin Playing

[2015-04-05 10:30:02] [Event] Begin Podium
[2015-04-05 10:30:16] [Event] End Podium
[2015-04-05 10:30:16] [Event] Unloading Map
[2015-04-05 10:30:35] [Map] Changing from [Very Short || 67] to [Short Burst] [Env: 'Stadium', Uid: 'yVFqf0PkQu3sJPZZvUlFPTmnKP', Id: 454]
[2015-04-05 10:30:35] [Event] Loading Map
[2015-04-05 10:30:35] [LocalRecords] Current record on [Short Burst] is 0:22.618 and held by [undef.de]
[2015-04-05 10:30:36] [Event] Begin Map
[2015-04-05 10:30:36] [Event] Begin Playing
PS: TimeAttack.Script.txt

UPDATE 2015-07-09
I have the same problem on my development Server running with the legacy Gamemode "2" (TimeAttack), it takes up to 2 min. till i'm able to drive a Map after a Map change, if the gameclient does not have the focus (i'm on the desktop)... i see "Please wait"...

Sometimes i get kicked from the dedicated Server while i'm waiting without any information why. It does not matter if i have a controller running or not.

EDIT 2015-09-01:
If it is too boring, then i press backward and come to this position and sometimes higher then this:
Image
:lol:
Last edited by undef.de on 01 Sep 2015, 20:38, edited 2 times in total.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: ManiaPlanet Server 2015-03-09

Post by undef.de »

The XmlRpc callback "Rounds_ForceEndRound" does not end a round when in warm-up. If running without warm-up, then it works as it should. Tested with the latest "Rounds.Script.txt".
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest