XML:FILM: Difference between revisions

From OniGalore
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
Notes about FILM*.dat (file is generated by [[Dev_Mode#Hotkeys_2|F9 hotkey]] in dev mode), might be useful for a converter tool later.
=FILM: animation playbacks=


IIRC, FILM*.oni storage type is big endian and FILM*.dat is little endian.
'''general information'''
*
* FILM*.oni are level specific. (They can be found in level''XX''_...)


{|BORDER=1 CELLSPACING=0 CELLPADDING=2 STYLE="border-style:solid; border-collapse:collapse; empty-cells:show; background-color:#f9f9f9;" ALIGN=left
 
|width=160px|
'''BSL support'''
|width=160px| FILM*.dat offset
playback ''ai_name FILM_name''
|width=160px| FILM*.oni offset
 
|-
 
| x-position of the character
'''How to make an own FILM'''
| 0x100
* Enter [[Developer_Mode|Developer Mode]] to record a FILM.
| 0x068
: F9 - start record
|-
: F10 - stop record
| y-position of the character
: F11 - play record
| 0x104
* They become stored in Oni/edition folder. First file is named "saved_film000.dat"
| 0x06C
 
|-
 
| z-position of the character
'''FILM converting'''
| 0x108
 
| 0x070
for original FILM*oni to FILM*.xml
|-
onisplit -extract:xml xml_dir level''XX_name''/FILM*.oni
| body facing
for new saved_film*.dat to saved_film*.xml
| 0x10C
onisplit film2xml xml_dir source_dir/saved_film*.dat
| 0x074
for converting original/new *.xml to *oni
|-
onisplit -create oni_dir xml_dir/*.xml
| desired facing
 
| 0x110
 
| 0x078
'''known issues'''
|-
* no ONCC data included: take care of jumps
| head facing
* holster issue: holster and unholster is same key event, make sure character has (un)holstered weapon as you planed, else it can affect sprint
| 0x114
| 0x07C
|-
| looking up or down
| 0x118
| 0x080
|-
| film lenght in frames
| 0x11C
| 0x084
|-
| array size
| 0x13C
| 0x09C
|-
| first element
| (some garbage before first element?)
| 0x0A0
|}

Revision as of 09:16, 11 April 2009

FILM: animation playbacks

general information

  • FILM*.oni are level specific. (They can be found in levelXX_...)


BSL support

playback ai_name FILM_name


How to make an own FILM

F9 - start record
F10 - stop record
F11 - play record
  • They become stored in Oni/edition folder. First file is named "saved_film000.dat"


FILM converting

for original FILM*oni to FILM*.xml

onisplit -extract:xml xml_dir levelXX_name/FILM*.oni

for new saved_film*.dat to saved_film*.xml

onisplit film2xml xml_dir source_dir/saved_film*.dat

for converting original/new *.xml to *oni

onisplit -create oni_dir xml_dir/*.xml


known issues

  • no ONCC data included: take care of jumps
  • holster issue: holster and unholster is same key event, make sure character has (un)holstered weapon as you planed, else it can affect sprint