Search found 358 matches

by elhobbs
Thu May 08, 2014 5:43 pm
Forum: DS/DSi Development
Topic: Getting started with libnds
Replies: 8
Views: 11295

Re: Getting started with libnds

sounds like you may have already solved your issues but mtheall created a page to help visual vram layout - http://mtheall.com/banks.html
by elhobbs
Mon Dec 23, 2013 1:13 am
Forum: DS/DSi Development
Topic: Loss of connection to AP when other networks sharing channel
Replies: 1
Views: 7074

Re: Loss of connection to AP when other networks sharing cha

you could try checking the reults from Wifi_AssocStatus(). you could also try looking at your AP and see if it still associated - it wont help your app but at you could see if it is the problem.
by elhobbs
Fri Dec 06, 2013 1:54 pm
Forum: libfat
Topic: loading textured models from fat?
Replies: 7
Views: 28000

Re: loading textured models from fat?

what about nitrofs? are you asking if it can be used or suggesting a solution? the fat and nitrofs examples show to to read data from disk. Is your question "how do I read from disk?" or is it "how do I parse the data in my files"? the first question is answered by the samples. t...
by elhobbs
Wed Jul 03, 2013 3:01 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

I think the first issue is just a symptom of using nitrofs which appends the data to the rom. The second issue is more likely the problem. That it is complaining about the second texture slot which is not displaying correctly sounds like it is the issue. This can also be a false positive if you use ...
by elhobbs
Wed Jul 03, 2013 12:38 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

Sounds like a palette issue. The original images load fine for me. Try a different image with more colors and details and see if you get something recognizable. Also try it out in desmume use the VRAM tools to see if the images are loaded correctly.
by elhobbs
Mon Jul 01, 2013 1:42 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

I am not saying that there is anything wrong with nflib. I am only pointing out that the assets you are trying to use are not particularly suited to the ds. keep in mind the ds screen resolution is 256x192 so you do not really need huge images. also you should probably look at 8bit or even 4bit text...
by elhobbs
Sat Jun 29, 2013 12:46 pm
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

The 512x512 background was being loaded as a 16bit image in VRAM. That by itself uses all of the VRAM the ds has available. It think the ne lib uses some of that VRAM for tracking allocations. So I do not think it would even fit by itself. In any case it leaves you with no place to load anything else.
by elhobbs
Sat Jun 29, 2013 2:24 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

I resized nitrofiles\stages\yoshi\yoshi from 512x512 to 128x128 and everything loads fine.
by elhobbs
Sat Jun 29, 2013 1:16 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

ok - you are not failing to allocate memory using malloc. rather it is NE_Alloc that is failing. NE_Alloc in this case is trying to allocate from VRAM - which you have configured to use VRAM A-D for textures. which is 512K in total. the texture you are trying to load is way too big for the ds. you c...
by elhobbs
Fri Jun 28, 2013 11:52 am
Forum: DS/DSi Development
Topic: Get ram usage data
Replies: 19
Views: 23871

Re: Get ram usage data

Did you verify the amount you are trying to allocate when it fails? Do you have any code that I could look at?