Changing the time in Sun and Moon?

Discussion in '3DS - Games & Content' started by Tzuba, Nov 10, 2016.

  1. Tzuba
    OP

    Tzuba GBAtemp Regular

    Member
    276
    150
    Jul 1, 2011
    United States
    Houston
    So I moved my moon save over to Sun, but the time stays the same so its night time in the game even though its day-time IRL. I can't find any plugins that correct the time, and changing the system clock does nothing.

    Little help here?
     
    Omegadrien likes this.


  2. Omegadrien

    Omegadrien GBAtemp Advanced Maniac

    Member
    1,713
    530
    Nov 4, 2015
    France
    Pokéland
    +1
    Indeed, it would be cool to have a ntr cheat code to set the time...
     
  3. Joom

    Joom  ❤❤❤

    Member
    4,040
    2,741
    Jan 8, 2016
    United States
    You can change the time with the config CIA from the SDK. Don't ask where to get it.
     
  4. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    Will this effect only sun?
    I still want night in moon and day in sun.
     
  5. Blue_Mew

    Blue_Mew Shiny Mew!

    Member
    2,376
    993
    Oct 2, 2015
    United Kingdom
    Faraway Island
    It affects the whole system time.
     
  6. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    Not useful then. I want sun to be day and moon to be night.
     
  7. Tzuba
    OP

    Tzuba GBAtemp Regular

    Member
    276
    150
    Jul 1, 2011
    United States
    Houston
    It should work then. If the time is set to say, 12pm then it'll change Sun to day and Moon to night because that's how the games work.
     
  8. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    Expect if you inject say moon save to sun sun will be stuck in night mode during day.
    If you inject sun save to moon moon will be in day mode during day.
     
  9. Tzuba
    OP

    Tzuba GBAtemp Regular

    Member
    276
    150
    Jul 1, 2011
    United States
    Houston
    Bump. Someone must be able to do this.
     
  10. Blue_Mew

    Blue_Mew Shiny Mew!

    Member
    2,376
    993
    Oct 2, 2015
    United Kingdom
    Faraway Island
    You can try FBI>Titles>Sun/Moon delete secure value.
     
  11. Ericjwg

    Ericjwg Good

    Member
    2,866
    693
    Jul 2, 2015
    Canada
    the thing you guys should know since gen6....
    save is tied up to a specific version of the game.
    eg. as save can be used in or, but the save still recognized as pokemon as even you save the game in or.
    i believe is the same thing for sun and moon. and the game detect the version from the save.... reverse time for moon, real sync time for sun.
    since we couldn't change the save's version... so what you want is not possible...
     
  12. feer10

    feer10 Advanced Member

    Newcomer
    99
    14
    May 26, 2016
    bump, i need to fix the time
     
  13. Falo

    Falo GBAtemp Regular

    Member
    254
    199
    Jul 22, 2012
    Gambia, The
    The time difference is saved in Savedata::GameTime:: Data->AlolaOffset.
    It's easy to edit if you know what you do, but you guys should ask pkhex programmers to support this.
     
    Last edited by Falo, Nov 11, 2016
    MSco likes this.
  14. MSco

    MSco GBAtemp Regular

    Member
    147
    25
    Nov 2, 2016
    Gambia, The
    @Falo
    Can you tell us the address of the alolaoffset, so we could edit it with a hex editor.
    And which values are valid for this entry? 0 and 1? Or 0 and 0C (for 12)?
     
    Last edited by MSco, Nov 11, 2016
  15. Falo

    Falo GBAtemp Regular

    Member
    254
    199
    Jul 22, 2012
    Gambia, The
    The offset is 0x4648, but shouldn't be editing offsets... the format is an 8 byte timestamp.
     
    Last edited by Falo, Nov 11, 2016
    MSco likes this.
  16. feer10

    feer10 Advanced Member

    Newcomer
    99
    14
    May 26, 2016
    @MSco you can do anything?
     
  17. MSco

    MSco GBAtemp Regular

    Member
    147
    25
    Nov 2, 2016
    Gambia, The
    I am not sure, but I dont think so. I would have known what to do, if we could hex edit the values.

    @Falo
    Or can one simply reverse engineer the save file with ida-pro?
     
  18. Omegadrien

    Omegadrien GBAtemp Advanced Maniac

    Member
    1,713
    530
    Nov 4, 2015
    France
    Pokéland
    and... are you sure it's on the offset 0x4648?! XD
     
    Last edited by Omegadrien, Nov 11, 2016
  19. Falo

    Falo GBAtemp Regular

    Member
    254
    199
    Jul 22, 2012
    Gambia, The
    You can't reverse a save file... Use ida pro on the code.bin.
    Code:
    _BOOL4 __fastcall Savedata::GameTime::IsAlolaOffsetExists(Savedata::GameTime *this)
    {
      return this->data.AlolaOffset != 9999999;
    }
    In my moon save, the value is set to 0xA8C0 -> 43200 -> 12:00:00
    So my guess is, change it to 0 or 9999999, to enable sun time.
     
    MSco likes this.
  20. MSco

    MSco GBAtemp Regular

    Member
    147
    25
    Nov 2, 2016
    Gambia, The
    @Omegadrien
    Yes, you can. But Falo said, that the value for the alolan time offset is represented by an 8 byte timestamp. So it is a double value.
    And I am not sure, what you have to add to this double value to get an 12 hour offset.
     
    Last edited by MSco, Nov 11, 2016
    Omegadrien likes this.