Hi, there! A quick look into libogc's source and 2 lines of code added to a program tell me PAD_ButtonsDown() returns 0 if you do not press any button. Those sources of information also tell me you should be careful because if the controller is not connected you will get a 0 too. The other question was trickier. I looked around and the only possible way I found out was using PAD_Read()by Aruskano - Coding
You can not copy, rename and call the main function of another program and call it when you press B. I would not try to "learn the mechanism but not the language" calling theming functions (guessing those are permanent changes). It seems like you are not going to get to the point of compiling any of that code soon but I'm just kindly warning you before you do. Main functions initializeby Aruskano - Coding
Quotecopete23I don`t know, the code is very simple, to load the file i`m using this: FILE* file= NULL; fichero = fopen("sd:/apps/robo_tank/saves/data1.save", "r"); if (file != NULL) { rewind(file); fread(&lev, sizeof(float), 1, file); fclose(file); } I could beat you are not using that - exact - code but just in case... why did you write "fichero" there? Once again I donby Aruskano - Coding
Or we can start teaching people what a html entity is and how to write them :) #include <string.h>by Aruskano - Coding
Cool, thanks for sharing this! Is the Wii FC 8 bytes long? I thought it was 7 bytes long because of mine (the 8th byte is 00 so the real number starts till the 9th one) but now that I think about it must be 8 byte long.by Aruskano - Coding
Hi there, Can anyone explain me why the wii prints the following? I suppose there's a good explanation of why these numbers are conflictive and I wonder if anyone here knows it. printf("%llX", 0xC8*0x1000000); //prints 100000000, must be C8000000 printf("%llX", 0xC8*0x100000000); //prints C800000000 I point out the second result because it's bigger than the other one so it&by Aruskano - Coding
QuotechrisYou don't need a patched IOS to extract the friend code. I have some code that does this, if you or anyone else needs this, let me know. I just sent yellowstar a PM asking this, hahaha. I got the friend code without any ES call. If I'm not mistaken that means it doesn't need any patched IOS, right? Oh, and unless you are selling it I would like to see your code. :)by Aruskano - Coding
Really cool! Working perfectly here. I'm running 4.1 (just in case this matters because of what you said). I don't have many crazy ones but those I have showed up as crazy as they're. I can see Miis all around the homebrew scene! Once again: really cool! Aruskanoby Aruskano - Testing Corner
Textures' width and height must be multiple of 4. Your loop must run from 1 to X, where X is the size of your texture. The scale parameter you wrote about works perfectly. I don't get your statements about it.by Aruskano - Coding
float calc_yaw(struct ir_t* ir) { float x; x = ir->ax - 512; x *= WIIMOTE_FOV_COEFFICIENT / 512.0; return RAD_TO_DEGREE( atanf(x) ); } It's using the x member which is marked as bounded X value (in wiiuse) so you may have to use the "X values" value (raw X is ax in wiiuse and it's using x here, you may have to test it). You have to substract 512 off that number and theby Aruskano - Coding
Yes, you must point to a couple infrared LEDs (sensor bar) and yes you could dig up the right formula (actually I quoted it in my last post). But, as I already stated, it's pretty limited because the distance between the 2 LEDs in the sensor bar let us calculate a yaw value ranging around from -26 to 26 degrees which is around 1/7 of a full circumference. If your experiment worth it you cby Aruskano - Coding
I don't understand your question. If you are already getting pitch and roll data you are already getting yaw data too. The IR requeriment means you must be pointing to your sensor bar, if you point anywhere else the accelerometers won't be able to calculate yaw because they use gravity to measure force and it doesn't matter how much you yaw your wiimote the gravity will push it dowby Aruskano - Coding
That worked fine. I assume that since changing the output color_space wasn't featured there wasn't any difference between calculating the necessary memory to allocate with the input or the output so the code was calculating it with the input which brought problems when the output was different (correct me if I'm wrong, I want to learn :P). Those cinfo.output_components did de trickby Aruskano - Coding
Hello, I couldn't get that to work. I'm using GRRLIB and the colorspace of the working images is YCbCr. Is there any other thing, besides cinfo.out_color_space = JCS_YCbCr; needed? Edit: I'm writing that line in GRRLIB_LoadTextureJPGEx(), just clearing that out... :P Thanks,by Aruskano - Coding
Hi there, Sorry for my late answer. I updated my libjpeg to v8 and, as you predicted, it didn't help . I was just going to post that I wasn't that interested in finding the solution to this matter when I did my last try and found what was the problem. I read the headers of 2 images with jhead (a tool I found after a looooooong 2 second search) and found that the images that weren&by Aruskano - Coding
@Crayon: I'm using a libjpeg gotten from grrlib's svn about a month ago, do you really think that could be the problem? @Daid: I don't know anything about the inners of JPG format but when I stated what I wrote about the "header or something like that" I meant something like what you just said. QuoteDaidAnd it depends on the input what kind of output you get.Do you mean that deby Aruskano - Coding
Well, this is for a slideshow-presentation simulator. I am (and will be) working with kids in a regular basis... since all the technology I have in the classroom is a TV and since I'll be using wii homebrew with educational purposes anyway, I coded this simple "simulator". All it does is display images with a transition effect between them. I found powerpoint2007 gives you the option to sby Aruskano - Coding
Hello, I would love to know if anyone knows why when I try to display this I get this. Notes: -The first image works correctly in my computer. -It's not my code. (WiiXplorer displays it incorrectly, too. The code is pretty simple, I'm sure it's not my fault). -Image's dimensions are multiple of 4 (it's the exact file that I uploaded) -Second image is a screenshoby Aruskano - Coding
QuoteKsmilerLack of documentation is annoying, but just keep trying. Its a great feeling when it actually starts working cause you sticked with it :)I don't see any lack of documentation. That's the way these things are shown: assuming you know what you must know. There's plenty of sites out there to learn about makefiles and basic compiler-related terms. I understand your pointby Aruskano - Coding
Yep, that's the idea :). I'm having hard days... don't think I've forgotten this. Will be back soon.by Aruskano - Coding
Isn't this enough? Hope it helps, ignore me if it doesn't. Aruskanoby Aruskano - Coding
I do program. I don't have a curriculum yet but hopefully this will be the first thing there :P. I've done some stupid homebrew for the wii but nothing to be released (one of them is a program I used to teach geometry to my girlfriend's brother... judge it yourself), the point is... yes, I could work on this. I'll review brawlsaves later since I think I did it wrong the fiby Aruskano - Coding
I'll contribute (if it doesn't bother anyone :P) as much as I can, I don't have a lot of free time but I think this can get well organized (you seem very organized judging from the wiki page) and hopefully finished. I'm researching right now - I'll add what I get to your wiki page so everyone interested can see it. I expect to act tomorrow. I'll gather info abby Aruskano - Coding
Does anybody knows how to play soccer? because I want to drink soda and it's tuesday. :D! You don't need to update to 4.2 to start buying games again. Update the shop channel, there's plenty of topics about this at the moment. Read around or around... This could help you with your other issue but the system menu has a superpowerful application capable of deleting theby Aruskano - Homebrew General
You should read the C basics. Functions are not declared inside other functions, you are declaring (or attempting to) some functions inside main. It's similar to functions/modules/procedures declaring/calling in VB, where each object event has its own instructions and you can call them from another event instead of copying the whole code. The only advice I can give you is to read C documeby Aruskano - Coding
Place the sensor bar perfectly centered and in line with the TV and hold the wiimote exactly at the center of the sensor bar. lol. Seriously, I don't see anything to fix. You shouldn't be making a game/whatever needing THAT much accuracy anyways (we, players, are humans not machines!), try it as it is and see if it ruins the gameplay, if it does think on a codeable workaround and wriby Aruskano - Coding
Call WPAD_SetVRes(0,640,480); after initializing the wiimote and read the x and y members instead of sx and sy OR have in mind that sx ranges from 0 to 1024 and sy ranges from 0 to 768 and write a formula to get your desired values. My guess about your sy results is that your sensor bar is below the screen, am I wrong? Wiiuse assumes the sensor bar is above the TV by default. Aruskano Edby Aruskano - Coding
How is this going? I will do the wii app IF: 0. You still need someone. 1. You send me the source you used to talk to your server and a little, basic list of features it would need. 2. You don't mind if I use libwiigui. 3. You assure me you're not going to leave this project from one day to another . Whatever, I would like to talk with you. Sorry for the late answer, Arby Aruskano - Coding