Hex is text. A representation of binary in a readable format.by scanff - Coding
I presume your using a Chinese OS then? I don't think it's your paths as the error looks more like a bad executable. Maybe the gcc toolchain does not work on your localized OS, maybe it's not unicode friendly. Do you have any way to test this on a US/English computer?by scanff - Coding
Needs a lot more work. I'll send you my simple parser that retrieves certain div's and specific values from a webpage. Also remember that html is text so you can use functions like strstr and strtok to help you find tags (someone correct me if there is binary data in a html page :) ). Also don't start off by trying to parse out all the html attributes, you'll get frustby scanff - Coding
Where's the fun in that! Half the fun is writing the parser :) ANTLR looks like's it a java thingy. Anyway I've been working on a really simple parser specifically for pulling items from webpages for my radio project. I'm a little ways out from release due to me adding more features but your welcome to reuse the source when I release as a start point for a HTML parser.by scanff - Coding
You should really figure out this issue. It could be a memory leak somewhere else in the program that will cause random crashes elsewhere. I'm glad you've got it working with the buffer function. Also If you ever wanted to include a buffer without using the file functions you could probably create it as a hex array. I've seen this done with images on a couple of projects herby scanff - Coding
Arikado, I've not had a problem with the buffer function but I've actually never used the MP3Player_Playfile() function. The MP3Player_Stop() does not crash for me when using MP3Player_PlayBuffer(). So here's some code to do what you want using the MP3Player_PlayBuffer(). Basically very little difference. This also show's you the use of the ftell file function.by scanff - Coding
Arikado, What else are you doing with bgmusic1 before that code. It could be a problem there. Also, you don't need to rewind(bgmusic1); if your not reading it before the mp3 function. And don't forget to fclose before a new fopen. Here try this ( not compiled so check for typos). FILE* bgmusic1 = 0; s32 my_reader(void *fp,void *dat, s32 size){ return fread(dat, 1, sby scanff - Coding
If your are creating an editor on windows you will need to deal with endianess like henke37 mentioned. Here's a function that will help you out. unsigned long swap2 (unsigned long number) { return (((number&0x000000FF)<<24)+((number&0x0000FF00)<<8) + ((number&0x00FF0000)>>8)+((number&0xFF000000)>>24)); } If you create the map on Win and load on Wii yby scanff - Coding
fputc(brickx, pattern); should be brickx ? In your save function.by scanff - Coding
Awesome thanks for all your help. I've figured it out. It seems my buffer was too small for the mp3 buffer function. I've got a workaround that I'm bashing out. I'll post my project when I have it in a decent state. The project is a Shoutcast client and browser, so you'll be able to browse a play internet radio. Thanks again.by scanff - Coding
Hi shagkur, Thanks for the quick response. I tried adding the ASND_Init before the MP3Player_Init but I still get no sound. I guess firstly I'm unsure why I need to do this in the first place. I thought that the mp3 functions were under the mad library and nothing to do with the asnd libs. Thanks in advance for any explanation, I'm sure you have a lot more knowledge on the sounby scanff - Coding
Hello, I've been messing around trying to create an internet radio of sorts but I've been getting a headache trying to play back via the MP3Player_PlayBuffer() function. Everything seems to work but I get no sound. I cannot find a sound control function so is there another way to do this ... here's my code. the "net" class is a class I've written to retrieve data from thby scanff - Coding
If you're trying to write a web browser then I'd suggest taking a look at the source for firefox or dooble. You may get some ideas for writing your parser. Or I found this the other day - Would be nice to have a free browser for the Wii but after looking it would be a lot of work and really thinking about it even with an on screen keyboard it would be easier for me just to open upby scanff - Coding
Did you call the fatInitDefault() before your file operations?by scanff - Coding
Hello all, I'm having issues setting my TCP and UDP sockets to non-blocking. Is this an issue in the current libraries, is there a work around or am I doing something wrong. Here's my code for the connection socket. I browsed around the forum and found another post from months ago that said non-blocking sockets did not work, but nobody commented. int client_connect(char* ip,iby scanff - Coding
I get you. Here's something I am using for my animations. Also I use a set of sprites and specify the source x,y,width,height when initializing the frame. This is just pseudo code so you get the idea and plug in what you need. struct animation_frames { xRECT m_GraphicSource; //has a whole bunch of other stuff that you'll not need here }; struct animations {by scanff - Coding
You'll probably need need to write your own or find an open source game a long the lines of what you want to do. I'm currently working on a game and I have a class or two that handles animation and allows you to set a time per animation frame. I would not advice using threads for this as you'll end up in a right old mess. If you'll tell me a bit more info on what you aby scanff - Coding
This may help you Matando :)by scanff - Coding
Cool stuff! I'm actually getting inspired by the simple gc code Matando pointed us to. I'm currently writing a multithreaded server right now but it's getting late ... yawn. So I'll continue tomorrow and hopefully have something working and posted in the next few days. I've actually done a few client servers in the past for linux and windows so it's a good rby scanff - Coding
QuoteMatandoIn the libogc examples there a network example. It's under "examples/gamecube/devices/network/". Even though its for gamecube it should work on the wii, I really don't see why it wouldn't. *edit: btw Happy belated Birthday :p Genius! I never think to look at the gamecube code. A few edits in the makefile and it works like a charm. Then just open up a browserby scanff - Coding
Hey Arikado, You may want to look at the source for pong2 by wplaat. It has tcp connections in there. (http://members.tele2.nl/wplaat/wiibrew.html) Most of the work looks like it's been done in http.c. Obviously it's geared towards the http protocol but the connect, read and write should be the same if your using a TCP connection for a game. You only then need to write the servby scanff - Coding
A few questions so we can try and help you. What's the example you are sending? What is the server you are using on the Wii? HBC ? What's the windows client you're using? wiitcpload ?by scanff - Coding
Not really that much different. I'd say my main skills are windows api programming. I made a game sometime back for Windows that I'm porting to the Wii. Well it should now work on Win,Linux and Wii (maybe Mac). I just had to port the graphics part as I used Windows GDI to SDL. I found that the SDL libs for Wii are vastly outdated but still usable with a few work-a-rounds. If youby scanff - Coding
Hi Arikado, I just downloaded your source but cannot see that the network stuff is in there. There are a few functions that are commented out that look like they are network related.by scanff - Coding
Wow sounds cool. I'll have to check it out. I'm working on a 2D karate fighting game right now and have been thinking about doing a multiplayer version also. I'm a few weeks out from a release as the sprites are a big time consumer :) I was thinking of setting up a master server to handle any servers that are running then you'd be able to browse from the game to join. Bby scanff - Coding
Yeah that's the problem I found, it maybe there but there is a real lack of documentation about what's in these libraries. At least I'm unaware of any?by scanff - Coding
I had problems too. This thread helped me fix it. I used AerialX's lib (link is in the thread)by scanff - Coding
Thanks. Also thanks to AerialX your library works great for ogg's. Saves having to messing with rebuilding libogc.by scanff - Coding
Can anyone share how to load an ogg from the SD and play it back. I've been trying to figure this out for a while. Thanks :)by scanff - Coding