Skip to content
Engels Quintero edited this page Nov 20, 2024 · 5 revisions
4   uint    wpCount

for(int wpIndex = 0; wpIndex < wpCount; wpIndex++)
{
    4   uint    wpName.Length
    *   string  wpName
    {
        2   ushort  wpLocation.RegionID
        2   ushort  wpLocation.pad0     //struct padding
        4   float   wpLocation.XOffset
        4   float   wpLocation.YOffset
        4   float   wpLocation.ZOffset
        4   uint    wpLocation.WorldID
    }

ImHex Pattern (gmwpfort.hexpat)

Allows for crude editing capabilities using ImHex

#pragma array_limit 4294967296

struct Position
{
    u16 regionID;
    u16 unk01;
    float x;
    float y;
    float z;
    u32 worldID;
};

struct Warp
{
    u32 nameLength;
    char name[nameLength];
    Position position;
};

struct GMWPFort
{
    u32 warpCount;
    Warp warps[warpCount];
};

GMWPFort gmwpfort @ 0;
Clone this wiki locally