Welcome! Log In Create A New Profile

Advanced

libwiisprite not working with newest devkitPPC

Posted by Tyr_God_Of_War 
libwiisprite not working with newest devkitPPC
July 04, 2010 08:29PM
I'm trying to get libwiisprite working.

I have the latest devkitpro from the windows updater/installer, which I believe is r21.
I have tried the version off the download link of the wiibrew wiki page (http://wiibrew.org/wiki/Libwiisprite), as well as the version off of Arikado's page that was compiled for r19. (http://wiibrew.org/wiki/User:Arikado/Extra_Programs)
I have also compiled it from source, which required changing png_set_gray_1_2_4_to_8() to png_set_expand_gray_1_2_4_to_8() when compiling with the current libpng.
I am building the invaders example, after changing the file paths to be absolute. I have also tried building a modified version of the spritetest example that doesn't load any files.

Both examples compile, but when I run them on the homebrew channel, they simply turn the screen black for a few seconds, then return to the homebrew menu.

Help, please.
Re: libwiisprite not working with newest devkitPPC
July 05, 2010 07:53AM
I have this problem with the tutoral files too. I isn't a problem with libwiisprite. But just to make sure compile this code:
#include stdio.h>       
#include stdlib.h>    
#include string.h>     
#include malloc.h> 
#include gccore.h>
#include wiiuse/wpad.h>  
#include fat.h>       
#include ogc/gx.h>    
#include wiisprite.h>.

// libwiisprite uses wsp as it's namespace
using namespace wsp;

int main(int argc, char **argv)
{
	// Create the game window and initalise the VIDEO subsystem
	GameWindow *gwd = new GameWindow;
	gwd->InitVideo();
	
	gwd->SetBackground((GXColor){ 0, 255, 0, 255 });
	
	// Initialise Wiimote
	WPAD_Init();

	for(;;)
	{
		WPAD_ScanPads();
		if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_HOME)
			exit(0);
		
		gwd->Flush();
	}
	return 0;
}
this is what i use as a template file. It should just turn the screen green and wait for you to press home.
Re: libwiisprite not working with newest devkitPPC
July 05, 2010 06:02PM
With opening "<"s I assume. How did that happen? I've never seen one column of text vanish like that.

And what do you know, it works perfectly.

Does the r19 release fix this bug?
Re: libwiisprite not working with newest devkitPPC
July 05, 2010 07:24PM
the < problem is in the way the forum was programmed. It is an unavoidable problem. you'll have to just get used to it.
Re: libwiisprite not working with newest devkitPPC
July 05, 2010 08:07PM
Hey, I already got this problem fixed privately. Your issue is that you fixed the libpng compatibility incorrectly.

chaosteil made an official maintainer of libwiisprite.

I'll have the new version released later today or tomorrow.



Edited 1 time(s). Last edit at 07/06/2010 12:49PM by Arikado.
Sorry, only registered users may post in this forum.

Click here to login