Skip to content

Commit 9202886

Browse files
committed
Add support for Mar 25 2024 update
- Add support for `Build Mar 25 2024 17:42:49` - Add support for `Build Mar 25 2024 17:48:04`
1 parent c0fd7aa commit 9202886

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

files/modification.lua

+17
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,16 @@ function Modification.SetMemoryOptions(memory)
218218
mPlayerNeverDies = function(value) ffi.cast("char*", 0x0130982C+6)[0] = value end,
219219
mFreezeAI = function(value) ffi.cast("char*", 0x0130982C+7)[0] = value end,
220220
},
221+
{_Offset = 0x01182F70, _BuildString = "Build Mar 25 2024 17:42:49", -- Steam dev build.
222+
mPostFxDisabled = function(value) ffi.cast("char*", 0x013198AC+0)[0] = value end,
223+
mGuiDisabled = function(value) ffi.cast("char*", 0x013198AC+1)[0] = value end,
224+
mGuiHalfSize = function(value) ffi.cast("char*", 0x013198AC+2)[0] = value end,
225+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x013198AC+3)[0] = value end,
226+
mTrailerMode = function(value) ffi.cast("char*", 0x013198AC+4)[0] = value end,
227+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x013198AC+5)[0] = value end,
228+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x013198AC+6)[0] = value end,
229+
mFreezeAI = function(value) ffi.cast("char*", 0x013198AC+7)[0] = value end,
230+
},
221231
},
222232
},
223233
[false] = {
@@ -320,6 +330,13 @@ function Modification.SetMemoryOptions(memory)
320330
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.
321331
end,
322332
},
333+
{_Offset = 0x00FFDB54, _BuildString = "Build Mar 25 2024 17:48:04", -- Steam build.
334+
enableModDetection = function(value)
335+
local ptr = ffi.cast("char*", 0x006B1FD8+6)
336+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
337+
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.
338+
end,
339+
},
323340
},
324341
},
325342
}

0 commit comments

Comments
 (0)