Skip to content

[MHWilds] via.rds.Mandrake addr changes all the time #1316

Open
@KrisCris

Description

@KrisCris

Describe the bug

    local saveDataManager            = sdk.get_managed_singleton("app.SaveDataManager")
    local systemSaveData             = saveDataManager._SystemSaveData
    local systemData                 = systemSaveData._Data
    local systemCommon               = systemData._SystemCommon
    log.debug(tostring(systemCommon.HunterTicketsUsed))
    log.debug(tostring(systemCommon.HunterTicketsUsed))
    log.debug(tostring(systemCommon.HunterTicketsUsed))
    log.debug(tostring(systemCommon.HunterTicketsUsed))

The via.rds.Mandrake typed object's address that we printed out changes all the time, so I am unable to change its properties via systemCommon.HunterTicketsUsed.v = 0 or systemCommon.HunterTicketsUsed:set_field("v", 0).

Instead, if I do

    local hunterTicketUsed           = systemCommon.HunterTicketsUsed
    hunterTicketUsed:set_field("v", 0)
    systemCommon:set_field("HunterTicketsUsed", hunterTicketUsed)

changes would apply.

FYI, I am just choosing this object as an example, and there are still some extra steps required to successfully change hunterTicketUsed, but I don't think we need to talk about it here.

Identify the REFramework version
c09ad7b

Screenshots
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions