| Voir le sujet précédent :: Voir le sujet suivant |
| Auteur |
Message |
Slig Prophète TM

Inscrit le: 27 Mar 2005 Messages: 3142 Localisation: TraXicoLand
|
Posté le: 16 Avr 2008 3:30 Sujet du message: Manialinks Forever |
|
|
Ces infos viennent à la base des premiers tests tmf, et ont été complétées par divers testeurs.
N'en demandez pas plus : je n'ai rien de plus
Ceci dit, si vous trouver en testant des infos, svp n'hésitez pas à en faire part afin de completer ce post
Il y a un tuto complet LA !
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"
<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" or "center"
// (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"
valign="center"
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
| smurf a écrit: | 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...
Dernière édition par Slig le 17 Sep 2008 14:40; édité 2 fois |
|
| Revenir en haut de page |
|
 |
Nareach Sage de la communauté

Inscrit le: 06 Fév 2006 Messages: 2204 Localisation: Nantes
|
Posté le: 16 Avr 2008 11:57 Sujet du message: |
|
|
Merci Slig  _________________
 |
|
| Revenir en haut de page |
|
 |
gropapa TrackManiaque

Inscrit le: 17 Sep 2004 Messages: 327 Localisation: Not Found : Error 404
|
Posté le: 16 Avr 2008 15:17 Sujet du message: |
|
|
Merci Slig,
Petite remarque concernant l'affichage des manialinks "ancienne version" : la couleur de fond des cellules contenant du texte avec une action n'est pas affichée correctement (la couleur est plus sombre qu'elle ne devrait être ....).
Pas grave, mais peut être y-a-t-il un moyen de contourner le problème ?
++ |
|
| Revenir en haut de page |
|
 |
Oscar97 Chevalier TM

Inscrit le: 14 Mar 2008 Messages: 947 Localisation: Sur l'éditeur :mrgreen:
|
Posté le: 18 Avr 2008 13:44 Sujet du message: |
|
|
Bon,ben,j'utiliserai plus d'anciens manialinks. _________________ Ma page TM replay est ici
mes maps
| Gnafou a écrit: | | Oscar est plus intelligent que moi |
═╦═╔╦╗ Powaaaaaaaa!  |
|
| Revenir en haut de page |
|
 |
Njones03 TrackManiaque

Inscrit le: 05 Mai 2005 Messages: 409
|
Posté le: 19 Avr 2008 17:02 Sujet du message: |
|
|
Pour ce qui est des maniacodes, faut passer par là maintenant a priori https://official.trackmania.com/tmf-playerpage/playerPage.php
Sauf qu'il m'est impossible de me connecter avec mon code communautaire car ca me dit "Authentification error." _________________ Notre Forum : VSK Team
ManiaLink : vsk
 |
|
| Revenir en haut de page |
|
 |
Pticon Il n'est plus un nouveau

Inscrit le: 30 Mai 2006 Messages: 70
|
Posté le: 19 Avr 2008 23:39 Sujet du message: |
|
|
Il ne faut pas utiliser ton code communautaire pour te connecter mais ton mot de passe TMU. _________________
Mes circuits
Manialink : Pticon ou Hooch |
|
| Revenir en haut de page |
|
 |
Ricardosan Sage de la communauté

Inscrit le: 08 Mai 2005 Messages: 2496 Localisation: Rouen (76) Emploi: Forever Skinneur Manialink: Ricardosan Age: 34 ans
|
Posté le: 20 Avr 2008 12:40 Sujet du message: |
|
|
merci au fait, car je n'avais pas l'info !!! _________________
 |
|
| Revenir en haut de page |
|
 |
KiMi Prophète TM

Inscrit le: 31 Oct 2006 Messages: 3902 Localisation: Do2l (68)
|
Posté le: 20 Avr 2008 18:55 Sujet du message: |
|
|
Merci Sliig..  |
|
| Revenir en haut de page |
|
 |
rasta87 Respectable Ancien

Inscrit le: 21 Juin 2007 Messages: 1150 Localisation: Limoges
|
Posté le: 21 Avr 2008 12:08 Sujet du message: |
|
|
Houla ! Comment fait on ? le "xml" ne marche plus alors !? Quelqu'un peut traduire un peux les nouvelles règles !!
J'ai reussi a en faire un avec l'ancienne technique... et voilà que ca change !!  _________________ www.skinteamchallenge.com
Contact : rasta@skinteamchallenge.com
 |
|
| Revenir en haut de page |
|
 |
steph_op3 Respectable Ancien

Inscrit le: 16 Oct 2007 Messages: 1240 Localisation: Verberie
|
Posté le: 21 Avr 2008 12:16 Sujet du message: |
|
|
Le codage en xml ne change pas (visiblement + c'est pour le php), mais si par ex tu a des cases qui contiennes du texte il peut y avoir des couleurs. Si ton manialink est entierement fait de jpg alors tout roule (je viens de faire un petit lifting au mien et aucun pbs) _________________
 |
|
| Revenir en haut de page |
|
 |
rasta87 Respectable Ancien

Inscrit le: 21 Juin 2007 Messages: 1150 Localisation: Limoges
|
|
| Revenir en haut de page |
|
 |
Slig Prophète TM

Inscrit le: 27 Mar 2005 Messages: 3142 Localisation: TraXicoLand
|
Posté le: 21 Avr 2008 12:53 Sujet du message: |
|
|
Très sérieusement c'est plus facile avec les nouveaux tags de faire une mise en page sans prise de tête.
Pour les images il vaut plutot mieux du png, qui est supporté, compresse assez bien, et gère la transparence. |
|
| Revenir en haut de page |
|
 |
steph_op3 Respectable Ancien

Inscrit le: 16 Oct 2007 Messages: 1240 Localisation: Verberie
|
Posté le: 21 Avr 2008 13:15 Sujet du message: |
|
|
Cool si le png est accepté maintenant , mais ça, je l'utiliserait pour la version 1.2 de mon manialink  _________________
 |
|
| Revenir en haut de page |
|
 |
rasta87 Respectable Ancien

Inscrit le: 21 Juin 2007 Messages: 1150 Localisation: Limoges
|
Posté le: 21 Avr 2008 13:28 Sujet du message: |
|
|
| Slig a écrit: | Très sérieusement c'est plus facile avec les nouveaux tags de faire une mise en page sans prise de tête.
Pour les images il vaut plutot mieux du png, qui est supporté, compresse assez bien, et gère la transparence. |
Comment puis je apprendre à m'en servir !? _________________ www.skinteamchallenge.com
Contact : rasta@skinteamchallenge.com
 |
|
| Revenir en haut de page |
|
 |
Slig Prophète TM

Inscrit le: 27 Mar 2005 Messages: 3142 Localisation: TraXicoLand
|
Posté le: 21 Avr 2008 15:54 Sujet du message: |
|
|
| Le 1er post contient quand même pas mal d'explications, et des liens vers des exemples. Ca ne suffit pas ? |
|
| Revenir en haut de page |
|
 |
|