Posted: Wed Nov 09, 2022 11:52 pm Post subject: Skip command for cheat,engine
Hello CE community
i have an issue i am doing aob search for some headers and writing bytes to some addresses but some times the first aobis not loaded so CE w'ont
continue to excute next aob search for example
Error:[string "dbk_initialize()
..."]:636: attempt to index a function value (global 'four')
and it stops here
IS it possible to skip first value and move to next if not found
as this
local aob = AOBScan(...)
if aob then
-- run code
end
-- alternative:
if not aob then
skip or move next -- skip if aob not found
end
please if you knw solution to this help me really needed
Last edited by moussahp2 on Thu Nov 10, 2022 2:29 pm; edited 1 time in total
it not really an error it means 1st aob not loaded yet
here is an example of what i want
dbk_initialize(true)
dbk_useKernelmodeOpenProcess(true)
dbk_useKernelmodeProcessMemoryAccess(true)
dbk_writesIgnoreWriteProtection(true)
--============================================================
--AOB REPLACE FUNCTION
function AOBRep(search, change)
local aob = AOBScan(search)
if aob then
for i=0,aob.Count-1 do
autoAssemble(aob[i]..':\ndb '..change)
end
if not aob then
return -- exit if aob not found
end
end
end
--============================================================
EmuSelection = createForm(true)
EmuSelection.Caption = 'lib PATCH'
EmuSelection.Width = 140
EmuSelection.Height = 150
--============================================================
--FUNCTION WHEN GAMELOOP IS SELECTED
function gameloop()
speak('Gameloop Selected')
emu= "aow_exe"
startmenu()
EmuSelection.hide()
end
--============================================================
GameloopSel = createButton(EmuSelection)
GameloopSel.Left = 12
GameloopSel.Top = 17
GameloopSel.Width = 110
GameloopSel.Height = 33
GameloopSel.onClick = gameloop
GameloopSel.Caption = 'lib-release'
--============================================================
--============================================================
function startmenu()
local p = io.popen('tasklist /fi "IMAGENAME eq '..emu..'.exe" /fi "MEMUSAGE gt 300000" /nh', 'r');
local procInfo = p:read('*a');
p:close();
local pid = procInfo:match('%d+');
pid = tonumber(pid);
if(pid == nil)then
showMessage("Process not identified. Either Stuck on Logo or not running")
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