| View previous topic :: View next topic |
| Author |
Message |
ravenL00 How do I cheat?
Reputation: 0
Joined: 09 Jul 2013 Posts: 4
|
Posted: Tue Jul 09, 2013 9:58 am Post subject: Value auto output to file(or excel, or clipboard) possible? |
|
|
Hi.
I found 5 addresses, which show me money data of enemy npcs.
These values are quickly changing, and they are multiplied by 8 and added some offsets, so I can't understand exact value of enemy money on cheat engine.
So I want to output these values in real time to excel and recalculate it via excel to original "money value" for me to know it easily.
Is it possible to output cheat engine's data to excel? or something else in real time?
Thanks in advance.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Tue Jul 09, 2013 3:13 pm Post subject: |
|
|
multiplied by 8 just means the value got shifted by 3 bits, and the first 3 bits contain random data which can be ignored completely (just don't change them)
you can use a custom type to deal with this
e.g: http://forum.cheatengine.org/viewtopic.php?t=529904 contains a custom type suitable for your situation
You can output ce's data to excel with lua scripts(just read the text and save it to clipboard), but which specific data would you like ? foundlist, addresslist? etc...
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ravenL00 How do I cheat?
Reputation: 0
Joined: 09 Jul 2013 Posts: 4
|
Posted: Tue Jul 09, 2013 8:00 pm Post subject: |
|
|
I want to get values of foundlist.
For example, if my list is like below,
Description address type value
Data1 00aa00aa 4 byte 100
Data2 00aa00bb 4 byte 200
Data3 00aa00cc 4 byte 300
I want in clipboard(each value in new line, for excel purpose...)
100
200
300
I'd be glad if lua can update clipboard in real time...
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Tue Jul 09, 2013 8:50 pm Post subject: |
|
|
execute this lua code: (ce 6.3)
| Code: |
function CopyFoundlistValuesToClipboard()
local fl=getMainForm().Foundlist3
local values=""
for i=0, fl.Items.Count-1 do
values=values..fl.Items[i].SubItems[0].."\n\r\n\r"
end
writeToClipboard(values)
end
copytimer=createTimer(nil)
copytimer.OnTimer=CopyFoundlistValuesToClipboard
copytimer.Interval=100
copytimer.Enabled=true
|
and every 1/10th of a second the values will get copied to the clipboard
You could save it to the autorun folder of ce, but honestly, having your clipboard overwritten constantly might be annoying.
To disable it, execute
| Code: |
copytimer.destroy()
|
edit, after reading your post better, I think you meant the addresslist (description, address, type, value)
in that case:
| Code: |
function CopyAddresslistValuesToClipboard()
local al=getAddressList()
local values=""
for i=0, al.Count-1 do
values=values..al[i].Value.."\n\r\n\r"
end
writeToClipboard(values)
end
copytimer=createTimer(nil)
copytimer.OnTimer=CopyAddresslistValuesToClipboard
copytimer.Interval=100
copytimer.Enabled=true
|
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ravenL00 How do I cheat?
Reputation: 0
Joined: 09 Jul 2013 Posts: 4
|
Posted: Wed Jul 10, 2013 5:01 am Post subject: |
|
|
I don't know why, but your code doesn't give me any values but null string...
function CopyFoundlistValuesToClipboard()
local fl=getMainForm().Foundlist3
local values=""
for i=0, fl.Items.Count-1 do
values=values..fl.Items[i].SubItems[0].."\n\r\n\r"
end
writeToClipboard(values)
end
copytimer=createTimer(nil)
copytimer.OnTimer=CopyFoundlistValuesToClipboard
copytimer.Interval=100
copytimer.Enabled=true
After executing this, i should get
"100\n\r200\n\r300\n\r"
but I only get
"" constantly...
I changed local values="" to local values="0", then it returns me
"0" constantly.
So timer works well, but seems like something isn't going well with
for i=0, fl.Items.Count-1 do
values=values..fl.Items[i].SubItems[0].."\n\r\n\r"
end
Can you please recheck this part?
P.S. I only want values only, not addresses... so the first one you wrote is right i think...
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Wed Jul 10, 2013 5:08 am Post subject: |
|
|
Foundlist is the list on the topleft with columns adress and value
Addresslist is the list on the bottom with description, address, type and value
If the foundlist has no results from a scan the string will be ""
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ravenL00 How do I cheat?
Reputation: 0
Joined: 09 Jul 2013 Posts: 4
|
Posted: Wed Jul 10, 2013 5:29 am Post subject: |
|
|
You were right! The second code worked well... I'm very glad :) Thanks.
But I wonder why it returns
value 1
<null line>
<null line>
value 2
<null line>
<null line>
and so on...
I wanted only single <enter> between values, but now it gives three <enter> between values...
Do you mind modifying the second code for giving only 1 line between values?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25975 Location: The netherlands
|
Posted: Wed Jul 10, 2013 5:47 am Post subject: |
|
|
Try \n\r instead of \n\r\n\r
Or just one \n
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|