Skip to content

Instantly share code, notes, and snippets.

@Dragorn421
Created January 9, 2023 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragorn421/12b33fdf09e6d7306eb3a4da50b75d38 to your computer and use it in GitHub Desktop.
Save Dragorn421/12b33fdf09e6d7306eb3a4da50b75d38 to your computer and use it in GitHub Desktop.
comparison between xml, yaml, toml for oot decomp assets description assuming one file per config file

1File xml

<File Name="object_am" Segment="6">
    <Skeleton Name="gArmosSkel" Type="Normal" LimbType="Standard" Offset="0x5948"/>
    <Animation Name="gArmosRicochetAnim" Offset="0x33C"/>
    <Animation Name="gArmosHopAnim" Offset="0x238"/>
    <Animation Name="gArmosDamagedAnim" Offset="0x5B3C"/>
    <Collision Name="gArmosCol" Offset="0x118"/>
</File>

1File yaml 1

name: object_am
segment: 6
resources:
  - type: Skeleton
    name: gArmosSkel
    offset: "0x5948"
    attributes:
      type: Normal
      limb_type: Standard
  - type: Animation
    name: gArmosRicochetAnim
    offset: "0x33C"
  - type: Animation
    name: gArmosHopAnim
    offset: "0x238"
  - type: Animation
    name: gArmosDamagedAnim
    offset: "0x5B3C"
  - type: Collision
    name: gArmosCol
    offset: "0x118"

1File yaml 2

name: object_am
segment: 6
resources:
  gArmosSkel:
    type: Skeleton
    offset: "0x5948"
    attributes:
      type: Normal
      limb_type: Standard
  gArmosRicochetAnim:
    type: Animation
    offset: "0x33C"
  gArmosHopAnim:
    type: Animation
    offset: "0x238"
  gArmosDamagedAnim:
    type: Animation
    offset: "0x5B3C"
  gArmosCol:
    type: Collision
    offset: "0x118"

1File yaml 3

file:
  name: object_am
  segment: 6
gArmosSkel:
  type: Skeleton
  offset: "0x5948"
  attributes:
    type: Normal
    limb_type: Standard
gArmosRicochetAnim:
  type: Animation
  offset: "0x33C"
gArmosHopAnim:
  type: Animation
  offset: "0x238"
gArmosDamagedAnim:
  type: Animation
  offset: "0x5B3C"
gArmosCol:
  type: Collision
  offset: "0x118"

1File toml 1

name = "object_am"
segment = 6

[[resources]]
type = "Skeleton"
name = "gArmosSkel"
offset = "0x5948"
[resources.attributes]
type = "Normal"
limb_type = "Standard"

[[resources]]
type = "Animation"
name = "gArmosRicochetAnim"
offset = "0x33C"

[[resources]]
type = "Animation"
name = "gArmosHopAnim"
offset = "0x238"

[[resources]]
type = "Animation"
name = "gArmosDamagedAnim"
offset = "0x5B3C"

[[resources]]
type = "Collision"
name = "gArmosCol"
offset = "0x118"

1File toml 2

name = "object_am"
segment = 6

[resources.gArmosSkel]
type = "Skeleton"
offset = "0x5948"
[resources.gArmosSkel.attributes]
type = "Normal"
limb_type = "Standard"

[resources.gArmosRicochetAnim]
type = "Animation"
offset = "0x33C"

[resources.gArmosHopAnim]
type = "Animation"
offset = "0x238"

[resources.gArmosDamagedAnim]
type = "Animation"
offset = "0x5B3C"

[resources.gArmosCol]
type = "Collision"
offset = "0x118"

1File toml 3

[file]
name = "object_am"
segment = 6

[gArmosSkel]
type = "Skeleton"
offset = "0x5948"
[gArmosSkel.attributes]
type = "Normal"
limb_type = "Standard"

[gArmosRicochetAnim]
type = "Animation"
offset = "0x33C"

[gArmosHopAnim]
type = "Animation"
offset = "0x238"

[gArmosDamagedAnim]
type = "Animation"
offset = "0x5B3C"

[gArmosCol]
type = "Collision"
offset = "0x118"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment