Skip to content

Commit e83aa68

Browse files
committed
Add support for new Noita versions
- Add support for Build Dec 29 2023 23:36:18 - Add support for Build Dec 29 2023 23:40:18
1 parent f7426f3 commit e83aa68

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

files/modification.lua

+20-3
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,24 @@ function Modification.SetMemoryOptions(memory)
160160
},
161161
{_Offset = 0x00F8A9DC, _BuildString = "Build Dec 21 2023 00:07:29", -- Steam dev build.
162162
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,
163+
mGuiDisabled = function(value) ffi.cast("char*", 0x010F814D)[0] = value end,
164+
mGuiHalfSize = function(value) ffi.cast("char*", 0x010F814E)[0] = value end,
165+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x010F814F)[0] = value end,
166166
mTrailerMode = function(value) ffi.cast("char*", 0x010F8150)[0] = value end,
167167
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x010F8151)[0] = value end,
168168
mPlayerNeverDies = function(value) ffi.cast("char*", 0x010F8152)[0] = value end,
169169
mFreezeAI = function(value) ffi.cast("char*", 0x010F8153)[0] = value end,
170170
},
171+
{_Offset = 0x00F71DE4, _BuildString = "Build Dec 29 2023 23:36:18", -- Steam dev build.
172+
mPostFxDisabled = function(value) ffi.cast("char*", 0x0111758C)[0] = value end,
173+
mGuiDisabled = function(value) ffi.cast("char*", 0x0111758D)[0] = value end,
174+
mGuiHalfSize = function(value) ffi.cast("char*", 0x0111758E)[0] = value end,
175+
mFogOfWarOpenEverywhere = function(value) ffi.cast("char*", 0x0111758F)[0] = value end,
176+
mTrailerMode = function(value) ffi.cast("char*", 0x01117590)[0] = value end,
177+
mDayTimeRotationPause = function(value) ffi.cast("char*", 0x01117591)[0] = value end,
178+
mPlayerNeverDies = function(value) ffi.cast("char*", 0x01117592)[0] = value end,
179+
mFreezeAI = function(value) ffi.cast("char*", 0x01117593)[0] = value end,
180+
},
171181
},
172182
},
173183
[false] = {
@@ -214,6 +224,13 @@ function Modification.SetMemoryOptions(memory)
214224
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.
215225
end,
216226
},
227+
{_Offset = 0x00E14FA0, _BuildString = "Build Dec 29 2023 23:40:18", -- Steam build.
228+
enableModDetection = function(value)
229+
local ptr = ffi.cast("char*", 0x00625FFD)
230+
Memory.VirtualProtect(ptr, 1, Memory.PAGE_EXECUTE_READWRITE)
231+
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.
232+
end,
233+
},
217234
},
218235
},
219236
}

0 commit comments

Comments
 (0)