2017-11-22 udpate: custom campaigns

Discuss everything related to custom data creation.

Moderator: NADEO

Post Reply
User avatar
xbx
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:35

2017-11-22 udpate: custom campaigns

Post by xbx » 22 Nov 2017, 17:35

hello!

So there are some changes in the november update.
in the title.xml campaigns sections:

Code: Select all

	<score_context>
			<name>Platform</name>
			<maprecord_type>3</maprecord_type> <!-- 0=scoreasc, 1=scoredsc, 2=time, 3=respawns -->
			<medals_enabled>true</medals_enabled>
			<compute_medals_from_maprecord>false</compute_medals_from_maprecord>  <!-- only available for maprecord_type=2, other modes must use scripted medals via Solo_SetNewRecord() -->
			<author_medals_enabled>false</author_medals_enabled>
			<skillpoints_enabled>true</skillpoints_enabled>
	</score_context>
	<campaign num="2">
			<playlist name=""/>
			<mode name="PlatformSolo"/>
			<score_context>Platform</score_context>
			<official_record_enabled>true</official_record_enabled>
			<maps folder="PlatformTMUF\"/>
	</campaign>				
  • It is now possible to specify a mode name per campaign, which will override the general "solo" mode.
  • There's a 'disable_unlock_system' if you want to make custom menus and not be limited by the old unlock rules
  • 'compute_medals_from_maprecord' is now forced to false if 'maprecord_type' is not 2. (other modes must use scripted medals via Solo_SetNewRecord() )
  • In addition bugs when using multiple campaigns with different score contexts have been fixed.

User avatar
xbx
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:35

Re: 2017-11-22 udpate: custom campaigns

Post by xbx » 22 Nov 2017, 17:43

In addition I was looking at the 'TM2 United Forever' title by adamkooo, and here are a few things I stumbled upon:
  • If using url='#campaign=PlatformA1@TM2UF@adamkooo' to start a map, pay attention that the map is searched by name from the campaigns. If the map is duplicated in several campaign folders it may not use the one you expect.
  • The title displays the maps in a fully custom manialink, with a explicit list of the maps. If this menu list doesn't match the files in the campaign folder (say, the menu displays MapA1, MapA2, .... whereas there's a MapA0 in the campaign folder) when trying to load 'MapA1' it will say that the map is locked: because it's the second map in the series.
  • the CScoreMgr API is 'not perfect'... The UserId arguemnt to most functions is not the 'LocalUser.Id'. (it's a left over from the TM Turbo console version) Just use NullId...

    Code: Select all

    declare SkillPoints = ScoreMgr.Campaign_GetSkillPoints(NullId, DataFileMgr.Campaigns[0].CampaignId);
    Or to get the Medals of some map:

    Code: Select all

    		declare Campaign0  = DataFileMgr.Campaigns[0];
    		declare Map5 = Campaign0.MapGroups[0].MapInfos[4];
    		declare NbMedals = ScoreMgr.Map_GetMultiAsyncLevel(NullId, Map5.MapUid, Campaign0.ScoreContext);
    		log("medals on " ^ Map5 .Name ^ ": " ^ NbMedals ^ ", unlocked? = " ^ Map5.Unlocked);
    
  • Pay attention that ScoreMgr is not available when a manialink page is open 'out of context' in the manialinkbrowser. It must be the main menu page or a layer of the CManiaAppTitle.

User avatar
Miss
Posts: 1149
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: 2017-11-22 udpate: custom campaigns

Post by Miss » 22 Nov 2017, 19:08

Thanks for the detailed information! :thx:
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative Maniaplanet scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

User avatar
Dommy
Translator
Translator
Posts: 1809
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: 2017-11-22 udpate: custom campaigns

Post by Dommy » 22 Nov 2017, 20:02

This can definitely help bringing back Invasion solo compaign. :thumbsup:

User avatar
xbx
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:35

Re: 2017-11-22 udpate: custom campaigns

Post by xbx » 22 Nov 2017, 20:24

Dommy wrote:
22 Nov 2017, 20:02
This can definitely help bringing back Invasion solo compaign. :thumbsup:
?
The old MP3 invasion title stills works perfectly for me.
(I use it all the time to test the game!)

User avatar
Florenzius
Translator
Translator
Posts: 2233
Joined: 27 Jul 2014, 20:31
Location: Germany » Saxony » Chemnitz
Contact:

Re: 2017-11-22 udpate: custom campaigns

Post by Florenzius » 22 Nov 2017, 20:57

Thank you for updating! We got green lights to make our platform mode work!
Image

User avatar
adamkooo2
Posts: 1270
Joined: 13 Jun 2014, 08:43
Location: Slovakia // Slovensko
Contact:

Re: 2017-11-22 udpate: custom campaigns

Post by adamkooo2 » 23 Nov 2017, 07:09

Many thanks :thx: :thumbsup: :yes:
/\rkady
Image

User avatar
Dommy
Translator
Translator
Posts: 1809
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: 2017-11-22 udpate: custom campaigns

Post by Dommy » 23 Nov 2017, 17:59

xbx wrote:
22 Nov 2017, 20:24
Dommy wrote:
22 Nov 2017, 20:02
This can definitely help bringing back Invasion solo compaign. :thumbsup:
?
The old MP3 invasion title stills works perfectly for me.
(I use it all the time to test the game!)
Good to hear it's useful :lol:

Although, I was speaking about including Invasion's solo mode in Galaxy title pack, which features scripted menus.

Post Reply

Return to “Title Pack & Custom Data Creation”

Who is online

Users browsing this forum: No registered users and 1 guest