View previous topic :: View next topic |
Author |
Message |
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1259
|
Posted: Thu Feb 16, 2017 3:34 am Post subject: I created a trainer. It worked twice. continuous' Error-Stri |
|
|
Error:[string "function CreateTrainer()
..."]:196: attempt to call a nil value (field 'mod')
Error:[string "function CreateTrainer()
..."]:196: attempt to call a nil value (field 'mod')
----------------------------------------------------------
Thanks for the coach. I made a cheat engine, it worked 1-2 times. But it always does not work with the error messages above! I tried CE 6.3 and 6.6 but only worked 1-2 times. What causes the above faults? Thank you already for your joy when you help
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Feb 16, 2017 5:58 am Post subject: |
|
|
add this at the beginning:
_________________
|
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1259
|
Posted: Thu Feb 16, 2017 11:12 am Post subject: |
|
|
mgr.inz.Player wrote: | add this at the beginning:
|
thanks..
What line should I add to this string per line?
Error:[string "Math.mod = math.fmod..."]:1: attempt to index global 'Math' (a nil value)
Error:[string "function CreateTrainer()..."]:196: attempt to index global 'Math' (a nil value)
Error:[string "function CreateTrainer()..."]:196: attempt to index global 'Math' (a nil value)
The error message now focuses on math mode ..
HackData:Info()
end
function DEC_HEX(IN)
local B,K,OUT,I,D=16,"0123456789ABCDEF","",0
if IN<1 then
OUT=0
return OUT
end
while IN>0 do
I=I+1
Math.mod = math.fmod
IN,D=math.floor(IN/B),math.mod(IN,B)+1
OUT=string.sub(K,D,D)..OUT
end
return OUT
end
function Aobswap(search, change)
aobs = AOBScan(search)
if(aobs ~= nil) then
j = stringlist_getCount(aobs)
for i = 1, j do
address=stringlist_getString(aobs,i-1)
for i = 1, string.len(change), 3 do
z = string.sub(change, i, i+2)
x, y = string.find(z, "%?+")
if (x == nil) then
script=[[
]]..address.."+"..(DEC_HEX((i-1)/3))..[[:
db ]]..z..[[
]]
autoAssemble(script)
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Feb 16, 2017 11:46 am Post subject: |
|
|
case matters
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1259
|
Posted: Thu Feb 16, 2017 12:33 pm Post subject: |
|
|
Thank you. It was a great analysis and it worked.
|
|
Back to top |
|
|
|