[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

UnLoco
pedestrian
pedestrian
Posts: 5
Joined: 01 Apr 2013 10:54
Owned TM-games: tmu

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

Post by UnLoco » 18 Jan 2014 14:09

PHP 5.3.3
ok,i will try to change "mb_strtolower" into "strtolower" and see if works.
thank you

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
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.0 (UPDATE)

Post by undef.de » 14 Dec 2014 15:09

Just wanna say: There is an update out there... see the related Site at my Lab.
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

weerwolf1
smooth traffic navigator
smooth traffic navigator
Posts: 236
Joined: 08 May 2008 09:25
Owned TM-games: All but original
Location: The Netherlands

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

Post by weerwolf1 » 03 May 2015 23:40

Hi Udef,

Can u explain what this actually does?

Code: Select all

[05/03,17:25:55] >> Updating `mostfinished` counts for all Players...
[05/03,17:25:55] >> Updating `mostrecords` counts for all Players...
Case example is on a tracklist of 1173 tracks
Player ID 5562 has 1218 'most records' (how is that possible?)
after the restart and that update this player has 1172 'most records' (seems more legit :P)

I am curious how this works.

With regards,

Weerwolf
LYNX°°°° - Maniaplanet Gaming Community!
news | clan | community | & more
°°°°

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
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.0 (UPDATE)

Post by undef.de » 04 May 2015 12:46

weerwolf1 wrote:Can u explain what this actually does?

Code: Select all

[05/03,17:25:55] >> Updating `mostfinished` counts for all Players...
[05/03,17:25:55] >> Updating `mostrecords` counts for all Players...
Case example is on a tracklist of 1173 tracks
Player ID 5562 has 1218 'most records' (how is that possible?)
after the restart and that update this player has 1172 'most records' (seems more legit :P)
MostFinished
Reads from the database table `rs_times` how often a player has finished the maps. In this table are all finishes are stored, so 1218 may be valid.
Depending on your configuration, this table is cleaned up on start.

MostRecords
Reads from the database table `records` how often a player has made a record. In this table only one time per map is stored.
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

weerwolf1
smooth traffic navigator
smooth traffic navigator
Posts: 236
Joined: 08 May 2008 09:25
Owned TM-games: All but original
Location: The Netherlands

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

Post by weerwolf1 » 04 May 2015 19:37

Hi Undef,
Very much thanks for this very quick response!
undef.de wrote: MostFinished
Reads from the database table `rs_times` how often a player has finished the maps. In this table are all finishes are stored, so 1218 may be valid.
Depending on your configuration, this table is cleaned up on start.
Actually this number is like in the 36000+, and did not change after
undef.de wrote: MostRecords
Reads from the database table `records` how often a player has made a record. In this table only one time per map is stored.
Here the number changed from 1218 to 1172.

Sorry for the inconvenience if im 'not getting it' ;)
LYNX°°°° - Maniaplanet Gaming Community!
news | clan | community | & more
°°°°

coolthing
pedestrian
pedestrian
Posts: 8
Joined: 23 Feb 2015 22:28
Owned TM-games: TMU

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

Post by coolthing » 21 Mar 2016 11:38

Hi Undef,

Can I disable and enable again the dedimania, local and live ranking widget dynamically from another plugin?

I've tried for dedimania for example:

Code: Select all

	global $re_config;
	$re_config['DEDIMANIA_RECORDS'][0]['GAMEMODE'][0]['TIME_ATTACK'][0]['ENABLED'][0]		= false;
But this does not seem to work.

Best regards,
Coolthing

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
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.0 (UPDATE)

Post by undef.de » 21 Mar 2016 19:48

You have to change the states too in:

Code: Select all

	$re_config['States']['DedimaniaRecords']['NeedUpdate']
	$re_config['States']['DedimaniaRecords']['UpdateDisplay']
	$re_config['States']['LocalRecords']['NeedUpdate']
	$re_config['States']['LocalRecords']['UpdateDisplay']
	$re_config['States']['LiveRankings']['NeedUpdate']
	$re_config['States']['LiveRankings']['UpdateDisplay']
And you (probably) have to wait for the timeout of <refresh_interval>.
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

coolthing
pedestrian
pedestrian
Posts: 8
Joined: 23 Feb 2015 22:28
Owned TM-games: TMU

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

Post by coolthing » 21 Mar 2016 20:20

Thanks for the quick response. I will try that out :)

Edit: Still does not work. I set those states to true together with setting the enabled flags to false inside a chat command. But the widgets do not disappear. Even when I first call re_closeRaceDisplays('my_login') first the widgets appear again after a few seconds. Am I overlooking anything?

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
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.0 (UPDATE)

Post by undef.de » 21 Mar 2016 23:08

Yes, you have to use

Code: Select all

	$re_config['DEDIMANIA_RECORDS'][0]['GAMEMODE'][0][Gameinfo::TA][0]['ENABLED'][0]
	$re_config['LOCAL_RECORDS'][0]['GAMEMODE'][0][Gameinfo::TA][0]['ENABLED'][0]
	$re_config['LIVE_RANKINGS'][0]['GAMEMODE'][0][Gameinfo::TA][0]['ENABLED'][0]
Gameinfo::TA instead of TIME_ATTACK

Btw.: What do you want to do?
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

coolthing
pedestrian
pedestrian
Posts: 8
Joined: 23 Feb 2015 22:28
Owned TM-games: TMU

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

Post by coolthing » 22 Mar 2016 00:36

Ah nice, that does work. Thank you very much :)

I'm currently developing a game which you can start on the server on vote request. Once it starts I need to disable the dedimania, local and live ranking widget dynamically (and enable them again when the game is over), because I need the space for the game widgets and Xaseco does not get restarted ;)

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
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.0 (UPDATE)

Post by undef.de » 21 Jul 2016 15:47

Just wanna say: There is an update out there... see the related Site at my Lab.
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

Post Reply