QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > NDS Development and Homebrew > NDS Developers Forum
The above video goes away if you are a member and logged in, so log in now!

What flashcart for any homebrew that I make/run?

This is a discussion on What flashcart for any homebrew that I make/run? within the NDS Developers Forum forums, part of the NDS Development and Homebrew category; I'm relatively new to homebrew in general. I've done some programming in the past and thought the DS would be ...

Reply
 
LinkBack Thread Tools
Old 02-16-2008, 10:43 PM   #1
 
Join Date: Feb 2006
Location: Oklahoma
Posts: 18
Trader Feedback: 0
Default What flashcart for any homebrew that I make/run?

I'm relatively new to homebrew in general. I've done some programming in the past and thought the DS would be a great way to get back into it. I'm currently learning with PA_lib and devkitpro and using various "testing applications" such as Dualis, DeSmuME, but mot working is NO$GBA (the other two appear to have stylus input issues and also can't handle random numbers, but NO$GBA runs what I've written just fine). Since math is my area, I'm experimenting with a numbers type of game first before doing anything heavier.

My main question is when I go to load something on the DS itself. I'm looking at getting a DS (lite), probably the gold one bundled with the new Zelda game (probably one of the few commercial games I'll be playing), and one of the regular ones (just standard with some color of casing) for my wife. I've read about the G6 Real as what looks like it has all the features we could need (interested in the PDA feature and browser, notes, MS Word & TXT doc support, didn't it mention PDF support? and the ability to edit that INI file to make it auto-load a certain app on bootup--nice if you were giving it to someone and wanted an intro thing pre-loaded for easy launch). My concern is homebrew compatability. Would it be safe to assume it will run anything that I write (not having huge experience)? From a developement standpoint, what causes the compatability issues (what should I avoid trying to have the program do)?

Also any tips anyone can give as for things to avoid doing (stuff the DS doesn't like/work well with) and any testing tips (best testing application, or is NO$GBA the best so far)?

Thanks for any help.

P.S. I have tried to get the following type of division calculation to display but the result is a "0.00" instead.

float x = (y/z)*100

(make a percentage for example)
m0b1us is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-17-2008, 01:41 PM   #2
 
FreePlay's Avatar
 
Join Date: Dec 2005
Location: h0000000rj
Posts: 12,858
Trader Feedback: 0
Default

If y and z are integers, y<z, y/z =0 always. Either do (100*y)/z or make them floats.

as for the rest... dunno.
__________________
[qj now fails.]
FreePlay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-17-2008, 11:11 PM   #3
 
Join Date: Feb 2006
Location: Oklahoma
Posts: 18
Trader Feedback: 0
Lightbulb float problem

They are supposed to be recognized as floats. I've declared the variable as a float and then my text display (to show them on the screen) uses the float command, showing 2 decimal places. The returned/displayed number though is "0.00".

Thanks though and if this doesn't work I might try the (x*100)/y idea (DUH! Why didn't I think of that?)

OK, I just tested and it is displaying the number but the decimal appears to be the issue now. For example,

(1*100)/8 = 12.00 (should be 12.50)
(1*100)/3 = 33.00 (should be 33.33)

So aparently the formula was/is working like

float = (1/8)*100
is not looking at
float = 1/8 (or 0.125), times 100 (or 12.50)
but instead behaves as
float = 1/8 (or 0.00 due to the decimal problem), * 100 = 0 (which is why it wasn't working)

Any idea why a float is not doing anything past the decimal place like it should?

Also, any advice on the best cartridge to use for homebrew? Is the "G6 Real" the best?
m0b1us is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
flashcart , homebrew , make or run

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 07:02 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us