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 


Auto-assembler: can define directives have line breaks?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
PurrShell
How do I cheat?
Reputation: 0

Joined: 11 Feb 2025
Posts: 4

PostPosted: Fri Dec 12, 2025 10:42 pm    Post subject: Auto-assembler: can define directives have line breaks? Reply with quote

Is there any way to make the define directive in the auto-assembler support line breaks?
Back to top
View user's profile Send private message Send e-mail
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4717

PostPosted: Sat Dec 13, 2025 3:35 am    Post subject: Reply with quote

No. Maybe you could pretend to do that with `registerAutoAssemblerPrologue`.
Why would you want to do that in the first place?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
PurrShell
How do I cheat?
Reputation: 0

Joined: 11 Feb 2025
Posts: 4

PostPosted: Sat Dec 13, 2025 6:22 am    Post subject: i'm sorry Reply with quote

ParkourPenguin wrote:
No. Maybe you could pretend to do that with `registerAutoAssemblerPrologue`.
Why would you want to do that in the first place?


I originally wanted to implement something like an inline function, essentially creating a pushad equivalent for x64. Such a sequence of code doesn’t rely on symbols or absolute addresses and could be addressed with something like define(name, db ...). However, in daily development, I also have scenarios that require symbols and absolute addresses. Maybe my idea is unreasonable—I apologize. I’ll give up on trying to do this in CE for now; my request is probably not reasonable, as CE is a tool and not suited for creating finished product-level trainers.
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25830
Location: The netherlands

PostPosted: Sat Dec 13, 2025 10:54 am    Post subject: Reply with quote

Code:

registerAutoAssemblerCommand(command, function(parameters, syntaxcheckonly)): Registers an auto assembler command to call the specified function. The command will be replaced by the string this function returns when executed. The function can be called twice. Once for syntax check and symbol lookup(1), and the second time for actual execution by the assembler(2) if it has not been removed in phase1.
  Note: The callback function can return multiple values
  Nil, <String>: Will raise an error with the given string
  MultilineString: Replaces the line in the script with the given strings.


 If the function returns nil, and as secondary parameter a string, this will make the auto assembler fail with that error

_________________
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
View user's profile Send private message MSN Messenger
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 959

PostPosted: Sat Dec 13, 2025 4:26 pm    Post subject: Reply with quote

See if this work?

MULTI-LINE AA Script

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