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 


Bug: Disassembled code with space in module won't compile

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
jgoemat
Master Cheater
Reputation: 23

Joined: 25 Sep 2011
Posts: 264

PostPosted: Mon Jul 08, 2013 1:36 am    Post subject: Bug: Disassembled code with space in module won't compile Reply with quote

Disassembled instructions (including in templates) don't include quotes around the module name and the autoassembler throws an error. This happened to me when writing a script for Prison Architect, the original code:

Code:
prison architect.exe+190CC0 - DC 0D 680A7700        - fmul qword ptr [prison architect.exe+370A68]


When creating a template the instruction put into enable as original code and into disable to restore was the exact same and wouldn't compile without putting quotes around the module name.

I don't know what solution would be best, but I think either the disassembler should put in the quotes or the assembler should handle the instruction without quotes (I vote for the latter).
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jul 08, 2013 4:11 am    Post subject: Reply with quote

I'll go with the disassembler. With the assembler there is the problem that spaces and commas are token seperators, and values are fetched during the tokenizer pass
_________________
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
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