uwsellan

CommSys RNG programming (for Cranidos+ speedruns)

Oct 20th, 2025 (edited)
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Lua script requirements:
  2.  
  3. - Access the dynamic 64-bit CommSys random context, using the value of the 32-bit static pointer 0x02257740 + 8 as an offset
  4.  
  5. - Output the value of these memory addresses directly from memory
  6.  
  7. - Inject testing memory values in the underground, before commencing the dig minigame
  8.  
  9. - Show the number of times the CommSys RNG has advanced from its initial state (Dist. seed) using the seeding formula : seed = seed * 5D588B656C078965 + 269EC3
  10.  
  11. -----------------------------------
  12.  
  13. Simulator requirements:
  14.  
  15. - Generate full boards for a given range of seeds, print a full dirt pattern, number of items, names of items, and co-ordinates of items (preferably in an intuitive GUI)
  16.  
  17. - Implement the logic to re-roll for an item if the placement collides with a previously generated item
  18.  
  19. - Be able to take a dirt pattern/item coordinates from the user, and spit out the seed(s) using a given range of seconds from a date/time
  20.  
  21. - Must not be written in garbage Python at all costs, will be searching through millions of seeds
  22.  
  23. -----------------------------------
  24.  
  25. Example of dynamic data structure from instance of play on DeSmuME
  26.  
  27. 023A94C8 - 023A94CC = two pointers
  28. 023A94D0 - 023A94D4 = random context
  29. 023A94D8 - 023A94DC = multiple
  30. 023A94E0 - increment
  31.  
  32. Value 023A94C8 located at 02257740 (02251380 in DP)
  33.  
  34. 6C078965 multiple can be RAM searched
Advertisement
Add Comment
Please, Sign In to add comment