View previous topic :: View next topic |
Author |
Message |
Neospirit Newbie cheater Reputation: 0
Joined: 26 Dec 2013 Posts: 11
|
Posted: Thu Dec 26, 2013 3:16 pm Post subject: Lua createMemoryRecord type vtString |
|
|
Hello,
Using Cheat Engine 6.3
I've added a MemoryRecord in the AddressList manually with the following attributes :
Description : NAME
Address : 2044BDE4
Type : String[5] Unicode
I get the value : Oodle
Now, i want to do this using Lua :
Code: | local CTAL=getAddressList()
local mr=CTAL.createMemoryRecord();
mr.setDescription('NAME')
mr.Address='2044BDE4'
mr.setType(vtString)
--setProperty(mr, 'String.Size', 5)
--setProperty(mr, 'String.Unicode', true)
--mr.setProperty('String.Size', 5)
--mr.setProperty('String.Unicode', true) |
i have an empty result because :
the type in the AddressList show String[0]
no Unicode flag.
and this is where it gets funny, the main.lua has the following information :
Code: | If the type is vtString then the following properties are available:
String.Size: Number of characters in the string
String.Unicode: boolean |
so, maybe a dumb question but : How do you set/get these magic properties ?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Dec 26, 2013 5:19 pm Post subject: |
|
|
This is a bug in 6.3. It has already been fixed in the svn though.
In there you'd do this:
Code: |
local CTAL=getAddressList()
local mr=CTAL.createMemoryRecord();
mr.setDescription('NAME')
mr.Address='2044BDE4'
mr.Type=vtString
mr.String.Size=5
mr.String.Unicode=true
|
In 6.3's case you have to fall back on the legacy support
Code: |
memoryrecord_string_setSize(mr,5)
memoryrecord_string_setUnicode(mr, true)
|
_________________
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 |
|
|
Neospirit Newbie cheater Reputation: 0
Joined: 26 Dec 2013 Posts: 11
|
Posted: Thu Dec 26, 2013 5:30 pm Post subject: |
|
|
Clear quick response, thank you very much.
|
|
Back to top |
|
|
|