Skip to content

Conversation

@UE4SS
Copy link
Collaborator

@UE4SS UE4SS commented Oct 9, 2025

Description

The RegisterCustomProperty function was previously not hooked up to the UScriptStruct handler.
This PR fixes that.

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

The following script in Palworld.
Hit U after loading a save file, and confirm the ticks appear in the console.

RegisterCustomProperty({
    ["Name"] = "Ticks",
    ["Type"] = PropertyTypes.Int64Property,
    ["BelongsToClass"] = "/Script/CoreUObject.DateTime",
    ["OffsetInternal"] = 0x00
})

RegisterKeyBind(Key.U, function()
    local Inst = FindFirstOf("PalGameStateInGame")
    if not Inst:IsValid() then print("Instance of 'PalGameStateInGame' not found\n") return end
    local RealProgressDateTime_ForRep = Inst.RealProgressDateTime_ForRep
    local Ticks = RealProgressDateTime_ForRep.Ticks
    print(string.format("Ticks: %s\n", Ticks))
end)

Checklist

  • I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

MSVC-Game__Debug__Win64 Download Logs
Build Details
Name Information
PR Commit 36aa7f7
Merge Commit cbe4199
Size 55.38 MB
Last Updated Oct 9, 25, 11:27:55 PM UTC
Expires At Oct 23, 25, 11:27:49 PM UTC

MSVC-Game__Shipping__Win64 Download Logs
Build Details
Name Information
PR Commit 36aa7f7
Merge Commit cbe4199
Size 45.08 MB
Last Updated Oct 9, 25, 11:36:23 PM UTC
Expires At Oct 23, 25, 11:36:18 PM UTC

@UE4SS UE4SS merged commit 40498f7 into main Oct 21, 2025
14 checks passed
@UE4SS UE4SS deleted the custom-property-scriptstruct branch October 21, 2025 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants