FlagBrew / PKSM

Gen I to GenVIII save manager.
GNU General Public License v3.0
1.75k stars 176 forks source link

sid #1389

Closed ryry007 closed 1 year ago

ryry007 commented 1 year ago

I have put in my tid alright but when I try to put in my sid it only allows 4 numbers and my sid is 5 numbers.

GriffinG1 commented 1 year ago

You need to convert your TID/SID to G7 versions. (SID << 16 | TID) works I believe, where the first 4 digits of the result are your G7SID and the rest are your G7TID.

ryry007 commented 1 year ago

so i need to convert to gen7 id version?

ryry007 commented 1 year ago

does it matter that i am on gen6?

ryry007 commented 1 year ago

so if my sid was 28160 would the gen 7 id be 1845?

ryry007 commented 1 year ago

You need to convert your TID/SID to G7 versions. (SID << 16 | TID) works I believe, where the first 4 digits of the result are your G7SID and the rest are your G7TID. i dont understand what you mean by sid << 16 |TID

piepie62 commented 1 year ago

For gen 6, you just need to input your TID and SID pair, converted to hexadecimal, into the provided four bytes, SID first. For gen 7+, there's a more complex formula. Converting a number to hexadecimal is a very simple operation you can look up easily. G7+ is a little tougher, in that the value you need to input into all four bytes of (SID * 1000000 + TID) converted to hexadecimal. I find it likely that you input your TID improperly, given your issue here.