Jump to content

Recommended Posts

Posted (edited)

I managed to dig up some data about the Trainer's stats for Festival Plaza, Hall of Fame and the like.

They are in the following addresses in HxD

1D28: Starter Pokemon

Rowlet: 00
Litten: 01
Popplio: 02

1254: Trainer skin color (use the corresponding values for your player gender)

Male 1 (Pale): 00
Male 2 (Default): 08
Male 3 (Tan): 10
Male 4 (Dark): 18

Female 1 (Pale): 04
Female 2 (Default): 0C
Female 3 (Tan): 14
Female 4 (Dark): 1C

127A: Battle Style set

00: Normal Style
01: Elegant Style
02: Girlish Style
03: Reverent Style
04: Smug Style
05: Left-Handed Style
06: Passionate Style
07: Idol Style

To unlock all Battle Styles enter the byte FF into offset 2583

Hall of Fame

25c4-25cf: Pokemon by species # used for 1st game clear
25d0-25db: Pokemon by species # used for lastest Title Defense clear
     
Festival Plaza

50d10: Festival Plaza custom name (changable @ lvl 20, 15 characters long in English)
50d0c: Total Festival Coins collected (not owned)
53250-532ba: Unlockable Common Phrases for Festival Plaza (set the bytes to 01 in this selection to unlock all)
Link Battles: 69c30
Battles at the Battle Spot: 69c3c
Battles at the Battle Tree: 69ca0
Battle against Wild Pokemon: 69c10
Champion Title Defense: 69d90
Supereffective moves used: 69c74
Z-Moves Used: 69cA4
Link Trades: 69c2c
Wonder Trades: 69c88
Trades at the GTS: 69c84
Deposited in the GTS: 69c60
Poke Beans Collected: 69c9c
Berry Harvests: 69c80
Money Spent: 69c4c
Battle Points Spent: 69c70
Fashion Items Collected: Determined on the actual amount of clothing items you have collected
Pokemon Caught: 69c18
Eggs Hatched: 69c20
Pokemon Petted: 69cd4
Beans Given: 69C94
Nicknames Given: 69c64
Pokemon Rides: 69c90
Exp. Points Collected: 69c58
Pokemon Caught: 69da8
Pokemon Evolved: 69db0
Pokemon Defeated: 69da4
Trainers Battled: 69dac
Festival Plaza Rank: 50d3a
Missions Participated In: 69dc8
Facilities Hosted: 69dca
Guests Interacted With: 69d08
Festival Coins Spent: 69c98
Shiny Pokemon Encountered: 69dc6
Loto-ID Wins: 69dbe
PP Raised: 69dc0
Outfit Changes: 69e04
QR Code Scans: 69dcc (69e14: # of Island Scans)
Photos Taken: 69db6
    
Missions: These are stored in the format of: PPSSTTTT

P: Number of plays (maximum of 999) S: Individual score (maximum of 999) T: Total Best Score (goes up to 99999)

eg. Put the values 10 00 60 00 9F 86 01 00 into offset 50d50 and it will give you 16 Plays (not visible in-game),a personal score of 96, and a group total of 99999 in "Break boulders quickly!"

The missions start at the following offsets:

  Reveal hidden contents

 

Edited by Holla!
  • Like 5
  • V-Wheeeeeel!!! 1
  • 2 weeks later...
Posted

Thought I'd share that if you set the byte @ offset 6B352 to C8 the Battle Tree receptionist will give you all the streak rewards from MooMoo Milk to Straf Berry.

Posted (edited)

I found out that if you use the give all clothing option in PKHeX or even the NTR cheat it will crash the game if you go into a dye shop. This seems to be due to owning the Pastel, Bright, and Dark variants of clothing as they aren't meant to be cataloged in your clothing inventory (Unless you dyed one possible white item yourself which you can only have one of each and must use dye shops to change it to those colors).

Here are the hex values to be pasted for your save files, which don't include the above mentioned variants:  

For the male character copy & paste the following bytes into offsets 42000-4256B 

  Reveal hidden contents

For the female character copy & paste into offsets 42000-425A7

  Reveal hidden contents

 

Edited by Holla!
Slight mistake with female's clothing, please reuse the code if you used it and sorry for the inconvenience!
  • Like 3
Posted (edited)

Hey once more,

Just wanted to say that I finally got around to getting the Festival Missions data and Trainer skin colors in which I updated my OP on!

Also, there was a slight mistake with the female player's wardrobe code in the post above this one, so if you used it please do use it again as I fixed it and can confirm it's a-OK and sorry about that (Thanks whomever PM'd me about it)!

And a happy new year in advance! :D

Edit: Starter Pokemon values found!

Edited by Holla!
  • Like 1
Posted (edited)
  On 12/7/2016 at 6:02 AM, Holla! said:

Photos Taken: 69db6

Expand  

Is this the number of photos taken in Poke Finder or is it the photos taken for our Trainer Passport?

Edited by hiten
Posted

I believe that is determined on how many photos in Poke Finder you posted up for rating.

Speaking of Poke Finder, I found out that in offset 69cc8 the Total Thumbs-Ups is stored there and 69cd0 Record Thumbs-Ups are stored there in conjunction to where they are normally stored.

  • Like 1
Posted

By any chance can you help me remove clothes from my inventory? I'm really desperate to find out how and it's been bugging me that I own all the clothes instead of just ones I want.

Posted
  On 1/6/2017 at 4:40 AM, MikendIke said:

By any chance can you help me remove clothes from my inventory? I'm really desperate to find out how and it's been bugging me that I own all the clothes instead of just ones I want.

Expand  

What reason is there that makes you want specific clothing since PKHeX has the option to now include all valid clothing which doesn't crash the game? 

As it was finding the hex values for each clothing to unmark dye colors was a pain in the ass (especially for the girl character), and getting all the non dye through in-game means is really cancerous as they're version exclusive and you have to find someone of your character gender in the Festival Plaza who has an item you want in which you can't decide which ones you want, hence why I researched this.

If you want and know hex editing you can at least empty out your clothing inventory by posting these in your save file.

Male character copy & paste the following bytes into offsets 42000-4256B 

  Reveal hidden contents

 

Female character copy & paste the following bytes into offsets 42000-425A7

  Reveal hidden contents

 

Posted (edited)

Sure :)

First off, download a Hex Editor; the one I use and recommend is called HxD: https://mh-nexus.de/en/hxd/

1. Export a copy your save file via the homebrew/CFW app you use

2. Put your SD Card into your computer

3. Open your main save file in HxD

4. Copy the entire corresponding code for your character under one of the spoiler tags in this post: https://projectpokemon.org/forums/forums/topic/39433-sun-moon-stat-records/?do=findComment&comment=207145

 

5. In HxD at the top click search > goto...

6. Enter 42000 and hit enter

7. Highlight starting at where the cursor is at to 4256B if your using the male character or 425A7 (Must say Block: 42000-4256B if using the male or Block: 42000-425A7 if female at the bottom)

8. Right click then select Paste write

9. At the top left click on File > Save to make the change

10. Open your save in PKHeX then save it once again in order to correct what's called the checksum

Now import your save back to your game and you should have a fresh inventory! 

Tell me if there's anything you don't get and I'll try my best to help;)

Edited by Holla!
  • Like 1
Posted

It took a few tries for me, but it worked. Thank you so much, I super OCD about things and just because of a little thing like this I wasn't in the mood to play sun and moon but thanks to you I'll get back to it (=

  • 2 weeks later...
Posted (edited)

As Pokemon Bank got an update to include a new feature to track your certain stats from all 6 current 3DS games I have found out some new values!

Sun & Moon

Pokemon caught fishing: 69C1C (tab 007 in PKHeX)
Pokemon evolved: 69C24 (tab 009 in PKHeX)
Fossils restored: 69DB4 (tab 118 in PKHeX)


ORAS

Wild Pokemon encountered: 1F414

Pokemon caught fishing: 1F420

Fossils restored: 1F5B4

Pokemon caught in one day: 1F5A8

Pokemon evolved in one day: 1F5B0

XY

Pokemon caught: 1E41C

Pokemon caught fishing: 1E420

Fossils restored: 1E5B4

Pokemon caught in one day: 1E5A8

Pokemon evolved in one day: 1E5B0


I've also been working on finding data in Poke Pelago for visiting wild Pokemon. One reason is so we can view the data in case there's a shiny Pokemon and it can be extracted without playing the waiting game of luck.

The Pokemon are in the 260byte encrypted format (.bin) but only use the first 232 bytes from what i've seen. 

 

I managed to extract raw data from a Pokemon visitor by taking the first 232 bytes from the following offsets and putting it into another template Pokemon's .bin file.

Visiting Pokemon 1: 3C4AE
Visiting Pokemon 2: 3C59A
Visiting Pokemon 3: 3C686

When looked at in PKHeX the differences of the raw data compared to when captured were a blank met location, date, OT and also under Extra Bytes 0x2A had a byte of 10 and when received had 11.

Example of mine:

Lapras RAW.binFetching info...

Lapras claimed.binFetching info...

 

Proof of editing encounters:

http://imgur.com/ceWkzpZ

http://imgur.com/W2HmtCB

Edited by Holla!
garbage editor...
  • Like 3
Posted

New stats:

Tab 000 (69c00): # of steps taken
Tab 001 (69c04): # of game saves
Tab 161 (69e0a): Pelago training sessions
Tab 162 (69e0c): Pelago hot springs sessions

I've also managed to decipher the 0x2A bytes and here's what I found:

11: Used for caught wild Pokemon that appear on Isle Abeens (Pokemon caught from Poke Pelago MUST have this byte at the least)
16: Indicates that the Pokemon was recently placed in a training ground on Isle Evelup
17: Indicates that the Pokemon was recently placed in a hot spring on Isle Avue (Pokemon that hatched with Poke Pelago as a location MUST have this byte at the least)

So 0x2A just shows what said Pokemon's latest activity was in Poke Pelago, and it can be 16 and 17 for any other Pokes.

  • Like 1
Posted

I tested the before and after saves to see what values changed in stats after link trading using commit 560e471. 

I used two N3DS. and two pokemon sun game version. 

I believe that value 035 is the number of quick links. This number changed three times(+3) after connecting three times by quick link.

I also believe that value 027 is number of BP earned it includes those earned in battle tree and Plaza. 

I'm hoping that if anyone can confirm this values as well. maybe we can identify some of the unknown stats labels. 

 

 

after.PNG

before.PNG

  • Like 2
Posted
  On 2/5/2017 at 5:26 AM, skywalker25 said:

I tested the before and after saves to see what values changed in stats after link trading using commit 560e471. 

I used two N3DS. and two pokemon sun game version. 

I believe that value 035 is the number of quick links. This number changed three times(+3) after connecting three times by quick link.

I also believe that value 027 is number of BP earned it includes those earned in battle tree and Plaza. 

I'm hoping that if anyone can confirm this values as well. maybe we can identify some of the unknown stats labels. 

 

 

after.PNG

before.PNG

Expand  

Hey nice work! I can confirm that they are indeed what you said they are. :D

Also since the Global Mission data seems to be embedded in the game's data according to this: https://projectpokemon.org/research/sunmoon/gametext.txt I found more values, and no they don't contribute to the specified mission's data the games logs them separately.

  Reveal hidden contents

Tab 137: Battle Royal dome battles

Tab 159: Battle Royals dome wins

Tab 172: Berry Tree Crabrawler Caught/Defeated

*Not sure if the Battle Royal scores I specified are also applied for PvP Battle Royals since I haven't got access to it so anyone else can feel free to post if they.can confirm it.

Posted (edited)

I figured that it's easier to track changes with a new save. 

046 - 0x69CB8 = number of times you have ran away from battles. 

003 - 69c0c = pokemon battles total(Trainer+wild+?). Early in the game this number is made up by wild pokemon battles(004)plus trainer battles(005). but comparing it with a post game save its off by a few numbers. There may be third value involved(battle spot?battle tree?). My post game was edited so it might not be reliable. I would have to play without cheats/or edits and document the changes to confirm.  

005 - 69C14 = pokemon trainer battles total/defeated

115 - 0x69DAE = items picked up (does it include berries?,TMs?) - to be confirm

Edited by skywalker25
  • Like 1
Posted
  On 2/5/2017 at 8:57 AM, skywalker25 said:

003 - 69c0c = pokemon battles total(Trainer+wild+?). Early in the game this number is made up by wild pokemon battles(004)plus trainer battles(005). but comparing it with a post game save its off by a few numbers. There may be third value involved(battle spot?battle tree?). My post game was edited so it might not be reliable. I would have to play without cheats/or edits and document the changes to confirm.

Expand  

I think Battle Royals are also included since I have a non-modified save which has 906 Wild Battles and 182 Trainer Battles for a total of 1088, but since it has tab 003 with 1089, Battle Royals are the only thing that would make sense to be accounted for to make it that number (specifically the number of wins as there are no online/link battles done in this save i have).

And i can confirm that berries are accounted for in tab 115. :)

  • Like 1
Posted (edited)

Battle royals makes total sense.  I was off by one and the only battle royal I participated in was the one with the story line. 

and cool we just gotta confirm if tab 115 also increases when picking up TMs. 

When comparing an unmodified save of the game before and after taking the first photos with the pokefinder. I noticed the following: 

050 - 0x69CC8 - Total Thumbs-Ups
052 - 0x69CD0 - Record Thumbs-ups

This values went from zero to the values shown in the misc tab in Trainer Data Editor. 

 

050.PNG

052.PNG

Misc.PNG

Edited by skywalker25
  • Like 1
Posted (edited)

after comparing multiple saves and logging my changes. I found the following

tab 22- exp. collected - is not accumulative, new experience does not get added but it shows the highest experience points earned. 

tab 23 - total experience points earned in the last 24 hrs. this tab is accumulative but resets to zero after 24 hrs. 

tab 044 - total turns (it is accumulative so it counts all turns in general) 

tab 042 - increases by one when you catch a pokemon. it does not reset after 24 hrs. does not increase when you battle or kill a pkm. I feel this might be pkballs thrown but more testing is necessary.

tab 105 - increases by 1 when a pokemon faints does not reset after 24 hour.  

tab 111 - increases by 1 when you defeat a pkm but it resets after 24 hours. 

tab 113 - increases by 1 when you catch a pkm but it resets to 0 after 24 hours. 

Interesting note : Transferring pkms from pokebank to sun/moon do not change any of the counters. This might mean if you drag and drop pkms from a save to sun/moon using PKHeX you do not need to worry about updating the stat records as this might emulate pokebank transfer. and you can emulate trading by updating quick links and traded pkms tab which comes handy for egg trading. 

Request: is there a way that someone could make a tool to export the stat records from a sun/moon save into a csv or txt file? pkhex already access these records it would just be a matter of exporting them. I'm not a developer so I'm not sure how difficult this might be.  A tool like this would allow an user to compare saves and note the changes easily and more efficiently in a spreadsheet rather than opening multiple PKHeX instances and go through each tab one by one. 

Edited by skywalker25
Posted
  On 2/12/2017 at 1:28 AM, skywalker25 said:

Request: is there a way that someone could make a tool to exports the stat records from a sun/moon save into a csv or txt file?

Expand  

Recompile after inserting the following line after "Loading = false;" in the SAV_Trainer7.cs file:

Clipboard.SetText(string.Join(Environment.NewLine, Enumerable.Range(0, 199).Select(x => SAV.getRecord(x))));

Upon opening the Trainer Info form, the program will fetch all 200 records and set them to your clipboard, ready to paste anywhere.

  • Like 1
Posted (edited)
  On 2/12/2017 at 1:28 AM, skywalker25 said:

after comparing multiple saves and logging my changes. I found the following

tab 22- exp. collected - is not accumulative, new experience does not get added but it shows the highest experience points earned. 

tab 23 - total experience points earned in the last 24 hrs. this tab is accumulative but resets to zero after 24 hrs. 

tab 044 - total turns (it is accumulative so it counts all turns in general) 

tab 042 - increases by one when you catch a pokemon. it does not reset after 24 hrs. does not increase when you battle or kill a pkm. I feel this might be pkballs thrown but more testing is necessary.

tab 105 - increases by 1 when a pokemon faints does not reset after 24 hour.  

tab 111 - increases by 1 when you defeat a pkm but it resets after 24 hours. 

tab 113 - increases by 1 when you catch a pkm but it resets to 0 after 24 hours. 

Expand  

I'm most certain tab 42 is how many times a Pokemon broke out of a ball. I just now threw 5 Poke Balls at a wild Pelipper where it broke from all 5 and catching it didn't increase the number.

I think it's possible 023 accounts for Exp. Points Collected, 111 for Pokemon Defeated (Highest), 113 for Pokemon Caught (Highest), and 117 for Pokemon Evolved (Highest) which then save into their respective known tabs after 24 hours if the score is beaten.

I'm also starting to have some doubt about tab 115 being Items Picked Up since it went from 10 to 0 so it may be a daily counter/another high score tab. :(

Edit: Tab 171 is the number of times you chased a Wimpod. Also it looks like tab 042 IS the number of Poke Balls thrown overall.

Edited by Holla!
New findings
  • Like 1
  • 4 weeks later...
Posted (edited)

Hey, back once again after being absorbed into Zelda for the past week. After seeing a huge chunk of the stat labels filled out in the latest release the people who did that deserve a huge thanks!

I still managed to find out a few stats.

051: Times twirled

057: Pelago Wild Visitors tapped

120: Best Super Singles Streak

121: Best Super Doubles Streak

122: Best Super Multi Streak

PS Some are most definitely unused but a couple are still in need of being identified so keep it up, researchers! :)

Edited by Holla!
  • Like 2
  • 3 weeks later...
Posted (edited)

Hey all! 

I thought I'd share something really cool and that is... Legal PokeDex and Bag inventory hex codes!

That's right! I've been working on this on the side since the PGL banning took effect, and have been researching what is out and what isn't. If you know if something is released or not that I haven't included in the Dex or inventory, do post about it.

If you haven't noticed, I've not included some past gen Pokemon: mainly Mythical Pokemon with Chinese entries as it's a newly added language this gen and those Pokemon would need to be released as an event.

!USE THESE AT YOUR OWN RISK AS GAME FREAK AND NINTENDO MAY NOT UP TO DATE WITH WHAT IS RELEASED THEMSELVES!

Pokemon Sun and Moon

PokeDex legally complete (Start-Offset: 2A88 End-Offset: 32E7):

  Reveal hidden contents

Item Pouch all legal Items x900 (Start-Offset: 0 End-Offset: 6B7):

  Reveal hidden contents

Medicine Pouch all legal Medicines x900 (Start-Offset: B48 End-Offset: C47):

  Reveal hidden contents

Berry Pouch all legal Berries x900 (Start-Offset: C48 End-Offset: D67):

  Reveal hidden contents

 

 

Pokemon Ultra Sun and Ultra Moon

PokeDex legally complete (Start-Offset: 2C88 End-Offset: 34E7):

  Reveal hidden contents

Item Pouch all legal Items x900 (Start-Offset: 0 End-Offset: 53F):

  Reveal hidden contents

Medicine Pouch all legal Medicines x900 (Start-Offset: B74 End-Offset: C63):

  Reveal hidden contents

Berry Pouch all legal Berries x900 (Start-Offset: C64  End-Offset: D6F):

  Reveal hidden contents

 

Here are the legal Key Items and Z-Crystals lists on Bulbapedia:

http://bulbapedia.bulbagarden.net/wiki/List_of_Key_Items_in_Generation_VII 

http://bulbapedia.bulbagarden.net/wiki/Z-Crystal

To break it down:

What Key Items you can permanently have when post game

Sun and Moon:

DNA Splicers

Enigmatic Card

Exp. Share

Fishing Rod (SM)

Forage Bag

Gracidia

Key Stone

Lens Case

Makeup Bag (Only if playing as female character)

Sun Flute (Pokémon Sun only)

Moon Flute (Pokémon Moon only)

Oval Charm

Prison Bottle

Reveal Glass

Shiny Charm

Z-Ring

Zygarde Cube

Ultra Sun and Ultra Moon:

DNA Splicers

Exp. Share

Fishing Rod (SM)

Forage Bag

Gracedia

Key Stone

Lens Case

Makeup Bag (Only if playing as female character)

N-Lunarizer

N-Solarizer

Oval Charm

Prison Bottle

Rainbow Flower

Sun Flute (Pokémon Ultra Sun only)

Moon Flute (Pokémon Ultra Moon only)

Surge Badge

Z-Power Ring

Zygarde Cube

 

Z-Crystals unreleased for Sun and Moon:

-All known Z-Crystals are legally available for these games as of Sept. 19, 2017!

 

Z-Crystals unreleased for Ultra Sun and Ultra Moon:

-All known Z-Crystals can be obtained through in-game methods!

 

Simple Instructions

1) First off download a hex editing tool, I recommend HxD as it's user friendly and advanced. You can download it by clicking here.

Note: If you have a Mac, try running it in Wine or use Hex Fiend. (Won't be able to properly assist you if this is your setup.) 

2) Open your save file (the main file) in the hex editor.

3) Press Ctrl+E.

4) Enter the following values for the Start-Offset and End-Offset listed for your desired option and press OK.

(eg. Enter 2A88 for Start-Offset and 32E7 for End-Offset if you want the legal PokeDex for SM, or 2C88 for Start-Offset and 34E7 for End-Offset for the legal PokeDex in USUM,)

5) Highlight the entire block of values under the spoiler tag of your desired option and copy it.

6) Go back into the hex editor, Right-Click on the highlighted area and select Paste Write.

7) Save the file by going into File then hit Save or just press Ctrl+S.

Open your save file you just hex edited in PKHeX and save it over the file you just created. (This will correct the checksum, which will allow you import your save that's been hex edited without any corruption.)

9) That's it! Just re-import your save back to your game with your 3DS save tool of choice and enjoy!

Edited by Holla!
Complete!
  • Like 7
  • Confused 1

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