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 


Fix for ce 6.7 : DB 'decimalstring'

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Jul 16, 2017 3:09 am    Post subject: Fix for ce 6.7 : DB 'decimalstring' Reply with quote

replace autorun/luasymbols.lua with
Code:

luasymbols=registerSymbolLookupCallback(function(str)
  if str then
    local firstchar=str:sub(1,1)
   
    if (firstchar=='\'') or (firstchar=='\"') then
      return nil
    end
 
    local c='return '..str
    local lc=loadstring(c)
    if lc then
      local isvalid,result=pcall(lc)
      if isvalid then
        return result
      else
        return nil
      end
    end
  end
end, slNotSymbol)

registerEXETrainerFeature('Lua Symbols', function()
  local r={}
  r[1]={}
  r[1].PathToFile=getCheatEngineDir()..[[autorun\luasymbols.lua]]
  r[1].RelativePath=[[autorun\]]
 
  return r
end)

_________________
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
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Jul 16, 2017 3:13 am    Post subject: Reply with quote


  1. is it important, and should we do it?
  2. is it for lua users only?

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Jul 16, 2017 3:56 am    Post subject: Reply with quote

it's for people that use AA scripts with stuff like:
Code:

db '00',0


without this fix it will be equivalent to db 00,0

_________________
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
STN
I post too much
Reputation: 41

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Jul 16, 2017 5:26 am    Post subject: Reply with quote

thanks!
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Sun Jul 16, 2017 12:32 pm    Post subject: Reply with quote

Hm, I tested this since I wasn't sure how '\"' would work (it looks like a copy paste bug Smile ) and it doesn't seem like " strings get passed to the function at all using this test script on the tutorial

Code:
[ENABLE]
"Tutorial-i386.exe"+290:
  db -1,-1,-1,-1,-1,-1,-1,-1,-1,-1
[DISABLE]
"Tutorial-i386.exe"+290:
  db '12'
  db "12",0


which results in
Code:
31 32 12 00 FF FF FF FF FF FF
instead of the expected
Code:
31 32 31 32 00 FF FF FF FF FF


I added a simple
Code:
print("[[" .. firstchar .. "]] equal to \" is " .. tostring(firstchar == '\"'))
to test and the single quotes appear twice when toggling the test script, but the double quotes do not appear at all.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Jul 16, 2017 4:26 pm    Post subject: Reply with quote

seems like it doesn't pass the doublequoted string, but it behaves exactly the same as 6.6 (which also does this)
_________________
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 Extensions 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