[Tutorial] ManiaLinks Forever

If you have anything to say - or advice to give - on the creation or publishing of ManiaLinks, here is the place to do it!

Moderator: TM-Patrol

Knuk
pedestrian
pedestrian
Posts: 8
Joined: 14 Apr 2008 21:00
Owned TM-games: TMUF
Manialink(s): Knuk
Location: Quebec

Re: [Tutorial] ManiaLinks Forever

Post by Knuk » 24 Nov 2008 11:22

Yes it works, thanks! :D

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by jamie_macdonald » 03 Dec 2008 13:30

Nice tut on the new stuff marcel...

However i cannot seem to get an old style manialink working in a <frame></frame>

This is the old:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<manialink>
<music data="http://www.jamiemac1977.bplaced.net/Manialink/Puscifer_MommaSed.ogg"/>
   <line height='.5'>
      <cell width='.7'>
         <icon height='.5' manialink='Jamies:Links' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.5' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.5' manialink='Jamies' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_2_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_2_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_2_1_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_2_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_2_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_2_1_2.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_3_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_3_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_3_1_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_3_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_3_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_3_1_2.jpg</icon>
      </cell>
   </line>
</manialink>
This is an attempt to frame:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<manialink>
<music data="http://www.jamiemac1977.bplaced.net/Manialink/Puscifer_MommaSed.ogg"/>
<frame pos="0 0 0">
   <line height='.5'>
      <cell width='.7'>
         <icon height='.5' manialink='Jamies:Links' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.5' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.5' manialink='Jamies' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_2_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_2_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_2_1_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_2_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_2_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_2_1_2.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_3_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_3_1_1.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_3_1_1.jpg</icon>
      </cell>
   </line>
   <line height='.25'>
      <cell width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_1_3_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_2_3_1_2.jpg</icon>
      </cell>
      <cell bgcolor='000f' width='.7'>
         <icon height='.25' width='.7'>http://www.jamiemac1977.bplaced.net/Manialink/Links_Base_3_3_1_2.jpg</icon>
      </cell>
   </line>
</frame>
</manialink>
Does anyone know why it doesnt work? (i've tried the frame before and after music also)

Thx for help

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: [Tutorial] ManiaLinks Forever

Post by oliverde8 » 03 Dec 2008 18:22

in frames you can put <quads> or <label>

<line> and <cell> is old and I don't think they work as you would like them to work if they are in a <frame>
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by jamie_macdonald » 04 Dec 2008 05:28

it says you can in the tutorial ...
* Combinated ManiaLink:
With the option of the "oldnew" (:D) ManiaLink you have the possibility to combine the easy table structure and the new elements.
This is easier then it sounds. Just split up your ManiaLink into two parts. Build the old ManiaLink as usual, remember only basic tags will work. Then you add the new elements in the end or in the beginning.
Thereby you can deal with the old ManiaLink part like a frame with the z-value: pos="X Y -0.04" or posn="X Y 2.56". in this way it is possible to place elements before or behind the old part.

Another hint: If you open a partially or complete new manialink in TMU you will see only the old part or nothing. There will be no error message in TMU.

User avatar
FT»Marcel
cyclist
cyclist
Posts: 44
Joined: 18 Mar 2008 12:07
Owned TM-games: All
Manialink(s): Marcel, FunTrackers
Location: Thuringia, Germany
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by FT»Marcel » 04 Dec 2008 07:33

If I remember right, it is not possible to place <line> and <cell> into a frame, because in old ManiaLinks there were no frames. To use the old Manialinks, you have to use exactly the old structure, without any frames, because TMU didn't know any frames. And the only reason, why line/cell is still supported, is the compatibility of still old ManiaLinks ;)

I think Nadeo did not plan, that this line/cell structure should be used any longer, so that it is not parsed in frames. I think it is much better to build a ManiaLink in full new style instead using old style elements. That's why the Combinated ManiaLinks have only a small part in the end ^^

But if you want to move your line/cell-"ManiaLink" away from the center, you have to use hidden (means empty) lines and cells, as it was in TMU ;)

User avatar
FT»Marcel
cyclist
cyclist
Posts: 44
Joined: 18 Mar 2008 12:07
Owned TM-games: All
Manialink(s): Marcel, FunTrackers
Location: Thuringia, Germany
Contact:

Tutorial updated: New attribute "maxline" added to Label

Post by FT»Marcel » 04 Dec 2008 16:46

After not knowing what to do, I decided to search again after new, still unseen attributes for the ManiaLinks. I did not expected to find anything, but after some time I discovered the string "maxline". After testing this found attribute, it's clear: With it you are able to limit the lines of text displayed in a (multiline) label.
This is very usefull for dynamical ManiaLinks with user input like Guestbooks: Because you do not know, how many lines will be displayed, means that the design will always be destroyed when having to many lines. Now you can limit the number of lines, so that they will always fit into your box ;) (of course you loose the last lines, if there are to many of them)

jamie_macdonald
TM-Patrol
TM-Patrol
Posts: 1612
Joined: 10 Jul 2008 19:48
Owned TM-games: TMUF, TMNF, TMS
Manialink(s): ET
Location: London, UK
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by jamie_macdonald » 05 Dec 2008 18:58

Ok thx for the reply marcel and the tutorial ... scince you cannot Combine (combinate as you put) the old and new manialinks i suggest maybe taking that from the Tutorial.

Thx for all your help im am building it with quads now ... I suppose i will get used to the text editor lol

If you want to check out how far i get the Manialink is "Jamies"

++

twoeagles
road tourist
road tourist
Posts: 98
Joined: 13 Oct 2008 15:13
Owned TM-games: tm.
Location: United States of America

Re: [Tutorial] ManiaLinks Forever

Post by twoeagles » 18 Dec 2008 08:47

This is a very nice tutorial, Marcel! :3 I have added it to the main ManiaZone forum in the USA Zone for all to see! :thumbsup: I am desperately wanting to make a ManiaLink of my own as well, :grmblz: so I will be returning to this thread often! :lol:

User avatar
T.O.M.
smooth traffic navigator
smooth traffic navigator
Posts: 299
Joined: 15 Mar 2006 13:43
Owned TM-games: TMO,TMS,TMN,TMU
Manialink(s): T.O.M.
Location: Czech Republic

Re: [Tutorial] ManiaLinks Forever

Post by T.O.M. » 09 Mar 2009 22:05

Is there any "code" for ML that will open ingame message that can be send to me ? (u know automaticly open send message with my name... hope understand what i mean :oops: :mrgreen: ).

btw ... good tuto :1
MANIAPAGE : T.O.M.
ImageImage
sQs.TrackMania.cz
T.O.M.

User avatar
Shaigan
happy cruiser
happy cruiser
Posts: 118
Joined: 06 May 2008 10:56
Owned TM-games: TMN, TMU, TMUF
Manialink(s): :shaigan
Location: Tarbes, FR
Contact:

Re: Tutorial updated: New attribute "maxline" added to Label

Post by Shaigan » 10 Mar 2009 07:33

T.O.M., I think there isn't any code like that. I think we can't interact with the private messaging interface :/.
FT»Marcel wrote:After not knowing what to do, I decided to search again after new, still unseen attributes for the ManiaLinks. I did not expected to find anything, but after some time I discovered the string "maxline". After testing this found attribute, it's clear: With it you are able to limit the lines of text displayed in a (multiline) label.
This is very usefull for dynamical ManiaLinks with user input like Guestbooks: Because you do not know, how many lines will be displayed, means that the design will always be destroyed when having to many lines. Now you can limit the number of lines, so that they will always fit into your box ;) (of course you loose the last lines, if there are to many of them)
Marcel, is there a way to do the same thing but with the line width ? For the moment, I have to add chr(13)+chr(10) directly in my DB to see my lines not deformed.

v000nix
happy cruiser
happy cruiser
Posts: 138
Joined: 09 Jan 2008 19:26
Owned TM-games: TMN, TMU, TMUF
Manialink(s): v000nix, TManiacs
Location: Germany
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by v000nix » 11 Mar 2009 08:34

You can use the size(n)="" attribute also in labels. Combine it with autonewline="1" and the width will be regulatet automatticly.

<label posn='0 0 1' sizen='50 100' autonewline='1' text='thisisaloooongtext' />

User avatar
Shaigan
happy cruiser
happy cruiser
Posts: 118
Joined: 06 May 2008 10:56
Owned TM-games: TMN, TMU, TMUF
Manialink(s): :shaigan
Location: Tarbes, FR
Contact:

Re: [Tutorial] ManiaLinks Forever

Post by Shaigan » 11 Mar 2009 09:24

Thanks you :)

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

Re: [Tutorial] ManiaLinks Forever

Post by Greco » 25 Apr 2010 14:47

helpfull

Post Reply