18,700
edits
mNo edit summary |
m (copy edit) |
||
Line 1: | Line 1: | ||
{{XML_File_Header | type=FILM | prev=DOOR | next=HPge | name=character animation playback }} | {{XML_File_Header | type=FILM | prev=DOOR | next=HPge | name=character animation playback }} | ||
== | ==General information== | ||
* The | * The XML code on this page is compatible with OniSplit '''v0.9.61.0''' and '''v0.9.68.0'''. | ||
* FILM*.oni are level specific (they are usually used in cutscenes and can be found in level'' | * FILM*.oni files are level-specific (they are usually used in cutscenes and can be found in level''X''_Final). | ||
* For best results (esp. for | * For best results (esp. for running and jumping), use the same character for recording and playing the FILM files. | ||
* Holster and unholster is same key event, make sure character has | * Holster and unholster is the same key event, so make sure the character has their weapon holstered/unholstered as you planned or it will affect their ability to sprint. | ||
* | * The tags below have their values in radians. [http://www.unitconversion.org/angle/radians-to-degrees-conversion.html THIS] page can convert radians to degrees and vice versa. | ||
: <Facing> | : <Facing> | ||
: <DesiredFacing> | : <DesiredFacing> | ||
Line 12: | Line 12: | ||
: <HeadPitch> | : <HeadPitch> | ||
==BSL support== | |||
playback ''ai_name FILM_name'' | playback ''ai_name FILM_name'' | ||
playback ''script_id FILM_name'' | playback ''script_id FILM_name'' | ||
==How to make your own FILM== | |||
* They will be saved next to the running game application. The first file will be named "saved_film000.dat". | |||
* They | * Enter [[Developer Mode]] to record a FILM. | ||
* Enter [[ | |||
: F9 - start record | : F9 - start record | ||
: F10 - stop record | : F10 - stop record | ||
: F11 - play record | : F11 - play record | ||
===FILM converting=== | ===FILM converting=== | ||
Converting FILM*oni to FILM*.xml:<br> | |||
onisplit -extract:xml xml_dir level''XX_name''/FILM*.oni | onisplit -extract:xml xml_dir level''XX_name''/FILM*.oni | ||
Converting saved_film*.dat to saved_film*.xml:<br> | |||
onisplit film2xml xml_dir source_dir/saved_film*.dat | onisplit film2xml xml_dir source_dir/saved_film*.dat | ||
Converting *.xml to *oni:<br> | |||
onisplit -create oni_dir xml_dir/*.xml | onisplit -create oni_dir xml_dir/*.xml | ||
==<Keys>== | |||
: None | : None | ||
: Escape | : Escape | ||
Line 75: | Line 72: | ||
: Fire3 | : Fire3 | ||
==Sample XML== | |||
"[...]" below stands for additional <FILMFrame>...</FILMFrame> blocks. | |||
[...] stands for | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> |