Skip to content

Commit 09d8bcf

Browse files
authored
Merge pull request #31 from WUOTE/12-August-2024-latest
Add support for the latest Beta branch build
2 parents d3edf29 + b76233c commit 09d8bcf

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

files/modification.lua

+23-6
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,16 @@ function Modification.SetMemoryOptions(memory)
248248
mPlayerNeverDies = function(value) ffi.cast("char*", 0x0131D8DC+6)[0] = value end,
249249
mFreezeAI = function(value) ffi.cast("char*", 0x0131D8DC+7)[0] = value end,
250250
},
251+
{_Offset = 0x0118FD3C, _BuildString = "Build Aug 12 2024 21:43:22", -- Steam dev build.
252+
mPostFxDisabled = function(value) ffi.cast("char*", 0x01327D3C+0)[0] = value end,
253+
mGuiDisabled = function(value) ffi.cast("char*", 0x01327D3C+1)[0] = value end,
254+
mGuiHalfSize = function(value) ffi.cast("char*", 0x01327D3C+2)[0] = value end,
255+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x01327D3C+3)[0] = value end,
256+
mTrailerMode = function(value) ffi.cast("char*", 0x01327D3C+4)[0] = value end,
257+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x01327D3C+5)[0] = value end,
258+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x01327D3C+6)[0] = value end,
259+
mFreezeAI = function(value) ffi.cast("char*", 0x01327D3C+7)[0] = value end,
260+
},
251261
},
252262
},
253263
[false] = {
@@ -365,12 +375,19 @@ function Modification.SetMemoryOptions(memory)
365375
end,
366376
},
367377
{_Offset = 0x01001DF4, _BuildString = "Build Apr 8 2024 18:11:27", -- Steam build.
368-
enableModDetection = function(value)
369-
local ptr = ffi.cast("char*", 0x006B3355+6)
370-
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
371-
ptr[0] = value -- This basically just changes the value that Noita forces to the "mods_have_been_active_during_this_run" member of the WorldStateComponent when any mod is enabled.
372-
end,
373-
},
378+
enableModDetection = function(value)
379+
local ptr = ffi.cast("char*", 0x006B3355+6)
380+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
381+
ptr[0] = value -- This basically just changes the value that Noita forces to the "mods_have_been_active_during_this_run" member of the WorldStateComponent when any mod is enabled.
382+
end,
383+
},
384+
{_Offset = 0x01007CA4, _BuildString = "Build Aug 12 2024 21:14:23", -- Steam build.
385+
enableModDetection = function(value)
386+
local ptr = ffi.cast("char*", 0x006B3925+6)
387+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
388+
ptr[0] = value -- This basically just changes the value that Noita forces to the "mods_have_been_active_during_this_run" member of the WorldStateComponent when any mod is enabled.
389+
end,
390+
},
374391
},
375392
},
376393
}

0 commit comments

Comments
 (0)