Pokemon BDSP automation using Raspberry Pi 3B/Video capture card/NXBT

zxr750j

Longtime member
OP
Member
Joined
Sep 29, 2003
Messages
941
Trophies
2
Location
Utrecht
XP
2,949
Country
Netherlands
I know I'm not the first to do it but I am very satisfied I've got it working.
What you need:
- Videocapture-card, I bought a cheap 12$ videocapture card from China, which has latency issues but this isn't a problem for this application.
I used this tutorial: to get it working
- Raspberry PI, I already had a Raspberry 3b laying around (4 should work nicely too off-course)
- Switch Dock or similar (I use a cheap generic one)
- A non lite switch

I use NXBT (https://github.com/Brikwerk/nxbt) to emulate a switch pro controller via bluetooth. I did have problems using NXBT, the developer suggested using the dev branche, this worked for me.
The raspberry starts a python script: nxbt connects to the switch and starts the game, presses switches and makes a print screen of it's desktop displaying the output of the switch via de capture card at a specific time (in my case 24 seconds after pressing the button), looking for a specific color at a specific pixel. The timing, the buttons pressed, the location and the color vary on the specific event you're trying to soft reset. In my case it's softresetting palkia, but other events should work fine with a bit tweaking.
1644933903591.png
 

Attachments

  • nxbt_palkia.txt
    2.5 KB · Views: 104
Last edited by zxr750j,

Aheago

Well-Known Member
Member
Joined
Jan 4, 2021
Messages
505
Trophies
0
Age
33
XP
1,222
Country
United States
I know I'm not the first to do it but I am very satisfied I've got it working.
What you need:
- Videocapture-card, I bought a cheap 12$ videocapture card from China, which has latency issues but this isn't a problem for this application.
I used this tutorial: to get it working
- Raspberry PI, I already had a Raspberry 3b laying around (4 should work nicely too off-course)
- Switch Dock or similar (I use a cheap generic one)
- A non lite switch

I use NXBT (https://github.com/Brikwerk/nxbt) to emulate a switch pro controller via bluetooth. I did have problems using NXBT, the developer suggested using the dev branche, this worked for me.
The raspberry starts a python script: nxbt connects to the switch and starts the game, presses switches and makes a print screen of it's desktop displaying the output of the switch via de capture card at a specific time (in my case 24 seconds after pressing the button), looking for a specific color at a specific pixel. The timing, the buttons pressed, the location and the color vary on the specific event you're trying to soft reset. In my case it's softresetting palkia, but other events should work fine with a bit tweaking.
View attachment 298251

Kinda cool but you’re not really showing anything in this post it seems. Do you have any more information ?

This project seems similar to a popular Pokémon automation project on GitHub that also uses video input

https://github.com/PokemonAutomation/About
 

zxr750j

Longtime member
OP
Member
Joined
Sep 29, 2003
Messages
941
Trophies
2
Location
Utrecht
XP
2,949
Country
Netherlands
Kinda cool but you’re not really showing anything in this post it seems. Do you have any more information ?

This project seems similar to a popular Pokémon automation project on GitHub that also uses video input

https://github.com/PokemonAutomation/About
This difference is that I am using Bluetooth (NXBT), not a microcontroller as the controller.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @K3Nv2 https://www.youtube.com/watch?v=9yWIobzBdKc