[XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

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

Moderators: Xymph, TM-Patrol

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 08 Jan 2020 16:47

On my server many tracks got many local Mania Karma votes. Yes, the only thing in log that would cause anxiety is just what i mentioned. Could you advice which part of xaseco mysql database i should repair? Which table is responsive for "most finished"? Also in top betwins again is showed nothing beside the fact that there is no another error report in xaseco log. Edit: i repaired table players_extra and there is still nothing in top tracks.

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

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by undef.de » 08 Jan 2020 18:28

It's good practise to repair all tables, not just one. You never know which table has been damaged too.

For MostFinished, you need to play a map complete from start to finish. After that you have to change to an other map and after ending that map too, you should see something in the MostFinisedWidget. Same for BetWins, you have to bet and win and change the map...
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

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by L3cKy » 08 Jan 2020 22:43

gorn_z34 wrote:
08 Jan 2020 16:47
On my server many tracks got many local Mania Karma votes. Yes, the only thing in log that would cause anxiety is just what i mentioned. Could you advice which part of xaseco mysql database i should repair? Which table is responsive for "most finished"? Also in top betwins again is showed nothing beside the fact that there is no another error report in xaseco log. Edit: i repaired table players_extra and there is still nothing in top tracks.
For Top Tracks check this part at records_eyepiece.xml ;)

Code: Select all

		<karma>
			<!-- With this you adjust the min. amount of Votes for a Map to come into the TopMaps list, Maps below this limit are skipped from TopMaps list. -->
			<min_votes>0</min_votes>

			<!-- Here you can select the method how the Karma is calculated:
				'tmkarma'	= calculate like TM-Karma.com it does (default)
				'rasp'		= calculate like XAseco with RASP/Karma
			//-->
			<calculation_method>rasp</calculation_method>
		</karma>
You have to set the min_votes at least to 1 to activate the function and the top tracks widget.
Check also if you have top tracks widget enabled at score (same file)

Code: Select all

<top_tracks>
<enabled>true</enabled>


Greetings

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 09 Jan 2020 15:22

Thanks L3cky, on you always can rely. It worked :) Btw i repaired all tables and in top betwins is still nothing.

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by L3cKy » 09 Jan 2020 16:38

To make this work you need to download the plugin Nouse Betting
Install it on the server and add the plugin to the plugins.xml
IMPORTANT the plugin need to stand before plugin.records_eyepiece.php otherwise xaseco will crash.

Code: Select all

<!-- Like this way -->
	<plugin>plugin.nouse.betting.php</plugin>
	<plugin>plugin.records_eyepiece.php</plugin>

Check inside records_eyepiece.xml if you have <top_betwins> enabled ... restart xaseco ... should work from now on.

The plugin will install the needed table on startup

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 (login)
				) ENGINE=MyISAM";
		mysql_query($query);
	}
No wonder why you dont see that because i guess you dont have the table betting and of course no stored data ... :roflol:

Greetings
Last edited by L3cKy on 15 Jan 2020 02:27, edited 1 time in total.

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 09 Jan 2020 20:10

i have nouse betting already installed and i looked into the log when it crashed, i placed records eyepiece behind nouse betting in plugins.xml, i have it already done, thanks, but these betwins are driving me nuts, i'll try your solution.

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by L3cKy » 09 Jan 2020 20:14

Check if you have the table betting at ur xaseco database

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 09 Jan 2020 20:25

I don't know, let me check. Is it possible to disable that warning at score that tells that there is too few players to start winning payout? I want to have winning payout keep turned on but i did not want that message on finish. Edit: no i didn't have that table.

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by L3cKy » 09 Jan 2020 20:45

Than add the table with sql statement inside the xaseco database

Code: Select all

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 (login)
) ENGINE=MyISAM;
To disable the message at score sreach inside plugin.records_eyepiece.php for this code:

Code: Select all

else {
			// Not enough Players has finished this Track
			$xml .= '<quad posn="0.85 -2.6 0.04" sizen="5 5" style="Icons64x64_1" substyle="YellowHigh"/>';
			$xml .= '<label posn="3.45 -4.2 0.05" sizen="9.2 0" halign="center" textsize="3.5" text="$O$000!"/>';
			$xml .= '<label posn="6.7 -3 0.002" sizen="23.95 1.7" scale="0.9" autonewline="1" textcolor="'. $re_config['WINNING_PAYOUT'][0]['COLORS'][0]['COPPERS'][0] .'" text="Not enough Players finished Track,'. LF .'winning payment temporary off."/>';
		}
and change into this code:

Code: Select all

/*else {
			// Not enough Players has finished this Track
			$xml .= '<quad posn="0.85 -2.6 0.04" sizen="5 5" style="Icons64x64_1" substyle="YellowHigh"/>';
			$xml .= '<label posn="3.45 -4.2 0.05" sizen="9.2 0" halign="center" textsize="3.5" text="$O$000!"/>';
			$xml .= '<label posn="6.7 -3 0.002" sizen="23.95 1.7" scale="0.9" autonewline="1" textcolor="'. $re_config['WINNING_PAYOUT'][0]['COLORS'][0]['COPPERS'][0] .'" text="Not enough Players finished Track,'. LF .'winning payment temporary off."/>';
		}*/
so long

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 13 Jan 2020 00:11

Ok i dont want to disable this information anymore, i just redesigned my standings table widgets, i still dont know how to make this table and if it will work. Thanks for resolving my problem with top tracks :)

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 228
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by L3cKy » 15 Jan 2020 02:29

gorn_z34 wrote:
13 Jan 2020 00:11
Ok i dont want to disable this information anymore, i just redesigned my standings table widgets, i still dont know how to make this table and if it will work. Thanks for resolving my problem with top tracks :)
Check this post ... ;)

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 13 Apr 2020 12:50

I got another problem, i mean i just want to add discord widget to xaseco, i heard its through records-eyepiece plugin, is that right?

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

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by undef.de » 14 Apr 2020 15:20

gorn_z34 wrote:
13 Apr 2020 12:50
I got another problem, i mean i just want to add discord widget to xaseco, i heard its through records-eyepiece plugin, is that right?
Yepp, just take a look into the records_eyepiece.xml at <placement_widget>
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

gorn_z34
cyclist
cyclist
Posts: 31
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece 1.1.1 (UPDATE)

Post by gorn_z34 » 16 Apr 2020 09:00

Could you instruct me how to do it? I've found <placement> but i dont know what to do with it or if im doing something wrong.

Post Reply