Hacking Editing the Trainer Icon image via PKHex for Pokémon Scarlet/Violet

quantumboy

Casual Hacker, Avid Dreamer
OP
Member
Joined
Jun 26, 2013
Messages
424
Trophies
0
Age
38
Location
San Francisco, CA
XP
603
Country
United States
In Pkhex when you open a save from scarlet or violet and go to block data there is an object block for trainer icon, *Object KPlayerTrainerIcon.
any way when dumping the block I have viewed it and several different versions of it from different saves I made with hex workshop
here's what I have figured out, but I am still at a loss on a few aspects, and would appreciate any one joining me in the experimentation.
  • the image aspect of the block is from byte 0 up to 6200 (in HEX addresses)
  • each pixel seems to be represented by 8 bytes, which is not a image format I am familiar with
  • when making all bytes in a pixel 00 I get black
  • when making just byte 0 for each pixel FF and rest 00, I get Blue
  • when making just byte 1 for each pixel FF and rest 00, I get Yellow
  • when making just byte 2 for each pixel FF and rest 00, I get Black
  • bytes 4,5,6,7 seem to have to do with some kind of of transparency or something
  • no idea what byte 3 does
This doesn't seem to be any kind of RGB or RGBA, HSV, or any color system I can figure out. I suppose through trial and error I can figure out some sample color codes, and eventually make a primative image editor, but


EDIT:
  • turns out the first two bytes are actually 16bit color, using BGR 5, 6, 5 bits layout similar to rgb565
  • getting closer....

EDIT2:
  • the bite layout is actually BRG 556, and the image is not square I am using a mine craft cicle generator to attempt to fit it properly but my pixel count is off by less than 10
 
Last edited by quantumboy,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Haha
  • BigOnYa @ BigOnYa:
    Speaking of money, I have a builder that owes me money and not paying, trying to hide from me, so I found his wife's car and put a lien on it last week, today got a check in the mail from him, lol.
  • K3Nv2 @ K3Nv2:
    People at the store are already grabbing turkeys up tempted to make one this week just to do it
  • BigOnYa @ BigOnYa:
    Crazy the prices for them now, should of bought a frozen one months ago when they were cheap.
  • K3Nv2 @ K3Nv2:
    $15 about 4pounds
  • BigOnYa @ BigOnYa:
    Yea that not bad. I'm not a turkey fan. We always just smoke a ham.
  • K3Nv2 @ K3Nv2:
    Or get them the next day after Thanksgiving always discounted to about $10
    +1
  • K3Nv2 @ K3Nv2:
    New Mac mini has socket able front header usb that's cool
  • Sonic Angel Knight @ Sonic Angel Knight:
    Mac n cheese :P
    +1
  • The Real Jdbye @ The Real Jdbye:
    how did you know what i was making @Sonic Angel Knight
  • Veho @ Veho:
    PC and cheese.
  • Veho @ Veho:
    Noice.
  • The_Dizzy_Vizzy @ The_Dizzy_Vizzy:
    Nice to see an Apple unit worth it's shit..
  • The Real Jdbye @ The Real Jdbye:
    @The_Dizzy_Vizzy not a fan of the trashcan mac?
  • The_Dizzy_Vizzy @ The_Dizzy_Vizzy:
    i GOT YOUR TRASHCAN MAC!!! However I also have a life. Gotta run, but like Ahnold says, "I'll Be Back"
  • Veho @ Veho:
    My package got stuck :ohnoes:
  • Veho @ Veho:
    in uremum
  • Veho @ Veho:
    OK but seriously. Courier and delivery companies are getting worse.
  • IC_ @ IC_:
    I know someone who may be partially responsible.
  • Veho @ Veho:
    Is it Hitler?
  • IC_ @ IC_:
    I don't know about him, but that's not what I had in mind.
    I mean, it's unlikely the person I know affects your personal experience either way, since there are 2-3 countries between us.
  • Veho @ Veho:
    What are the odds of a Switch being sold new in the Sports bundle being hackable / softmoddable out of the box?
    Veho @ Veho: