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 


PRNG number

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Klokotor
How do I cheat?
Reputation: 0

Joined: 08 Apr 2020
Posts: 1

PostPosted: Wed Apr 08, 2020 8:10 pm    Post subject: PRNG number Reply with quote

Hello everyone,
sorry if this is a bad thread to choose, but I thought lua scripting would be the case to solve what I want. I will describe the situation here:
As I was backtracing a game, i was looking on the calls, did some breakpoints and followed the instructions, I found the code where the prng is written and how. states/ nodes/ seed/clockseq everything.
I am far from being a advanced reverse engineer and never truly understood all of lua scripts etc. That is why i thought would be a kick off to ask here as for I am thinking, if I have the code that writes the whole generator or how it works, I believe it could be useful for something.
Question:
- Is it possible, to use the same exact code to make a script which would tell us what is the current number that the generator created? In case of loot its probably not gonna help as the dice is rolled just at the death of an object. But with cards for example i have seen that they are stored just after the previous roll.

Somewhere in thousands of codes i found also a statement of the mersenne twister.

Answer to your question: It is not an online game, but I want to keep the name hidden.

Thank you for all your answers and support. Looking forward hearing your thoughts.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 153

Joined: 06 Jul 2014
Posts: 4734

PostPosted: Wed Apr 08, 2020 8:22 pm    Post subject: Reply with quote

Klokotor wrote:
Is it possible, to use the same exact code to make a script which would tell us what is the current number that the generator created?

It would be annoying to keep the state of your PRNG in sync with the game's. Why not use code injection to simply copy the random value generated from the game's PRNG? You'd probably end up using code injection anyway to figure out when to advance the state of your PRNG.

_________________
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 Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
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