Skip to content

Instantly share code, notes, and snippets.

@SDraw
Last active July 22, 2026 18:50
Show Gist options
  • Select an option

  • Save SDraw/4071df222f816a38fe9891b30494a407 to your computer and use it in GitHub Desktop.

Select an option

Save SDraw/4071df222f816a38fe9891b30494a407 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE binary_file_format SYSTEM "BinaryFileFormat.dtd">
<binary_file_format name="RMFv4" type_name="" comment="" expr="" default_byte_order="little" default_read_only="false" default_char_set="ansi" web_site="https://github.com/SDraw/run-on-coal/wiki/RMF-structure">
<data type="string" name="Header" len="3" format="default" display=""/>
<data type="int" name="Type" format="signed" byte_order="little" len="1" display=""/><data type="real" name="BoundsRadius" format="ieee" len="4" display=""/><data type="int" name="MaterialCount" format="unsigned" len="4" display=""/><for name="Material" count="MaterialCount" stop_test="" type_name="" comment=""><struct name="" type_name="" comment="" expr=""><data type="int" name="MaterialType" format="unsigned" len="1" display=""/><struct name="Color" type_name="" comment="" expr=""><data type="real" name="R" format="ieee" len="4" display=""/><data type="real" name="G" format="ieee" len="4" display=""/><data type="real" name="B" format="ieee" len="4" display=""/><data type="real" name="A" format="ieee" len="4" display=""/></struct><struct name="Params" type_name="" comment="" expr=""><data type="real" name="Param0" format="ieee" len="4" display=""/><data type="real" name="Param1" format="ieee" len="4" display=""/><data type="real" name="Param2" format="ieee" len="4" display=""/><data type="real" name="Param3" format="ieee" len="4" display=""/></struct><data type="int" name="DiffuseTextureNameLength" format="unsigned" len="1" display=""/><data type="string" name="DiffuseTextureName" format="ansi" len="DiffuseTextureNameLength" display=""/><struct name="VertexData" type_name="" comment="" expr=""><data type="int" name="Size" format="signed" len="4" display=""/><data type="none" name="Data" len="Size"/></struct><struct name="NormalData" type_name="" comment="" expr=""><data type="int" name="Size" format="signed" len="4" display=""/><data type="none" name="Data" len="Size"/></struct><struct name="UVData" type_name="" comment="" expr=""><data type="int" name="Size" format="signed" len="4" display=""/><data type="none" name="Data" len="Size"/></struct><if test="Type == 0x2" comment=""><struct name="WeightData" type_name="" comment="" expr=""><data type="int" name="Size" format="signed" len="4" display=""/><data type="none" name="Data" len="Size"/></struct></if><if test="Type == 0x2" comment=""><struct name="IndexData" type_name="" comment="" expr=""><data type="int" name="Size" format="signed" len="4" display=""/><data type="none" name="Data" len="Size"/></struct></if></struct></for><if test="Type == 0x2" comment=""><struct name="Skeleton" type_name="" comment="" expr=""><data type="int" name="BonesCount" format="unsigned" len="4" display=""/><for name="Bone" count="BonesCount" stop_test="" type_name="" comment=""><struct name="" type_name="" comment="" expr=""><data type="int" name="BoneNameLength" format="unsigned" len="1" display=""/><data type="string" name="BoneName" format="ansi" len="BoneNameLength" display=""/><data type="int" name="ParentBone" format="signed" len="4" display=""/><struct name="Position" type_name="" comment="" expr=""><data type="real" name="X" format="ieee" len="4" display=""/><data type="real" name="Y" format="ieee" len="4" display=""/><data type="real" name="Z" format="ieee" len="4" display=""/></struct><struct name="Rotation" type_name="" comment="" expr=""><data type="real" name="X" format="ieee" len="4" display=""/><data type="real" name="Y" format="ieee" len="4" display=""/><data type="real" name="Z" format="ieee" len="4" display=""/><data type="real" name="W" format="ieee" len="4" display=""/></struct><struct name="Scale" type_name="" comment="" expr=""><data type="real" name="X" format="ieee" len="4" display=""/><data type="real" name="Y" format="ieee" len="4" display=""/><data type="real" name="Z" format="ieee" len="4" display=""/></struct></struct></for></struct></if></binary_file_format>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment