Welcome! Log In Create A New Profile

Advanced

Homebrew Coding !!Help!!

Posted by khjui 
Homebrew Coding !!Help!!
January 15, 2010 06:03PM
Hi

I am Khjui, this is my first post, and I was just wondering a few things about wii homebrew coding.
I know the basics to #include, and to set up a working program on the wii. However, all I know is printf("text"); and basic integers and how to include them in a printf code.

SO, I was wondering how I could,

1) Display an image
2) Play an MOD sound
3) How to change the font of a prinf function

Also, can I code Wii Homebrew in C++ or just C?

Thanks
-Tom

EDIT:
Sorry, didn't see the coding forum. :-S



Edited 1 time(s). Last edit at 01/15/2010 06:14PM by khjui.
Re: Homebrew Coding !!Help!!
January 15, 2010 06:13PM
It can be done in C++, thats all I know.
Re: Homebrew Coding !!Help!!
January 15, 2010 06:14PM
Quote
SifJar
It can be done in C++, thats all I know.
Thanks sifjar
Re: Homebrew Coding !!Help!!
January 15, 2010 07:54PM
Try looking at the examples that come with devkitPro. Should shed some light on things.
Re: Homebrew Coding !!Help!!
January 15, 2010 09:20PM
Hey khjui,

To display an image, you should use a library to do it for you. I recommend the libwiisprite or GRRLIB library as you are new (libwiigui is great for advanced programmers).

To play a MOD sound, check out the prototypes in the ASND headers.

To use a nice font, use a nice library to do so. Both libraries I mentioned above can have support fonts.
Re: Homebrew Coding !!Help!!
January 16, 2010 12:36AM
There are also some nice tutorials on codemii.com. I don't like how they display images, but it is great for getting started with wii development.
Re: Homebrew Coding !!Help!!
January 16, 2010 03:52AM
GRRLIB is a good place to start... it's got some very simple features to get you started, and as you progress, it is also very powerful and allows you to do all the advanced stuff too.

actually libwiisprite, GRRLIB, or libwiigui, any of them will work.

You can pretty much do everything with all three libraries (some are more geared towards certain aspects, but they all can do everything) it's just a matter of finding one you are comfortable with. Try em all! and between most of us here, we can probably help you with whichever you choose to go with.
Re: Homebrew Coding !!Help!!
January 16, 2010 11:59AM
^you forgot SDL, since it works on wii its great for testing on your pc as you only need to change a few lines to get it working on a wii

obviously youd have to change the pc sdl libs for the wii version



Edited 1 time(s). Last edit at 01/16/2010 11:59AM by SteelSLasher.
Re: Homebrew Coding !!Help!!
January 17, 2010 02:23PM
Thanks Guys.
@Arikado,
Could you please provide some links to them and tutorials? Thanks
-Tom
Re: Homebrew Coding !!Help!!
January 17, 2010 03:25PM
Libwiisprite: [wiibrew.org]
My version of libwiisprite if thiers gives you errors: [arikadosblog.blogspot.com]
Libwiisprite tut: [wiibrew.org]

GRRLIB: [wiibrew.org]

IRC Support: For libwiisprite: #arikadosblog on EFNET, For GRRLIB: #grrlib on EFNET, For either: #wiidev on EFNET
Re: Homebrew Coding !!Help!!
January 17, 2010 06:29PM
Here are some links for GRRLIB:

Forum: [grrlib.santo.fr]
Source code with examples: [code.google.com]
Homebrew using GRRLib (some are open source): [wiibrew.org]
Online Documentation: [grrlib.santo.fr]



Edited 1 time(s). Last edit at 01/17/2010 06:30PM by Crayon.
Re: Homebrew Coding !!Help!!
January 17, 2010 09:30PM
Hi
Thanks for all the help. I was just wondering weather there was a guide to the functions, e.g
it could be like:
printf("Text"); printf draws text on the screen, The word(s) in the quotation marks is what the text says.

Any like this? For drawing a sprite, changing the backgrond image/colour e.t.c

Thanks
-Tom
Re: Homebrew Coding !!Help!!
January 17, 2010 11:18PM
Doxygen documentation is available

libwiisprite: [feesh.braingravy.co.uk]
GRRLIB: [grrlib.santo.fr] or the PDF version [grrlib.googlecode.com]



Edited 1 time(s). Last edit at 01/17/2010 11:20PM by Crayon.
Re: Homebrew Coding !!Help!!
January 17, 2010 11:24PM
khjui, I don't want to discourage you from your project but your last post suggested to me that you may want to go learn C/C++ and then come back in about a year (I'd say a couple months normally but you seem to have no programming experience at all) after you get some experience under your belt.

As Crayon and I have said and linked to, documentation (and tutorials) for both libraries is available for you to look at and figure out which functions perform which tasks.



Edited 1 time(s). Last edit at 01/18/2010 03:02PM by Arikado.
Re: Homebrew Coding !!Help!!
January 18, 2010 02:59PM
Quote
Arikado
khjui, I don't want to discourage you from your project but your last post suggested to me that you may want to go learn C/C++ and then come back in about a year after you get some experience under your belt..
Well yeah really, isn't that a good thing?
Sorry, only registered users may post in this forum.

Click here to login