[Xaseco] Custom Scorepanel [alpha] (release 25.7.2010)

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
reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

[Xaseco] Custom Scorepanel [alpha] (release 25.7.2010)

Post by reaby » 09 Feb 2010 00:01

Ok, so i was playing on playfaster server with TPS Gaseco enabled, and saw some impressing custom scorepanel - eg. the winning panel. So i decided to make one also for Xaseco, but now i'm in stage to what info it should include and in which order.

now it shows info as one row, but I was thinking if I'd use 2 rows, as the trackmania itself uses more space. In that case, more info could be added - tho i'm not sure if i can get all 16 players to that horizontal space, we'll see.

now the row what shows is
place | nickname | finish time | ladder rank | server rank

What can be shown at the moment is:
login, place, nickname, ladder points gained, ladder rank, total ladder points, restart count, finish count, personal best, finish time, zone / nation, server rank, total wins of server

and possibly other variables that can be extracted from xaseco/jfreu/rasp

also calculations are possible, as local 1 time compared to finish time or personal best compared to finish time.
restart to finish percentage rate..

what I planned for 2 row layout:
place | nickname | finish time | points gained
place | nation | ladder rank | server rank | total wins

what you think?

for xymph:
How do I manage to overcome the problem with setCustomUIField("scorepanel",false); restriction in manialinks.inc.php. I inspected the functions and xaseco tends to forcefully override that option. I tried to set global $auto_scorepanel; $auto_scorepanel = false; but it didn't help.

for gekko:
I was playing at your server and find that it's cool to have options to customize trackmania as you have done :)
sorry to "steal" the idea for customized score panel. btw my version has automatic close at beginning of race, it was a bit frustrating to close it manually every time :)

*edit*
ok, i managed to get 2 row layout working

Image

Get it
http://koti.mbnet.fi/reaby/xaseco/custom_goal.zip
Last edited by reaby on 25 Jul 2010 19:56, edited 1 time in total.

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: New plugin in developement (custom scorepanel)

Post by w1lla » 09 Feb 2010 07:46

found a little bug.

Try to use the I icon a little higher.. :)

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: New plugin in developement (custom scorepanel)

Post by reaby » 09 Feb 2010 10:48

w1lla wrote:found a little bug.

Try to use the I icon a little higher.. :)
Definitely in final version I will =)

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

Re: New plugin in developement (custom scorepanel)

Post by Xymph » 09 Feb 2010 11:18

reaby wrote:for xymph:
How do I manage to overcome the problem with setCustomUIField("scorepanel",false); restriction in manialinks.inc.php.
Not sure what 'problem' you're referring to. Btw, that would be setCustomUIField('scoretable', false);
reaby wrote:I inspected the functions and xaseco tends to forcefully override that option. I tried to set global $auto_scorepanel; $auto_scorepanel = false; but it didn't help.
I guess you'd need to tweak manialinks.inc.php itself, though I don't know what you'd like to accomplish.
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

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: New plugin in developement (custom scorepanel)

Post by reaby » 09 Feb 2010 14:10

Xymph wrote:
reaby wrote:for xymph:
How do I manage to overcome the problem with setCustomUIField("scorepanel",false); restriction in manialinks.inc.php.
Not sure what 'problem' you're referring to. Btw, that would be setCustomUIField('scoretable', false);
Whoppies, a typo in a posting.
Xymph wrote:
reaby wrote:I inspected the functions and xaseco tends to forcefully override that option. I tried to set global $auto_scorepanel; $auto_scorepanel = false; but it didn't help.
I guess you'd need to tweak manialinks.inc.php itself, though I don't know what you'd like to accomplish.
I would like to disable the scoretable, but in manialinks.inc.php it looks like there's a call:
Aseco::registerEvent('onEndRace', 'scorepanel_on');
-->
1325 // called @ onEndRace
1326 // Enables Automatic Scorepanel at end of track
1327 if ($aseco->server->getGame() == 'TMF') {
1329 setCustomUIField('scoretable', true);

Which ruins my addon to automaticly disable it, so ppl have to edit manialinks.inc.php file accordingly to disable the scorepanel:
1394 '<scoretable visible="false"/>' .

I tried also to disable the registerEvent call from start of the file, but it didnt' help.

function what i try to use is folloing:

Aseco::registerEvent('onStartup', 'goalpanel_initalize');
function goalpanel_initialize($aseco, $command) {
setCustomUIField("scoretable",false);
}

Looks like there's no way to override the behaviour in plugin, and if someone wants to use the plugin, then he needs to edit the additional file...
Last edited by Xymph on 09 Feb 2010 14:31, edited 1 time in total.
Reason: Fixed quote attributes...

User avatar
david_jumper
happy cruiser
happy cruiser
Posts: 140
Joined: 21 Mar 2009 09:28
Owned TM-games: TMU, TMS
Manialink(s): djump
Location: Pforzheim (Germany)
Contact:

Re: New plugin in developement (custom scorepanel)

Post by david_jumper » 09 Feb 2010 14:34

Wooohooo looks sweet :D
I'll wait for it! If you want a beta tester just contact me :)

If there are more players in the server than the panel is showing, can we scroll via "Left" and "right" buttons? Or how do you want to do this?

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: New plugin in developement (custom scorepanel)

Post by reaby » 09 Feb 2010 14:44

A beta tester, good i need one or two.

Final version will have left and right buttons, but i need to figure out how to code it.

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: New plugin in developement (custom scorepanel)

Post by TheM » 09 Feb 2010 16:08

reaby wrote:A beta tester, good i need one or two.

Final version will have left and right buttons, but i need to figure out how to code it.
I would want to be beta tester :P
Just let me know ;)

reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

Re: New plugin in developement (custom scorepanel)

Post by reaby » 25 Jul 2010 19:53

From a request i release the code what i managed to do!

I might continue this project, but here's nontested version from ages ago, i don't mind if somebody just finishes this. It lacks mostly support for players to swap pages if the results span over.

http://koti.mbnet.fi/reaby/xaseco/custom_goal.zip

User avatar
david_jumper
happy cruiser
happy cruiser
Posts: 140
Joined: 21 Mar 2009 09:28
Owned TM-games: TMU, TMS
Manialink(s): djump
Location: Pforzheim (Germany)
Contact:

Re: [Xaseco] Custom Scorepanel [alpha] (release 25.7.2010)

Post by david_jumper » 26 Jul 2010 05:48

Thanks for that, but i got:
Fatal Error: Call to undefined function display_goalpanel<> in plugin.custom_goal.php on line 284
If you will restart working on it you may fix this too:
It doesn't display the Stunt-Score. It is like 0:00.20...

But great work anyway!

Greco
happy cruiser
happy cruiser
Posts: 144
Joined: 13 May 2009 18:40
Owned TM-games: TMN

Re: [Xaseco] Custom Scorepanel [alpha] (release 25.7.2010)

Post by Greco » 14 Sep 2010 14:51

good work but you can do it better brother i mean interface

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] Custom Scorepanel [alpha] (release 25.7.2010)

Post by Ant » 17 Oct 2010 16:13

Any updates on this ??

User avatar
TheM
Pit Crew
Pit Crew
Posts: 286
Joined: 25 Feb 2009 16:43
Owned TM-games: TMU(F), TMN(F), TM2
Location: Brabant, Netherlands
Contact:

Re: [Xaseco] Custom Scorepanel [alpha] (release 25.7.2010)

Post by TheM » 17 Oct 2010 17:23

Ant wrote:Any updates on this ??
As far as I know reaby hasn't got enough time to finish this.
Why don't you try the scoreboard plugin by undef.de ?

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] Custom Scorepanel [alpha] (release 25.7.2010)

Post by Ant » 17 Oct 2010 17:53

Ok thanks man, I have seen that before but I didn't try it because of the little bugs - I'll give it a go as I update to XAseco v1.12 anyway and see how it goes.

Post Reply