Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Convert to Big Endian Array of Bytes
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1675

PostPosted: Fri May 31, 2019 5:40 am    Post subject: Reply with quote

Meiyoh wrote:

The only help i got was frist Gurroder then DB but neither was the thing i wanted. .......


Just want know, did you try to define the custom type from my last script and how it works?.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Fri May 31, 2019 5:50 am    Post subject: Reply with quote

Meiyoh wrote:
seems like no one wants to help...

TheyCallMeTim13 wrote:

That or no one wants to do it for you, you might want to show a little effort. Doesn't even seem like you want to help yourself. And you were told exactly how to do it.

So 1; I never called you lazy, you called yourself lazy. 2; If you don't know how to read bytes try a search engine.
https://www.google.com/search?q=cheat+engine+readbytes
Guess what the first result is.
https://wiki.cheatengine.org/index.php?title=Lua:readBytes

That or just say "how does readBytes work, can you give me an example". I know that sounds crazy, but you'll catch more flies with honey than you will with vinegar. You could even post your script and ask about what you don't understand.

But instead you just claim no is willing to help you. But the truth is, no one wrote the script for you at first.

Then you "rant" about me being "rude". You got so stuck on that and seemed to have miss where I gave you yet another way to do it. To worried about having a come back to even try to solve the problem.


Meiyoh wrote:
...God save humanity...

All because I said, "you might want to show a little effort".

But in the end you got your script written for you, so I guess no need to look at yourself and you can just keep the status quo.

Meiyoh wrote:
...Good luck

Seems like you need the luck, I'll just stick with brains and curiosity.


And here's a crazy idea, post a script that actually reads bytes. Who knows you might even be able to help others.

_________________
Back to top
View user's profile Send private message Visit poster's website
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 408

PostPosted: Fri May 31, 2019 9:53 am    Post subject: Reply with quote

Corroder wrote:
Meiyoh wrote:

The only help i got was frist Gurroder then DB but neither was the thing i wanted. .......


Just want know, did you try to define the custom type from my last script and how it works?.



I already had those yet i still thanked you because you tried to help me. I have added those long ago using google 2 bytes, 4 bytes and float big endian. My goal was not to find values but to make my script read them as and write them as big endian.

The solution is to make an allocation for the values where lua will read bytes 4 bytes in a row while writing them in reverse order to a temp location which will be used by other scripts as a converted value.

Tim is right about one thing scripts must be made so others can use them as a basis for their work or at least i think how this shall be.

a lua script must read the bytes one by one... then write them in reverse order one by one up to 4 bytes integer value which CE will use a a base for scripts to read. AT least in my cause all i need is 4 bytes converted to "readable" format.

I will do it

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1675

PostPosted: Fri May 31, 2019 10:46 am    Post subject: Reply with quote

Meiyoh wrote:


I already had those yet i still thanked you because you tried to help me. I have added those long ago... I will do it


Okay, nope problem. Just little misunderstanding on my side. Because you said "Thanks Corudder . I value your help i will try it i already have found some way to convert the values to big endian although call it primitive but at least works.

Then if you already have solutions for your cases before peoples trying to finding the solution for you, at least you are writing on your topic, problem solve and case closed, with those peoples no need to spend their times to solve a solved case and also with that, there is no need to post things outside the topic.

Ans also I want to remind not only you but each CEF member also isn't necessarily to give help or to solve problems against every topic in this forum. So think wisely and positively. Case closed Arrow

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 155

Joined: 06 Jul 2014
Posts: 4775

PostPosted: Fri May 31, 2019 10:55 am    Post subject: Reply with quote

Meiyoh wrote:
My goal was not to find values but to make my script read them as and write them as big endian.
That's what custom types do.
Use getCustomType(typename) to get a custom type from Lua, and use byteTableToValue / valueToByteTable methods to convert an AoB to/from that custom type.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites