Read/Write Big Endian

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
SarashJessicaParker
What is cheating?
What is cheating?
Posts: 1
Joined: Sat Sep 21, 2019 4:21 pm
Reputation: 0

Read/Write Big Endian

Post by SarashJessicaParker » Sat Sep 21, 2019 4:24 pm

Does anyone have a script out there that allows lua to read and write big endian float values? I was specifically looking to read and write big endian float values.I looked on the other forum and google and I came up empty handed. Any help would be much appreciated and thanks in advance.

Eric
Hall of Famer
Hall of Famer
Posts: 115
Joined: Thu Mar 02, 2017 11:01 pm
Reputation: 47

Re: Read/Write Big Endian

Post by Eric » Sun Sep 22, 2019 1:54 pm

Easiest is use a custom type of big endian floats in a cheat table or getCustomType() and then use bytetables to feed it a result and read it out

alternatively, use readBytes to read 4 bytes, swap the bytes, and then use byteTableToFloat

Post Reply

Who is online

Users browsing this forum: No registered users