Skip to content

Commit 4e79c08

Browse files
committed
Add support for new Noita beta
- Add support for `Build Apr 6 2024 20:50:04` - Add support for `Build Apr 6 2024 20:54:23`
1 parent aee72fd commit 4e79c08

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
@@ -228,6 +228,16 @@ function Modification.SetMemoryOptions(memory)
228228
mPlayerNeverDies = function(value) ffi.cast("char*", 0x013198AC+6)[0] = value end,
229229
mFreezeAI = function(value) ffi.cast("char*", 0x013198AC+7)[0] = value end,
230230
},
231+
{_Offset = 0x011871FC, _BuildString = "Build Apr 6 2024 20:50:04", -- Steam dev build.
232+
mPostFxDisabled = function(value) ffi.cast("char*", 0x0131D89C+0)[0] = value end,
233+
mGuiDisabled = function(value) ffi.cast("char*", 0x0131D89C+1)[0] = value end,
234+
mGuiHalfSize = function(value) ffi.cast("char*", 0x0131D89C+2)[0] = value end,
235+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x0131D89C+3)[0] = value end,
236+
mTrailerMode = function(value) ffi.cast("char*", 0x0131D89C+4)[0] = value end,
237+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x0131D89C+5)[0] = value end,
238+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x0131D89C+6)[0] = value end,
239+
mFreezeAI = function(value) ffi.cast("char*", 0x0131D89C+7)[0] = value end,
240+
},
231241
},
232242
},
233243
[false] = {
@@ -337,6 +347,13 @@ function Modification.SetMemoryOptions(memory)
337347
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.
338348
end,
339349
},
350+
{_Offset = 0x01001DDC, _BuildString = "Build Apr 6 2024 20:54:23", -- Steam build.
351+
enableModDetection = function(value)
352+
local ptr = ffi.cast("char*", 0x006B35B5+6)
353+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
354+
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.
355+
end,
356+
},
340357
},
341358
},
342359
}

0 commit comments

Comments
 (0)