Advertisement
CuleX

TPP and KazoWAR

May 6th, 2014
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. 00:46 *** ttp has joined #projectpokemon
  2. 00:46 < ttp> I'm looking for information on memory locations in gen4
  3. 00:46 *** ttp is now known as tpp
  4. 00:47 < Kaphotics> like
  5. 00:47 < Kaphotics> you mean RAM offsets for things like party pokemon
  6. 00:47 < tpp> yes, and information on the structure of that data
  7. 00:48 < Kaphotics> http://projectpokemon.org/wiki/Notable_Breakpoints#Pokemon_DPP_.28U.29
  8. 00:48 <+Nene> Kaphotics' URL: Notable Breakpoints - Project Pokemon Wiki [ text/html ]
  9. 00:48 < Kaphotics> start there
  10. 00:49 < tpp> not helpful, I'm very unskilled when it comes to this sort of low-level stuff
  11. 00:49 < Kaphotics> if you know anything about AR codes, you can get the party pkm offsets with PokeGen's generated codes
  12. 00:50 < Kaphotics> as you probably know, the locations of things aren't static but instead have pointers
  13. 00:50 < Kaphotics> http://projectpokemon.org/wiki/Pokemon_NDS_Structure
  14. 00:50 <+Nene> Kaphotics' URL: Pokemon NDS Structure - Project Pokemon Wiki [ text/html ]
  15. 00:50 < Kaphotics> 4th gen pkm structure
  16. 00:51 < tpp> and the position of the party pokemon is dynamically allocated?
  17. 00:51 *** PPGuest64371 has joined #projectpokemon
  18. 00:51 < Kaphotics> it's static for a particular ROM build
  19. 00:51 <~Alpha> we should really rename that to Pokemon PK4 Structure
  20. 00:52 < tpp> save file doesn't contain up-to-date information, I'd rather extract it from memory
  21. 00:52 < Kaphotics> right, thing is we only use AR codes
  22. 00:52 <~Alpha> well, some of us use telepathy
  23. 00:52 < Kaphotics> load a pointer, go to offset depending on pointer value, write data
  24. 00:52 <~Alpha> but that's not for everyone
  25. 00:53 < tpp> I'm not looking to write, I'm looking to read
  26. 00:53 < Kaphotics> either way
  27. 00:53 < Kaphotics> it's the same principle for reading data
  28. 00:54 < Kaphotics> you need to find where you want to read/-write-
  29. 00:55 < Kaphotics> 94000130 FFFB0000 B21C4D28 00000000 B0000004 00000000 E0000304 00000088
  30. 00:55 < Kaphotics> example AR code
  31. 00:55 < tpp> AR codes don't really help me at all
  32. 00:55 < tpp> Lua script would be appreciated :)
  33. 00:55 < Kaphotics> if key pressed, load pointer at 21C4D28, etc, write 88 bytes... payload
  34. 00:55 < Kaphotics> there is no lua script
  35. 00:56 < Kaphotics> if you're feeling lazy
  36. 00:56 < Kaphotics> make some stuff in pokegen
  37. 00:56 < Kaphotics> edit your save file
  38. 00:56 < tpp> looks like this sort of stuff is beyond me, I had enough difficulty reading bytes and have them be correct most of the time
  39. 00:56 < Kaphotics> and look at the RAM to find your PIDs
  40. 00:56 < Kaphotics> it's not
  41. 00:56 < tpp> I think you don't understand my use case, see: http://twitch.tv/twitchplayspokemon
  42. 00:56 <+Nene> tpp's URL: Twitch [ text/html; 22.33 kB ]
  43. 00:56 < Kaphotics> oh, I'm well aware
  44. 00:56 < Kaphotics> there's no freebies to be had here, because there are none to begin with
  45. 00:57 < Kaphotics> nobody has made a party watch lua script (well, I did one for gen V)
  46. 00:57 < tpp> oh well
  47. 00:57 < tpp> that sucks then :)
  48. 00:57 < Kaphotics> simply because gen 4 was never emulated well until after gen V came out
  49. 00:57 < tpp> gen4 will go without
  50. 00:57 < Kaphotics> if you seriously spend 10 minutes of time you can find your answer
  51. 00:58 < Kaphotics> just make 'magic' PIDs with a save editor and find them in the RAM
  52. 00:58 < tpp> it's not 10 minutes for someone unfamilliar with this sort of thing
  53. 00:58 < Kaphotics> it's 10 minutes
  54. 00:58 < Kaphotics> take save file
  55. 00:58 < tpp> I wrange other people's code to serve me a purpose
  56. 00:58 < Kaphotics> make 6 random things
  57. 00:59 < tpp> that's what takes *me* 10 minutes
  58. 00:59 < Kaphotics> and find them with RAM search
  59. 00:59 < Kaphotics> there is no code for you to copy
  60. 00:59 <+SciresM> Okay
  61. 00:59 < tpp> and will that stay consistent?
  62. 00:59 <+SciresM> I don't know if it's like Gen V
  63. 00:59 < tpp> or will I have to do that every time I load up the game?
  64. 00:59 < Kaphotics> there is no DMA in gen 4/5
  65. 00:59 <+SciresM> But gen V ek5 files are literally stored in RAM
  66. 00:59 <+SciresM> I was playing around with that yesterday
  67. 00:59 *** a_ has joined #projectpokemon
  68. 00:59 <~Alpha> ek5 files are hard to search
  69. 00:59 <+SciresM> ?
  70. 00:59 < a_> hi
  71. 00:59 < Kaphotics> which is why you search for the PID
  72. 01:00 <+SciresM> Search for Pid + 00
  73. 01:00 <+SciresM> (00*2)
  74. 01:00 < Kaphotics> because that's never encrypted (it's the decryption key)
  75. 01:00 <~Alpha> pid only shows up in the pk5
  76. 01:00 < Flash> Alpha, where's your 3ds?
  77. 01:00 <~Alpha> oh, I see
  78. 01:00 <+SciresM> no, Alpha
  79. 01:00 < Kaphotics> alpha u nub
  80. 01:00 <+SciresM> pid + 00 00 at start of every ek5
  81. 01:00 <~Alpha> Flash, you took it
  82. 01:00 <~Alpha> can i have it back?
  83. 01:00 < Flash> yes
  84. 01:00 * Flash throws the 3ds back at Alpha
  85. 01:00 < tpp> sorry, I was expecting information, not clique drama
  86. 01:00 *** tpp has quit <Connection closed>
  87. [...]
  88. 11:08 < Jdbye|Laptop> Kazo: are you working on a TPP-like script or something?
  89. 11:13 < Kazo> helping out tpp with a 4th ghen script
  90. [... days pass ...]
  91. 17:42 < Chase> Kazo, how went the thing with TPP?
  92. 18:31 < Kazo> Chase its done
  93. 18:31 < Kazo> it reports party pokemon id, hp, maxhp, level, money. badges, and pokedex seen/own counts
  94. 18:42 < Chase> Did you do nicknames as well?
  95. 18:42 < Chase> For the party pokemon that is.
  96. 18:42 < Kazo> no he never asked me for that
  97. 18:42 < Chase> Ah.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement