Record inputs and play them back

martinmystery

Member
Newcomer
Joined
Aug 16, 2024
Messages
9
Reaction score
3
Trophies
0
Age
25
XP
62
Country
Spain
On a modded Nintendo Switch, what's the current best way to record Pro Controller inputs and play them back?

I have successfully used sys-botbase to create my input script files and play them, but it has two shortcomings:

-Some games (MK8, Mario Maker 2, Indies) don't connect to it, and the script files do nothing. I haven't found a fix for this. If anyone knows, please let me know
-The input files need to be created from scratch, so complex input sequences are borderline impossible to create

This is why I need a way to be able to record my own pressed inputs to a file and play them back. Where should I be looking? I found this, but it's ancient and arcane:
https://github.com/devolution2409/NX-input-recorder/releases/tag/1.0.0
 
On a modded Nintendo Switch, what's the current best way to record Pro Controller inputs and play them back?

I have successfully used sys-botbase to create my input script files and play them, but it has two shortcomings:

-Some games (MK8, Mario Maker 2, Indies) don't connect to it, and the script files do nothing. I haven't found a fix for this. If anyone knows, please let me know
-The input files need to be created from scratch, so complex input sequences are borderline impossible to create

This is why I need a way to be able to record my own pressed inputs to a file and play them back. Where should I be looking? I found this, but it's ancient and arcane:
https://github.com/devolution2409/NX-input-recorder/releases/tag/1.0.0
Sys bot base works just gotta make sure it’s all done in async

I’ve made a full twitch plays bot using it and it’s worked for every single game
 
Sys bot base works just gotta make sure it’s all done in async

I’ve made a full twitch plays bot using it and it’s worked for every single game
For certain games, I've never been able to. Tried async as well, like this:

import asyncio
import socket

async def send_command(writer, content):
content += '\r\n'
writer.write(content.encode())
await writer.drain()

async def press_a_sequence(ip, port):
reader, writer = await asyncio.open_connection(ip, port)
print("Pressing 'A' 5 times with longer holds...")

for _ in range(5):
await send_command(writer, "click A")
await asyncio.sleep(0.5)
print("Completed pressing 'A' 5 times.")
writer.close()
await writer.wait_closed()

switch_ip = "192.168.1.12"
port = 6000

asyncio.run(press_a_sequence(switch_ip, port))

Does not work on every game. Could you please point at what's wrong? To be clear, it works in the HOME menu and in certain games, but the moment I boot up specific games, it stops working forever until I restart the switch.
 
Last edited by martinmystery,
GuliKit's King Kong controllers let you record inputs as a macro to play back (KK3 Max and KK2 Pro have 10 minutes of memory, lower spec models have only 10 seconds), and you are supposed to be able to import/export the 'APG' files. As it's done in separate hardware, it will be compatible with any game. But it costs money. But the controllers are pretty good, so it's not necessarily a waste of the money.
 

Site & Scene News

Popular threads in this forum