Jump to content

XY/ORAS Pokémon Link tool 0.1


suloku

Recommended Posts

Notice: Pkhex now supports Pokémon Link injection/extracion/viewing, you can find pokémon link events in the Gen 6 event archive: https://projectpokemon.org/forums/forums/topic/39398-gen-vi-event-contribution-thread-2016/

16 march 2016: updated file to include latest pokemon link events.

Quote

XYORAS Pokemon Link Tool 0.1 by suloku'15

-----------------------------------------

This tool allows to dump/inject Pokémon Link data for Pokémon XY and Pokémon ORAS savegames.

Included with this tool:

* ORAS Glalie (ENG)(F): Glalie with glalilite from Pokémon ORAS Demo. Use only with ORAS. It is female.

* ORAS Glalie (ESP)(M): Glalie with glalilite from Pokémon ORAS Demo. Use only with ORAS. It is male.

* ORAS Steelix (JAP)(M): Steelix with steelixite from Japanesse Pokémon ORAS Demo. Use only with ORAS.

* JohtoStarters (ENG).bin: Hidden Ability Pokémon Bank Pokémon Johto Starters.

* JohtoStarters (ESP).bin: Same as above, but from a Spanish Pokémon Bank.

* HA Regi Trio (ENG).bin: Hidden Ability Pokémon Bank Golem trio.

* HA Regi Trio (ESP).bin: Same as above, but from a Spanish Pokémon Bank.

* XY Celebi (ENG).bin: Event Pokémon Bank Celebi. Use only with XY for legality.

* BP_PM_max.bin: pokémon link data with 9999 battlepoints and 65535 Poké Miles. (This is a created file).

Note: only ORAS Glalie or ORAS Steelix can be received per savegame, not both.

Note 2: Only ORAS Demo Glalie/Steelix have predetermined values, all others are generated when retrieved, so the language of the bin file is only relevant for Galie/Steelix.

Check information about these event Pokémon here: http://bulbapedia.bulbagarden.net/wiki/List_of_game-based_Pok%C3%A9mon_distributions_in_Generation_VI

About legality and legitimacy of Pokémon

----------------------------------------

- All Pokémon distributed via Pokémon Link are generated when received, so all will be legal.

- If you are worried about received date, know that even though bank celebi event finished in 2014, if one would have not retrieved it from pokemon link until 2015

- If you receive Bank celebi in a ORAS game, the pokemon itself will be legal (as in passing the legaliti checks), but not legit. Same goes for receiving Glalie/Steelix in XY, and keep in mind they carry an unknown item in XY (mega stone).

When the Pokémon Link data is received, all that data is set to 0, so don't worry about any leftovers from this tool in your savegame.

Credits

-------

All the people involved in this research thread: http://projectpokemon.org/forums/showthread.php?44652-Pokemon-Bank-Celebi-and-other-Pokemon-Link-Injection!-(using-pkhex)

Pokemon Link data structure: http://projectpokemon.org/wiki/6th_Generation_Pokemon_Link_Map

https://github.com/suloku/G6_pl_tool

XYORAS Pokemon Link Tool_0.1 - 16march2016.zip

Link to comment
Share on other sites

I've been trying to figure out how the game determines if the "trainer" has already received the Pokémon, but I can't seem to sort it out.

I.e: glalie/steelix have a u32 with the following content: 0x01000100 (direct hex view).

This sets the first byte of pokemon link block (ID 0x30) to 0x02. Setting this byte to 0x00 allows to receive glalie/steelix once more.

I've tried setting that u32 to some random values and the modified byte in the savegame seems to change locations and values, but I can't find a pattern. Setting glalie's value to 0xFFFFFFFF makes it so pokemon link does not import anything. I though this was something like u16 ID, u16 slot but as I said, I can't find any pattern.

Since nintendo doesn't seem to care much about this kind of distribution, it's not that important, but I'd like to know how it works since it has me puzzled. Any help would be appreciated.

Also, if someone knows how to contact SciresM, I would like to ask him for his WC6 editor, to fix the gender values and to use the source to make a pokemon link editor since most of the structure is shared.

Link to comment
Share on other sites

  • 5 months later...
There are no differences between link events with different language. After that you wll get an event, its data will be deleted from save.

So why there is always "(Language)" in every file? xD This made me tink that there were difference betwen the various languages

Link to comment
Share on other sites

So why there is always "(Language)" in every file? xD This made me tink that there were difference betwen the various languages

It's for the sake of completeness. The pokemon are the same, but the text that appears when receiving is different.

The same goes for wondercards, if you have an italian ds and ORAS save and inject a english eur wondercard, you will receive the same as if using an italian wondercard.

There's still the possibility that they do different distributions depending on region (I don't think so though)

The steelix/glalie are always the same on those files, since they get generated in the demo, not when receiving them in ORAS.

ps: I'll add the italian file later. I could technically generate the other missing languages, but I see no point in doing that.

Link to comment
Share on other sites

  • 2 months later...

So, today I've been working on this: http://puu.sh/pDa9w/ebae378cdb.png

http://puu.sh/pDap1/124554c975.png

I've tried to keep it clean and mimicked the wc6 class from pkhex, in order to be able to add pokemon link support into pkhex.

I still need to add memories and forms, and also actually setting the data when saving (well, that's easy, but boring...).

Also, I already had noticed long ago that in the pokemon link file of Celebi there was some extra data in the other pokemon slots that I never got to check and well, now it popped up so here it is: http://puu.sh/pDary/b913eae091.png

OT is Satoshi (japanese Ash Ketchum) and it has a move, Light of Ruin, which is an exclusive move for Eternal Flower Floette. Seems I've just uncovered a never released distribution for this floette.

EDIT: about memories, it would seem even though the data is there, they get re-generated when the pokemon is recovered, at least from pokémon link. Needs testing, and I hope they are always re-made so I don't need to bother with them :P

Also, pkhex has this list (https://github.com/kwsch/PKHeX/blob/master/Resources/text/en/text_Memories_en.txt) but "a certain item", "a certain move" and "a Pokémon" seem to be part of the memory types, but they don't appear in pkhex.

Link to comment
Share on other sites

  • 7 months later...
On 6/23/2016 at 11:45 AM, suloku said:

So, today I've been working on this: http://puu.sh/pDa9w/ebae378cdb.png

http://puu.sh/pDap1/124554c975.png

I've tried to keep it clean and mimicked the wc6 class from pkhex, in order to be able to add pokemon link support into pkhex.

I still need to add memories and forms, and also actually setting the data when saving (well, that's easy, but boring...).

Also, I already had noticed long ago that in the pokemon link file of Celebi there was some extra data in the other pokemon slots that I never got to check and well, now it popped up so here it is: http://puu.sh/pDary/b913eae091.png

OT is Satoshi (japanese Ash Ketchum) and it has a move, Light of Ruin, which is an exclusive move for Eternal Flower Floette. Seems I've just uncovered a never released distribution for this floette.

EDIT: about memories, it would seem even though the data is there, they get re-generated when the pokemon is recovered, at least from pokémon link. Needs testing, and I hope they are always re-made so I don't need to bother with them :P

Also, pkhex has this list (https://github.com/kwsch/PKHeX/blob/master/Resources/text/en/text_Memories_en.txt) but "a certain item", "a certain move" and "a Pokémon" seem to be part of the memory types, but they don't appear in pkhex.

" * HA Regi Trio (ENG).bin: Hidden Ability Pokémon Bank Golem trio. "

The Regi Trio file is not included when extracted?

SS:

101caf8624f3a97b40e7a3c1ec586cc4.png

 

Could you upload it? Thank you xD Big fan of your work btw.

Link to comment
Share on other sites

14 hours ago, ryamyun said:

" * HA Regi Trio (ENG).bin: Hidden Ability Pokémon Bank Golem trio. "

The Regi Trio file is not included when extracted?

SS:

101caf8624f3a97b40e7a3c1ec586cc4.png

 

Could you upload it? Thank you xD Big fan of your work btw.

Regi Trio is in the Gen VI event archive, (link to the thread is in my signature, then at thread go to the first post)

Link to comment
Share on other sites

8 hours ago, theSLAYER said:

Regi Trio is in the Gen VI event archive, (link to the thread is in my signature, then at thread go to the first post)

I have no idea how I didn't see "Pokemon Link" in pkhex.... Thanks.

Link to comment
Share on other sites

Whoops, it seems I never re-uploaded the 0.1 with the other files and it seems I never commited to github my latest changes... I guess I have some homework to do next week, may I'll even finish editor support (I had some nasty bug I couldn't fix when I stopped working on this).

As theSLAYER pointed out, the files are included in the gen 6 event archive and pkhex has supported inject/extract for some months now. I'll add this to the first post.

Also @theSLAYER, I've seen you have multiple languages for the Regi trio in the event file; my own spanish Johto starters pl6 file is on the first post attachment, in case you'd want to add it to the archive.

  • Like 1
Link to comment
Share on other sites

36 minutes ago, suloku said:

Whoops, it seems I never re-uploaded the 0.1 with the other files and it seems I never commited to github my latest changes... I guess I have some homework to do next week, may I'll even finish editor support (I had some nasty bug I couldn't fix when I stopped working on this).

As theSLAYER pointed out, the files are included in the gen 6 event archive and pkhex has supported inject/extract for some months now. I'll add this to the first post.

Also @theSLAYER, I've seen you have multiple languages for the Regi trio in the event file; my own spanish Johto starters pl6 file is on the first post attachment, in case you'd want to add it to the archive.

Hey suloku, did you lose interest in medal rally research for B/W2? Or it's just on the list of things to do still?

Link to comment
Share on other sites

I've been locked since july, but I'll get my free time back next week for a couple months, and medal rally is on my list, just like finishing the pokemon link editor and bugfixing/adding features to the gen 3 tool, XY safari friendfile to get all the safari pokemon and ORAS implementation of mirage island (well, that could be done by anyone, the functions were reversed and published on another thread).

ps: kinda offtopic :P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...