Search found 63 matches

by Derrik
Thu May 08, 2014 5:02 pm
Forum: DS/DSi Development
Topic: Getting started with libnds
Replies: 8
Views: 12441

Re: Getting started with libnds

Not sure why, but it's working on the bottom screen now too.
by Derrik
Wed May 07, 2014 7:02 pm
Forum: DS/DSi Development
Topic: Getting started with libnds
Replies: 8
Views: 12441

Re: Getting started with libnds

OK; changing oamSub to oamMain in both oamAllocateGfx and oamSet lets me draw the sprite on the top screen!

So now I know it is a problem with VRAM bank setup which is not letting me draw sprites on the bottom screen.
by Derrik
Wed May 07, 2014 6:39 pm
Forum: DS/DSi Development
Topic: Getting started with libnds
Replies: 8
Views: 12441

Getting started with libnds

Thanks, I'll see how it goes using straight up libnds then! I'm having a little trouble setting up GFX the DS. Ideally I'd like to have all of my VRAM banks set up in a similar way to how PAlib used to, so I would like to have extended palettes for sprites and backgrounds and be able to load 4 ...
by Derrik
Mon May 05, 2014 6:24 pm
Forum: DS/DSi Development
Topic: NFLib
Replies: 2
Views: 5528

Re: NFLib

Also, what are the alternatives to it?
by Derrik
Mon May 05, 2014 6:17 pm
Forum: DS/DSi Development
Topic: NFLib
Replies: 2
Views: 5528

NFLib

I know PAlib is a no go, but what about Night Fox's Lib? The last update was this year which seems promising. I'd like some reassurance that it's OK before jumping straight in and then having to go and unlearn everything when it gets deprecated like I did with PAlib. It is nice to have some ...
by Derrik
Tue Apr 29, 2014 7:41 pm
Forum: DS/DSi Development
Topic: Downloading large files
Replies: 10
Views: 15855

Re: Downloading large files

Sorry for so many posts in a row, I can't find how to edit posts. I've uploaded a simplified version of my code: http://filetrip.net/dl?xq8ppBhfCX Once again the problem is that after an arbitrary amount of data has been received the DS will refuse to receive any more data, and will refuse to ...
by Derrik
Tue Apr 29, 2014 6:09 pm
Forum: DS/DSi Development
Topic: Downloading large files
Replies: 10
Views: 15855

Re: Downloading large files

OK; when I try to connect after recreating the socket (after shutting it down, closing it, calling socket) I get errno 119: errno = 0; if(myConnect() == SOCKET_ERROR) { printf(" connect() failed (%d)!\n", errno); } (myConnect just returns what connect() returns). I've looked up the error code ...
by Derrik
Tue Apr 29, 2014 5:30 pm
Forum: DS/DSi Development
Topic: Downloading large files
Replies: 10
Views: 15855

Re: Downloading large files

Although using the code from hbmenu to reboot the NDS file, and the DS can receive data again.

I've tried to take the code from hbmenu that resets cache so that the DS can receive data again, but it is hard to isolate the WiFi reset code.
by Derrik
Tue Apr 29, 2014 5:29 pm
Forum: DS/DSi Development
Topic: Downloading large files
Replies: 10
Views: 15855

Re: Downloading large files

I've even tried this: shutdown(my_socket, 0); closesocket(my_socket); Wifi_DisconnectAP(); if(!Wifi_InitDefault(WFC_CONNECT)) { printf(" Failed to connect to WiFi!\n"); } printf(" Reconnected to WiFi\n"); myConnect(host); printf(" Reconnected to host\n"); But it's not enough to get the DS to start ...
by Derrik
Tue Apr 29, 2014 4:36 pm
Forum: DS/DSi Development
Topic: Downloading large files
Replies: 10
Views: 15855

Re: Downloading large files

So now my sockets are non-blocking, I can see if it has been 5 seconds without receiving data, if so, retry. Everytime I retry, it fails to download any more data. It will go to like: Downloading part 73... Downloading part 74... Downloading part 75... Timout! Downloading part 75... Timout ...