Difference between revisions of "Trackmap parameters"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
(trackMap file documentation)
 
(More info)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
In ''Pikmin 2'', the trackMap files located in <code>/user/Totaka</code> and <code>/user/Wakai</code> 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.
+
In ''Pikmin 2'', the trackMap files located in <code>/user/Totaka</code> and <code>/user/Wakai</code> 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. There can be a maximum of 32 entries in each trackMap file; the game will fail to read a 33rd entry.
  
 
Format:
 
Format:
Line 27: Line 27:
 
}
 
}
 
</source>
 
</source>
* 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 first part is how many instruments will be in each mix. They must be grouped sequentially; in this example, the first 4 instruments in the song will be in the main mix, the next 2 instruments will be in the task mix, and so on.<br>''Each mix must contain at least 1 track, as a mix with 0 tracks will not work. Additionally, the sum of all the tracks must not be greater than 16, which is the maximum number of tracks a song can have.''
* 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 16 values below is which of the 16 tracks will skip notes. Tracks set to "1" will skip notes when a Pikmin has died and the Pikmin count is below 10.<br>''There must be at least one track set to 1, or the game will crash.''
* 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.
+
* 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.<br>''Setting all 8 values to 0 will make it so there is no difference when the player loses a lot of Pikmin; if they are all set to 1, the instrument will practically disappear completely.''
  
 
[[Category:Pikmin 2]]
 
[[Category:Pikmin 2]]

Latest revision as of 01:07, 10 April 2024

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. There can be a maximum of 32 entries in each trackMap file; the game will fail to read a 33rd entry.

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 in the song will be in the main mix, the next 2 instruments will be in the task mix, and so on.
    Each mix must contain at least 1 track, as a mix with 0 tracks will not work. Additionally, the sum of all the tracks must not be greater than 16, which is the maximum number of tracks a song can have.
  • The 16 values below is which of the 16 tracks will skip notes. Tracks set to "1" will skip notes when a Pikmin has died and the Pikmin count is below 10.
    There must be at least one track set to 1, or the game will crash.
  • 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.
    Setting all 8 values to 0 will make it so there is no difference when the player loses a lot of Pikmin; if they are all set to 1, the instrument will practically disappear completely.