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