Page 1 of 2

Updating a Titlepack

Posted: 29 Mar 2013, 19:23
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

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:02
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

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:28
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
}

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:31
by steeffeen
yeah looks good :)
but dropbox doesn't support processing of .php files xD

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:36
by spaii
steeffeen wrote:but dropbox doesn't support processing of .php files xD
lol, ok :lol:

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:49
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:

Re: Updating a Titlepack

Posted: 29 Mar 2013, 20:50
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

Re: Updating a Titlepack

Posted: 29 Mar 2013, 21:29
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 ;)

Re: Updating a Titlepack

Posted: 29 Mar 2013, 21:36
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

Re: Updating a Titlepack

Posted: 24 Jul 2013, 02:38
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?