Page 1 of 4

Manialinks Forever

Posted: 16 Apr 2008 01:01
by Slig
Those infos are mainly from early tmf tests versions, and were completed by various testers.

Don't ask more infos : i don't have more ;)
Btw if your tests make you find some other usefull infos, please tell it, so we will be able to add them here :D


You can find a manialink editor previewer : viewtopic.php?f=28&t=16192&start=0

General manialinks infos

Code: Select all

Manialink doc
All old manialink tags still work also !
--------------------------------
<music>
	info : 
		ambient music (without start/stop button)
	attributes :
		data = "http://localhost/tmu/bigbisous.ogg"
	note: must be directly in <manialink> and not in a <frame> !

<frame>
	info : 
		component container. wich you can position easily
	attributes : 
		pos = "0 0 0" // position x,y and z-buffer (high value in front)
		// left: -1.0, top: -0.75, right: +1.0, bottom: +0.75, rear: +1.0, front: -1.0
		or posn = "0 0 0" // position in menu-coordinate, -64,+48 to +64,-48 
		// left: -64, top: +48, right: +64, bottom: -48, rear: -48, front: +48
		// it seems that old style manialinks have a z-buffer = 2.62
		scale = "1.0"  // scale all the contents of the frame (<1 to reduce, >1 to grow)

<format> 
	info : 
		change the current format for the components of the current frame and its sub frames.
		each component can override this format by its own format attributes.
	attributes : 
		textsize = "3"  // text size 1(small),2,3,4,5...
		textcolor="0f0f" // text color 
	 or 
		style = "TextStaticSmall" // style presets used used in game menus
		
<label>
	info : 
		draw a string
	attributs : 
		size = "0.3 0" // size of the component
	 or sizen = "10 4" // in menu-coordinate system
	 // height is useless. will be splitted in several line if too long for width, then clipped
		pos = "0 0 0" // position
	 or posn = "0 0 0" // position in menu-coordinate system
		halign = "center" // horizontal alignment : "left", "right" or "center" 
											// (specify where is the pos/posn for the text)
		valign = "center" // vertical  alignment : "top", "bottom" , "center" , or "center2"
											// (specify where is the pos/posn for the text)
		text = "blabla" // label text
		textid = "language text tag" // dico language text tag (see <dico>)
		autonewline="1" // split the text when lines are too long
		scale = "1.0"  // scale the object (<1 to reduce, >1 to grow)
	+ <format> attributes
		
<entry>
	info :
		text input field. the value can be added to manialink/web links
	attributs : 
		size = "0.3 0.1"  // size of the component
		pos = "0 0 0" // position
		textsize = "3" // text size
		halign = "center" // horizontal alignment: "left", "right" ou "center"
		name = "inputname" // text input name (usefull for links: will be replace by the input value)
		default = "blabla" // default value
	+ <format> attributes

<fileentry>
	info :
		filename input field. the file can be sent to a link using POST
	attributs : 
		size = "0.3 0.1"  // size of the component
		pos = "0 0 0" // position
		textsize = "3" // text size
		halign = "center" // horizontal alignment: "left", "right" ou "center"
		name = "inputname" // text input name (usefull for links: will be replace by the input value)
		default = "blabla" // default value
		
<quad>
	info : 
		draw a rectangular zone with a color or image, and optionally a link
	attributs :
		size="0.25 0.25" 
		pos="-1 0 0" 
		halign="right" etc.
		valign="center"  etc.
		scale = "1.0"  // scale the object (<1 to reduce, >1 to grow)
		image="http://localhost/tmu/image.tga"  // image to draw
		imagefocus="http://localhost/tmu/imagefocus.tga" // image to draw when focus is onto it
		style="Bgs1" // name of the presets styles of the game (use it if	you don't use image="...")
		substyle="BgWindow1" // subname of the preset style
		url="http://www.google.fr" 	// associated web link
		manialink="http://mywebserver/go.xml" // associated manialink link (opened in  manialinkbrowser)
		maniazone="http://www.google.fr" 	// associated maniazone link (opened in maniazone part)
		action="100"	// server manialink only, will make a PlayerManialinkPageAnswer() callback
		actionkey="1"	// server manialink only, binds the action to a key (1,2,3 for F5,F6,F7 keys)
		addplayerid="1" // identified link (add &playerlogin=xxx) (also $p or $P in links text)

<include>
	info :
		add to the manialink xml code the contents off another xml file from a valid url.
		note: it seems that only the first tag (and subtags) in the file will be used.
	attributs :
		url = "./included.xml"

<timeout>
	info :
		specify a interval delay for automatic reload of resource from the url.
		(classic usage for a dynamic page: <timeout>0</timeout> )

<dico>
	info :
		permit to set automatic language texts, each tag can be use in label
		textid attribut which will be replaced by its value in the right game language.
	subtag : <language>
		attributs : id="en" // indicate the language of subtags
	example, example1 and example2 would be usable as textid values :
		<dico>
			<language id="en">
				<example1>Example text number1</example1>
				<example2>Example text number2</example2>
			</language>
			<language id="fr">
				<example1>Exemple de texte 1</example1>
				<example2>Exemple de texte 2</example2>
			</language>
		</dico>
Server manialinks specific infos

Sample SendDisplayManialinkPage() xml general form ::

Code: Select all

<manialinks>
	<manialink posx="" posy ="" id="">
		....
	</manialink>
	<manialink posx="" posy ="" id="">
		....
	</manialink>
	<custom_ui>
		<notice visible="true"/>	// notices
		<challenge_info visible="true"/>	// upper right challenge info
		<net_infos visible="true"/>	// top left number of player ???
		<chat visible="true"/>	// chat box
		<checkpoint_list visible="true"/>	// bottom right checkpoint list (of first 6 players)
		<round_scores visible="true"/>	// no right round score panel at the end of rounds
		<scoretable visible="true"/>	// no score tables at end of rounds/runs/map
		<global visible="true"/>	// all
	</custom_ui>
</manialinks>
<custom_ui> stays unchanged if not specified.
if no pages are displayed, the <custom_ui> returns to the default "all visibles".

When a new Manialink page is received:
- previously displayed <manialink> with the same id as one in the new page are replaced.
- previously displayed <manialink> without an id are deleted
- previously displayed <manialink> with an id are kept.
- a new empty <manialink> with an id means delete the previously displayed <manialink> with this id.


Manialinks examples

A Nadeo's manialink example :
http://files.trackmaniaforever.com/ManialinkSamples.zip

Also, some interesting Nadeo example in the directory GameData\Manialinks\ of the game ;)

And a great example page for Styles and Substyles, made by Smurf :D
smurf wrote:After long search, I created a temporary manialink for styles and substyles I found for quads and labels.
You can see it in TMUF browser at 'example', or in TMNF browser at this address: http://smurf1.free.fr/mle/index.xml

Also a you can see a simple text list of the styles

If you find other styles or substyle you can send me an MP and I will update the manialink.
Note: some styles/substyles have different colors in TMUF and TMNF...

Re: Manialinks Forever

Posted: 06 May 2008 03:24
by Gekko
Hi Slig.

The <music> don't go.
Are you sure the attribute is data="http://......."

<music data="http://blablabla.ogg"/> not working.

You know why?

I used also <audio> but the volume is mixed with the car's engines.

Thx.

Re: Manialinks Forever

Posted: 06 May 2008 06:22
by FT»Marcel
Gekko wrote:Hi Slig.

The <music> don't go.
Are you sure the attribute is data="http://......."

<music data="http://blablabla.ogg"/> not working.

You know why?

I used also <audio> but the volume is mixed with the car's engines.

Thx.
<music> must have as parent the <manialink>-tag, if you place it in a <frame>, it will not work any longer. The code itself is correct ;)

Re: Manialinks Forever

Posted: 06 May 2008 07:13
by hal|Sascha
I have a problem with the <audio> tag.
Tested it with <audio data='http://...' /> and <audio>http://...</audio>, but can't get it to work from an ingame manialink (works in the manialink-browser). If I click the playbutton ingame, the normal music stops but nothing from my ogg file starts^^ :(

need help :mrgreen:

Re: Manialinks Forever

Posted: 06 May 2008 08:06
by spookster
@hal|sascha:

<audio pos="x y z" data="http://www.linktofile.com/audio.ogg"/>

Re: Manialinks Forever

Posted: 06 May 2008 13:37
by Gekko
Is there a way to use it in a frame?

Edit: <Manialink> tag is not included when Aseco make XML? i see it when debugging with php....

Re: Manialinks Forever

Posted: 06 May 2008 20:15
by Gekko
How i can put it in frame like <audio>?

Can i add <manialink> before <music>?

In debug mode i see the <manialink> tag is already opened and closed at the end of the xml created by aseco...

I've finished Gekko Hi-Fi PlugIn for Aseco if you answer me.

Thx Slig.

Re: Manialinks Forever

Posted: 07 May 2008 12:30
by Slig
Gekko wrote:How i can put it in frame like <audio>?

Can i add <manialink> before <music>?

In debug mode i see the <manialink> tag is already opened and closed at the end of the xml created by aseco...
For server manialinks, there is a id numeric attribute, and all other things have to be inside :

Code: Select all

<manialink id="5">
  ....
  ....
</manialink>
You can also send several <manialink> at the same time, so something like :

Code: Select all

<manialinks>
  <manialink id="1">
    ....
    ....
  </manialink>
  <manialink id="4">
    ....
    ....
  </manialink>
  <manialink id="8">
    ....
    ....
  </manialink>
</manialinks>
I don't know how aseco tmf handle it...

Btw, the general form and whet are id used for are indicated in the manialink_dedicatedserver.txt file which is part of the dedicated archive ;)

Re: Manialinks Forever

Posted: 08 May 2008 06:19
by hal|Sascha
spookster wrote:@hal|sascha:

<audio pos="x y z" data="http://www.linktofile.com/audio.ogg"/>
This don't work for me in ingame manialinks. My xml-code is like:

Code: Select all

<manialinks><manialink id='1'><frame....><audio.../></frame></manialink></manialinks>
Thats wrong?

One more question, does entry fields does not submit there values over an label with url attribute? This also don't work for me ingame but it works in the normal manialink explorer :(

Re: Manialinks Forever

Posted: 08 May 2008 06:35
by Gekko
Thx Slig, going to try.

Re: Manialinks Forever

Posted: 08 May 2008 06:37
by Gekko
hal|Sascha wrote:I have a problem with the <audio> tag.
Tested it with <audio data='http://...' /> and <audio>http://...</audio>, but can't get it to work from an ingame manialink (works in the manialink-browser). If I click the playbutton ingame, the normal music stops but nothing from my ogg file starts^^ :(

need help :mrgreen:

Try it:

<audio play="0|1">http://blablabla...</audio>

;)

Re: Manialinks Forever

Posted: 08 May 2008 07:25
by Gekko
Hi Slig.
The <manialink tag="number"> is already opened by xml created by aseco.
So is the <music> tag that not work in game i suppose.

i'm using the <audio> tag with the song with a maximum level volume to override the engine buzz.
or i'm gonna minimize the engine volume level ....

strange thing..

i post you the list of the plugin part

Code: Select all

  $xml .= '<line><cell width="0.24"><text halign="center" textsize="1">$fff'.$crixone.'</text></cell></line>';
  $xml .= '<audio play="1">http://ita-united.e-gekko.net/Oggoni/'.$crix.'.ogg</audio>';
  $xml .= '<line><cell><text action="{name:avanti,param:0}">FFW</text></cell></line>';
try to do this but i don't hear nothing

Code: Select all

  $xml .= '<music data="http://ita-united.e-gekko.net/Oggoni/'.$crix.'.ogg" />';

Re: Manialinks Forever

Posted: 17 May 2008 19:51
by dirtye
Gekko wrote:Hi Slig.
The <manialink tag="number"> is already opened by xml created by aseco.
So is the <music> tag that not work in game i suppose.

i'm using the <audio> tag with the song with a maximum level volume to override the engine buzz.
or i'm gonna minimize the engine volume level ....

strange thing..

i post you the list of the plugin part

Code: Select all

  $xml .= '<line><cell width="0.24"><text halign="center" textsize="1">$fff'.$crixone.'</text></cell></line>';
  $xml .= '<audio play="1">http://ita-united.e-gekko.net/Oggoni/'.$crix.'.ogg</audio>';
  $xml .= '<line><cell><text action="{name:avanti,param:0}">FFW</text></cell></line>';
try to do this but i don't hear nothing

Code: Select all

  $xml .= '<music data="http://ita-united.e-gekko.net/Oggoni/'.$crix.'.ogg" />';
$crix = ?; (what the variables u do?)
echo '$crix'; (see what it shows in your log ;) )
$xml .= '<audio play="1">http://ita-united.e-gekko.net/Oggoni/$crix</audio>';

<music> dosnt work in any tool

Re: Manialinks Forever

Posted: 22 May 2008 03:44
by Gekko
Yes tried but nothing, now i'm going to try that slig said.
Using it alone before creating frame.

I guess if i have to modify class.manialinkpage.php to insert the passed song.
Hmmm, so strange this tag!!

Maybe i understand!!!! lol!!!

Re: Manialinks Forever

Posted: 24 May 2008 19:02
by Gekko
Hi Slig, i had try all the possibilities to use <music> tag but nothing.

Can you write me how to use with an example??

Now i using in this way:

$xml .= '<manialinks>';
$xml .= '<manialink id="1560">';
$xml .= '<music data="http://localhost/XXXXX/blablabla.ogg" />';
$xml .= '</manialink>';
....

Thanx Slig.