Difference between revisions of "CIN file"
Jump to navigation
Jump to search
(Created page with "'''CIN''' files (internally named '''Cinematic''' files) tell the game which '''DSK''' file(s) to load, actor resources to allocate (animations and models) and ma...") |
m (Added categories) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | '''CIN''' files (internally named '''Cinematic''' files) tell the game which [[DSK file|'''DSK''' file(s)]] to load, actor resources to allocate (animations and models) and manage scene cuts. | + | '''CIN''' files (internally named '''Cinematic''' files) tell the game which [[DSK file|'''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++. | ||
+ | |||
+ | __TOC__ | ||
+ | |||
+ | == 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 <code>demo01.cin</code>: | ||
+ | |||
+ | <nowiki>// 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 { | ||
+ | } | ||
+ | }</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++.
Contents
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 { } }