Editing RCOXML Animations
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
**RCOXML animations basic ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=255053#pid255053 | **RCOXML animations basic ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=255053#pid255053 | ||
**RCOXML animations cube sample ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=326948#pid326948 | **RCOXML animations cube sample ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=326948#pid326948 | ||
{{RCOXML contents PS3}} | |||
{{spoiler|RCOXML contents PS3|{{RCOXML contents PS3}}}} | |||
=General concepts= | =General concepts= | ||
Line 12: | Line 13: | ||
RCOXML animations delays ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=262236#pid262236 | RCOXML animations delays ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=262236#pid262236 | ||
==Standard attributes== | |||
==Standard attributes | |||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC Animations standard attributes {{ed right|RCO TOC Animations standard attributes}} | |+RCO TOC Animations standard attributes {{ed right|RCO TOC Animations standard attributes}} | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| {{RCO TOC Animations standard attributes}} | | {{RCO TOC Animations standard attributes}} | ||
Line 25: | Line 22: | ||
|} | |} | ||
*'''accelMode'''. Used to accelerate or decelerate an animation, used by most of the animations, posible values are: | *'''accelMode'''. Used to accelerate or decelerate an animation effect, used by most of the animations, posible values are: | ||
**0x0 - no accelaration | **0x0 - no accelaration | ||
**0x1 - starts fast, ends slow | **0x1 - starts fast, ends slow | ||
Line 35: | Line 32: | ||
{{Measure units used in RCOXML code}} | {{Measure units used in RCOXML code}} | ||
= | =RCOXML Animation example= | ||
{{Boxcode|content=<syntaxhighlight lang="xml"> | |||
{{Boxcode| | |||
<RcoFile> | <RcoFile> | ||
<MainTree name="maintree_label"> | <MainTree name="maintree_label"> | ||
<AnimTree> | <AnimTree> | ||
< | <Animation name="animation_1_label"> | ||
<Fade object="object:animated_object_label" | <Fade object="object:animated_object_label" duration="100" accelMode="0x0" transparency="1" /> | ||
<FireEvent event="event:native:/runFuctionX" /> | <FireEvent event="event:native:/runFuctionX" /> | ||
</ | </Animation> | ||
</AnimTree> | </AnimTree> | ||
</MainTree> | </MainTree> | ||
Line 50: | Line 46: | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
= | =RCO TOC entry types= | ||
{{ | {{RCO TOC entry types}} | ||
{{ | {{RCO TOC reference types}} | ||
==(0x09 0x00) AnimTree== | |||
==( | ===(0x09 0x01) Animation=== | ||
The '''AnimTree''' can have one or more '''Animation''' childrens, and every '''Animation''' can have a list of the childrens listed below | |||
The '''AnimTree''' can have one or more ''' | |||
====(0x09 0x02) MoveTo==== | |||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09020000 (MoveTo) | |+RCO TOC entry_type 0x09020000 (MoveTo) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 02|FF FF FF FF | | {{RCO TOC entry common area|09 02 00 00|FF FF FF FF|00 00 00 48|<MoveTo />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
Line 96: | Line 70: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x38 || 0x04 || float || ''' | | 0x38 || 0x04 || float || '''x''' || {{yes}} || {{yes}} || 3F 80 00 00 || <MoveTo <span style="color:#000099;">x</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''PositionX''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x3C || 0x04 || float || ''' | | 0x3C || 0x04 || float || '''y''' || {{yes}} || {{yes}} || 3F 80 00 00 || <MoveTo <span style="color:#000099;">y</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''PositionY''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x40 || 0x04 || float || ''' | | 0x40 || 0x04 || float || '''z''' || {{yes}} || {{yes}} || 3F 80 00 00 || <MoveTo <span style="color:#000099;">z</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''PositionZ''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x44 || 0x04 || | | 0x44 || 0x04 || int ? || {{cellcolors|#DD6666}} '''unknownInt5''' || {{no}} || {{yes}} || 00 00 00 00 || <MoveTo <span style="color:#000099;">unknownInt5</span><span style="color:#990000;">="0"</span> /> || | ||
|- | |- | ||
| 0x48 || 0x04 || | | 0x48 || 0x04 || int ? || {{cellcolors|#DD6666}} '''unknownInt6''' || {{no}} || {{yes}} || 00 00 00 00 || <MoveTo <span style="color:#000099;">unknownInt6</span><span style="color:#990000;">="0"</span> /> || | ||
|- | |- | ||
| 0x4C || 0x04 || | | 0x4C || 0x04 || unk ? || {{cellcolors|#DD6666}} '''unknown7''' || {{no}} || {{yes}} || 00 00 00 00 || <MoveTo <span style="color:#000099;">unknown7</span><span style="color:#990000;">="0"</span> /> || | ||
|} | |} | ||
*Speculation | |||
**The unknowns either updates '''SizeX/Y/Z''', or are [[XMB Layouts]] overrides ? | |||
====(0x09 0x03) Recolour==== | |||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09030000 (Recolour) | |+RCO TOC entry_type 0x09030000 (Recolour) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 03|FF FF FF FF | | {{RCO TOC entry common area|09 03 00 00|FF FF FF FF|00 00 00 48|<Recolour />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
Line 127: | Line 101: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x38 || 0x04 || float || ''' | | 0x38 || 0x04 || float || '''red''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">red</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleR''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x3C || 0x04 || float || ''' | | 0x3C || 0x04 || float || '''green''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">green</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleG''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x40 || 0x04 || float || ''' | | 0x40 || 0x04 || float || '''blue''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">blue</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleB''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x44 || 0x04 || float || ''' | | 0x44 || 0x04 || float || '''alpha''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Recolour <span style="color:#000099;">alpha</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleA''' from the animated [[RCOXML Objects|object]] | ||
|} | |} | ||
==( | ====(0x09 0x04) Rotate==== | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09040000 (Rotate) | |+RCO TOC entry_type 0x09040000 (Rotate) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 04|FF FF FF FF | | {{RCO TOC entry common area|09 04 00 00|FF FF FF FF|00 00 00 48|<Rotate />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
Line 154: | Line 125: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x38 || 0x04 || float || ''' | | 0x38 || 0x04 || float || '''x''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Rotate <span style="color:#000099;">x</span><span style="color:#990000;">="1"</span> /> || | ||
|- | |- | ||
| 0x3C || 0x04 || float || ''' | | 0x3C || 0x04 || float || '''y''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Rotate <span style="color:#000099;">y</span><span style="color:#990000;">="1"</span> /> || | ||
|- | |- | ||
| 0x40 || 0x04 || float || ''' | | 0x40 || 0x04 || float || '''z''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Rotate <span style="color:#000099;">z</span><span style="color:#990000;">="1"</span> /> || | ||
|} | |} | ||
==( | ====(0x09 0x05) Resize==== | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09050000 (Resize) | |+RCO TOC entry_type 0x09050000 (Resize) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 05|FF FF FF FF | | {{RCO TOC entry common area|09 05 00 00|FF FF FF FF|00 00 00 48|<Resize />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
Line 179: | Line 147: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x38 || 0x04 || float || ''' | | 0x38 || 0x04 || float || '''width''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Resize <span style="color:#000099;">width</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''SizeScaleX''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x3C || 0x04 || float || ''' | | 0x3C || 0x04 || float || '''height''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Resize <span style="color:#000099;">height</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''SizeScaleY''' from the animated [[RCOXML Objects|object]] | ||
|- | |- | ||
| 0x40 || 0x04 || float || ''' | | 0x40 || 0x04 || float || '''depth''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Resize <span style="color:#000099;">depth</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''SizeScaleZ''' from the animated [[RCOXML Objects|object]] | ||
|} | |} | ||
==( | ====(0x09 0x06) Fade==== | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09060000 (Fade) | |+RCO TOC entry_type 0x09060000 (Fade) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 06|FF FF FF FF | | {{RCO TOC entry common area|09 06 00 00|FF FF FF FF|00 00 00 48|<Fade />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
Line 204: | Line 169: | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x38 || 0x04 || float || ''' | | 0x38 || 0x04 || float || '''transparency''' || {{yes}} || {{yes}} || 3F 80 00 00 || <Fade <span style="color:#000099;">transparency</span><span style="color:#990000;">="1"</span> /> || updates the value of attribute '''ColorScaleA''' from the animated [[RCOXML Objects|object]] | ||
|} | |} | ||
==( | ====(0x09 0x07) Delay==== | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09070000 (Delay) | |+RCO TOC entry_type 0x09070000 (Delay) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 07|FF FF FF FF | | {{RCO TOC entry common area|09 07 00 00|FF FF FF FF|00 00 00 48|<Delay />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x28 || 0x04 || float || '''time''' || {{yes}} || {{yes}} || 44 7A 00 00 || < | | 0x28 || 0x04 || float || '''time''' || {{yes}} || {{yes}} || 44 7A 00 00 || <Delay <span style="color:#000099;">time</span><span style="color:#990000;">="1000"</span> /> || | ||
|} | |} | ||
==( | ====(0x09 0x08) FireEvent==== | ||
Triggers (or "fires") an event, there are different types of events (see [[RCOXML Coding]]). The most used inside animations are "native events" and "animation events" itself | Triggers (or "fires") an event, there are different types of events (see [[RCOXML Coding]]). The most used inside animations are "native events" and "animation events" itself | ||
By triggering an animation event from inside an animation... both animations are played consecutivelly. Also is posible to reload the animation by triggering itself to create an infinite animation loop | By triggering an animation event from inside an animation... both animations are played consecutivelly. Also is posible to reload the animation by triggering itself to create an infinite animation loop | ||
{| class="wikitable" style="font-size:small;" | {| class="wikitable" style="font-size:small;" | ||
|+RCO TOC entry_type 0x09080000 (FireEvent) | |+RCO TOC entry_type 0x09080000 (FireEvent) | ||
! Offset !! Length !! | ! Offset !! Length !! Data type !! Name !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Example (TOC) !! Example (XML) !! Notes | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| {{RCO TOC entry common area|09 08|FF FF FF FF | | {{RCO TOC entry common area|09 08 00 00|FF FF FF FF|00 00 00 48|<FireEvent />}} | ||
|- | |- | ||
| colspan="9" {{cellcolors|lightgrey}} | | colspan="9" {{cellcolors|lightgrey}} | ||
|- | |- | ||
| 0x28 || 0x08 || reference || '''event''' || {{yes}} || {{yes}} || FF FF 00 00 FF FF FF FF || <FireEvent <span style="color:#000099;">event</span><span style="color:#990000;">="event:native:/runFuctionX"</span> /> || | |||
|} | |} | ||
==( | ====(0x09 0x09) Lock==== | ||
Disables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_coldboot''', '''anim_coldboot2''', '''anim_gameboot''', and '''anim_otherboot''' animations starts by locking the XMB to dont interfere | Disables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_coldboot''', '''anim_coldboot2''', '''anim_gameboot''', and '''anim_otherboot''' animations starts by locking the XMB to dont interfere | ||
*In latest firmwares (where is used coldboot.raf animation) if XMB is not locked + having a dynamic theme applyed the PS3 crashes. Is because inside dynamic themes the background is a .raf animation. Is not posible to play 2 .raf animations together overlapped (from coldboot.raf and from inside a dynamic theme) | *In latest firmwares (where is used coldboot.raf animation) if XMB is not locked + having a dynamic theme applyed the PS3 crashes. Is because inside dynamic themes the background is a .raf animation. Is not posible to play 2 .raf animations together overlapped (from coldboot.raf and from inside a dynamic theme) | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | ! colspan="5" | Attribute !! rowspan="2" | How it works | ||
|- | |- | ||
! Name !! Type !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Examples | |||
|-{{cellcolors|#DD6666}} | |||
| unknownInt0 || int || {{yes}} || {{yes}} || || | |||
|- | |||
|} | |} | ||
==( | ====(0x09 0x0A) Unlock==== | ||
Enables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_gameboot''', and '''anim_otherboot''' animations doesnt unlocks XMB at the ending because when the animation is completed a game/app boots (doesnt returns to XMB) | Enables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_gameboot''', and '''anim_otherboot''' animations doesnt unlocks XMB at the ending because when the animation is completed a game/app boots (doesnt returns to XMB) | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! colspan="5" | Attribute !! rowspan="2" | How it works | |||
| | |||
|- | |- | ||
| | ! Name !! Type !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Examples | ||
|-{{cellcolors|#DD6666}} | |||
| unknownInt0 || int || {{yes}} || {{yes}} || || | |||
|} | |} | ||
==( | ====(0x09 0x0B) SlideOut==== | ||
{| class="wikitable" | |||
{| class="wikitable" | |||
|- | |- | ||
| | ! colspan="5" | Attribute !! rowspan="2" | How it works | ||
|- | |- | ||
| {{ | ! Name !! Type !! {{icon content psp|50px}} !! {{icon content ps3|50px}} !! Examples | ||
|- | |- | ||
| | | object || ref || {{yes}} || {{yes}} || {{icon content ps3|50px}} object:ps3logo || links the animation to an [[RCOXML Objects|object]] | ||
|- | |- | ||
| {{ | | duration || float || {{yes}} || {{yes}} || 1000 || | ||
|- | |- | ||
| | | accelMode || int || {{yes}} || {{yes}} || 0x0 || | ||
|- | |- | ||
| | | xspeed || float || {{yes}} || {{yes}} || || | ||
|- | |- | ||
| | | yspeed || float || {{yes}} || {{yes}} || || | ||
|- | |- | ||
| | | xcompress || float || {{yes}} || {{yes}} || || | ||
|- | |- | ||
| | | ycompress || float || {{yes}} || {{yes}} || || | ||
|} | |} | ||