SHARE
TWEET

mugg1991

a guest Jan 31st, 2010 347 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. emu = snes9x
  2.  
  3. local range = 9
  4. local txtposx = 6
  5. local txtposy = 9
  6.  
  7. local randomcall = 0
  8.  
  9. memory.registerexec(0x008a9f, 2, function()
  10.         randomcall = randomcall + 1
  11.  
  12. end)
  13.  
  14.  
  15. gui.register(function()
  16.  
  17. -- P1
  18.                 local xh = memory.readwordsigned(0x700988) + memory.readword(0x700A7D)/256
  19.                 local yh = memory.readwordsigned(0x700A02) + memory.readword(0x700AF7)/256
  20.                 local xsh = memory.readwordsigned(0x7016BF)
  21.                 local ysh = memory.readwordsigned(0x700BEA)
  22.                 gui.text (90, 2, "(P1)")
  23.                 gui.text (90, 10, string.format ("X-Pos:  %.03f", xh))
  24.                 gui.text (90, 18, string.format ("Y-Pos:  %.03f", yh))
  25.                 gui.text (90, 28, string.format ("X-Speed:  % 01d", xsh))
  26.                 gui.text (90, 36, string.format ("Y-Speed:  % 01d", ysh))      
  27.  
  28. -- P2
  29.         local helper = memory.readword(0x7014A1)
  30.         if 1 <= helper then
  31.         if helper <= 19 then
  32.                 local xh = memory.readwordsigned(0x70098A) + memory.readword(0x700A7F) / 256
  33.                 local yh = memory.readwordsigned(0x700A04) + memory.readword(0x700AF9) / 256
  34.                 local xsh = memory.readwordsigned(0x7016C1)
  35.                 local ysh = memory.readwordsigned(0x700BEC)
  36.                 gui.text (170, 2, "(P2)")
  37.                 gui.text (170, 10, string.format ("X-Pos:  %.03f", xh))
  38.                 gui.text (170, 18, string.format ("Y-Pos:  %.03f", yh))
  39.                 gui.text (170, 28, string.format ("X-Speed:  % 01d", xsh))
  40.                 gui.text (170, 36, string.format ("Y-Speed:  % 01d", ysh))     
  41.        
  42. end
  43. end
  44.  
  45. -- RNG
  46.  
  47.       local random = memory.readbyte(0x003743)
  48.         local random2 = memory.readbyte(0x003744)
  49.  
  50.                 local helper = memory.readword(0x7014A1)
  51.         if helper <= 19 and 1 <= helper then a = 50 else a = 10 end
  52.       gui.text (170, a, string.format ("Vari. RN:  %01d", randomcall))
  53.         gui.text (170, a+8, string.format ("RANDOM 1:  %01d", random))
  54.         gui.text (170, a+16, string.format ("RANDOM 2:  %01d", random2))
  55.  
  56. end)
  57. while true do
  58.         snes9x.frameadvance()
  59. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top