Difference between revisions of "CIN file"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
m (Removed line breaks because the code textbox thing handles them automatically.)
m (Added categories)
 
Line 61: Line 61:
 
}
 
}
 
}</nowiki>
 
}</nowiki>
 +
 +
[[Category:Pikmin]]
 +
[[Category:File formats]]

Latest revision as of 08:34, 30 April 2024

CIN files (internally named Cinematic files) tell the game which DSK file(s) to load, actor resources to allocate (animations and models) and manage scene cuts. In short, they are cutscene resource managers.

CIN files are plaintext, meaning that they can be edited in a text-editor like Notepad++.

File structure[edit]

CIN files consist of:

  • Cutscene flags/properties
  • DSK file declarations
  • Actor declarations which can contain a model and it's animations.
  • Scene cuts and where they are placed.

Example from demo01.cin:

// Movie flags
type 	0
flags 	128

// Scene files
addScene {	scene	cinemas/demo01/demo1.dsk
			}

// Actor files
addActor {	shape	cinemas/demo01/spacebg.mod
			}

addActor {	shape	cinemas/demo01/meteor.mod
			bundle	cinemas/demo01/meteor.anm
			anims	cinemas/demo01/meteor.bin
			}

addActor {	shape	cinemas/demo01/ufo.mod
			bundle	cinemas/demo01/ufo.anm
			anims	cinemas/demo01/ufo.bin
			}

addActor {	shape	pikis/nv3Model.mod
			bundle	cinemas/demo01/navi.anm
			anims	cinemas/demo01/navi.bin
			}

// Scene cuts
addCut {	cut		0	0	1199
			flags	3
			actor	cinemas/demo01/spacebg.mod
			acflags	2
			anim	1	-1
			actor	cinemas/demo01/meteor.mod
			acflags	2
			anim	2	0
			actor	pikis/nv3Model.mod
			acflags	2
			anim	2	0
			actor	cinemas/demo01/ufo.mod
			acflags	2
			anim	2	0
			keys	0	{	
						}
			}