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

zxr750j

Longtime member
OP
Member
Joined
Sep 29, 2003
Messages
948
Trophies
2
Location
Utrecht
XP
2,965
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: 105
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
948
Trophies
2
Location
Utrecht
XP
2,965
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
  • Psionic Roshambo @ Psionic Roshambo:
    I thought PS4/5 and Xbox One emulation would be kind of easy since they basically just a PC
  • ColdBlitz @ ColdBlitz:
    they sorta are a pc
  • K3Nv2 @ K3Nv2:
    They haslve dedicated on board chips that aren't tweaked like x64/x32 afaik
  • ColdBlitz @ ColdBlitz:
    but its a custom os for both of them
  • ColdBlitz @ ColdBlitz:
    designed for only specific hardware
  • ColdBlitz @ ColdBlitz:
    so you have to learn to emulate that specific hardware which isn't as easy as you'd think
  • K3Nv2 @ K3Nv2:
    It's a locked down Linux distro basically
  • Psionic Roshambo @ Psionic Roshambo:
    I think the only custom hardware is to do with the SSD and a security chip
  • Psionic Roshambo @ Psionic Roshambo:
    Probably combined in one chip
  • K3Nv2 @ K3Nv2:
    They place married security chips onto boards iirc
  • Psionic Roshambo @ Psionic Roshambo:
    Damn Frontier is offering 5Gbps now lol
  • K3Nv2 @ K3Nv2:
    I honestly can't recommend any of the big 3 this years I'd say buy a rog ally z1 if we're being honest
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly after the PS3 and 360 I just went full PC
  • K3Nv2 @ K3Nv2:
    Every games basically cross platform they only have about 6 titles making it worth the $600 price tag
  • Psionic Roshambo @ Psionic Roshambo:
    Didn't see much need for a console, all the advantages have kind of disappeared
  • ColdBlitz @ ColdBlitz:
    the ps3 used to support installing linux because the cpu was so powerful
  • K3Nv2 @ K3Nv2:
    Then the games are $70 and they want to reboot and refresh the same game every year
  • K3Nv2 @ K3Nv2:
    The ps3 was always Linux they just found a way to make it open source
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
  • K3Nv2 @ K3Nv2:
    Yeah even bt support for Xbox one controllers are just as easy as pairing
  • ColdBlitz @ ColdBlitz:
    considering the steamdeck can emulate the switch (yikes) theres almost 0 reason to buy the switch apart from playing online and using cartridges
  • K3Nv2 @ K3Nv2:
    Xinput and 360 dongles were a driver nightmare
  • K3Nv2 @ K3Nv2:
    I remember having to manually put in drivers and what not
    K3Nv2 @ K3Nv2: I remember having to manually put in drivers and what not