Homebrew [REQUEST] Wii OpenBOR with libwupc compatibility

Maxbeta

Well-Known Member
OP
Member
Joined
Jul 20, 2014
Messages
407
Trophies
0
XP
1,849
Country
United States
Hi,

With this thread I'm simply trying to get some interest going in porting libwupc compatibility to OpenBOR as the sources are available and it will probably be a longshot until we see a WiiU port anytime soon.


I've taken great interest in starting to learn script to create my own game and I am in the process of putting a demo together for near future release, however having to use

the Wiimote as only means of testing/playing mods for this engine has become very old very quick when there are plenty other Wii/vWii homebrew that already benefit from libwupc

and for all the right reasons....Not having to load any batteries into your remote(s) and not having to be attached to a dongle cable, and Wii U Pro Controller is simply a better controller for 2D platformers, period.


I've made Channel Loaders for both Wii/vWii OpenBOR to make it more accessible and would really love it if somebody could integrate libwupc into an updated build.
I'm sure both the OpenBOR and Wii/WiiU Homebrew community could greatly benefit from it.

You can find OpenBOR sources here: https://github.com/DCurrent/openbor/releases

My Wii/vWii Channel Loaders: https://1drv.ms/u/s!AiHX6y5UfwQegyk4hYCCqfdHMPOu
Pics or it didn't happen:
https://imgur.com/KhEhz56
https://imgur.com/iIVgjfB
https://imgur.com/k5YBr93
 
Last edited by Maxbeta,
  • Like
Reactions: CORE

Demothens

Member
Newcomer
Joined
Jul 27, 2018
Messages
14
Trophies
0
Age
28
XP
125
Country
United States
I took a look at the libwupc thread and was able to find some examples that helped me figure out what i was doing. It seems like everything is working, including rumble, but i might have broke something so let me know if there are any issues.

Edit: I just realized it isn't currently working in pak selection. Ill try to see if i can fix that.

Edit2: Works on pak selection now!
 

Attachments

  • OpenBORwupc.zip
    1,003.1 KB · Views: 215
Last edited by Demothens,
  • Like
Reactions: Maxbeta and CORE

CORE

3:16
Member
Joined
Jul 15, 2018
Messages
1,176
Trophies
1
XP
2,070
Country
United Kingdom
I took a look at the libwupc thread and was able to find some examples that helped me figure out what i was doing. It seems like everything is working, including rumble, but i might have broke something so let me know if there are any issues.

Edit: I just realized it isn't currently working in pak selection. Ill try to see if i can fix that.

Hey Man nice work I too had this coded but I could not compile it would you mind sharing the makefile you used? I have other projects I have been practicing with but cant get them compiled even send me a pm. Maybe we even have a collaboration on this and learn from each other?
 
Last edited by CORE,

Demothens

Member
Newcomer
Joined
Jul 27, 2018
Messages
14
Trophies
0
Age
28
XP
125
Country
United States
Hey Man nice work I too had this coded but I could not compile it would you mind sharing the makefile you used? I have other projects I have been practicing with but cant get them compiled even send me a pm. Maybe we even have a collaboration on this and learn from each other?

I think i can't pm because my account is too new, or i'm just bad at finding the option. Anyways, i wasn't able to get it to compile from the command line for some reason, i had to use the build.bat included in the openbor source, and changed "bash.exe build.sh all" to "bash.exe build.sh 7" so it would only build the Wii version to save time. After that the issue was with the includes. The libwupc github says to include wupc.h but i had to include wupc.c as well in control.c or it wouldn't compile. If you have any other questions even for a different project feel free to let me know, id love to help if i can, and collaborating could be awesome to learn more.

I had to add an extension to upload the makefile, so if you try to use it directly remember it needs to have no extension.
 

Attachments

  • Makefile.txt
    26.5 KB · Views: 189
  • Like
Reactions: Maxbeta and CORE

Maxbeta

Well-Known Member
OP
Member
Joined
Jul 20, 2014
Messages
407
Trophies
0
XP
1,849
Country
United States
Sorry for the double post but I am back from testing.

@Demothens
I am happy to report that your build is very clean and responsive!

Wii Nunchuk controls will always have priority and you cannot mix and match with WiiU Pro controller because the application will blackscreen once you try to load a pak.
However this is not an issue because this is first and foremost a Wii application, so my guess is it should be left as is for the time being.

The good news is that Wii U Pro response is excellent and on point.
The better news is that I was able to test two player funtionality and it is flawless!!

I even tested 3 players too by using a Nyko Wii U Pro Commander which I hadn't used in forever and it too was responsive!!
I haven't tested 4 player because I have no more controllers but I would bet it works too, although there are not that many mods that offer 4 player in OpenBOR.

I ran another test with a cheap copy of a Wii U Pro and that one would not respond, but its probably obvious why. Cheap is Cheap.

This is the best thing to happen to this app in a while! Thank you for your work once again @Demothens and thank you for your interest too @CORE.
I wish you both well on your endeavors thru learning code! I too am trying to pick up script to make my own OpenBOR mod some time, so Cheers to all that good stuff! :grog:

I will be making a post about this over at Chrono Crash forums which is the home of OpenBOR where it can be further appreciated!
Feel free to head on over there as well! ....And here it is! -->> http://www.chronocrash.com/forum/index.php?topic=3947.msg54812#msg54812
 
Last edited by Maxbeta,
  • Like
Reactions: Demothens

Demothens

Member
Newcomer
Joined
Jul 27, 2018
Messages
14
Trophies
0
Age
28
XP
125
Country
United States
@Demothens
Can you post a download link to your edited source code please.

I am a developer for the open beasts of rage engine and would like yo update the source with your changes.

#!LnJCFaDb!dEwmjAmC4m3WgcIcnURPNhICD298cgicVbiqWhuB7iw

I can't post direct links because i have under 10 posts but above is a mega link without base url.

The build.bat is changed to only build the wii file. If there are any issues let me know.
 
  • Like
Reactions: Maxbeta

Demothens

Member
Newcomer
Joined
Jul 27, 2018
Messages
14
Trophies
0
Age
28
XP
125
Country
United States
@Maxbeta
Have you had any luck with creating a Wii VC injection to boot straight into openbor from the wiiu menu? I figured i would try to add WiiDRClib support for completion sake, but it require you to launch from a VC injection to work and every injection i have tried crashes on boot, even with the unmodified boot.dol. I have been using TeconMoon's injector.
 
  • Like
Reactions: Maxbeta

Maxbeta

Well-Known Member
OP
Member
Joined
Jul 20, 2014
Messages
407
Trophies
0
XP
1,849
Country
United States
@Maxbeta
Have you had any luck with creating a Wii VC injection to boot straight into openbor from the wiiu menu? I figured i would try to add WiiDRClib support for completion sake, but it require you to launch from a VC injection to work and every injection i have tried crashes on boot, even with the unmodified boot.dol. I have been using TeconMoon's injector.

Sadly I haven't had enough time to look into creating Wii VC injection and barely had a chance to look over the tutorial.
I did however create a vWii channel a while back and its what I've been using to access OpenBOR from WiiU menu along with a hbl2hbc workaround.
If interested you can GET IT HERE https://1drv.ms/u/s!AiHX6y5UfwQegyk4hYCCqfdHMPOu
Its nowhere what a VC injection can do because having gamepad support would be amazing but its what I've been using.
Best of success in getting that to work!
 
  • Like
Reactions: Demothens

msmalik681

Member
Newcomer
Joined
Jun 14, 2018
Messages
14
Trophies
0
Age
43
XP
84
Country
United Kingdom
@Demothens
Thanks it worked i will add it to the source and mention your name for this update. Have you thought about joining our development team there is very few of us.

If you are interested just post a request i could not give a direct link just use naxbetas chronocrash link and paste topic=3057.0 after the ?
 

tehtemp

Well-Known Member
Newcomer
Joined
Apr 25, 2022
Messages
77
Trophies
0
Location
.
XP
225
Country
Canada
@Maxbeta
Have you had any luck with creating a Wii VC injection to boot straight into openbor from the wiiu menu? I figured i would try to add WiiDRClib support for completion sake, but it require you to launch from a VC injection to work and every injection i have tried crashes on boot, even with the unmodified boot.dol. I have been using TeconMoon's injector.
@Demothens - I know this thread is a little old, but if you're still around, @Lostbhoy created a vWii forwarder for OpenBOR, which you can install with WUP Installer GX2 here: https://gbatemp.net/posts/9918985

If you are able to look into integrating libwiidrc into OpenBOR, there is a new bunch of testers eagerly awaiting :)
 

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
2,513
Trophies
2
Age
44
Location
Scotland
XP
5,222
Country
United Kingdom
I would like to second the above request and encourage anyone else to join the noise lol it would be amazing to play these games on the gamepad as they look so good!

I do wonder how the process is actually achieved as my investigations have lead me down paths of requiring linux and connecting the gamepad to pc via Bluetooth and thats a non starter for me unfortunately.

I would honestly love a in depth thread regarding this topic for the betterment of the scene and encourage more of us to get a little understanding of it and mayne become a knowledge base for other projects to be realised on the wii u.
 
  • Like
Reactions: tehtemp

tehtemp

Well-Known Member
Newcomer
Joined
Apr 25, 2022
Messages
77
Trophies
0
Location
.
XP
225
Country
Canada
I do wonder how the process is actually achieved as my investigations have lead me down paths of requiring linux and connecting the gamepad to pc via Bluetooth and thats a non starter for me unfortunately.

I would honestly love a in depth thread regarding this topic for the betterment of the scene and encourage more of us to get a little understanding of it and mayne become a knowledge base for other projects to be realised on the wii u.
The homebrew app needs to include the libwiidrc library by FIX94: https://github.com/FIX94/libwiidrc.

The Github repo has a demo of how to use the library: https://github.com/FIX94/libwiidrc/tree/master/demo. You can probably also view the source of other Wii homebrew emulators that have already implemented libwiidrc to get a better idea of how to do it.
 
Last edited by tehtemp,
  • Like
Reactions: Lostbhoy

Lostbhoy

HEY YOU GUYS!
Member
Joined
Aug 23, 2009
Messages
2,513
Trophies
2
Age
44
Location
Scotland
XP
5,222
Country
United Kingdom
The homebrew app needs to include the libwiidrc library by FIX94: https://github.com/FIX94/libwiidrc.

The Github repo has a demo of how to use the library: https://github.com/FIX94/libwiidrc/tree/master/demo. You can probably also view the source of other Wii homebrew emulators that have already implemented libwiidrc to get a better idea of how to do it.
Hey thanks for that! I will have a good delve into that tomorrow and that was kinda the lines ibwas hoping for next..... Can an previously incorporated set up be used as a base or a blue print for achieving it elsewhere.

Another question is how to unpack a dol file? A couple of things i have have no source files anymore so im unsure how to add said libs to a premade dol.

Apologies tho..... This is going off topic. I may start said thread myself then however the above request for openbor still stands wink wink nudge nudge lol
 

tehtemp

Well-Known Member
Newcomer
Joined
Apr 25, 2022
Messages
77
Trophies
0
Location
.
XP
225
Country
Canada
Another question is how to unpack a dol file? A couple of things i have have no source files anymore so im unsure how to add said libs to a premade dol.
You should compile the emulator from source with your changes.

For example, if you wanted to modify OpenBOR, you should check out the OpenBOR repo: https://github.com/DCurrent/openbor. Add your changes and then compile the .dol.

To see how mGBA implemented libwiidrc, check out this file: https://github.com/mgba-emu/mgba/blob/master/src/platform/wii/main.c. And do a search for "drc" and it should be quite self-explanatory.

I would get involved myself, but I'm too lazy to get the dev environment set up to compile Wii homebrew :ohnoes:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty
    what are you looking at?
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    Xdqwerty @ Xdqwerty: Cuz it's some kind of holiday related to the town I live in