Hacking How to use drc-sim?

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
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....
 
D

Deleted User

Guest
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
D

Deleted User

Guest
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.
 

Supercool330

Well-Known Member
Member
Joined
Sep 28, 2008
Messages
752
Trophies
1
XP
1,129
Country
United States
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
 

AboodXD

I hack NSMB games, and other shiz.
OP
Member
Joined
Oct 11, 2014
Messages
2,880
Trophies
1
Location
Not under a rock.
XP
2,921
Country
United Arab Emirates
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

Supercool330

Well-Known Member
Member
Joined
Sep 28, 2008
Messages
752
Trophies
1
XP
1,129
Country
United States
*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

anon3536

Well-Known Member
Member
Joined
Nov 4, 2012
Messages
183
Trophies
0
Age
29
XP
253
Country
United States
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,

Supercool330

Well-Known Member
Member
Joined
Sep 28, 2008
Messages
752
Trophies
1
XP
1,129
Country
United States
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

Crewman

Active Member
Newcomer
Joined
May 9, 2013
Messages
42
Trophies
0
Age
44
XP
142
Country
Gambia, The
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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu