Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Document oddity with __unk0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Feb 27, 2024
1 parent 743c9ee commit 5c1b827
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions extra/010 Editor/helldivers2_meshinfo.bt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ struct meshinfo_t {
uint32_t count <format=decimal>;
uint32_t offsets[count] <format=decimal>;

// Appears correct, yet also incorrect.
// Fits perfectly between themselves, but when count is >1, the end of the structure is misaligned.
local uint32 i;
for (i = 0; i < count; i++) {
FSeek(startof(this) + offsets[i]);
Expand All @@ -142,7 +144,7 @@ struct meshinfo_t {

uint32_t count <format=decimal>;
uint32_t offsets[count] <format=decimal>;
uint32_t size <format=decimal>;
uint32_t offset <format=decimal>;

local uint32 i;
for (i = 0; i < count; i++) {
Expand All @@ -155,20 +157,13 @@ struct meshinfo_t {
uint32_t data[count] <format=decimal>;
} __unk;
}

FSeek(startof(this) + offset);
float __unk_float[7];
uint32_t __unk;
float __unk;
uint32_t __unk;
} __unk00data;

float __unk;
float __unk;
float __unk;
float __unk;

float __unk;
float __unk;
float __unk;
uint32_t __unk <format=hex>;

float __unk;
uint32_t __unk <format=hex>;
};
} __unk0;
}
Expand Down

0 comments on commit 5c1b827

Please sign in to comment.