mxinfosearcher bug SM

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

mxinfosearcher bug SM

Post by kremsy » 11 Jul 2012 07:24

Hello Guys,

in plugin.rasp_jukebox.php i changed the section from TM2 to SM.

Code: Select all

function chat_xlist($aseco, $command) {

...
	$section = 'SM';
...
In the mxinfosearcher.inc.php all is prepared for SM,

Code: Select all

	public function __construct($game, $name, $author, $env, $recent) {

		$this->section = $game;
		switch ($game) {
		case 'TM2':
			$this->prefix = 'tm';
			break;
		case 'SM':
			$this->prefix = 'sm';
			break;
		case 'QM':
			$this->prefix = 'qm';
			break;
		default:
			$this->prefix = '';
			return;
		}
but

Code: Select all

	public function MXInfo($section, $prefix, $mx) {

		$this->section  = $section;
		$this->prefix   = $prefix;
		if ($mx) {
			$this->id        = $mx->TrackID; //LINE 227
			$this->name      = $mx->Name;
			$this->userid    = $mx->UserID;
			$this->author    = $mx->Username;
			$this->uploaded  = $mx->UploadedAt;
			$this->updated   = $mx->UpdatedAt;
			$this->type      = $mx->TypeName;
			$this->style     = $mx->StyleName;
			$this->envir     = $mx->EnvironmentName;
...
it generates some errors when I call xlist
[PHP Notice] Undefined property: stdClass::$TrackID on line 227 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$RouteName on line 242 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$LengthName on line 243 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$Laps on line 244 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayTypeName on line 247 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayWRID on line 248 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayCount on line 249 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$AwardCount on line 251 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$TrackID on line 227 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$RouteName on line 242 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$LengthName on line 243 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$Laps on line 244 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayTypeName on line 247 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayWRID on line 248 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$ReplayCount on line 249 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$AwardCount on line 251 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$TrackID on line 227 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$RouteName on line 242 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$LengthName on line 243 in file /home/smesc5/includes/mxinfosearcher.inc.php
[PHP Notice] Undefined property: stdClass::$Laps on line 244 in file /home/smesc5/includes/mxinfosearcher.inc.php
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

Xymph
Pit Crew
Pit Crew
Posts: 5708
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: mxinfosearcher bug SM

Post by Xymph » 11 Jul 2012 08:49

Wait for the updates to the MX classes: http://forum.maniaplanet.com/viewtopic. ... 61&t=11623
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

kremsy
road tourist
road tourist
Posts: 81
Joined: 29 Jun 2011 17:03
Owned TM-games: TMF, TM2
Contact:

Re: mxinfosearcher bug SM

Post by kremsy » 11 Jul 2012 08:51

okay ;)
You need a TM2 Server? Look on: http://www.tm2-server.net :)

New Shootmania Server available, check out: http://www.mania-server.net

Post Reply