Hacking Loadiine GX2

  • Thread starter Thread starter Cyan
  • Start date Start date
  • Views Views 2,636,731
  • Replies Replies 6,197
  • Likes Likes 132
Thank you for the suggestion, but this is currently out of scope for padcon. For now I want it to stay very minimal to keep it as bug- and lag-free as possible. Hooking functions like VPADRead() should always be done very carefully to not unnecessarily break stuff, prolong function return times etc.

Of course it is possible to implement what you suggest, so who knows, maybe there's going to be other people that come up with a clean way to do it. :)

@geheim @Azel I just added another release on github that should work with HBL, please tell me if it works! It should, hopefully.
https://github.com/dibas/loadiine_gx2/releases/tag/padcon-0.2-hbl
Yea, I merely suggested it to you as you seemed to have a hook in there already, that's all. I suppose FIX or someone could look into it as well. I don't really known enough myself, I'd end up remapping buttons and the others no longer working because of how I did it or something. Lol. I might try messing with gc-to-vpad though sometime. Have enough work to do trying to get my personal gx2 theme done. Kinda hard when your dumb like me, knowing enough to modify and change some things but not enough to make anything.. haha. Thanks for the reply at any rate! Perhaps, changeable screen button though (unless I missed that somewhere already)?
 
Last edited by EclipseSin,
  • Like
Reactions: Azel
@geheim @Azel I just added another release on github that should work with HBL, please tell me if it works! It should, hopefully.
https://github.com/dibas/loadiine_gx2/releases/tag/padcon-0.2-hbl

Thank you, works perfectly

here is a new icon to distinguish between the original Loadiine and Loadiine with padcon
icon.png



1-jpg.41383
 

Attachments

  • gamepad.jpg
    gamepad.jpg
    97 KB · Views: 475
Last edited by memomo,
...He is currently working on the GUI (creating the individual settings interface)...
@Maschell ...I'd be happy to assist with any graphic design work, if needed. I've noticed a few little inconsistencies in the current Loadiine GUI. It's nothing that affects functionality, but it would give it a cleaner interaction for users that have a keen eye for details. Please feel free to PM me, even if you don't need design assistance, and I can point out the issues I'm referring to.

Thanks, again, everyone, for all your hard work in these awesome projects!!

Now, if @Hykem and/or @smealum would just get some time away from everyone's silly demands to work on their amazing IOSU projects, this WiiU scene will REALLY become fun!! =)
 
Hey everyone,

I have been reversing how the gamepad's features, especially the display, are controlled for quite some time now. It was a more a side project of mine I was working on in my spare time. I recently achieved my main goal, so I want to present a neat function hook today:

padcon

Padcon allows you to turn the gamepad's display completely off and on in most games and nearly all of Cafe OS whenever you feel like it. It makes the display triggerable, currently by just pressing the right analogue stick on the gamepad.

This basically allows you to keep playing games with the gamepad while having the display turned off.


I have been using it for the last few days and for me it works pretty great. Usually programs and their specific views will make it obvious when they require the gamepad's display by automatically turning it back on again, but you can just turn it off afterwards, most programs and games I tested seem to be fine with that.

Padcon is currently integrated into Loadiine GX2 and uses its awesome function hooking (thanks to dimok, golden45 and other(?) authors involved in this)!

You can find the source code in my fork on github. For now I am not going to propose an integration into Loadiine upstream unless wanted, because it might be intrusive to some users as the right button stick behaviour can not be turned off at the moment.

If, however, a lot of people decide to include it in their everyday use just as I do already (seriously, it's awesome being able to turn off the display in so many situations), I am sure we can find an appropriate way of including padcon in loadiine upstream. It's super useful, anyway.

The github fork is on par with Loadiine upstream at the moment, so you can just clone the repo and build it yourself if you want to use it with the homebrew launcher.

If you don't want to compile it yourself, I have a self-hostable archive ready: https://github.com/dibas/loadiine_gx2/releases/tag/padcon-0.2
(No HBL or anything else is needed here, this was built from a few commits before the HBL change)

I couldn't test game compatibility as extensively as I wanted to, so I would love to hear your feedback on how it works for you!

Enjoy!
-dibas
Does this actually save battery power?
Also it's kinda hard to activate it on Twilight Princess HD.
 
Yea, I merely suggested it to you as you seemed to have a hook in there already, that's all. I suppose FIX or someone could look into it as well. I don't really known enough myself, I'd end up remapping buttons and the others no longer working because of how I did it or something. Lol. I might try messing with gc-to-vpad though sometime. Have enough work to do trying to get my personal gx2 theme done. Kinda hard when your dumb like me, knowing enough to modify and change some things but not enough to make anything.. haha. Thanks for the reply at any rate! Perhaps, changeable screen button though (unless I missed that somewhere already)?

Don't understand me wrong, I'm happy for suggestions and all kinds of feedback, those were merely my thoughts on that specific request.

The truth is that a lot of the stuff that's developed results out of hard work and countless hours of trial and error, even though it comes down to a few lines of code in the end that may not look like much work.
For example, the whole of padcon is basically this commit. Reversing what the various gamepad display functions do, how they work, when they work, where to trigger them; all of those things (and much more) are not shown in that commit, just the keep-it-simple end result. This may confuse some people that they think they have to produce working code right away and if they can't do that (most developers can't, btw) they might think of themselves as dumb. Don't do that.

It all comes down to motivation to learn and patience while testing (and lots of trial and error). :)

An option to turn padcon on and off and another option to set the trigger button are planned, I'm not sure how long it's going to take to implement it though.

Thank you, works perfectly

here is a new icon to distinguish between the original Loadiine and Loadiine with padcon

Thanks for the feedback! Looks pretty cool!

Does this actually save battery power?
Also it's kinda hard to activate it on Twilight Princess HD.

It obviously should, although I can't prove it to you. Unlike some other display-specific functions, VPADSetLcdMode() is able to turn off the gamepad's display completely (others just change it to a black screen but keep it on).
I haven't played TPHD yet, but if it's a button that's used by the game, see above about changeable buttons. In the worst case you can just compile it yourself and hardcode the button you want to use as a trigger in this very line.
 
Hi!

I have some problems here.

The Loadiine Gx2 v0.2 apparently works fine but:

- Super Mario 3D World crashs after level 1-1 (with error 199-9998)
- Shovel Kinght crashs after the first boss, with a message like "stamp dump" or anything like that
- Zelda Wind Waker apparently works fine, but the saves are erased if I close the Miimaker

Someone could help me?

Infos:

Wii U Deluxe version 5.3.2
MicroSD Kingston class 4 8Gb
Server: WKS on Moto X 2014
 
Hi!

I have some problems here.

The Loadiine Gx2 v0.2 apparently works fine but:

- Super Mario 3D World crashs after level 1-1 (with error 199-9998)
- Shovel Kinght crashs after the first boss, with a message like "stamp dump" or anything like that
- Zelda Wind Waker apparently works fine, but the saves are erased if I close the Miimaker

Someone could help me?

Infos:

Wii U Deluxe version 5.3.2
MicroSD Kingston class 4 8Gb
Server: WKS on Moto X 2014

I've done Super Mario 3D World and beat the final boss (bowser) with v0.2 and some levels in v0.1 without any problem

5.4.0U/ transcend 64 gb SDXC
 
Last edited by memomo,
  • Like
Reactions: dankusnher
Hi!

I have some problems here.

The Loadiine Gx2 v0.2 apparently works fine but:

- Super Mario 3D World crashs after level 1-1 (with error 199-9998)
- Shovel Kinght crashs after the first boss, with a message like "stamp dump" or anything like that
- Zelda Wind Waker apparently works fine, but the saves are erased if I close the Miimaker

Someone could help me?

Infos:

Wii U Deluxe version 5.3.2
MicroSD Kingston class 4 8Gb
Server: WKS on Moto X 2014

I use the last commit on github and dont have any problems with no one of these games.
 
Hi!

I have some problems here.

The Loadiine Gx2 v0.2 apparently works fine but:

- Super Mario 3D World crashs after level 1-1 (with error 199-9998)
- Shovel Kinght crashs after the first boss, with a message like "stamp dump" or anything like that
- Zelda Wind Waker apparently works fine, but the saves are erased if I close the Miimaker

Someone could help me?

Infos:

Wii U Deluxe version 5.3.2
MicroSD Kingston class 4 8Gb
Server: WKS on Moto X 2014

it's either your card, or its the card adaptor. you'll have to change either one or both. i have same problem with sdhc cards, but get no problems using full size sd cards. (no adaptor required)
 
I just added another release on github that should work with HBL, please tell me if it works! It should, hopefully.
https://github.com/dibas/loadiine_gx2/releases/tag/padcon-0.2-hbl
I just tried your padcon (the HBL version), and I must say, it's such a nice feature. I always resented using the Wii U gamepad to play with, since the battery would drain so quickly with a (very often) useless screen mimicking the TV. Now things have changed, thanks to you. :grog: I hope padcon gets integrated in the future official Loadiine releases. It's got my vote. I also tested with a game pre-installed on my system (Super Mario 3D World) after exiting loadiine, and it worked flawlessly. Amazing! Now if someone could come up with a hack that would trick the Wii U into believing a Wii Classic Controller is a Wii U Pro Controller.
 
TP HD saves fine. Try manually creating the save folders, or deleting it and trying again. Sometimes formatting the SD Card helps too. Also double check the write-protect lock on the side of the card. If it is unlocked, sometimes locking it, then unlocking it will reset the mechanism inside. It's just a little piece of spring steel, some cheap cards they don't catch/work right all the time.

I've never had the issue myself unless it was something wrong with loadiine (has been fixed already long time ago afair/k), but these are the suggested methods I think. Here's a save near the beginning, if you'd like to try starting with a save and just deleting the slot or something.
Thanks a bunch, I'll give it a go :)
 

Site & Scene News

Popular threads in this forum