Gaming Changing the time in Sun and Moon?

Tzuba

Well-Known Member
OP
Member
Joined
Jul 1, 2011
Messages
279
Trophies
0
Age
30
Location
Houston
XP
800
Country
United States
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?
 
  • Like
Reactions: RealityNinja

RealityNinja

Well-Known Member
Member
Joined
Nov 4, 2015
Messages
1,716
Trophies
0
Location
Pokéland
XP
667
Country
France
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?
+1
Indeed, it would be cool to have a ntr cheat code to set the time...
 

xtheman

Well-Known Member
Member
Joined
Jan 28, 2016
Messages
5,837
Trophies
0
Location
???
XP
3,790
Country
United States
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.
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.
 

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
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...
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
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,
  • Like
Reactions: MSco

MSco

Well-Known Member
Member
Joined
Nov 2, 2016
Messages
350
Trophies
0
XP
704
Country
Germany
@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,

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
The offset is 0x4648, but shouldn't be editing offsets... the format is an 8 byte timestamp.
 
Last edited by Falo,
  • Like
Reactions: MSco

MSco

Well-Known Member
Member
Joined
Nov 2, 2016
Messages
350
Trophies
0
XP
704
Country
Germany
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?
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
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.
 
  • Like
Reactions: MSco

MSco

Well-Known Member
Member
Joined
Nov 2, 2016
Messages
350
Trophies
0
XP
704
Country
Germany
@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,
  • Like
Reactions: RealityNinja

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.tomshardware.com/pc-components/cpus/intel-cpu-dispensing-vending-machine-game-spotted...