Identify the REFramework version
Release v1.5.4 and Nightly 842.
To Reproduce
Steps to reproduce the behavior:
Open Pause Menu.
Open History.
Crash during loading NPC Logbook when the Guid in Likes matches.
Expected behavior
I'm trying to replace System.String in Dragons Dogma 2 via sdk.hook using a specific Guid, but after returning sdk.create_managed_string(str) the game crashes.
Desktop and VR:
Windows 11
Nvidia 4070
i9 9900k
Additional context
I only use this script, nothing else.
local current_message_guid
sdk.hook(sdk.find_type_definition("app.MessageManager"):get_method("getMessage"),
function(args)
local type = sdk.find_type_definition("System.Guid")
current_message_guid = sdk.get_native_field(args[2], type, "mData1")
end,
function(retval)
local msg = sdk.to_managed_object(retval):ToString()
if current_message_guid == 3901721732 then
return sdk.create_managed_string("X")
end
return retval
end
)
Describe the bug Returning sdk.create_managed_string(str) instead of System.String in DD2 crashes the game.
Upload logs and any crash dumps reframework_crash.dmp
Identify the REFramework version Release v1.5.4 and Nightly 842.
To Reproduce Steps to reproduce the behavior:
Expected behavior I'm trying to replace System.String in Dragons Dogma 2 via sdk.hook using a specific Guid, but after returning sdk.create_managed_string(str) the game crashes.
Desktop and VR:
Additional context I only use this script, nothing else.