[A2.x.x/Rasp_Jukebox] SSM°Niarfman v1.71c

This forum is dedicated to the Aseco/Rasp 2 server records and control script by Flo and Assembler Maniac. Announcements and issues can be discussed in this forum.

Moderators: Flo, Assembler Maniac, f*ckfish, TM-Patrol

Post Reply
User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

[A2.x.x/Rasp_Jukebox] SSM°Niarfman v1.71c

Post by niarfman » 05 Jun 2008 10:23

Mod of RASP Jukebox
(Modification of number of version - It was too ambiguous - Now I use AM number version and I add a number or a letter.
Example : plugin.rasp_jukebox_v2.2 => plugin.rasp_jukebox_v1.62 because it's based on 1.6 AM version.
)


Last version (development) : 1.71c - 06/07/08 23:00
Previous version (stable) : 1.71 - 06/07/08 23:00

Here is a little modification of RASP Jukebox plugin made by Assembler Maniac
It shows directly karma, rank, score and records for each map listed.

New version 1.71c (using new windows construction with images for environnent) :
Image
Thanks to [SA.fr] JS for its suggestions and to have tested this version
Download it here : plugin.rasp_jukebox_v1.7c.zip

Previous version 1.71b (using new windows construction) :
Image

Previous Version 1.71 (using Aseco original Windows construction)
Image
Download it here : plugin.rasp_jukebox_v1.71.zip

How to install it :
Decompress and put the file to replace the /plugins/rasp/plugin.rasp_jukebox.php

What it does ?
Rank and score are highlighted if you are the first or the last of the map.

This plug ask only 20 request per page. So it has to be as fast for 20 maps as for 900 ^^. I didn't test for hundreds of maps, Can someone test it ?

The last display number of 1st records and Nickname of each player which own the rec.

Works in both race and stunts mods

Show karma (in percent) for each track

------------------------------------------------------------------
12/08/08 (1.71c) :
- Fix : Text disappear with default style
- Add image for each environment instead of column with text
- Add highlight current track
- Fix : SendMessageToLogin in /replaymap function

13/07/08 (1.71b) :
- Fix : Manialink creation page crashes when Nickname contain specials chars such as quote (")

06/07/08 (1.71a) :
- I have totally rewritten the construction of the windows which use a structure similar to CSS instead of tables. This system can't be deformed if content is too long. It will resize automatically the content to suit the column !
- There's now enough room to place all columns (including environment).
- The highlight of current track is not included here. I will try to add it soon.

06/07/08 (1.71a) :
- Same as 1.7a with minor corrections.

03/07/08 (1.7a) :
- Based on plugin RASP Jukebox 1.7 (Included into Aseco 2.2.0c) from Assembler Maniac => Faster with commands "/add" "/admin add" and "/tmxsearch" => "/tmxsearch" can be used without args
- Use AM's code to download tracks from Sharemania

28/06/08 (1.62b) :
- Background color is the same than the one to display score on end of match.
- Number of TOP1 is displayed on top of each page

18/06/08 (1.62a) - Add color to identify environment of each map

18/06/08 (1.62) : Exactly the same as 1.61c. Because this version seems to be stable.

18/06/08 (1.61c) : Add different color background to current track

13/06/08 (1.61b) : Add Karma. Column width is modified to better suit infos. Now points are displayed in Stunts mod instead of time.

06/06/08 : Add oliverde8 Mod to enable download from Sharemania.eu to both v1 and v2 of my Mod.

Ps : Thx to oliverde8 for his help
Last edited by niarfman on 03 Sep 2008 16:59, edited 54 times in total.
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

Ptitzizi
road tourist
road tourist
Posts: 104
Joined: 03 May 2008 15:13
Owned TM-games: TMF

Re: Modification of Rasp_Jukebox window

Post by Ptitzizi » 05 Jun 2008 10:32

Greaaaaatt !!!!
Thanx a lot man !!
:3 :3
Now, if I can suggest/request, is it possible to change the "env" by the autor of the record ?

Bye and thanx again ;)

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 11:17

It's possible, but the Window is already large ...

I have to test with a low resolution such as 800x600.


I have forgotten to deal about inconvenients of my mod :
- It only works if you use MySQL database.

- Ranks are update only when track finish and Aseco store recs to database.

- It may be slow if server turns under Windows ... (If someone can test ....).
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: Modification of Rasp_Jukebox window

Post by oliverde8 » 05 Jun 2008 11:26

niarfman wrote:It's possible, but the Window is already large ...

I have to test with a low resolution such as 800x600.


I have forgotten to deal about inconvenients of my mod :
- It only works if you use MySQL database.

- Ranks are update only when track finish and Aseco store recs to database.

- It may be slow if server turns under Windows ... (If someone can test ....).
it is slow whne you have 900 tracks but I don't think thats windows fault. Great but to slow hall server stops :cry: As Iexpected in fact :)

Very Nice :thumbsup:
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

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

Re: Modification of Rasp_Jukebox window

Post by Xymph » 05 Jun 2008 11:33

Column header "Rang" should be "Rank". :wink:
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

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 11:44

Sik, french inside ^^ !!!

I have verified, the capture is out dated.

The file is correct with Rank and not Rang ;O)
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 11:54

oliverde8 wrote:it is slow whne you have 900 tracks but I don't think thats windows fault. Great but to slow hall server stops :cry: As Iexpected in fact :)

Very Nice :thumbsup:
Thanks ^^

Ps : My english is poor ... I didn't understood "Great but to slow hall server stops :cry:"
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: Modification of Rasp_Jukebox window

Post by oliverde8 » 05 Jun 2008 11:55

niarfman wrote:
oliverde8 wrote:it is slow whne you have 900 tracks but I don't think thats windows fault. Great but to slow hall server stops :cry: As Iexpected in fact :)

Very Nice :thumbsup:
Thanks ^^

Ps : My english is poor ... I didn't understood "Great but to slow hall server stops :cry:"
Already existing /list is slow ... for 900 tracks with yours ho adds quite a lot of queries it is to slow. :) nothing to do with you I only have to much Tracks :wink:

But it is Great has a cool look and..... if I go down to 300 tracks will use it :wink:
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 12:00

900 tracks !!!

I understand ^^

It has I said it to you, I haven't been able to translate correctly. French are knowned to be week in another langage than French ...
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

Ptitzizi
road tourist
road tourist
Posts: 104
Joined: 03 May 2008 15:13
Owned TM-games: TMF

Re: Modification of Rasp_Jukebox window

Post by Ptitzizi » 05 Jun 2008 13:30

Image

Bug report :D

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 13:36

Ok, let I see that ^^

Thx for report ;O)
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

Ptitzizi
road tourist
road tourist
Posts: 104
Joined: 03 May 2008 15:13
Owned TM-games: TMF

Re: Modification of Rasp_Jukebox window

Post by Ptitzizi » 05 Jun 2008 13:37

Between french guys, it's normal :D
And I don't know wath's the problem is because it's seems to show up as it wants :S

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 14:06

Strange because this seems to be the result of a division by 3 ...

The only one division here is round to Integer....

Can you give me the content of your records table in Aseco database ?
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: Modification of Rasp_Jukebox window

Post by oliverde8 » 05 Jun 2008 14:17

You can use the formatTime() function inbuilt Aseco I sıppose it would work with that one.

Code: Select all

 // Convert score in a readable format
        if($score_map<>''){
       $score_map=formatTime($score_map);
          }
        else
          $score_map='-';
replacing

Code: Select all

 // Convert score in a readable format
        if($score_map<>''){
          $score_map=(($score_map)/1000);
          if ($score_map>=60)
            if ($score_map%60<10)
              $score_map=intval($score_map/60).':0'.($score_map%60).'.'.($score_map-intval($score_map))*100;
            else
              $score_map=intval($score_map/60).':'.($score_map%60).'.'.($score_map-intval($score_map))*100;
          }
        else
          $score_map='-';
Don't know but should make it work
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

User avatar
niarfman
road tourist
road tourist
Posts: 83
Joined: 05 Jun 2008 07:57
Owned TM-games: TMUF

Re: Modification of Rasp_Jukebox window

Post by niarfman » 05 Jun 2008 14:33

Thanks oliverde8,

I didn't know this function ^^

It's better if I use it than my kitchen's code !

I have included it. I can't test it now.

I will update my script if it's done this evening.
Image
Admin en second des serveurs SSM° / tripatouilleur de PHP
Tous nos serveurs tournent sous GNU/Linux !

Post Reply