MikeNoey Advanced Cheater
Reputation: 0
Joined: 08 Jun 2018 Posts: 64
|
Posted: Tue Oct 29, 2019 8:07 am Post subject: Issue with allocating memory within LUA |
|
|
Hi guys. This code works absolutely fine on my computer but on my friends computer it will not work. Upon executing I get the error message "attempt to allocate memory to nill value" for this line "mem = allocateMemory(0x2048) I have checked all the addresses and they are exactly the same on both mine and my friends computer. I would appreciate any insight into why this might be happening. Thank you in advance
The problem was the CE Versions. I was using CE version 6.7 and my friend was using 6.6. This is the second time I have the same mistake this week. Note to self to check versions.
| Code: | function RemoveCDfunc()
scan = "game.exe+1E7B2C"
registerSymbol("CDremove",scan)
mem = allocateMemory(0x2048)
registerSymbol("newmem",mem)
script = [[
label(return)
newmem:
cmp edx,1
je game.exe+1E7B37
imul edx,edx,000003E8
jmp game.exe+1E7B32
CDremove:
jmp newmem
return:
]]
autoAssemble(script)
end
RemoveCDfunc() |
|
|