Trackmap parameters

From Pikmin Technical Knowledge Base
Revision as of 07:45, 10 October 2023 by Waffles (talk | contribs) (trackMap file documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Pikmin 2, the trackMap files located in /user/Totaka and /user/Wakai respectively are responsible for mapping instruments into certain mixes. They also set which instruments will skip notes when a Pikmin has died and the player has less than 10 Pikmin. The reason why the files are separated into different folders is because the songs are by these two different composers.

Format:

cavesong_XX_Y.cnd
{
	4 	# basic (Main mix)
	2 	# event (Task mix)
	2 	# otakara event (Treasure mix)
	1 	# kehai (Enemy mix)
	2 	# battle (Combat mix)
	2 	# ground (Spiderwort mix)
	
	# pikmin数演出トラック定義 
	{
	  	1 1 1 1	# 0~3
		0 0 0 0	# 4~7
		0 0 0 0	# 8~11
		0 0 0 0	# 12~15
	}

	# マスクするnote on ID
	{
		0 0 0 1 	#0~3
		1 1 1 1 	#4~7
	}
}
  • The first part is how many instruments will be in each mix. They must be grouped sequentially. In this example, the first 4 instruments will be in the main mix, the next 2 instruments will be in the task mix, and so on.
  • The 16 values below is which of the 16 tracks will skip notes. Tracks marked with a "1" will skip notes when a Pikmin has died and the Pikmin count is below 10.
  • The 8 values at the bottom is a table for when notes will be skipped in the theme. This was left the same for every song in the vanilla game.