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,460
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,460
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,460
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
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    BakerMan @ BakerMan: idk how hot of a take this is, but science as a subject sucks