Hacking (switch-fightstick) Scripting inputs to automate games

  • Thread starter Duo8
  • Start date
  • Views 13,058
  • Replies 21
  • Likes 6

Duo8

Well-Known Member
OP
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,023
Country
Vietnam
I haven't seen a thread for this yet. There's a splatoon printer thread but that's just for one game.

Anyway, as you know there are tools out there that lets you send inputs through USB to your Switch. This guy here modified the original switch-fightstick demo to accept inputs over a serial connection. This is very convenient because instead of having to program and pair the "controller" every time, you just run a script.



Link: https://blog.feelmy.net/control-nintendo-switch-from-computer/

I made this thread hoping that people will find this useful and share their scripts for games. There's a python example for Xenoblade 2 in the github repo. You can use any tool you want, it just needs to be able to communicate over a serial connection.
 
Last edited by Duo8,

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,787
Trophies
1
Age
44
XP
6,517
Country
Germany
So what's that doing?
Sending specific inputs to the Switch like "press UP for two seconds, then A three times, then DOWN two seconds"? So it makes the player a bot.
 

SoslanVanWieren

Banned!
Banned
Joined
Feb 6, 2017
Messages
1,809
Trophies
0
XP
857
Country
Australia
So some one could make mar/io for Mario odyssey. just plug the switch into a capture card and you can use a program to detect whats going on on screen.
 
D

Deleted User

Guest
Could be super handy for automating easily predicted farming methods aswell. Example being the Pot Dance Gem Bath farm in Shantae
 
D

Deleted User

Guest
Bot vs PkHex, I don't know wich will provide players with a sense of pride and accomplishment for unlocking different Pokemon.
Bot will be slower, but will make the pokemon 100% legit, literally no protection against it.

Where as PKhex you have to make everything legit as possible, but its still debatable if its a legit mon or not.

IMO, bot will be better, if we manage to make one that is
 
  • Like
Reactions: Quantumcat
D

Deleted User

Guest
Looks like this is an altered version of the BOTW snowball thrower

https://github.com/bertrandom/snowball-thrower

I was looking to make a tool for people to use to make more applications like this, unfortunately I haven't been able to make heads or tales of how the timing is determined for button presses.
 
D

Deleted User

Guest
Seeing an Odyssey TAS would be an entertaining watch. Unfortunately I'm pretty sure you need a way to interrupt V-Blanks, or some other way to sync with the frame rate. At least that's what TASBot does.
Don't believe you need to do that at all. You just wait until the system presses start at the beginning of teh game and done, it should stay synced, unless there are RNG elements for stuff like enemy positions, then you're kinda flumuxed.
 

sup3rgh0st

Top Tier Ghost
Member
Joined
Apr 22, 2010
Messages
456
Trophies
1
XP
2,704
Country
United States
Don't believe you need to do that at all. You just wait until the system presses start at the beginning of teh game and done, it should stay synced,
That assumes that loading will be 100% consistent between every run, and there's no way that's the case. If you watch the early TASBot runs, desyncs were common, even on cartridge based NES games. Lag is unpredictable and will be different on every console. The Switch would be even more unpredictable if it throttles itself, or does routines behind the scenes.
 
D

Deleted User

Guest
That assumes that loading will be 100% consistent between every run, and there's no way that's the case. If you watch the early TASBot runs, desyncs were common, even on cartridge based NES games. Lag is unpredictable and will be different on every console. The Switch would be even more unpredictable if it throttles itself, or does routines behind the scenes.
Hmmm.... I suppose I didn't take that into account, so admittedly, you may actually be fully right, in saying they need to use V-blank to keep in sync.
 

Yanda

Well-Known Member
Member
Joined
Aug 26, 2015
Messages
140
Trophies
0
XP
705
Country
Old thread but w/e
Did a script to spam noponchos in XB2: https://spit.mixtape.moe/view/1e4f7003
Which is right?

A.
PC[script] creates [input] & sends it to MicroBoards.
>MicroBoards sends [input] to Switch.
>>Switch gets [input].

B.
PC sends [script] to MicroBoards.
>MicroBoards[script] creates [input] & sends it to Switch.
>>Switch gets [input].

I already have Teensy 2.0++, can I do a similar thing with Teensy 2.0++?
 

Duo8

Well-Known Member
OP
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,023
Country
Vietnam
Which is right?

A.
PC[script] creates [input] & sends it to MicroBoards.
>MicroBoards sends [input] to Switch.
>>Switch gets [input].

B.
PC sends [script] to MicroBoards.
>MicroBoards[script] creates [input] & sends it to Switch.
>>Switch gets [input].

I already have Teensy 2.0++, can I do a similar thing with Teensy 2.0++?
A
It has a different uC so check the splatoon printer repo for instructions.
 
  • Like
Reactions: Yanda

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: The cybertruck is a death trap.