-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Lottery RNG for DPPt/HGSS #114
Comments
Could you link where you found this, unless you discovered it through testing. I assume it uses the initial seed that is also used to create the TID/SID. |
Deece/Bruceman from Discord was who I got the info from; apparently this is common knowledge in the speedrunning community, because there is actually a tool called |
Been a while since I have looked at this. Did you have some kind of vision for what the GUI would look like? I am not entirely opposed to adding this, I just don't think I know enough to see what the end goal would look like. |
Goal for this project: My vision of the GUI is as follows: |
I am very much looking forward to adding this feature. It is very useful when I do RTA. Please. |
I have details on how the Lottery RNG advances after the first day (example: https://youtu.be/bivayAXdpS0), however I still don't understand how and when seemingly "old" (like ≥months, or so) savefiles seem to re-seed the Lottery RNG at some point. Don't know if you want to add this stuff too. |
This is known: creating a "group" will set the group seed (that controls lottery) to the current MT state. Joining a group copies the seed of the current group leader to yours. Basically, never join or create a group, and it's based on the seed at save initialization. Also, a modified LCRNG (same mult, add of 0x3039) is used on day 2+ group seed states as a sort of mask for the final lottery number. |
I am aware of groups, but I am pretty sure that the reseeding happened in savefiles which never joined or created one. I don't have an example right now, but I will post here if I find one. The phenomenon is visibile on emulator too (DesMuMe with a lua script to check the LID), by the way, under conditions which I haven't fully understood, but seemed to do with changing date enough times. |
Interesting. I have further questions about this, please reach out to me on discord (happylappy#5231) about this. Definitely want to get a better understanding of this, since it jeopardizes the effectiveness of my group seed SID finding tool. |
For HGSS the beginning lottery number can be obtained by taking the 16 bit High from the 4th frame of a seed, and then converting it from hex to decimal.
![image](https://user-images.githubusercontent.com/15519892/88620406-f6dd5580-d06b-11ea-9780-1f2025e0fcaf.png)
For DPPt the beginning lottery number can be obtained by taking the 16 bit High from the 2nd frame of a seed, and then converting it from hex to decimal.
![image](https://user-images.githubusercontent.com/15519892/88620624-8125b980-d06c-11ea-9cbb-39d038732acb.png)
Would it be possible to search through the 16 bit High of the 2nd or the 4th frame of a seed to see if the number produced matched a possible TID?
The text was updated successfully, but these errors were encountered: