Homebrew RELEASE SwitchTime - Manipulate Time-based Events in Games

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
I was trying to get more Sweets in Pokemon Sword, which the game limits to once per day. Did some google search and didn't find an existing tool to change the system clock, only found a network time setter: NX-ntpc by thedax. So I forked it and now I present to you: SwitchTime.
It's kinda like RTChanger on the 3DS, with an additional "automatic time sync" feature.

## Current functionalities:
- Change time by day/hour
- Contact a time server at ntp.org to set the time back to normal

## Disclaimer:
This program changes NetworkSystemClock, which may cause a desync between console and servers. Use it at your own risk! It is recommended that you only use the changed clock while offline, and change it back as soon as you are connected (either manually or using ntp.org server.)

## Link:
https://github.com/3096/switch-time/releases

TV_CAM_device_20191118_003730.818.png
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
21,534
Trophies
3
Location
Space
XP
10,510
Country
Norway
I was trying to get more Sweets in Pokemon Sword, which the game limits to once per day. Did some google search and didn't find an existing tool to change the system clock, only found a network time setter: NX-ntpc by thedax. So I forked it and now I present to you: SwitchTime.
It's kinda like RTChanger on the 3DS, with an additional "automatic time sync" feature.

## Current functionalities:
- Change time by day/hour
- Contact a time server at ntp.org to set the time back to normal

## Disclaimer:
This program changes NetworkSystemClock, which may cause a desync between console and servers. Use it at your own risk! It is recommended that you only use the changed clock while offline, and change it back as soon as you are connected (either manually or using ntp.org server.)

## Link:
https://github.com/3096/switch-time/releases

TV_CAM_device_20191118_003730.818.png
You get sweets every time you do a raid battle.
 

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
You get sweets every time you do a raid battle.
I was referring to the sweets to evolve different colored Alcremies. Only way I know to get it was to battle at the cafe thing. Idk, I wasn't very far into the game

But anyways with this tool you can also quickly cycle through wild area weathers and skip Poké Jobs waits, etc
 
Last edited by MegaMagikarp,

JonJaded

Well-Known Member
Member
Joined
May 22, 2016
Messages
513
Trophies
0
XP
1,614
Country
United States
Aye that's awesome. For some reason my mind defaulted to that freemium Kirby game, but I guess this would be great for Pokemon players as well.

Nice job!
 

Fewtch22

Well-Known Member
Member
Joined
Oct 30, 2012
Messages
129
Trophies
0
Age
34
XP
701
Country
United States
This seems like a complicated way to do something PkHex would allow you to accomplish in all of 4 minutes.
 

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
This seems like a complicated way to do something PkHex would allow you to accomplish in all of 4 minutes.
Well...
1. Some of us would rather play the game instead of cheating things in, just not to be time-gated.
2. It can be used for other games as well, like Jonhy said in #4

--------------------- MERGED ---------------------------

Nice! What benefits does this have vs changing the time in console settings?
The Console Settings changes UserSystemClock, but the internal NetworkSystemClock or LocalSystemClock doesn't change. The game will be like "hey that doesn't match up" and punish you by resetting your daily events to wait for another day, and other time-based events will get reset to the hours you started with as well.

So this changes NetworkSystemClock directly and the game doesn't fuss about it. It'll just think that amount of time has actually passed.
 

OkazakiTheOtaku

no thanks, I don't want a custom title
Member
Joined
Jul 20, 2016
Messages
1,459
Trophies
1
Location
127.0.0.1
XP
3,038
Country
Japan
So this changes NetworkSystemClock directly and the game doesn't fuss about it. It'll just think that amount of time has actually passed.
So wait, the game doesn't detect a mismatch at all?
Say it's 9PM on both my NetworkSystemClock and UserSystemClock, and I change the clock with this tool to be a day ahead (therefore out of sync), get the daily sweet, and then change it back to be in sync again. The game doesn't know?
 

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
So wait, the game doesn't detect a mismatch at all?
Say it's 9PM on both my NetworkSystemClock and UserSystemClock, and I change the clock with this tool to be a day ahead (therefore out of sync), get the daily sweet, and then change it back to be in sync again. The game doesn't know?
Try it. I don't know if it detects dialing the time backwards yet.
 

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
I don't know how the game punishes you if it detects a time skip.
Oh yeah I guess there isn't a good way to tell without passing 12 am to the next day and see if the daily events refreshed.

I do remember last I checked, the game actually increases hours for Poke Jobs when I dialed the time backwards, so maybe that's a sign that didn't detect it, cuz otherwise it'll just reset the hours.
 

Vandes

Active Member
Newcomer
Joined
Jul 12, 2014
Messages
26
Trophies
0
XP
116
Country
Zimbabwe
FYI, some users could have a problem using this tool the first time.

If I read that correctly, you pull the existing NetworkSystemClock with this line before user input; if NetworkSystemClock is not set at all (in my case because I removed the battery once and never connected to the Internet since) the immediate output is "timeGetCurrentTime failed with cc74" and there's no way to set time.
To resolve I had to compile a temporary build changing "NetworkSystemClock" with "UserSystemClock" on that same line, so I could start the app pulling my user time and then setting it to NetworkSystemClock, and now your build works correctly.


Incidently, is there any way to manipulate RTC? Like the one you see in Hekate for example... since my battery removal that's been way off and I haven't found any way to change it.
 

Storm21

Well-Known Member
Newcomer
Joined
Dec 6, 2018
Messages
89
Trophies
0
XP
1,199
Country
Switzerland
Incidently, is there any way to manipulate RTC? Like the one you see in Hekate for example... since my battery removal that's been way off and I haven't found any way to change it.

With Ubuntu you can do that, my RTC time and date is now current... In Hekate ok and in my Emunandswitcher ok. But you have to change the Switch time and date after that.
 

Vandes

Active Member
Newcomer
Joined
Jul 12, 2014
Messages
26
Trophies
0
XP
116
Country
Zimbabwe
With Ubuntu you can do that, my RTC time and date is now current... In Hekate ok and in my Emunandswitcher ok. But you have to change the Switch time and date after that.

Nice. Is there anything less invasive than a whole OS? Seems faster to just plug the battery in at exactly midnight :P
 
  • Like
Reactions: impeeza

MegaMagikarp

Well-Known Member
OP
Newcomer
Joined
Mar 25, 2015
Messages
83
Trophies
0
Location
California
XP
629
Country
Taiwan
if NetworkSystemClock is not set at all (in my case because I removed the battery once and never connected to the Internet since) the immediate output is "timeGetCurrentTime failed with cc74" and there's no way to set time.
To resolve I had to compile a temporary build changing "NetworkSystemClock" with "UserSystemClock" on that same line, so I could start the app pulling my user time
Interesting. I didn't think of the scenario of NetworkSystemClock being not set. I mean I don't see why that line can't just be UserSystemClock instead actually, so I suppose I change it to that.
 
General chit-chat
Help Users
    KennieDaMeanie @ KennieDaMeanie: Taste buds are a bitch imagine vomit tasting like the same food you just ate everyone would be...