Show current song onscreen?

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
_relaxedracer
sunday driver
sunday driver
Posts: 72
Joined: 30 Jan 2009 09:32
Owned TM-games: All

Show current song onscreen?

Post by _relaxedracer » 14 Mar 2009 11:39

Hi , i was wondering if its posible to show current song onscreen , and read it from the "musictagschache.xml" the artist and title.

I seen it on a other server :
Image

I hope someone can realise this , would be great :D

Greets , ®elaxed®acer :1
Click HERE to join FULLSPEEDMANIA 0-60k

User avatar
_relaxedracer
sunday driver
sunday driver
Posts: 72
Joined: 30 Jan 2009 09:32
Owned TM-games: All

Re: Show current song onscreen?

Post by _relaxedracer » 14 Mar 2009 17:13

Nevermind got something working but its not how it looks on the picture but it works :roflol:

Code: Select all

Aseco::registerEvent('onNewChallenge', 'song_info');

function song_info($aseco, $command) {
		// get current song and strip server path
		$aseco->client->query('GetForcedMusic');
		$current = $aseco->client->getResponse();
		if ($current['Url'] != '' || $current['File'] != '') {
			$current = str_replace($music_server->server, '',
			                       ($current['Url'] != '' ? $current['Url'] : $current['File']));
				$tags = $music_server->tags[$current];
				$current = preg_replace('|.*[/\\\\]|', '', $current);
				$current = preg_replace('|\.[^.]+$|', '', $current);
				$current .= '' . $tags['Title'] . '' . $tags['Artist'];
				
		$serversong =  $current;
		$text = "$serversong";	

Thanx :1
Click HERE to join FULLSPEEDMANIA 0-60k

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 31 Mar 2009 16:31

is that all of the code ??
Image
Image

User avatar
_relaxedracer
sunday driver
sunday driver
Posts: 72
Joined: 30 Jan 2009 09:32
Owned TM-games: All

Re: Show current song onscreen?

Post by _relaxedracer » 31 Mar 2009 17:09

you have to let the created : $text = "$serversong" show tru a mania code like this :

Code: Select all

	$xml = '<manialinks><manialink id="0102255">';
	$xml .= '<frame>';
	$xml .= '<format textsize="1"/>';
	$xml .= '<label scale=0.85 sizen="20 2"  posn="-55 23.5 2" halign="center" text="'.$text.'" style="TextCardInfoSmall"/>';
	$xml .= '</frame>';
	$xml .= '</manialink></manialinks>';
	$aseco->client->query("SendDisplayManialinkPage", $xml, 0, false);
:1
Click HERE to join FULLSPEEDMANIA 0-60k

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 01 Apr 2009 15:14

This what i have done so far Needs tweeking Image
Image
Image

Zon
tricycle manager
tricycle manager
Posts: 25
Joined: 16 Aug 2008 09:02
Owned TM-games: TMUF

Re: Show current song onscreen?

Post by Zon » 02 Apr 2009 00:55

www.22ndsas.org.uk wrote:This what i have done so far Needs tweeking Image
Hey there, www.22ndsas.org.uk, where did you get that nice HUD btw?
«SF1»Zon
SuperF1 Racing - USA|Missouri

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 02 Apr 2009 07:23

Its fufi menu & widgets :P
Image
Image

Zon
tricycle manager
tricycle manager
Posts: 25
Joined: 16 Aug 2008 09:02
Owned TM-games: TMUF

Re: Show current song onscreen?

Post by Zon » 02 Apr 2009 07:55

I mean the layout across the top. The big graphical user interface?
«SF1»Zon
SuperF1 Racing - USA|Missouri

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 02 Apr 2009 08:12

www.22ndsas.org.uk wrote:Its fufi menu & widgets :P
Like i said ^^ well iam pretty sure any way ill have a look we i get in from work :P
Image
Image

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

Re: Show current song onscreen?

Post by Xymph » 02 Apr 2009 08:58

Zon wrote:I mean the layout across the top. The big graphical user interface?
I think that's an older version of this plugin.
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

Lambda
happy cruiser
happy cruiser
Posts: 131
Joined: 22 Feb 2009 22:03
Owned TM-games: TMU+F, TM²C

Re: Show current song onscreen?

Post by Lambda » 03 Apr 2009 08:22

Is this version 0.42a? Is not compatible with Xaseco 1.06.
viewtopic.php?f=127&t=17801&p=148849#p148849

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 03 Apr 2009 08:59

Lambda wrote:Is this version 0.42a? Is not compatible with Xaseco 1.06.
viewtopic.php?f=127&t=17801&p=148849#p148849
I am using XAseco 1.05 i will upgrad to 1.06 today to see if it works.
Image
Image

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 03 Apr 2009 09:16

It doss work 1.06 install

Image
Image
Image

Lambda
happy cruiser
happy cruiser
Posts: 131
Joined: 22 Feb 2009 22:03
Owned TM-games: TMU+F, TM²C

Re: Show current song onscreen?

Post by Lambda » 03 Apr 2009 09:41

The new option, Player Stat not working on my server.

User avatar
www.22ndsas.org.uk
happy cruiser
happy cruiser
Posts: 110
Joined: 08 Jun 2006 17:17
Owned TM-games: Orig, Sunrise, Tmnuf
Location: East Coast (UK)
Contact:

Re: Show current song onscreen?

Post by www.22ndsas.org.uk » 03 Apr 2009 09:49

Lambda wrote:The new option, Player Stat not working on my server.
Menu/Info/Personal ?? in the menu
Image
Image

Post Reply