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.)
Line 16: Line 16:
 
Example from <code>demo01.cin</code>:
 
Example from <code>demo01.cin</code>:
  
  <nowiki>// Movie flags<br/>
+
  <nowiki>// Movie flags
type 0<br/>
+
type 0
flags 128<br/>
+
flags 128
  
 
// Scene files
 
// Scene files
addScene { scene cinemas/demo01/demo1.dsk<br/>
+
addScene { scene cinemas/demo01/demo1.dsk
}<br/>
+
}
  
// Actor files</br>
+
// Actor files
addActor { shape cinemas/demo01/spacebg.mod</br>
+
addActor { shape cinemas/demo01/spacebg.mod
}</br>
+
}
  
addActor { shape cinemas/demo01/meteor.mod</br>
+
addActor { shape cinemas/demo01/meteor.mod
bundle cinemas/demo01/meteor.anm</br>
+
bundle cinemas/demo01/meteor.anm
anims cinemas/demo01/meteor.bin</br>
+
anims cinemas/demo01/meteor.bin
}</br>
+
}
  
addActor { shape cinemas/demo01/ufo.mod</br>
+
addActor { shape cinemas/demo01/ufo.mod
bundle cinemas/demo01/ufo.anm</br>
+
bundle cinemas/demo01/ufo.anm
anims cinemas/demo01/ufo.bin</br>
+
anims cinemas/demo01/ufo.bin
}</br>
+
}
  
addActor { shape pikis/nv3Model.mod</br>
+
addActor { shape pikis/nv3Model.mod
bundle cinemas/demo01/navi.anm</br>
+
bundle cinemas/demo01/navi.anm
anims cinemas/demo01/navi.bin</br>
+
anims cinemas/demo01/navi.bin
 
}
 
}
  
// Scene cuts</br>
+
// Scene cuts
addCut { cut 0 0 1199</br>
+
addCut { cut 0 0 1199
flags 3</br>
+
flags 3
actor cinemas/demo01/spacebg.mod</br>
+
actor cinemas/demo01/spacebg.mod
acflags 2</br>
+
acflags 2
anim 1 -1</br>
+
anim 1 -1
actor cinemas/demo01/meteor.mod</br>
+
actor cinemas/demo01/meteor.mod
acflags 2</br>
+
acflags 2
anim 2 0</br>
+
anim 2 0
actor pikis/nv3Model.mod</br>
+
actor pikis/nv3Model.mod
acflags 2</br>
+
acflags 2
anim 2 0</br>
+
anim 2 0
actor cinemas/demo01/ufo.mod</br>
+
actor cinemas/demo01/ufo.mod
acflags 2</br>
+
acflags 2
anim 2 0</br>
+
anim 2 0
keys 0 { </br>
+
keys 0 {
}</br>
+
}
 
}</nowiki>
 
}</nowiki>

Revision as of 07:43, 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

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	{	
						}
			}