anno-mods / FileDBReader

A command line tool for working with a proprietary bluebyte file compression used in Anno 2205 and 1800.
15 stars 4 forks source link

add rdp format interpreter #3

Closed jakobharder closed 3 years ago

jakobharder commented 3 years ago

I do have some post processing to make the file actually editable.

  <Particles>
    <Particle>
      <Material>0</Material>
      <StartFrame>140</StartFrame>
      <Ticks>
        <Tick>
          <PositionXYZ>-0.883084 0.709769 -0.057222</PositionXYZ>
          <RotationXYZ>0.0 255.9 0.0</RotationXYZ>
          <ScaleXYZ>1.0000 1.0000 1.0000</ScaleXYZ>
          <ColorARGB>0 255 255 255</ColorARGB>
        </Tick>
        <Tick>
          <PositionXYZ>-0.883084 0.709769 -0.057222</PositionXYZ>
          <RotationXYZ>0.0 255.9 0.0</RotationXYZ>
          <ScaleXYZ>1.0000 1.0000 1.0000</ScaleXYZ>
          <ColorARGB>19 255 255 255</ColorARGB>
        </Tick>
        ...

ParticleCount, TotalTickCount and the contents of P_Ends will be calculated. The rest is just reformatting (and changing numbers to their actual ranges). In the original you had to make sure counts are same as the data.