Hacking How to use drc-sim?

  • Thread starter Thread starter AboodXD
  • Start date Start date
  • Views Views 50,049
  • Replies Replies 98
  • Likes Likes 4
wiiubrew.org said:
  • The Internet Browser uses specialized JavaScript to obtain button states of the GamePad.
  • The button states are converted to JSON and sent to UsendMii using WebSocket protocol. POST request are used for version before 4.0.0
  • When received, UsendMii will simulate keystrokes, mouse motions, or button clicks.
So, UsendMii doesn't connect to the Wii U....
 
I'd just suggest installing Ubuntu on a separate partition, install drc-sim, and shrink the partition to as small as it can get, and just use it for drc-sim.
 
  • Like
Reactions: fiveighteen
Performance will be low, won't it?
It depends on if your computer supports dual boot, and if you have good RAM.
If your computer doesn't support dual boot, just shut off Windows before you start up Ubuntu.
 
I got this working once a while back, and it wasn't an easy endeavor. The reason you need to use linux, is that your windows computer isn't a Wii U gamepad, and Linux is the only operating system that is customizable enough to get it to be close enough. Right now, it is a pain to get working, and even if you do, it doesn't support the touchscreen, or the gyro sensor. I have been considering building a Raspberry PI system that could basically be used as a Wii U gamepad (not quite sure how I'll handle the touchscreen, I'm open to ideas on this one), but it will take some time.

Here are the 4 repositories you will want to look at:
https://bitbucket.org/memahaxx/drc-hostap
https://bitbucket.org/memahaxx/libdrc
https://bitbucket.org/memahaxx/drc-x264
https://bitbucket.org/memahaxx/drc-sim
 
I got this working once a while back, and it wasn't an easy endeavor. The reason you need to use linux, is that your windows computer isn't a Wii U gamepad, and Linux is the only operating system that is customizable enough to get it to be close enough. Right now, it is a pain to get working, and even if you do, it doesn't support the touchscreen, or the gyro sensor. I have been considering building a Raspberry PI system that could basically be used as a Wii U gamepad (not quite sure how I'll handle the touchscreen, I'm open to ideas on this one), but it will take some time.
*Sigh*
Wasted my time...

At least I ported it into Python3
 
  • Like
Reactions: Deleted User
*Sigh*
Wasted my time...

At least I ported it into Python3
I have pretty much a complete rewrite laying around somewhere that I wrote forever ago to clean up the code (not a big fan of all of it NOT being usable as a library) and port it to python 3. It probably wasn't a complete waste of time though, it is a good learning experience.
 
  • Like
Reactions: Deleted User
Oh, forgot to mention that you need a joystick(game controller).
yeah i have that i was just wondering, didnt see the post about the wifi dongle, any exact specs i need for it or links to ones known to work?

also: could i have the actual gamepad connected at same time as this?
 
Last edited by anon3536,
Oh, you shouldn't actually need the patched version of x264 as IIRC all the patches are for the video encoding used by libdrc for sending video to the gamepad. I think a vanilla install of libav or ffmpeg (depending on which side of that religious war you fall on) should be able to decode the video from the console OK.

Also, one more link if you want to keep diving into this: http://libdrc.org/docs/index.html

Also, Mema Haxx, are you one of the people that worked on all the libdrc stuff? If so, I may have some questions as I start trying to flush out the drc-sim implementation with the missing functionality (but the docs on the libdrc site are actually really good).

I'll probably keep working on my RaspberryPi gamepad, but after that is done, it would actually be pretty awesome to make a custom Android rom that could let you use a Nexus 9 (or whatever) + DS4 as a wii U gamepad. I would actually prefer using a Nexus 9 and DS4 over the Wii U gamepad for long gaming sessions XD.

In the short term, I'll probably just run a webserver on the RaspberryPi and then handle some of the stuff remotely.
 
Last edited by Supercool330,
  • Like
Reactions: Deleted User
also: could i have the actual gamepad connected at same time as this?
no

Why can't you do a man in the middle setup for the gamepad?

The result would look like:

console <-> Linux adapter1 <-> Linux adapter2 <-> gamepad
192.168.1.10<->192.168.1.11 192.168.1.10 <-> 192.168.1.12

This should be possible, if you have 2 seperate networks to avoid ip address confilcts.
 

Site & Scene News

Popular threads in this forum