Homebrew [RELEASE] Wii-DOOM / Wii-HERETIC / Wii-HEXEN / Wii-STRIFE (ALL-IN-ONE) *PROPER*

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
So, if i understand right, the old source code (r33) will be the last version with bluetooth devices support?

I can't answer this question for sure at this moment. The fact is that i haven't been able to fix the bug in the past. The bluetooth module works that's for sure as the Wiimote i'm using definitely DOES connect to the NDEV as soon as it's synced but using libOGC then in the end, it tries to connect upon booting but error's out with code 17 03 where 17 00 should be. As long as this is not being resolved, there may never be any Bluetooth support.

The strange thing is that with this error, the Wiimote seems to be connected to the NDEV but ALL of the 4 LED's are offline and from what i can see by the debug logs, there seems to be a connection because as soon as you hit a button, there is a reply upon pressing / releasing. MAYBE this is a buffer related thing / structure packing related thing - i simply don't know. In theory it should have been working because the code is STOCK (original). But whatever release i use of libBTE / libwiiuse... i ALWAYS get the same result in the end.

...and not to forget: WinterMute regrets giving ANY kind of support. I almost tried at the devkitpro forums: NO RESPONSE. That's not the way how you should deal with people using your stuff.

EDIT:

As it turns out, OGG playback seems to be working without stuttering after enabling a long introduced feature that i had already implemented back in 2015 but didn't enable at the time because the original code was working for the Wii but that method didn't on the NDEV.

I just enabled the usage of SDL's memory Read/Write operations and this seems to be working.
The original feature was once implemented into the NightDiveStudio's Strife: VE port.

It looks like setting the screen bits per pixel to 32 makes the OGG music stutter again. 8bpp and 16bpp do not stutter whereas 16bpp are normally used for this port.

Time to get some beer...
 
Last edited by nitr8,

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
BIG, GREAT, OUTSTANDING NEWS:
---------------------------------

WIIMOTE WORKING!!!

It turned out, structure packing / alignment was NOT working the way it should for the MetroWerks C-Compiler.

NOW IT DOES!!!

So it looks like if you compile using GCC and do "__attribute__((packed))" then alignment will fit. But it doesn't work this way for the MWCC. You MUST do

#pragma pack(push, *)
... (THE STRUCT BEING PACKED)
#pragma pack(pop)

Corresponding code now has been added to the structs of libOGC, libBTE and libwiiuse.

Finally i can continue looking into the game itself, instead of just staring at library code like i did the last few weeks.
 
Last edited by nitr8,

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
Let's see if the last change that i made to WiiDOOM does compile...

There have been lots of changes & additions after R33 but i never released anything after that anymore.

EDIT:

I forgot to mention 1 thing: let's see if it's possible to run these ELF's through the HBC...
This would require some kind of a HBC-MOD on my side for further investigation.
Last step before anything else...
 
Last edited by nitr8,

CaptainHIT

Well-Known Member
Member
Joined
Mar 2, 2011
Messages
384
Trophies
1
Age
47
Location
Frankfurt
XP
1,464
Country
Germany
Let's see if the last change that i made to WiiDOOM does compile...

There have been lots of changes & additions after R33 but i never released anything after that anymore.

EDIT:

I forgot to mention 1 thing: let's see if it's possible to run these ELF's through the HBC...
This would require some kind of a HBC-MOD on my side for further investigation.
Last step before anything else...

Fingers crossed. :)
 

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
We have a DOL file that boots from within the HBC!

-----------------------------------------
My work is FINALLY DONE!
-----------------------------------------


So this is it!

Over 9 MONTHS for inspecting the NDEV & RVL-SDK,

INCLUDING:

- getting rid of the official libraries and headers in order to accomplish free libraries ONLY with the goal to debug "your own" homebrew stuff

- crashing at least ONE NDEV (but why don't buy 2 at the same time for twice the price...) *cough*

Now it's DEFINITELY time for a (short) rest.... *sigh*

BTW: I found the reason for HEXEN not booting. NOW IT DOES! ;-)

THIS is the state on a RETAIL Wii - NO DEBUG STUFF INCLUDED, COMPILED USING THE MetroWerks C-Compiler:

 
Last edited by nitr8,

CaptainHIT

Well-Known Member
Member
Joined
Mar 2, 2011
Messages
384
Trophies
1
Age
47
Location
Frankfurt
XP
1,464
Country
Germany
We have a DOL file that boots from within the HBC!

-----------------------------------------
My work is FINALLY DONE!
-----------------------------------------


So this is it!

Over 9 MONTHS for inspecting the NDEV & RVL-SDK,

INCLUDING:

- getting rid of the official libraries and headers in order to accomplish free libraries ONLY with the goal to debug "your own" homebrew stuff

- crashing at least ONE NDEV (but why don't buy 2 at the same time for twice the price...) *cough*

Now it's DEFINITELY time for a (short) rest.... *sigh*

BTW: I found the reason for HEXEN not booting. NOW IT DOES! ;-)

THIS is the state on a RETAIL Wii - NO DEBUG STUFF INCLUDED, COMPILED USING THE MetroWerks C-Compiler:

Hell yeah! That's the spirit, that's the way! Congrats for all your work! And thank you for your support for the ageing Wii! ;)
 

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
@nitr8: quick question, would it eventually support Doom's new Fifth Chapter recently released by Romero?

That would require a few lines of code addition. I think it's no problem at all.

I had the chance to test Heretic the last two days. Looks like it's running pretty stable but still needs some fixes...
 

CaptainHIT

Well-Known Member
Member
Joined
Mar 2, 2011
Messages
384
Trophies
1
Age
47
Location
Frankfurt
XP
1,464
Country
Germany
That would require a few lines of code addition. I think it's no problem at all.

I had the chance to test Heretic the last two days. Looks like it's running pretty stable but still needs some fixes...
Wouldn't be gzdoom a better candidate to port instead of prboom?
 

nitr8

Well-Known Member
OP
Member
Joined
Apr 4, 2007
Messages
366
Trophies
1
Website
vermillion57.wixsite.com
XP
1,453
Country
Gambia, The
Wouldn't be gzdoom a better candidate to port instead of prboom?

Sure, yeah - but i'm not familiar with C++ and i higly doubt that i can handle getting it ported.

It would also require to get controls and SDL to work. GZDoom is currently at v4.x which requires SDL v2.x. There is NO SDL2 for the Wii. It was never ported.

GZDoom v1.x was supporting SDL v1. But that's really, really old stuff.
GZDoom >= v2.2 is also using OpenGL which is not part of the Wii API. Nintendo used their own: "OpenGX" which - using the wrapper "libGL2GX" - can adopt GL functionality. I tried some things with the library itself - got it to compile. But i have never been able to make it work in the end.
 
Last edited by nitr8,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Sicklyboy @ Sicklyboy:
    And if the concern is that "well we can't trust the government to intervene for this because the government can't do anything right and wastes tons of money" then holy shit push for a better government. I'm certainly trying to. Don't throw your hands up and go "we've tried nothing and we're all out of ideas"
  • K3Nv2 @ K3Nv2:
    Plus technology cost iirc even a water jet drill is 1k per
  • cearp @ cearp:
    @K3Nv2 that's crazily expensive. how long will that take to pay off?

    Although diet is largely education, people don't need to go to university to learn what's healthy and what's not,
    it's the whole country, big corporations and advertising that is to blame for leading most of the population to believe that poptarts and froot loops are healthy to feed a child
  • mthrnite @ mthrnite:
    i would think the population knows better but with food deserts and abject poverty, sometimes a poptart gonna have to do.
  • mthrnite @ mthrnite:
    it's a big ol complicated world innit
    +1
  • Sicklyboy @ Sicklyboy:
    As someone who went through the grade school system in the US some time within the past 30 or so years, not nearly enough is done to promote and educate on how to eat healthy in a way that is feasible to do on a regular basis and also affordable. Eating healthy is, comparatively, fucking expensive. So is eating unhealthy, but in many cases eating unhealthy is more affordable than eating healthy
    +1
  • cearp @ cearp:
    90k could get you a 3 bedroom house in some poorer parts of the country
  • K3Nv2 @ K3Nv2:
    @cearp, it's like buying a new car most dentists say so $250 per the rest of your life
  • cearp @ cearp:
    Jesus
  • K3Nv2 @ K3Nv2:
    These are actual implants to dentures though
  • cearp @ cearp:
    Well once it's all done I'm sure you'll be happy with the result
  • K3Nv2 @ K3Nv2:
    Just a flappity denture would probably be 5k
  • mthrnite @ mthrnite:
    sold
  • K3Nv2 @ K3Nv2:
    I got some faith implants are going to justbe included with a crown cost
  • K3Nv2 @ K3Nv2:
    Procedures bullshit wait 4 months for graft to heal wait another four months the post to heal then get crown
  • SylverReZ @ SylverReZ:
    Only 1 tempycoin.
    +1
  • K3Nv2 @ K3Nv2:
    Got kfc for dinner fucking dinner box is a joke
  • BigOnYa @ BigOnYa:
    Just go gummy, ancientboi would like you better that way anyways, and you save money on toothbrushes/toothpaste
  • cearp @ cearp:
    @Sicklyboy I agree, but also it's about self control and realistic thinking. We wouldn't feed a dog soda, so why feed it to ourselves? Eating unhealthy food because it's cheap is one thing, but I'm sure you know people who drink soda routinely when they should be drinking water which is free.
    I get it can feel mean to say "no treat sweet beverage for you anymore" but for many people it's just in their way of life.
  • K3Nv2 @ K3Nv2:
    I drink soda twice out of the week
  • K3Nv2 @ K3Nv2:
    Plus decay can start as young as 15 tons of factors
  • cearp @ cearp:
    Even sugar free isn't good, as the acid is bad enough.
  • cearp @ cearp:
    oh earlier than 15 Ken, babies, children can get decay
  • K3Nv2 @ K3Nv2:
    So dentists give. Us these caps that'll last a few years to fight thrm
  • K3Nv2 @ K3Nv2:
    Yeah but babies get a new set
    K3Nv2 @ K3Nv2: Yeah but babies get a new set