Jump to content

Editing Coordinates


MichiS97

Recommended Posts

Hey,

I'd like to request a feature for PKHeX. Would it be possible to not only allow viewing of the player's coordinates but actually changing them, too?

The reason I'm asking for this is that I'd like to be able to access the Mirage Spots in ORAS easier, especially Crescent Isle because I don't want to be dependent on HomePass or simply pure luck.

Changing the Map ID already works, but changing the XYZ coordinates has no effect in the game. Is that a bug or is it intended not to work?

It would be great if this could be integrated into this truly awesome tool :)

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
You can change coordinates but not by using ram2sav as the coordinates are constantly updated elsewhere; as for it not working for saves it's likely due to the overworld data in the save file reverting any changes. May have to look at that more.

Hey I've gotten Map Coordinates working (kinda).

For ORAS,

there are three offsets in the saves:

1. 0x1402 : Map ID

2. 0x14f4 : Map ID

3. 0x2006: Map ID only (this is for the Continue page?)

For 1. and 2, there are slight differences with the values that follow:

1. 0x1402

 

D0 01 00 00 01 00 00 00 2D 44 00 00 00 00 00 40 2D 44 00 80 9E 43 00 80 8B 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F

 

2. 0x14f4

 

D0 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 2D 44 00 80 9E 43 00 80 8B 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F

 

I corrected the checksums by loading the save in pkhex before continuing.

I managed to teleport myself to a different Mirage Spot (but got stuck against the side of a wall, which is something I'll have to test and fix for myself)

Hope this implementation gets added ><

Link to comment
Share on other sites

Hey I've gotten Map Coordinates working (kinda).

For ORAS,

there are three offsets in the saves:

1. 0x1402 : Map ID

2. 0x14f4 : Map ID

3. 0x2006: Map ID only (this is for the Continue page?)

For 1. and 2, there are slight differences with the values that follow:

1. 0x1402

 

D0 01 00 00 01 00 00 00 2D 44 00 00 00 00 00 40 2D 44 00 80 9E 43 00 80 8B 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F

 

2. 0x14f4

 

D0 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 2D 44 00 80 9E 43 00 80 8B 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F 00 00 00 00 00 00 80 3F

 

I corrected the checksums by loading the save in pkhex before continuing.

I managed to teleport myself to a different Mirage Spot (but got stuck against the side of a wall, which is something I'll have to test and fix for myself)

Hope this implementation gets added ><

Not sure what you mean; coordinate editing is already in the program, I was commenting that ram2sav doesn't allow coordinates editing to work (same as Party pkm).

Link to comment
Share on other sites

Not sure what you mean; coordinate editing is already in the program, I was commenting that ram2sav doesn't allow coordinates editing to work (same as Party pkm).

Woops I didn't realise its working now (it wasn't working previously).

I probably borked something on my end, do ignore this sorry ><

Link to comment
Share on other sites

on second thought, have you been able to make coordinates (not map ID) to work?

It seems only to work when I modify the values following the 2nd pointer

edit:

apparently coordinate editing only edit the values following the first line,

but the second line matters too.

edit 2:

apparently I need to change 0x14f4 to be the same as 0x1402,

and 0x1504-0x1525 to be the same as 0x1410-0x1431 to get coordinates changing to work.

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...