Clublink: to customize your team in maniaplanet!

Discuss everything related to Maniaplanet.

Moderator: English Moderator

User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Clublink

Post by steeffeen »

gearmat wrote:can u give me the link of the image u use ??
i used exactly the same image, i didn't modify it
it's even your url, just cleaner (without parameters)
https://dl.dropboxusercontent.com/sh/p7 ... 281%29.dds
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    gearmat
    Posts: 95
    Joined: 28 Jul 2011, 12:28

    Re: Clublink

    Post by gearmat »

    done

    work very good.
    User avatar
    w1lla
    Posts: 2396
    Joined: 15 Jun 2010, 11:09
    Location: Netherlands
    Contact:

    Re: Clublink

    Post by w1lla »

    Some bugs:

    https://www.dropbox.com/s/xn92sqoxeaw2y ... Shot06.jpg

    Bobrothers primary color is RED so F00 and RED is 00F.

    So somewhere is colors exist the secondary color isnt used.

    Script: Elite
    TM² Info
    SM Info
    QM Info

    OS: Windows 10 x64 Professional
    MB: MSI 970A-G46
    Processor: AMD FX-6300 3500 mHz
    RAM Memory: 16 GB DDR3
    Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
    KB: Logitech G510s
    Mouse: Logitech G300s
    Mode Creation
    ManiaScript Docs
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Clublink

    Post by steeffeen »

    w1lla wrote:Bobrothers primary color is RED so F00 and RED is 00F.
    you mean their secondary color is 00F?
    well why should the secondary color be used? the red color is fine, isn't it?

    //Edit: oh i just saw the blue team is called "Red" :D
    well that's weird :P
    Last edited by steeffeen on 11 Sep 2013, 09:50, edited 1 time in total.
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      w1lla
      Posts: 2396
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: Clublink

      Post by w1lla »

      Happens quite often but its quite strange. Same happens if you go in Spectator modus and return back. Colors of teams are mixed up.
      TM² Info
      SM Info
      QM Info

      OS: Windows 10 x64 Professional
      MB: MSI 970A-G46
      Processor: AMD FX-6300 3500 mHz
      RAM Memory: 16 GB DDR3
      Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
      KB: Logitech G510s
      Mouse: Logitech G300s
      Mode Creation
      ManiaScript Docs
      User avatar
      Eole
      Nadeo
      Nadeo
      Posts: 1265
      Joined: 26 Apr 2011, 21:08

      Re: Clublink

      Post by Eole »

      When a clublink is activated we check that the colors of the two teams are not too similar. If it's the case one of the team has its color modified to avoid confusion. But it can also result in strange situation like above where the "Red" team is blue.
      Contribute to the ManiaPlanet documentation on GitHub
      A question about ManiaScript? Ask it here!
      tcq
      Posts: 2718
      Joined: 15 Jun 2010, 11:02

      Re: Clublink

      Post by tcq »

      Eole wrote:When a clublink is activated we check that the colors of the two teams are not too similar. If it's the case one of the team has its color modified to avoid confusion. But it can also result in strange situation like above where the "Red" team is blue.
      A possibility might be, to have a back up colour configuration just as football with the home and away jerseys.
      User avatar
      w1lla
      Posts: 2396
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: Clublink

      Post by w1lla »

      There is a secondary color setting but not used
      TM² Info
      SM Info
      QM Info

      OS: Windows 10 x64 Professional
      MB: MSI 970A-G46
      Processor: AMD FX-6300 3500 mHz
      RAM Memory: 16 GB DDR3
      Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
      KB: Logitech G510s
      Mouse: Logitech G300s
      Mode Creation
      ManiaScript Docs
      User avatar
      w1lla
      Posts: 2396
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: Clublink

      Post by w1lla »

      Another bug:

      With the Club.xml file there seems to be a issue:

      Code: Select all

      simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not
      Happens on almost every Clublink created on player page.

      A solution for clublinks might be this:

      Code: Select all

      <?xml version="1.0" encoding="utf-8"?>
      <club version="1">
        <!-- Name of the team -->
         <name></name>
        
        <!-- Zone of the team (See in game for the zone structure) -->
         <zone></zone>
        
        <!-- City of the team -->
         <city></city>
        
        <!-- Colors of the team (Used on the spawns, the poles and the UI) Primary Color is First Color used: Secondary will be used if 1st is Used -->
         <color primary="F00" secondary="095" />
        
        <!-- Emblem of the team (Used on the spawns, the poles and the UI) Current Image is not 512x512 -->
        <!-- Must be a dds file in BC1/DXT1 with mipmaps of 512x512 pixels-->
        <!-- Emblem_web is used for server controllers :P -->
         <emblem></emblem>
         <emblem_web></emblem_web>
         
         <!-- Players list -->
         <players>
          <!-- ManiaPlanet login of the player -->
            <player login="">
            <!-- Nickname of the player (Can be used by game modes to automatically rename the player on the server if needed)  -->
               <nickname></nickname>
            <!-- Avatar of the player (Can be used by game modes to automatically replace the avatar of the player on the server) -->
            <!-- Any format supported by ManiaPlanet can be used (jpg, png, tga, dds, bik) -->
               <avatar></avatar>
            </player>
        </players>
        <!-- Sponsors list -->
        <!-- They'll be displayed on the sides of the screen during the end of the rounds/maps  -->
         <sponsors>
          <!-- Name of the sponsors -->
            <sponsor name="Sponsor 1">
            <!-- Image of the sponsor -->
            <!-- Any format supported by ManiaPlanet can be used (jpg, png, tga, dds, bik), image ratio 2:1. -->
               <image_2x1></image_2x1>
            </sponsor>
          <!-- You can add as many sponsors as you want -->
            <sponsor name="Sponsor 2">
               <image_2x1></image_2x1>
            </sponsor>
            <sponsor name="Sponsor 3">
               <image_2x1></image_2x1>
            </sponsor>
         </sponsors>
      </club>
      As this will not give those errors.

      with kindly regards,

      w1lla
      TM² Info
      SM Info
      QM Info

      OS: Windows 10 x64 Professional
      MB: MSI 970A-G46
      Processor: AMD FX-6300 3500 mHz
      RAM Memory: 16 GB DDR3
      Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
      KB: Logitech G510s
      Mouse: Logitech G300s
      Mode Creation
      ManiaScript Docs
      User avatar
      magnetik
      Nadeo
      Nadeo
      Posts: 1678
      Joined: 01 Feb 2012, 19:13
      Location: Bordeaux
      Contact:

      Re: Clublink

      Post by magnetik »

      Hi,

      I don't have any XML errors with the clublinks generated on the playerpage. Could you PM a link that gives you an error ?

      Thanks
      ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
      Post Reply

      Return to “Maniaplanet”

      Who is online

      Users browsing this forum: No registered users and 1 guest