Difference between revisions of "CIN file"
Jump to navigation
Jump to search
m (Added categories) |
|||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
Example from <code>demo01.cin</code>: | Example from <code>demo01.cin</code>: | ||
− | <nowiki>// Movie flags | + | <nowiki>// Movie flags |
− | type 0 | + | type 0 |
− | flags 128 | + | flags 128 |
// Scene files | // Scene files | ||
− | addScene { scene cinemas/demo01/demo1.dsk | + | addScene { scene cinemas/demo01/demo1.dsk |
− | } | + | } |
− | // Actor files | + | // Actor files |
− | addActor { shape cinemas/demo01/spacebg.mod | + | addActor { shape cinemas/demo01/spacebg.mod |
− | } | + | } |
− | addActor { shape cinemas/demo01/meteor.mod | + | addActor { shape cinemas/demo01/meteor.mod |
− | bundle cinemas/demo01/meteor.anm | + | bundle cinemas/demo01/meteor.anm |
− | anims cinemas/demo01/meteor.bin | + | anims cinemas/demo01/meteor.bin |
− | } | + | } |
− | addActor { shape cinemas/demo01/ufo.mod | + | addActor { shape cinemas/demo01/ufo.mod |
− | bundle cinemas/demo01/ufo.anm | + | bundle cinemas/demo01/ufo.anm |
− | anims cinemas/demo01/ufo.bin | + | anims cinemas/demo01/ufo.bin |
− | } | + | } |
− | addActor { shape pikis/nv3Model.mod | + | addActor { shape pikis/nv3Model.mod |
− | bundle cinemas/demo01/navi.anm | + | bundle cinemas/demo01/navi.anm |
− | anims cinemas/demo01/navi.bin | + | anims cinemas/demo01/navi.bin |
} | } | ||
− | // Scene cuts | + | // Scene cuts |
− | addCut { cut 0 0 1199 | + | addCut { cut 0 0 1199 |
− | flags 3 | + | flags 3 |
− | actor cinemas/demo01/spacebg.mod | + | actor cinemas/demo01/spacebg.mod |
− | acflags 2 | + | acflags 2 |
− | anim 1 -1 | + | anim 1 -1 |
− | actor cinemas/demo01/meteor.mod | + | actor cinemas/demo01/meteor.mod |
− | acflags 2 | + | acflags 2 |
− | anim 2 0 | + | anim 2 0 |
− | actor pikis/nv3Model.mod | + | actor pikis/nv3Model.mod |
− | acflags 2 | + | acflags 2 |
− | anim 2 0 | + | anim 2 0 |
− | actor cinemas/demo01/ufo.mod | + | actor cinemas/demo01/ufo.mod |
− | acflags 2 | + | acflags 2 |
− | anim 2 0 | + | anim 2 0 |
− | keys 0 { | + | keys 0 { |
− | } | + | } |
}</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++.
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 { } }