TM-FORUM

The TrackMania universal forum ^_^
It is currently Sat Nov 01, 2014 4:45 am

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 50 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Manialinks Forever
PostPosted: Wed Apr 16, 2008 4:01 am 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Mon Sep 05, 2005 8:51 pm
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
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:
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:
<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...


Last edited by Slig on Sat Jun 26, 2010 7:59 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 6:24 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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.


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 9:22 am 
Offline
cyclist
cyclist
User avatar

Joined: Tue Mar 18, 2008 3:07 pm
Posts: 44
Location: Thuringia, Germany
Owned TM-games: All
Manialink(s): Marcel, FunTrackers
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 ;)


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 10:13 am 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Fri Aug 12, 2005 7:22 pm
Posts: 671
Location: Germany Munich
Owned TM-games: TMU, TMN, TMS, TMO
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:

_________________
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 11:06 am 
Offline
wheelbarrow operator
wheelbarrow operator

Joined: Mon Sep 12, 2005 4:17 pm
Posts: 18
Owned TM-games: All
Manialink(s): spookster
@hal|sascha:

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

_________________
Image


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 4:37 pm 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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....


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Tue May 06, 2008 11:15 pm 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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.


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Wed May 07, 2008 3:30 pm 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Mon Sep 05, 2005 8:51 pm
Posts: 2124
Location: TraxicoLand (Fr)
Owned TM-games: ALL
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:
<manialink id="5">
  ....
  ....
</manialink>


You can also send several <manialink> at the same time, so something like :
Code:
<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 ;)


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Thu May 08, 2008 9:19 am 
Offline
Pit Crew
Pit Crew
User avatar

Joined: Fri Aug 12, 2005 7:22 pm
Posts: 671
Location: Germany Munich
Owned TM-games: TMU, TMN, TMS, TMO
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:
<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 :(

_________________
CPU: Intel Core 2 Duo E6600
Mainboard: Asus P5W DH Deluxe
RAM: 2 GB
Graphics: ATI Radeon X1950XTX
Audio: Soundblaster Audigy 4
Internet: ADSL 6Mbit
OS: Windows Vista Bussiness


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Thu May 08, 2008 9:35 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
Thx Slig, going to try.


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Thu May 08, 2008 9:37 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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>

;)


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Thu May 08, 2008 10:25 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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:
  $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:
  $xml .= '<music data="http://ita-united.e-gekko.net/Oggoni/'.$crix.'.ogg" />';


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Sat May 17, 2008 10:51 pm 
Offline
cyclist
cyclist
User avatar

Joined: Fri Jan 26, 2007 5:45 am
Posts: 45
Location: Germany
Owned TM-games: TMU, TMO, TMS,TMN
Manialink(s): Team TMRS
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:
  $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:
  $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

_________________
Image


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Thu May 22, 2008 6:44 am 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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!!!


Top
 Profile  
 
 Post subject: Re: Manialinks Forever
PostPosted: Sat May 24, 2008 10:02 pm 
Offline
speedy pilot
speedy pilot

Joined: Sun Sep 03, 2006 9:20 pm
Posts: 550
Location: Naples - Italy
Owned TM-games: ALL
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 50 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group