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 


Symbol+Offset doesn't work without quotes in AA

 
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 Jan 27, 2020 8:20 pm    Post subject: Symbol+Offset doesn't work without quotes in AA Reply with quote

Say I have these two:

Code:
define(returnA,CryingSuns.Navigation:NavigationSystem:IsConnectedTo+5)
define(returnB,"CryingSuns.Navigation:NavigationSystem:IsConnectedTo"+5)
define(returnC,"CryingSuns.Navigation:NavigationSystem:IsConnectedTo+5")


B is the only one that works in autoassembler. I've written a lua function to safely handle addresses like these I think, I just wanted to make sure I wasn't missing something that already exists or an easier way...

Code:
function util.safeAddress(s)
  local tbl = {}
  for a in string.gmatch(s, "([^+]+)[+]?") do table.insert(tbl, a) end
  local result = '"'..tbl[1]..'"'
  if #tbl > 1 then result = result..'+'..tbl[2] end
  return result
end


Just throwing it out there, would it be better if AA could accept addresses like this without quotes, or should the symbol handler return addresses like this surrounded by quotes by default?
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: Tue Jan 28, 2020 12:55 am    Post subject: Reply with quote

i'm not sure why A wouldn't work , OpenProcess+8 works fine, and

Code:

define(bla,Bob:BobGetAxe+8)

bla:
nop
nop
nop


also works fine (mono symbol). Check out the mono symbolhandler override, perhaps your implementation is missing something

but yeah, the fully quoted line doesn't work, but quotes are really to distinguish symbols from offsets anyhow
example:
Code:

tutorial-i386.exe+13

this would be interpreted as the symbol tutorial minus the symbol i386.exe and add 13 to that (ok, it automatically tries "tutorial-i386.exe"+13 after figuring out tutorial doesn't exist, but that works by adding quotes itself, not removing)

Code:

"tutorial-i386.exe"+13

this will be interpreted as the symbol tutorial-i386.exe and add 13 to that

but
Code:

"tutorial-i386.exe+13"

would be interpreted as the symbol named "tutorial-i386.exe+13"

and that one doesn't exist

_________________
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