Skip to content

Commit 905f629

Browse files
committed
Add support for newer Noita builds
- Add Build Dec 19 2023 18:34:31 support - Add Build Dec 19 2023 18:38:23 support - Add Build Dec 21 2023 00:07:29 support - Add Build Dec 21 2023 00:11:06 support
1 parent b11b27d commit 905f629

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

files/modification.lua

+34
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,26 @@ function Modification.SetMemoryOptions(memory)
148148
mPlayerNeverDies = function(value) ffi.cast("char*", 0x010E9A62)[0] = value end,
149149
mFreezeAI = function(value) ffi.cast("char*", 0x010E9A63)[0] = value end,
150150
},
151+
{_Offset = 0x00FA654C, _BuildString = "Build Dec 19 2023 18:34:31", -- Steam dev build.
152+
mPostFxDisabled = function(value) ffi.cast("char*", 0x011154BC)[0] = value end,
153+
mGuiDisabled = function(value) ffi.cast("char*", 0x011154BD)[0] = value end,
154+
mGuiHalfSize = function(value) ffi.cast("char*", 0x011154BE)[0] = value end,
155+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x011154BF)[0] = value end,
156+
mTrailerMode = function(value) ffi.cast("char*", 0x011154C0)[0] = value end,
157+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x011154C1)[0] = value end,
158+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x011154C2)[0] = value end,
159+
mFreezeAI = function(value) ffi.cast("char*", 0x011154C3)[0] = value end,
160+
},
161+
{_Offset = 0x00F8A9DC, _BuildString = "Build Dec 21 2023 00:07:29", -- Steam dev build.
162+
mPostFxDisabled = function(value) ffi.cast("char*", 0x010F814C)[0] = value end,
163+
mGuiDisabled = function(value) ffi.cast("char*", 0x0010F814D)[0] = value end,
164+
mGuiHalfSize = function(value) ffi.cast("char*", 0x0010F814E)[0] = value end,
165+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x0010F814F)[0] = value end,
166+
mTrailerMode = function(value) ffi.cast("char*", 0x010F8150)[0] = value end,
167+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x010F8151)[0] = value end,
168+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x010F8152)[0] = value end,
169+
mFreezeAI = function(value) ffi.cast("char*", 0x010F8153)[0] = value end,
170+
},
151171
},
152172
},
153173
[false] = {
@@ -180,6 +200,20 @@ function Modification.SetMemoryOptions(memory)
180200
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.
181201
end,
182202
},
203+
{_Offset = 0x00E333F4, _BuildString = "Build Dec 19 2023 18:38:23", -- Steam build.
204+
enableModDetection = function(value)
205+
local ptr = ffi.cast("char*", 0x00624C5D)
206+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
207+
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.
208+
end,
209+
},
210+
{_Offset = 0x00E23EC4, _BuildString = "Build Dec 21 2023 00:11:06", -- Steam build.
211+
enableModDetection = function(value)
212+
local ptr = ffi.cast("char*", 0x0064246D)
213+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
214+
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.
215+
end,
216+
},
183217
},
184218
},
185219
}

0 commit comments

Comments
 (0)