[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

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1340
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 a Fufi.Widgets replace

Post by undef.de » 11 Dec 2010 18:11

Ant wrote:Thanks man, but making that change results in an empty betwins box again.

Which is strange cos the betting table has wins in it now, I also added in W1llas wins manually and this still showed up before this function change.

[...]

Because of this, for now i've put the original function back.
I have forgotten to adjust the ORDER, fixed above.
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
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by Ant » 11 Dec 2010 18:18

Perfect, thank you very much :D

Maximuson
cyclist
cyclist
Posts: 43
Joined: 25 Nov 2010 05:27
Owned TM-games: TMU

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by Maximuson » 13 Dec 2010 09:44

undef.de when I made a new server I have a problem with gerimanya runs a record label does not indicate what to do or maybe have something to download or to pump again

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1340
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 a Fufi.Widgets replace

Post by undef.de » 13 Dec 2010 10:15

Maximuson wrote:undef.de when I made a new server I have a problem with gerimanya runs a record label does not indicate what to do or maybe have something to download or to pump again
If you have a server running in "Stunts" and you wanna have the Gerymania-Records on, then pls PM me and i send the link for download the Gerymania-Plugin for XASECO. The Gerymania Plugin is still in closed beta.
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

mattrunk
tricycle manager
tricycle manager
Posts: 29
Joined: 25 May 2009 17:27
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by mattrunk » 13 Dec 2010 15:15

Hello,
I wanted to know if it was possible to change visitor_widget to a list of all players who are connected on the server rather than the top nation
sorry for my language i'm french
bye all

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1340
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 a Fufi.Widgets replace

Post by undef.de » 13 Dec 2010 16:34

mattrunk wrote:Hello,
I wanted to know if it was possible to change visitor_widget to a list of all players who are connected on the server rather than the top nation
Currently this is not possible... but the game has already such a list, just press TAB or install Alternate Scoretable togther with this plugin. :mrgreen:
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

mattrunk
tricycle manager
tricycle manager
Posts: 29
Joined: 25 May 2009 17:27
Owned TM-games: TMUF

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by mattrunk » 15 Dec 2010 16:12

ok thank's undef for speed answer

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by Ant » 15 Dec 2010 18:59

I don't wanna sound impatient, but is there any news on v0.9.4 ?

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1340
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 a Fufi.Widgets replace

Post by undef.de » 15 Dec 2010 19:27

Ant wrote:I don't wanna sound impatient, but is there any news on v0.9.4 ?
My spare time is shorter at christmas as i was thinking about.... i hope i can release at friday the 0.9.4. Many changes/news/bugfixes are done in this release... right now i testing it.
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
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Records-Eyepiece a Fufi.Widgets replace

Post by Ant » 15 Dec 2010 21:11

Ok thanks, I can wait :)

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1340
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/Fufi.Widgets repl. (0.

Post by undef.de » 18 Dec 2010 18:03

Just wanna say: There is an update out there... see my first post.
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: 192
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [XASECO] Plugin: Records-Eyepiece/Fufi.Widgets repl. (0.

Post by L3cKy » 18 Dec 2010 22:36

Hej undef ... i was update the plugin ... and my logfile got spamed xD

In 2 minutes arround 500kb of warnings ... the first line was almost the hole logfile xD

Code: Select all

[PHP Warning] array_push(): First argument should be an array on line 9965 in file /home/trackmania/xaseco/plugins/plugin.records_eyepiece.php
[PHP Warning] Wrong parameter count for array_unique() on line 9997 in file /home/trackmania/xaseco/plugins/plugin.records_eyepiece.php
[PHP Warning] sort() expects parameter 1 to be array, null given on line 9998 in file /home/trackmania/xaseco/plugins/plugin.records_eyepiece.php
[PHP Warning] array_values(): The argument should be an array on line 9999 in file /home/trackmania/xaseco/plugins/plugin.records_eyepiece.php
Greetings

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XASECO] Plugin: Records-Eyepiece/Fufi.Widgets repl. (0.

Post by Ant » 19 Dec 2010 03:56

Nice update, there are a couple of bugs though.

The Top Voters list at the score can display wrong if this isn't changed from line 1958

Code: Select all

		// Refresh TopVoters Array (if required)
		if ( ($re_config['SCORETABLE_LISTS'][0]['TOP_VOTERS'][0]['ENABLED'][0] == true) && ($re_config['States']['TopVoters']['NeedUpdate'] == true) ) {
			re_getTopVoters();
			$re_cache['TopVoters'] = re_buildTopVotersForScore($re_config['SCORETABLE_LISTS'][0]['TOP_TRACKS'][0]['ENTRIES'][0]);
		}
To

Code: Select all

		// Refresh TopVoters Array (if required)
		if ( ($re_config['SCORETABLE_LISTS'][0]['TOP_VOTERS'][0]['ENABLED'][0] == true) && ($re_config['States']['TopVoters']['NeedUpdate'] == true) ) {
			re_getTopVoters();
			$re_cache['TopVoters'] = re_buildTopVotersForScore($re_config['SCORETABLE_LISTS'][0]['TOP_VOTERS'][0]['ENTRIES'][0]);
		}
Also, when using plugin.nouse.button.php (see below code) I get some strange behaviour from the tracks widget in this version of your plugin. If I click the button that this code creates, the track widget also pops up but with nothing in it. Heres a couple of screenshots to show you what I mean.
Shot 1 Shot 2
It does work normally as well when the widget is clicked though, as you can see here.

plugin.nouse.button.php

Code: Select all

<?php

// Xaseco plugin to display single manialink button which execute one chatcommand
// by nouseforname

Aseco::registerEvent('onNewChallenge', 'nouseButtonOn');
Aseco::registerEvent('onPlayerConnect', 'nouseButtonOn');
Aseco::registerEvent('onEndRace', 'nouseButtonOff');
Aseco::registerEvent('onPlayerManialinkPageAnswer', 'nouseButtonHandleClick');

global $chatcommand;
global $buttonmainposition;

// config
$chatcommand = '/helpall';
$buttonmainposition = '58 -30 1';



function nouseButtonOn($aseco) {
   global $buttonmainposition;
   $xml = '<manialink id="0815470000122">
      <format style="TextCardInfoSmall" textsize="1" />
      <frame posn="'.$buttonmainposition.'">
         <quad posn="0 0 0" sizen="10 2.5"  halign="center" valign="center" style="Bgs1InRace" substyle="NavButtonBlink"  />
      <label posn="0 0.2 1" sizen="8 2" halign="center" valign="center" text="$fffServer Help" action="27008505"/>
      </frame>
   </manialink>';
   $aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
}

function nouseButtonOff($aseco) {
   $xml = '<manialink id="0815470000122">
   <frame posn="0 0 0">
      <quad posn="0 0 0" sizen="0 0" halign="center" valign="center" action="27008505" />
   </frame>
   </manialink>';
   $aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
}

function nouseButtonHandleClick($aseco, $command) {
   global $chatcommand;
   $playerid = $command[0];
   $login = $command[1];
   $action = $command[2].'';
   
   if ($action == '27008505'){
      $chat = array();
      $chat[0] = $playerid;
      $chat[1] = $login;
      $chat[2] = $chatcommand;
      $chat[3] = true;
      $aseco->playerChat($chat);
   }
}

?>
1 more thing that you probably still know about is the next track widget not updating from an /admin prev command.

I also tried to apply the change for showing the amount of coppers instead of the average in the Betwins list, but it doesn't seem to work - do you have an idea on this please ?

Maximuson
cyclist
cyclist
Posts: 43
Joined: 25 Nov 2010 05:27
Owned TM-games: TMU

Re: [XASECO] Plugin: Records-Eyepiece/Fufi.Widgets repl. (0.

Post by Maximuson » 20 Dec 2010 06:03

undef.de I have a question I look when I'm on my server and on the sides of the table and close around each table Round arrow! How to remove it tell me?

tchamba
cyclist
cyclist
Posts: 39
Joined: 06 Jul 2008 11:29
Owned TM-games: tmu
Location: France (28)

Re: [XASECO] Plugin: Records-Eyepiece/Fufi.Widgets repl. (0.

Post by tchamba » 20 Dec 2010 15:57

Hi undef
I have this error:
[PHP Warning] Wrong parameter count for array_unique() on line 9997 in file C:\Serveurs\xaseco_112\plugins\plugin.records_eyepiece.php
[PHP Warning] sort() expects parameter 1 to be array, null given on line 9998 in file C:\Serveurs\xaseco_112\plugins\plugin.records_eyepiece.php
[PHP Warning] array_values(): The argument should be an array on line 9999 in file C:\Serveurs\xaseco_112\plugins\plugin.records_eyepiece.php

Post Reply