Skip to content

Commit f7ac3c4

Browse files
committed
Add support for more Noita builds
- Build Aug 12 2024 21:10:13 - Build Aug 12 2024 21:48:01
1 parent 09d8bcf commit f7ac3c4

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
@@ -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:10:13", -- 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
{_Offset = 0x0118FD3C, _BuildString = "Build Aug 12 2024 21:43:22", -- Steam dev build.
252262
mPostFxDisabled = function(value) ffi.cast("char*", 0x01327D3C+0)[0] = value end,
253263
mGuiDisabled = function(value) ffi.cast("char*", 0x01327D3C+1)[0] = value end,
@@ -388,6 +398,13 @@ function Modification.SetMemoryOptions(memory)
388398
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.
389399
end,
390400
},
401+
{_Offset = 0x01007CA4, _BuildString = "Build Aug 12 2024 21:48:01", -- Steam build.
402+
enableModDetection = function(value)
403+
local ptr = ffi.cast("char*", 0x006B3925+6)
404+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
405+
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.
406+
end,
407+
},
391408
},
392409
},
393410
}

0 commit comments

Comments
 (0)