htv04 / wiilove

Framework for making 2D Nintendo Wii homebrew games in Lua
GNU Lesser General Public License v3.0
66 stars 8 forks source link

[Question] Compiling for GameCube? #5

Closed shazz closed 2 years ago

shazz commented 2 years ago

Hi,

I tried to recompile wiilove for the gamecube but there is a dependency on luajit, where can I find this library?

Thanks!

shazz commented 2 years ago

Ah I guess this is this one https://github.com/HTV04/LuaJIT :)

htv04 commented 2 years ago

Hey, yeah that would be the one 👍

Beware that I haven't added GameCube support for LuaJIT yet (mostly because I haven't had an opportunity to test it), so you'll need to tinker with the code a little to get it to compile.

Also it's worth noting that GameCube support is definitely coming to WiiLÖVE. I even hinted at it in some source files. However, any help getting GameCube support ready would be very appreciated :)

shazz commented 2 years ago

Yeah I did recompile for the GC LuaJIT, grrlib-mod, png-mod and finally Wiilove... sorry Cubelove :) but got a black screen when running the wiilove.dol (but I did not know what to expect)

I'll go back and check first the deps I recompiled still work :)

Happy to help !

htv04 commented 2 years ago

Just wondering, are you testing this on real hardware, and if so, do you have an SD Gecko? Unfortunately Dolphin can't emulate those at the moment, but if you have one, in theory you should be able to store and load WiiLÖVE games from it.

shazz commented 2 years ago

Yeah I'm only testing on a real GameCube, I found Dolphin pretty...inaccurate, most of my stuff just doesn't work in Dolphin.

To debug I have a USB Gecko but I prefer to use the BBA, faster and more reliable, I wrote a simple network launcher / debugger (similar to PS2Link).

I also have an SD Gecko and a sd2sp2, I'll check how you're mounting the fat, normally easier with libogc2 + libfat than libogc.

So I tested luaJIT with a simple API example, it works on my GC, so I guess I broke something in Wiilove.