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
  • SylverReZ @ SylverReZ:
    Reminds me of that one Spanish guy who was in here a week or so ago, that wouldn't translate their messages.
  • Arne214 @ Arne214:
    ok sry
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I don't remember him
    +1
  • BigOnYa @ BigOnYa:
    @SylverReZ Si means yes, no means maybe
    +2
  • Xdqwerty @ Xdqwerty:
    @Arne214, it's fine but dont ask for roms here again
    +2
  • SylverReZ @ SylverReZ:
    @BigOnYa, I only know very little Spanish, haven't done it in 5 years lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, que tan poco?
  • BigOnYa @ BigOnYa:
    I took 3 years of Spanish in high school, ages ago but don't remb most of it. Like they say, if you don't use it, you lose it.
  • SylverReZ @ SylverReZ:
    @Xdqwerty, A bit. I only know greetings and some other parts. Its quite an easy language to learn.
  • SylverReZ @ SylverReZ:
    But I don't remember most of it.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, easy to learn despite having some relatively complex rules
    +1
  • D @ dadadad:
    Should I just accept that I won't play this game anymore, or is there a way to solve this problem?
  • BigOnYa @ BigOnYa:
    For some reason I remember a bunch of swear words tho, lol
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, cuz we swear more than talk normally i guess
    +2
  • BigOnYa @ BigOnYa:
    @dadadad I would do like @The Real Jdbye said, they are very wise.
    +2
  • D @ dadadad:
    блядь
  • Xdqwerty @ Xdqwerty:
    yawn
  • BigOnYa @ BigOnYa:
    You get your nap today?
  • K3Nv2 @ K3Nv2:
    With your wife
    +2
  • BigOnYa @ BigOnYa:
    Tell that B to bring me home some dinner, when you done with her...
  • K3Nv2 @ K3Nv2:
    Mrs.B is what I call her she said she left you a $10 jack in the box giftcard
  • BigOnYa @ BigOnYa:
    Oh ok, cool thanks, I found it
  • BigOnYa @ BigOnYa:
    Hey Kennyboy, have you found any decent mini Pc for around $200-250? Fast enough to play most Pc games.
  • K3Nv2 @ K3Nv2:
    I'd say save another $100 anythtwith 8core upgradeable ram I'm thinking about ordering the acemagic still
    K3Nv2 @ K3Nv2: I'd say save another $100 anythtwith 8core upgradeable ram I'm thinking about ordering the...