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 


Add Auto Assemble Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 01, 2016 11:37 am    Post subject: Add Auto Assemble Script Reply with quote

Is there a quick and easy way to add/create an auto assemble script to the cheat table? If not, I'd like to submit a request for one.

Similar to 'Add Address Manually', we could 'Add Script Manually', that would add a script entry to the table with [enable] and [disable] automatically added to it.

Thanks!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue Mar 01, 2016 5:32 pm    Post subject: Reply with quote

Hmm. Looks like it is another opportunity to create another Lua extension Cool


Shocked

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

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 01, 2016 5:43 pm    Post subject: Reply with quote

If possible, that would be great! Very Happy
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue Mar 01, 2016 5:52 pm    Post subject: Reply with quote

1. install lua extension (look for it in sub-forum)
2. rightclick "Add Address Manually"
3. choose "Add Auto Assemble script"

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

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Mar 01, 2016 6:00 pm    Post subject: Reply with quote

Shocked

Wow...so fast! Thanks!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue Mar 01, 2016 6:02 pm    Post subject: Reply with quote

If someone else wants to find the thread. It is called quicker "Add AutoAssemble script"

and file name is quickerAddAutoAssembleScript.lua

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

Joined: 14 Jul 2007
Posts: 3344

PostPosted: Fri Mar 04, 2016 2:13 pm    Post subject: Reply with quote

Nice.
Is there a way to set the break condition right away when setting a break and trace (using LUA)?
I am really tired of setting a breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again.
Text in italic is a waste of time and some processes (especially those with multiple threads) don't like to be stopped.
Thanks
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Sun Mar 06, 2016 12:26 pm    Post subject: Reply with quote

Csimbi wrote:
Nice.
Is there a way to set the break condition right away when setting a break and trace (using LUA)?
I am really tired of setting a breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again.
Text in italic is a waste of time and some processes (especially those with multiple threads) don't like to be stopped.
Thanks

I'm not sure I understood the procedure you wrote.

Code:
function breakAndTraceWithBreakpointOnPrev()
  local mi=getMemoryViewForm().Breakandtraceinstructions1
  local origOnClick = mi.OnClick

  mi.OnClick = function (sender)
    local address=getMemoryViewForm().DisassemblerView.SelectedAddress
    local prevOpcodeAddress = getPreviousOpcode(address)

    debug_setBreakpoint(prevOpcodeAddress, 1, bptExecute, function () return 1 end)

    local ticks = getTickCount()
    local getTickCount = getTickCount
    while (debug_isBroken()==false) and (ticks+5000>getTickCount()) do
      sleep(50)
      processMessages()
    end

    origOnClick(sender)

    debug_removeBreakpoint(prevOpcodeAddress)
    if debug_isBroken() then debug_continueFromBreakpoint(co_run) end

  end

end

breakAndTraceWithBreakpointOnPrev()


Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process

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

Joined: 14 Jul 2007
Posts: 3344

PostPosted: Sun Mar 06, 2016 5:49 pm    Post subject: Reply with quote

Neat, thanks - at which point do I set the break condition?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Mon Mar 07, 2016 11:13 am    Post subject: Reply with quote

this one Question

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

Joined: 14 Jul 2007
Posts: 3344

PostPosted: Tue Mar 08, 2016 2:17 am    Post subject: Reply with quote

So it pops up? Before the break&trace is set? (have not tried yet, but can't see that in the code above)
I mean, your description does not mention it:
Quote:
Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Tue Mar 08, 2016 1:58 pm    Post subject: Reply with quote

Csimbi wrote:
So it pops up? Before the break&trace is set? (have not tried yet, but can't see that in the code above)
I mean, your description does not mention it:
Quote:
Its sets a breakpoint on previous opcode, waits max. 5 seconds for a debugger break, launches "break and trace" window, removes breakpoint, run process

Nope, it doesn't popup.


From your first post:
'breakpoint in the previous instruction, setting the break and trace, setting condition, turning off breakpoint set, running the process again"

I thought you were writing about "stop condition" in "break and trace" window.


Then I read this:
"Neat, thanks - at which point do I set the break condition?"


Wait a minute. "Break condition" or "stop condition"? This is why I attached an image and asked.

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

Joined: 14 Jul 2007
Posts: 3344

PostPosted: Tue Mar 08, 2016 4:15 pm    Post subject: Reply with quote

Break condition.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
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