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.5]
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
mgr.inz.Player
I post too much
Reputation: 159

Joined: 07 Nov 2008
Posts: 4271
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
mgr.inz.Player
I post too much
Reputation: 159

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

PostPosted: Fri Oct 11, 2019 1:00 pm    Post subject: Reply with quote

version 1.3.3:
- patched for CE7.0
- fixed error when local 'size' is nil
- fixed issue mentioned here: link (e.g. name "mp")

new keyword:
%replacedInstructionsSizeHex% - the same as %replacedInstructionsSize% but it is hexadecimal numer

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 71

Joined: 14 Jul 2007
Posts: 2225

PostPosted: Sat Oct 12, 2019 3:23 am    Post subject: Reply with quote

Any chance to add the version number as comment on top?

Thank you for the continued support!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 159

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

PostPosted: Sat Oct 12, 2019 4:47 am    Post subject: Reply with quote

Did you mean game executable version?
_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 71

Joined: 14 Jul 2007
Posts: 2225

PostPosted: Sat Oct 12, 2019 9:12 am    Post subject: Reply with quote

I mean your template Wink
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 159

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

PostPosted: Sat Oct 12, 2019 1:02 pm    Post subject: Reply with quote

OK, another version 1.3.4

new keywords:
%exeVersion%, %moduleVersion%, %scriptDate% - self explainable
%extensionVersion% - current extension version, e.g. 1.3.4



example:
Code:
...
...
<<INFO>>
// Game Executable   : %processName%
// Author            : %authorName%
// Executable Version: %exeVersion%
// Module Version    : %moduleVersion%
// Script Date       : %scriptDate%
// Created with      : customAOBInjectionTemplates version: %extensionVersion%
<<INFO_END>>
...
...


will give:
Quote:
// Game Executable : hl.exe
// Author : Hitler
// Executable Version: 1.1.1.1
// Module Version :
// Script Date : 2019-10-12
// Created with : customAOBInjectionTemplates version: 1.3.4

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 71

Joined: 14 Jul 2007
Posts: 2225

PostPosted: Fri Oct 25, 2019 4:47 am    Post subject: This post has 1 review(s) Reply with quote

I added a few more variants; please find it attached.
Thank you!



customAOBInjectionTemplates.lua
 Description:
Please merge these changes

Download
 Filename:  customAOBInjectionTemplates.lua
 Filesize:  21.3 KB
 Downloaded:  50 Time(s)



Last edited by Csimbi on Wed Oct 30, 2019 12:15 pm; edited 3 times in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 159

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

PostPosted: Fri Nov 01, 2019 1:21 pm    Post subject: Custom 'AOB Injection' Templates [ver. 1.3.5] Reply with quote

Merged.
_________________
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