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
Expert Cheater
Expert Cheater
Posts: 59
Joined: Sat Sep 21, 2019 4:21 pm
Reputation: 41

Read/Write Big Endian

Post by SarashJessicaParker »

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: 174
Joined: Thu Mar 02, 2017 11:01 pm
Reputation: 90

Re: Read/Write Big Endian

Post by Eric »

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