[Xaseco2] Nouse Betting V1.0.1

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

Moderators: Xymph, TM-Patrol

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 02 Nov 2013 08:55

Hi thanks for your really friendly help. YOu are right, there is an error in the logfile: It starts the plugin errorfree, but when i make a chat comman, there is following error-message:

Code: Select all

[11/01,11:19:38] player lauterer_reloaded used chat command "/bet 20"
[PHP Notice] Undefined index: FOREVER_ONLY on line 1917 in file /home/tmserver/users/n51838/xaseco2/00002/xaseco2.php
[11/01,11:20:10] player lauterer_reloaded used chat command "/betstake on"
[PHP Notice] Undefined index: FOREVER_ONLY on line 1917 in file /home/tmserver/users/n51838/xaseco2/00002/xaseco2.php
[11/01,11:20:24] player lauterer_reloaded used chat command "/betstate on"
Now i took a look in the xaseco2.php on line 1917:

Code: Select all

1913 * Gets the specified chat message out of the settings file.
1914 	 */
1915 	function getChatMessage($name) {
1916
1917		return htmlspecialchars_decode($this->chat_messages[$name][0]);
1918	}  // getChatMessage
In the whole xaseco2.php is nothing declared as "forever_only"

Any idea, i searched for forever_only,found it several times in the plugin.nouse.betting.php

Thanks a lot!

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1349
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [Xaseco2] Nouse Betting V1.0.1

Post by undef.de » 02 Nov 2013 18:24

Maniac_Lauterer wrote:YOu are right, there is an error in the logfile: It starts the plugin errorfree, but when i make a chat comman, there is following error-message:
I found the problem, the download links at nouse website are reversed, so you have installed the XAseco (TMF) version instead of the XAseco2 (TM2).

Just get the latest version from http://plugins.xaseco.org/info.php?id=135, that should run without any problems.

I have sent a mail to nouse to fix it. :pil
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

nouseforname
swift roadking
swift roadking
Posts: 840
Joined: 20 Apr 2008 08:58
Owned TM-games: TMUF,TMNF, TMN
Manialink(s): therookies
Location: Germany
Contact:

Re: [Xaseco2] Nouse Betting V1.0.1

Post by nouseforname » 02 Nov 2013 18:57

Fixed, sry. dont know when this happend.
Owner of the Rookie servers and some more. :)
Rookies HP
My Project
Rookies Manialinkcolor>

Maniac_Lauterer
wheelbarrow operator
wheelbarrow operator
Posts: 21
Joined: 29 Oct 2013 09:13
Owned TM-games: TM2

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Maniac_Lauterer » 03 Nov 2013 00:18

Really cool... i check it tomorrow when we start Aseco new... And i thought i am really noobish^^ Will let you know tomorrow!



EDIT: Yes its working! I would really like to say thank you for your grandios help. Without you this script would not gone alive on our servers and noone would have realize the download bug. :1

By the way i sent two mails to nouse over his website last weekend before asking here and got no answer and no help! :roll:

Shrike
pedestrian
pedestrian
Posts: 6
Joined: 12 May 2008 20:29
Owned TM-games: TMU, TM2
Contact:

Re: [Xaseco2] Nouse Betting V1.0.1

Post by Shrike » 23 Feb 2015 08:27

This plugin is not compatible with MySQL 5.5 and above.

The plugin uses TYPE=MyISAM to create "betting" table in xaseco2 database.

However TYPE=MyISAM is deprecated since MySQL 5.0 and above and unsupported in MySQL 5.5 and above.

Fix should be easy enough by creating the "betting" table with:
ENGINE=MyISAM

Code: Select all

// create database at startup
function bet_mysql_create() {
	$query = "CREATE TABLE IF NOT EXISTS `betting` (
				`ID` mediumint(9) NOT NULL auto_increment,
				`login` varchar(100),
				`nickname` varchar(100),
				`stake` mediumint(9),
				`wins` mediumint(9),
				`countwins` mediumint(9),
				PRIMARY KEY (`ID`),
				UNIQUE KEY `login` (`login`)
				) ENGINE=MyISAM DEFAULT CHARSET=utf8";
	mysql_query($query);
}
Regards,
Shrike.

Post Reply