Jump to content

Kalashnikov

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Kalashnikov

  1. But why how exactly is it stored in 3 bytes?

    That's what I'm trying (javascript):

    var seconds = ((new Date()).getTime() - (new Date('January 1, 2000 00:00:00')).getTime()) / 1000;
    var date = new Uint8Array(a, 0x7B, 3);
    date[2] = seconds >>  0 & 0xFF;
    date[1] = seconds >>  8 & 0xFF;
    date[0] = seconds >> 16 & 0xFF;
    

    Or, if the date is 111111111111111111111111

    I write it this way:

    0x7B 11111111

    0x7C 11111111

    0x7D 11111111

    But according to Pokesav today is 14 of thirteenth month, 2193...

  2. That part of data is not documented, so how exactly the date is stored? And why is it 3 bytes long?

    When all bytes are set to 0 it appears as 1 January of 2000, which also makes no sense.

    Same for location, though I only need to know how to set to something which makes sense for all pokemon.

×
×
  • Create New...