Skip to content

Commit

Permalink
Merge pull request #125 from RagnarokResearchLab/act-structure-fixups
Browse files Browse the repository at this point in the history
Fix some issues with the specified ACT structures
  • Loading branch information
rdw-software authored Sep 25, 2024
2 parents bac76d1 + 26aa5b8 commit b0c9e08
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docs/file-formats/ACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ struct SpriteLayer {
};

struct AnimationFrame {
int32_t UnusedMysteryBytes[8];
uint8_t UnusedMysteryBytes[32];
uint32_t SpriteLayerCount;
struct SpriteLayer SpriteLayers[SpriteLayerCount];
int32_t AnimationEventID;
};

struct AnimationClip {
Expand Down Expand Up @@ -97,9 +98,10 @@ struct SpriteLayer {
};
struct AnimationFrame {
int32_t UnusedMysteryBytes[8];
uint8_t UnusedMysteryBytes[32];
uint32_t SpriteLayerCount;
struct SpriteLayer SpriteLayers[SpriteLayerCount];
int32_t AnimationEventID;
};
struct AnimationClip {
Expand Down Expand Up @@ -147,17 +149,18 @@ struct SpriteLayer {

// diff-add-start
struct SpriteAnchor{
int32_t UnusedMysteryBytes;
uint8_t UnusedMysteryBytes[4];
int32_t PositionU;
int32_t PositionV;
int32_t UnknownFlag;
};
// diff-add-end

struct AnimationFrame {
int32_t UnusedMysteryBytes[8];
uint8_t UnusedMysteryBytes[32];
uint32_t SpriteLayerCount;
struct SpriteLayer SpriteLayers[SpriteLayerCount];
int32_t AnimationEventID;
// diff-add-start
int32_t SpriteAnchorCount;
struct SpriteAnchor AnchorPoints[SpriteAnchorCount];
Expand Down Expand Up @@ -211,16 +214,17 @@ struct SpriteLayer {
};
struct SpriteAnchor{
int32_t UnusedMysteryBytes;
uint8_t UnusedMysteryBytes[4];
int32_t PositionU;
int32_t PositionV;
int32_t UnknownFlag;
};
struct AnimationFrame {
int32_t UnusedMysteryBytes[8];
uint8_t UnusedMysteryBytes[32];
uint32_t SpriteLayerCount;
struct SpriteLayer SpriteLayers[SpriteLayerCount];
int32_t AnimationEventID;
int32_t SpriteAnchorCount;
struct SpriteAnchor AnchorPoints[SpriteAnchorCount];
};
Expand Down Expand Up @@ -272,16 +276,17 @@ struct SpriteLayer {
};

struct SpriteAnchor{
int32_t UnusedMysteryBytes;
uint8_t UnusedMysteryBytes[4];
int32_t PositionU;
int32_t PositionV;
int32_t UnknownFlag;
};

struct AnimationFrame {
int32_t UnusedMysteryBytes[8];
uint8_t UnusedMysteryBytes[32];
uint32_t SpriteLayerCount;
struct SpriteLayer SpriteLayers[SpriteLayerCount];
int32_t AnimationEventID;
int32_t SpriteAnchorCount;
struct SpriteAnchor AnchorPoints[SpriteAnchorCount];
};
Expand Down

0 comments on commit b0c9e08

Please sign in to comment.