[BUG][FIXED] Missing "Maniaplanet.LoadingMap_Start" after changing ModeScript

Moderator: NADEO

Post Reply
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

[BUG][FIXED] Missing "Maniaplanet.LoadingMap_Start" after changing ModeScript

Post by undef.de »

Gamemode: "TimeAttack" with script "TimeAttack.Script.txt" version "2017-05-12"
Dedicated: ManiaPlanet/3.3.0 build 2017-05-22_21_00, using Method-API 2013-04-16, ModeScript-API 2.1.0

When I change the ModeScript from e.g. "TimeAttack.Script.txt" to "Rounds.Script.txt" (or vice versa), then the callback "Maniaplanet.LoadingMap_Start" is not sent and (which is the most important) at the callback "Maniaplanet.LoadingMap_End" the flag "restarted" is true, also when the map has been changed (see logfile below).

Code: Select all

[2017-05-25 14:35:41] [Map] Running on Map [Short Distance 26 2K17] made by [undef.de] [Env: Stadium, Uid: OaIda4ICgvLYhsUnpNh8GJp8tw4, Id: 831]
[2017-05-25 14:36:24] [Chat] Player [undef.de] used command "/admin setgamemode rounds"
[2017-05-25 14:36:25] [ChatAdmin] MasterAdmin [undef.de] set new game mode [Rounds.Script.txt]
[2017-05-25 14:36:34] [Chat] Player [undef.de] used command "/admin nextmap"
[2017-05-25 14:36:34] [ChatAdmin] MasterAdmin [undef.de] skips map!
[2017-05-25 14:36:56] [Event] Unloading Map
array(2) {
  [0]=>
  string(30) "Maniaplanet.UnloadingMap_Start"
  [1]=>
  array(1) {
    [0]=>
    string(450) "{
	"time": 13776257,
	"map": {
		"uid": "OaIda4ICgvLYhsUnpNh8GJp8tw4",
		"name": "$S$CF5Short Distance 26 2K17",
		"filename": "TMMixed\\TMStadium\\Short Distance 26 2K17.Map.Gbx",
		"author": "undef.de",
		"environment": "Stadium",
		"mood": "Day",
		"bronzetime": 38000,
		"silvertime": 31000,
		"goldtime": 27000,
		"authortime": 25282,
		"copperprice": 892,
		"laprace": true,
		"nblaps": 3,
		"maptype": "TrackMania\\Race",
		"mapstyle": ""
	}
    }"
  }
}
[2017-05-25 14:36:59] [Event] Begin Match [1]
array(2) {
  [0]=>
  string(28) "Maniaplanet.StartMatch_Start"
  [1]=>
  array(1) {
    [0]=>
    string(34) "{
	"count": 1,
	"time": 13776931
    }"
  }
}
[2017-05-25 14:37:06] [Event] Restart Map
array(2) {
  [0]=>
  string(26) "Maniaplanet.LoadingMap_End"
  [1]=>
  array(1) {
    [0]=>
    string(471) "{
	"restarted": true,
	"time": 13785776,
	"map": {
		"uid": "QSXue3rhBpfX6dNgytgttIjv517",
		"name": "$S$CF5Short Distance 14 2K17",
		"filename": "TMMixed\\TMStadium\\Short Distance 14 2K17.Map.Gbx",
		"author": "undef.de",
		"environment": "Stadium",
		"mood": "Day",
		"bronzetime": 23000,
		"silvertime": 18000,
		"goldtime": 16000,
		"authortime": 14873,
		"copperprice": 875,
		"laprace": false,
		"nblaps": 3,
		"maptype": "TrackMania\\Race",
		"mapstyle": ""
	}
    }"
  }
}
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
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: [BUG] Missing "Maniaplanet.LoadingMap_Start" after changing ModeScript

Post by Eole »

On my side I receive the Maniaplanet.LoadingMap_Start callback correctly after changing ModeScript, so I cannot reproduce this part of the bug.
But the restarted flag bug will be fixed in the next version.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest