Updating a Titlepack

Discuss everything related to Maniaplanet.

Moderator: English Moderator

ziza
Posts: 65
Joined: 29 Mar 2013, 19:18

Updating a Titlepack

Post by ziza »

Hey guys and gals,

I'm currently working on a titlepack, and i wonder how it is possible to keep updates rolling out to players.
I tried to do that Upload-to-cloud-thingy, but this keeps failing.
So maybe one of you can tell me if/how it's possible to auto-update a titlepack :)

thx in advance,
ZiZa
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Updating a Titlepack

Post by steeffeen »

upload a title pack file to the cloud will make it available on other computers (only for yourself), so you can play the title on other machines as well

regarding the automatic updates: i would like to cite spaii here
spaii wrote: 1. you have to use custom title pack menu (not working with included Nadeo menu)
2. include an xml file (for example ClientVersion.xml in Media\Manialinks folder) in your title pack with this line of code :

Code: Select all

<label id="ClientVersionLabel" posn="0 5 3" valign="top" halign="left" style="TextTips" text="2013-03-09" />
3. in your custom menu manialink add :

Code: Select all

<label posn="0 -12 0" id="OnlineVersionLabel" halign="center" valign="top" text="2013-03-09" />
<include url="file://Media/Manialinks/ClientVersion.xml" />
4. in Script part of your custom menu, simply compare OnlineVersionLabel and ClientVersionLabel :

Code: Select all

	if (ClientVersionLabel.Value != OnlineVersionLabel.Value)
	{
		// action for updating title
	}
	else
	{
		// others actions
	}

i hope this help you ;)
the way he described is the only way i see, in fact i'm doing it similarly
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    spaii
    Posts: 1075
    Joined: 19 Jun 2010, 00:04
    Location: Rémy - France
    Contact:

    Re: Updating a Titlepack

    Post by spaii »

    I found another one ;)
    When i start to develop title pack OpenLink in maniascript doesn't exist.
    I think it's much simpler.

    1. Include this custom menu xml file (for example home.xml in Media\Manialinks folder) in your title pack.
    This call a php page with the client version of title pack.
    You have to change the version variable each time you update the title pack.

    Code: Select all

    <?xml version="1.0" encoding="UTF-8" ?>
    <manialink id="home" background=0 version=1>
    <timeout>0</timeout>
    <type>default</type>
    <frame id="generalFrame" posn="0 0 0">
    </frame> 
    <script><!--
    main () {
    	yield;
    	OpenLink("http://www.yoururl.zzz/menu.php?version=2013.03.25", ::LinkType::Goto);		
    }
    --></script>
    </manialink>
    
    2. in menu.php script

    Code: Select all

    $currentVersion = "2013.03.29";
    $clientVersion = $_GET['version'];
    if ($currentVersion != $clientVersion)
    {
    // Manialink to propose title pack update
    }
    else
    [
    // Display title pack menu
    }
    
    
    I hope this help you ;)


    Edit : you can also use this one :

    Code: Select all

    OpenLink("http://xxx.yoururl.zz/?enviro=" ^ LoadedTitle.BaseTitleId ^ "&login=" ^ LocalUser.Login ^ "&version=whatyouwant", ::LinkType::Goto);
    To have user login and title pack environement.
    Then when you work on your php script you can do :

    Code: Select all

    if ($_GET['login'] == 'spaii')
    {
    // Work on new features in title pack menu
    }
    Last edited by spaii on 26 Apr 2013, 22:59, edited 4 times in total.
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Updating a Titlepack

    Post by steeffeen »

    yeah looks good :)
    but dropbox doesn't support processing of .php files xD
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      spaii
      Posts: 1075
      Joined: 19 Jun 2010, 00:04
      Location: Rémy - France
      Contact:

      Re: Updating a Titlepack

      Post by spaii »

      steeffeen wrote:but dropbox doesn't support processing of .php files xD
      lol, ok :lol:
      User avatar
      luftisbollentm2
      Translator
      Translator
      Posts: 613
      Joined: 25 Aug 2011, 23:01

      Re: Updating a Titlepack

      Post by luftisbollentm2 »

      steeffeen wrote:yeah looks good :)
      but dropbox doesn't support processing of .php files xD
      what do you mean ?
      have you tryed change www to dl so you can hotlink
      like this ?

      hotlink don´t work >>> https://www.dropbox.com/s/28upk
      to
      hotlink work >>> https://dl.dropbox.com/s/28upkh

      no idea if php work but maybe this help :thumbsup:
      PC: Amd x2 2500mhz 6gb ddr2 ati 5850 1024mb
      best valley clip http://instagram.com/p/bTvCURtPCo/#
      really show what valley is about <3
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Updating a Titlepack

      Post by steeffeen »

      luftisbollentm2 wrote:
      steeffeen wrote:yeah looks good :)
      but dropbox doesn't support processing of .php files xD
      what do you mean ?
      have you tryed change www to dl so you can hotlink
      like this ?

      hotlink don´t work >>> https://www.dropbox.com/s/28upk
      to
      hotlink work >>> https://dl.dropbox.com/s/28upkh

      no idea if php work but maybe this help :thumbsup:
      ?
      the thing is that you will always get the file itself, but i would need that the php gets processed / interpreted
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

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

        Re: Updating a Titlepack

        Post by w1lla »

        You can also do it with a maniacode:

        http://forum.maniaplanet.com/viewtopic. ... 65&t=12589

        With the maniacode you can always try to push/publish it through maniahome to your users.

        Did it with my TitlePack and it worked ;)
        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
        ziza
        Posts: 65
        Joined: 29 Mar 2013, 19:18

        Re: Updating a Titlepack

        Post by ziza »

        wow, that was some quick help :)

        great forum here, thx alot for all the help, i'm sure i can work something out this way!

        keep it up :thumbsup:

        ZiZa
        User avatar
        alividerci
        Posts: 363
        Joined: 11 Feb 2012, 07:03

        Re: Updating a Titlepack

        Post by alividerci »

        in title pack .xml
        i wrote

        Code: Select all

        <station_manialink url="Media\HeroManialink.xml" />
        <file name="Media\HeroManialink.xml" public="false" internal="false" />
        true?
        Post Reply

        Return to “Maniaplanet”

        Who is online

        Users browsing this forum: No registered users and 1 guest