Stunters NEW VERSION 2.3 2013-10-18 - EN

Discuss everything related to Trackmania 2.

Moderator: English Moderator

User avatar
Demented
Posts: 2327
Joined: 07 Nov 2010, 13:17
Location: United States

Re: Stunters NEW VERSION 2.3 2013-10-18 - EN

Post by Demented »

spaii wrote:BTW, stunts title menu is online/offline compatible
It is?? Ok cool. I'll have to try it again. Thank for the info. Next to racing Stunt mode was always my favorite but I don't really play online.
Wait is it "Stunters" or "Stunts"?
CPU: Intel I7-4770 64Bit @ 3.4Ghz.
Ram: 32GB DDR3
GPU: Geforce GXT 1060 6.2GB DDR5
Windows: 7 Pro SP1 64bit
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: Stunters NEW VERSION 2.3 2013-10-18 - EN

Post by spaii »

Concerning title menu, maniaplanet try to load the station manialink with size=3 and didn't find it, then station manialink is invisible.

There is a workaround, simply add all sizes in ManiaPlanetTitle.xml ;)

Code: Select all

	<packaging>
		<image name="PackImage.jpg"/>
		<logos name="Logos.png"/>
		<collection>Stunters</collection>
		<sortindex>0</sortindex>
		<station_manialink url="file://Media\Manialinks\StuntsStation.xml"/>
		<station_noquickenter>true</station_noquickenter>
		<boxcase_manialink url=""/>
	</packaging>
	<menu>
		<background_img name=""/>
		<background_replay name=""/>
		<header name=""/>
		<music name=""/>
		<manialink url="file://Media\Manialinks\StuntsStation.xml"/>
	</menu>
You have to include all sizes of your station manialink in your ManiaPlanetTitle.xml :

Code: Select all

<files>
		<file name="Media\Manialinks\StuntsStation.xml" public="false" internal="false"/>
		<file name="Media\Manialinks\StuntsStation_size=1.xml" public="true" internal="false"/>
		<file name="Media\Manialinks\StuntsStation_size=2.xml" public="true" internal="false"/>
		<file name="Media\Manialinks\StuntsStation_size=3.xml" public="true" internal="false"/>
	</files>

Content of StuntsStation.xml (which is same for every size)

Code: Select all

<manialink name="Stunts/Station" background="stars" version="2">
<timeout>0</timeout>
<type>default</type>
<frame id="MenuFrame" posn="0 -15 0" scale="1.1">
	<quad posn="0 45 -1" sizen="70 35" halign="center" valign="center" bgcolor="000b" />
	<quad posn="0 45" sizen="448 191" valign="center" halign="center" style="TitleLogos" substyle="Title" scale="0.15" />	
	<quad posn="0 0 -1" sizen="70 40" halign="center" valign="center" bgcolor="000b" />
	<quad posn="0 24 -1" sizen="70 8" halign="center" valign="center" bgcolor="0006" />
	<label id="Message" posn="0 24" sizen="68" textprefix="$i$ffa" halign="center" valign="center2" translate="1" />
	<label id="Chrono" posn="26 30" sizen="15" textprefix="$i$bb6" valign="center2" scale="0.7" />
	<label posn="0 11" text="Editors" halign="center" valign="center" translate="1" style="CardButtonMedium" action="menu_editors" />
	<label posn="0 0" text="Local Play" halign="center" valign="center" translate="1" style="CardButtonMedium" action="menu_local" />
	<label posn="0 -11" text="Quit" halign="center" valign="center" translate="1" style="CardButtonMedium" action="quit" />
</frame> 
<script><!--
#Include "TextLib"

#Const C_ManiaLinkUrl 	"Station_Menu_ManiaLink"
#Const C_PingUrl		"http://ping.mydomain.net"
#Const C_PingTimeOut	25000

main () {

	while(!PageIsVisible) {
		yield;
	}
	
	declare Message 	= (Page.GetFirstChild("Message") as CMlLabel);
	declare Chrono 		= (Page.GetFirstChild("Chrono") as CMlLabel);
	declare PingEndTime	= Now + C_PingTimeOut;
	declare PingReq 	= Http.CreateGet(C_PingUrl, False);
	
	while(!PingReq.IsCompleted)	{
		yield;
		if (Now > PingEndTime) break;
		Message.Value = "Loading online menu, please wait...";
		Chrono.Value = FormatReal((PingEndTime - Now)/1000., 1, False, False);
	}
	
	if(PingReq.IsCompleted && PingReq.StatusCode == 200)
		OpenLink(C_ManiaLinkUrl, ::LinkType::Goto);
	else {
		Message.Value = "You are not connected.";
		Chrono.Value = "";
	}
}
--></script>
</manialink>
C_ManiaLinkUrl : simply replace by your online title station/menu.
C_PingUrl : put an url that verify if player is online or offline, try to ping a simple page that you do, display for exemple "ok". Do not ping an html web page, result is downloaded by http request, and this could be long
C_PingTimeOut : i think a value bigger than 20000 is advised (perhaps more...), because if you launch title menu via station, this last is offline.

Inside /ManiaPlanet/Media/Manialinks :
Image



For now, all players that have downloaded bugged title with invisible station are not able to update title pack.
We have to tell to players to redownload titlepack manually/with maniacode.

Other workaround is to launch titlepack via desktop shortcut, in this case, maniaplanet launch menu without size parameter ;)

I hope this will help you and will be clarified in futur ManiaPlanet ;)
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: Stunters NEW VERSION 2.3 2013-10-18 - EN

Post by spaii »

Demented wrote:Wait is it "Stunters" or "Stunts"?
Meuh ask me an history of stunters titles, i'm on it, please wait... ;)
Post Reply

Return to “Trackmania 2”

Who is online

Users browsing this forum: No registered users and 1 guest