Skip to content

Commit d178605

Browse files
committed
Add support for Jan 2025 builds of Noita
1 parent f7ac3c4 commit d178605

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

files/modification.lua

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Copyright (c) 2022-2024 David Vogel
1+
-- Copyright (c) 2022-2025 David Vogel
22
--
33
-- This software is released under the MIT License.
44
-- https://opensource.org/licenses/MIT
@@ -268,6 +268,16 @@ function Modification.SetMemoryOptions(memory)
268268
mPlayerNeverDies = function(value) ffi.cast("char*", 0x01327D3C+6)[0] = value end,
269269
mFreezeAI = function(value) ffi.cast("char*", 0x01327D3C+7)[0] = value end,
270270
},
271+
{_Offset = 0x01191A34, _BuildString = "Build Jan 25 2025 15:51:09", -- Steam dev build.
272+
mPostFxDisabled = function(value) ffi.cast("char*", 0x0132ADDC+0)[0] = value end,
273+
mGuiDisabled = function(value) ffi.cast("char*", 0x0132ADDC+1)[0] = value end,
274+
mGuiHalfSize = function(value) ffi.cast("char*", 0x0132ADDC+2)[0] = value end,
275+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x0132ADDC+3)[0] = value end,
276+
mTrailerMode = function(value) ffi.cast("char*", 0x0132ADDC+4)[0] = value end,
277+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x0132ADDC+5)[0] = value end,
278+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x0132ADDC+6)[0] = value end,
279+
mFreezeAI = function(value) ffi.cast("char*", 0x0132ADDC+7)[0] = value end,
280+
},
271281
},
272282
},
273283
[false] = {
@@ -405,6 +415,13 @@ function Modification.SetMemoryOptions(memory)
405415
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.
406416
end,
407417
},
418+
{_Offset = 0x01009D3C, _BuildString = "Build Jan 25 2025 15:55:41", -- Steam build.
419+
enableModDetection = function(value)
420+
local ptr = ffi.cast("char*", 0x006B3AD5+6)
421+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
422+
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.
423+
end,
424+
},
408425
},
409426
},
410427
}

0 commit comments

Comments
 (0)