| View previous topic :: View next topic |
| Author |
Message |
gir489 Grandmaster Cheater
Reputation: 14
Joined: 03 Jan 2012 Posts: 844 Location: Maryland, United States
|
Posted: Sat Jul 18, 2026 11:30 am Post subject: dmahelper.lua error module 'forEachForm' not found |
|
|
I installed 7.7 on a fresh instance of Windows and I get this error every time I start Cheat Engine.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25972 Location: The netherlands
|
Posted: Sat Jul 18, 2026 12:03 pm Post subject: |
|
|
Delete all the files from "C:\Program Files\Cheat Engine" and try installing again
And do a `return getCheatEngineFileVersion()` and confirm the version is 1970354901756290 ( 0x7000700002982 )
and confirm that at `C:\Program Files\Cheat Engine\lua` is the lua file forEachForm.lua
And maybe there's something in your environment path that might interfere
and print out package.path
It should contain `C:\Program Files\Cheat Engine\lua\?.lua` near the start
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
gir489 Grandmaster Cheater
Reputation: 14
Joined: 03 Jan 2012 Posts: 844 Location: Maryland, United States
|
Posted: Sat Jul 18, 2026 8:41 pm Post subject: |
|
|
| Dark Byte wrote: | Delete all the files from "C:\Program Files\Cheat Engine" and try installing again
And do a `return getCheatEngineFileVersion()` and confirm the version is 1970354901756290 ( 0x7000700002982 )
and confirm that at `C:\Program Files\Cheat Engine\lua` is the lua file forEachForm.lua
And maybe there's something in your environment path that might interfere
and print out package.path
It should contain `C:\Program Files\Cheat Engine\lua\?.lua` near the start |
I tried doing a fresh install before posting, although I don't know why it would be precontaminated as I just installed Windows last week.
It returns 1970354901756285.
I noticed in the error message it's complaining about LuaJIT which I need for development work. LuaJIT is in my PATH.
package.path prints
C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\lua\?.lua;C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\lua\?\init.lua;C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\?.lua;C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\?\init.lua;C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\..\share\lua\5.1\?.lua;C:\Users\rblod\AppData\Local\Programs\LuaJIT\bin\..\share\lua\5.1\?\init.lua;.\?.lua;.\?\init.lua;C:\Users\rblod\AppData\Roaming\luarocks\share\lua\5.1\?.lua;C:\Users\rblod\AppData\Roaming\luarocks\share\lua\5.1\?\init.lua;?.lua;D:\OneDrive\Stuff\Documents\My Cheat Tables\?.lua;C:\Program Files\Cheat Engine\autorun\xml\?.lua;C:\Program Files\Cheat Engine\autorun\ceshare\?.lua
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25972 Location: The netherlands
|
Posted: Sun Jul 19, 2026 5:25 am Post subject: |
|
|
your ceversion seems too be off. Make sure you download from cheatengine.org, the ones downloadable outside of cheatengine.org tend to be broken versions. Though I don't think it'll fix your lua issue. For some reason there is no lua\ in your default path. I guess because there's already a path set it doesn't set it
(it will fix one of these:
updated the windows build to fix an issue with creating a process using the processwindow
fixed an issue with disassembling invalid vex instructions
Fixed a lag issue with symbols
Fixed memoryleak in lua command getFunctionRange
Fixed 32-bit VEH debug issue and loading old tables by certain table makers
Fixed structure dissect issue when autodelete is used in combination with internal types , and fixed HOOK/HOOK5 not setting the preferred allocation)
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
gir489 Grandmaster Cheater
Reputation: 14
Joined: 03 Jan 2012 Posts: 844 Location: Maryland, United States
|
Posted: Sun Jul 19, 2026 9:46 am Post subject: |
|
|
| Dark Byte wrote: | your ceversion seems too be off. Make sure you download from cheatengine.org, the ones downloadable outside of cheatengine.org tend to be broken versions. Though I don't think it'll fix your lua issue. For some reason there is no lua\ in your default path. I guess because there's already a path set it doesn't set it
(it will fix one of these:
updated the windows build to fix an issue with creating a process using the processwindow
fixed an issue with disassembling invalid vex instructions
Fixed a lag issue with symbols
Fixed memoryleak in lua command getFunctionRange
Fixed 32-bit VEH debug issue and loading old tables by certain table makers
Fixed structure dissect issue when autodelete is used in combination with internal types , and fixed HOOK/HOOK5 not setting the preferred allocation) |
I did, I downloaded it from <snip in case this link here is what triggered google> which is the link that cheatengine.org makes you download. Unless the cloudfront CDN isn't propigating the update correctly?
But anwyay, how can I fix the error from coming up? It's not like it's just 1 dialog box then CE comes up, it complains about 4 different things each time I start it.
EDIT: Claude figured it out. He wrote this to explain the problem for you if you think it'll help replicating or fixing it.
| Quote: | You were right, it was the LuaJIT install. Turns out its installer had set two user-level environment variables, LUA_PATH and LUA_CPATH, pointing only at the LuaJIT install folder. Since those env vars existed, Lua's normal behavior is to use them instead of building the default search path - and that applies to Cheat Engine's embedded Lua too. So instead of CE setting package.path to include C:\Program Files\Cheat Engine\lua\?.lua like it normally would, it was inheriting the LuaJIT-only path, which obviously had no idea forEachForm.lua existed. That's why dmahelper.lua couldn't resolve the module.
Fix was just to delete the LUA_PATH and LUA_CPATH user env vars. They were only duplicating LuaJIT's own built-in default paths anyway, so nothing else broke. After a relaunch (needed a fresh session for the env var change to actually take), CE builds package.path itself again and dmahelper loads fine. |
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 98
Joined: 14 Jul 2007 Posts: 3411
|
Posted: Mon Jul 20, 2026 6:33 am Post subject: |
|
|
| Dark Byte wrote: |
And do a `return getCheatEngineFileVersion()` and confirm the version is 1970354901756290 ( 0x7000700002982 )
|
Seems there's a new release. Yei! Thanks!
How do I get the IDs of the newest releases so I would be aware?
When I download, I am still getting the old release...
| Code: | return getCheatEngineFileVersion()
1:1970354901756285 ( 0x700070000297D )
2:table
[
ProductVersion = 7.7
build = 10621 ( 0x297D )
major = 7
ProductName =
release = 0
LegalTrademarks =
CompanyName = Cheat Engine
InternalName =
OriginalFilename =
Comments =
...
]
|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25972 Location: The netherlands
|
Posted: Mon Jul 20, 2026 6:55 am Post subject: |
|
|
ignore that version number. That number was for a future version. the one stated before is correct
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|