Wimberton / OriginPalia

A multi-purpose tool for Palia, written in C++. For non-commercial usage, looking for contributors. Features such as ESP, Teleportation, Auto-fishing, and more.
https://www.unknowncheats.me/forum/palia/636934-originpalia-feature-packed-multitool-imagine.html
29 stars 10 forks source link

SDK Dump Problem #36

Closed JulianCarborito closed 1 month ago

JulianCarborito commented 1 month ago

Can anyone give me some help?

I'm using Dumper-7 to get the game SDK. However, I am receiving several errors pointing out that "IsValidLowLevel" does not exist in several SDK classes: image

Has anyone ever had this type of problem? Can you help me?

VoidPollo commented 1 month ago

Inside the SDK files, CoreUObject_classes.hpp, roughly line 73~ under the GetDefaultObj() try putting this there:

bool IsValidLowLevel() const {
    if (this == nullptr)
        return false;
    if (IsBadReadPtr(this, sizeof(UObject)))
        return false;
    if (!Class)
        return false;
    if (Index % SDK::TUObjectArray::ElementsPerChunk < 0) // GObjects->GetByIndex->InChunkIdx < 0 giving crash
        return false;
    return GObjects->GetByIndex(Index) == this;
}

Not entirely sure if you'll need to do some more tweaks, I don't think the dumps are 1:1 into the project, there were some tweaks along the way by original code in PaliaHook.

JulianCarborito commented 1 month ago

Resolved! Thank you @VoidPollo