Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Custom 'AOB Injection' Templates [ver. 1.3.2]
Goto page Previous  1, 2, 3, 4, 5, 6
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Scorm
Newbie cheater
Reputation: 0

Joined: 06 Dec 2018
Posts: 11

PostPosted: Sun Jan 06, 2019 1:01 pm    Post subject: Reply with quote

Using Win7 x64.
I had backwardCompatibility.lua, customAOBInjectionTemplates.lua, ModuleInfo.lua in autorun dir.

I could try to patch these here and there, but I've taken the path to learn LUA to not be dependent on 3rd party code and their bugs. However I do appreciate seeing them and the tutorials to quickly get an idea of how to work. I am a bit sad that coroutines are not an actual multi-threading functionality though.
Back to top
View user's profile Send private message
DeRol
Newbie cheater
Reputation: 0

Joined: 26 Aug 2009
Posts: 10

PostPosted: Fri May 24, 2019 9:31 pm    Post subject: Same Error Reply with quote

Just chiming in that I'm also receiving the same error:

customAOBInjectionTemplates.lua:365: attempt to perform arithmetic on a nil value (local 'size')"

It happens on many games, but not on others.

I don't know lua, but from the error the
Code:
size = getModuleSize(v.Name)
in the below function ends up not being defined
Code:
 local function giveModuleAndOffset(address)
    local modulesTable,size = enumModules(),0
    for i,v in pairs(modulesTable) do
      size = getModuleSize(v.Name)
      if address>=v.Address and address<=v.Address+size
        then return '"'..v.Name..'"+'..string.format('%X',address-v.Address) end
    end
    return getNameFromAddress(address)
  end



Cheat Engine Version: 6.8.3
No other lua modules added to autorun directory
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 18

Joined: 08 Oct 2015
Posts: 452

PostPosted: Mon Aug 26, 2019 2:07 pm    Post subject: Reply with quote

Csimbi's Template Patch for CE7.0:
Code:
local replacedInstructionsSize = 5 -- replacedInstructionsSize = jumpSize + NopCount; jumpSize is 5
replacedInstructionsSize = replacedInstructionsSize + (tonumber(newScript:match('nop (%d)')) or 0)
db90s:gsub(' 90',function (c) replacedInstructionsSize=replacedInstructionsSize+1 end) -- number of NOPs
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 159

Joined: 07 Nov 2008
Posts: 4245
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon Aug 26, 2019 4:30 pm    Post subject: Reply with quote

I'll check it tomorrow (and probably I will add other useful extension I'm currently working on).
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6
Page 6 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites