Hacking (switch-fightstick) Scripting inputs to automate games

  • Thread starter Thread starter Duo8
  • Start date Start date
  • Views Views 14,138
  • Replies Replies 21
  • Likes Likes 6

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,623
Reaction score
1,239
Trophies
3
XP
3,541
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,
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.
 
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.
 
Could be super handy for automating easily predicted farming methods aswell. Example being the Pot Dance Gem Bath farm in Shantae
 
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
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.
 
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.
 
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.
 
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++?
 
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