gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Demo Request (will recieve credit)

#46604 - leif902 - Mon Jun 27, 2005 11:04 pm

Hello all,
I'm in need of a demo that I can learn from for the NDS... You will recieve credit in my final program (GameMakerDS the GameMaker player for the NDS!)... I need to be able to read a file on the compact flash card on the NDS... It should be able to read single bytes, longs, and shorts from the file as well as ANSII text and return them to the program. The encoding to read is little endian. Thanks -Leif902

http://gamemakerds.greenmangames.vze.com

#46608 - josath - Tue Jun 28, 2005 12:56 am

I believe this code already exists, linked from this very forum. For the GBA Movie Player at least (don't know if it's compatible with other CF -> GBA thingies).

Try searching...i'm too lazy to find the post myself right now

#46609 - headspin - Tue Jun 28, 2005 12:59 am

I think your referring to this topic.

Using standard file functions like fseek(), you can read as many bytes as you like from any file at any offset.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#46630 - leif902 - Tue Jun 28, 2005 12:55 pm

EDIT: Oh, no very nice but this is for a .GBA Multiboot file... I need this to work from a nds file... anyone? (Yah I do love my GBAMP... Very good for development)

#46631 - headspin - Tue Jun 28, 2005 1:09 pm

Sorry, I'm still not 100% sure what your after, but if you need access to binary files for some sort of GameMaker program, I recommend the following tute for GBFS...

http://www.double.co.nz/nintendo_ds/nds_develop6.html
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#46632 - leif902 - Tue Jun 28, 2005 1:16 pm

Okay thanx, Nice!

What I'm doing is creating a reader program for the DS that reads gm6 files and playes them (using both screens, mic, etc... full functionallity!)... First the gm6 file is converted into a gmds file (converter is almost done w/ settings) and then that is read on the DS w/ a nds reader... it can have ds specific code (such as draw only if on ds and junk) through my own special scripting system... It's comming along great, I just wanted this to start the reader (and it needs to read/write bynary!) Thanks again -Leif902

P.S. If you'd like to programm for GMDS please visit http://gamemakerds.greenmangames.vze.com