| View previous topic :: View next topic |
| Author |
Message |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Sat Oct 08, 2016 1:25 pm Post subject: Reading pointer in Binary type ( Lua ) (solved) !!!! |
|
|
| Code: | function read()
local x=readInteger([[[[[mygame.exe+module offset]+offset1]+offset2]+offset3]+offset4]+offset5")
|
I want my lua script read this pointer in Binary ( I choose 2 and the length 1 )
look the picture .
I want this to use this value in my script to compare If equal zero or one .
The question is How to read the pointer in binary like the picture? In lua script
| Description: |
|
| Filesize: |
42.51 KB |
| Viewed: |
10762 Time(s) |

|
Last edited by Twistedfate on Sat Oct 08, 2016 4:11 pm; edited 1 time in total |
|
| Back to top |
|
 |
predprey Master Cheater
Reputation: 24
Joined: 08 Oct 2015 Posts: 486
|
|
| Back to top |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Sat Oct 08, 2016 3:14 pm Post subject: |
|
|
I canot understand this can u copy and past to my script please ?
I read main.lua there is
readInteger(address)
readFloat(address) etc
Is there something like that ?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25871 Location: The netherlands
|
Posted: Sat Oct 08, 2016 3:16 pm Post subject: |
|
|
| Code: |
getAddressList().getMemoryRecordByDescription('pointerscan result').Value
|
_________________
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 |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 959
|
Posted: Sat Oct 08, 2016 3:27 pm Post subject: |
|
|
Lua 5.3 so ce 6.5+ added bitwise operator, so
For individual bit:
it is something show as is
| Code: |
a = readInteger(addr)
print((a >> 3) & 0x01)
|
For bit field, ie. bit length,bn > 1 with start bit num, bs
something like:
| Code: |
print((a >> bs) & ((1<<bn) -1))
|
For ce 6.4, there are a set of bitwise function , bShr, bAnd, bXor ... etc.
bye~
_________________
- Retarded. |
|
| Back to top |
|
 |
cancandodo Advanced Cheater
Reputation: 0
Joined: 09 Mar 2012 Posts: 75
|
Posted: Mon Dec 10, 2018 3:24 am Post subject: |
|
|
tks,i can read binary from integer num now
but the question is
how to write integer from binary?
|
|
| Back to top |
|
 |
|