dragonbane

rng stuff tas

Jun 6th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. if rng or camera desync verify if prior or next frame doesnt have a match between the current and expected value. if so adjust recording since a lag frame was added/skipped compared to recording
  2.  
  3. rng value
  4.  
  5. rng:
  6.  
  7. fast camera turning left/right with right stick
  8.  
  9. check wagon escort rng
  10.  
  11.  
  12. particle system uses rng inofficially
  13. everything that calls __ct__Q25JMath13TRandom_fast_FUl
  14.  
  15.  
  16. chase cam:
  17.  
  18. 8016B9B8: calculation of the new look at address (maybe function is here in hd? 028E417C)
  19.  
  20. information class: 803daa78
  21.  
  22. + 0x740 + -0x648 + 6 = Stick 1 (+FE)
  23. + 0x740 + -0x684 = Stick 2 (+BC)
  24.  
  25. camera class: 80a28dec (ptr 803DAA74 points at this)
  26.  
  27. +0x5C (+6) = Angle change to apply (user rotation)
  28.  
  29. +0x482 contains copy of stick value
  30.  
  31.  
  32. 02BEB9C4 # cSGlobe::Val((cXyz const &)) also has to be adjusted
  33.  
  34.  
  35. final angles are here:
  36.  
  37. 0x64(r29) - 0x6C(r29): Final Camera LookAt Postion X/Y/Z (in free cam mode this takes LookAtAngle into account)
  38. 0x70(r31) - 0x78(r31): Final Camera X/Y/Z Position
  39.  
  40. dump first mini state after recording begins if its from savestate to beginning.sav
  41. always dump mini state after last area transition to temp file both during recording and playback
  42. dump current TAS to temp file .wum
  43.  
  44. if user saves movie only dump/copy current movie file if its from boot otherwise include beginning.sav
  45. if user savestates save current movie file, beginning.sav if present and last mini state to SD under a name or slot ids
  46. loading a savestate will overwrite beginning.sav with the one from the state, replicate the last loading with the ministate and resume inputs from end of file-last point where isLoading = 1
  47. playback WUM always plays from loading to titlescreen or from beginning.sav depending
  48.  
  49. if read only mode is enabled and savestate is loaded just playback and allow to frame advance at any point and switch to recording mode
  50. if read only mode is turned off and a savestate is loaded by default playback to the end point and then auto pause in recording mode
  51.  
  52. display recording/playback text on screen/watermark
  53.  
  54. scene play deletion/name scene deletion = start of loading
  55. scene play execute/name scene execute = end of loading
Add Comment
Please, Sign In to add comment