Links for Those Wishing to Develop for the Dreamcast

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Links for Those Wishing to Develop for the Dreamcast

Post by ZacMc » Tue Feb 18, 2003 6:08 pm

Toastman posted...

For all of those wishing to begin coding on the Dreamcast or the PC, here are some links to get you started. I've tried to keep them seperated by subject/content. If you have any more, just reply to this message with the link and a short description. I'll check back every now and then adding the links to the post and deleting the replys to keep this topic short.

===Compilers===
http://gcc.gnu.org/ - GCC homepage - Massive, free, multi-platform C compiler.
http://www.cs.princeton.edu/software/lcc/ - Free ANSI C compiler, much simpler than GCC, not usable on the Dreamcast.
http://www.hangar-eleven.de/ DEAD - Setting up cross-GCC and an example
http://www.mingw.org/ - MinGW, the Minimalist GNU for windows
http://www.delorie.com/ - Home of DJGPP

===Libraries===
http://www.allegro.cc - Allegro Game Library site.
http://sourceforge.net/projects/cadcdev/ - KallistiOS
http://www.libsdl.org/ - SDL, great cross-platform (including DC) programming library (included in KOS).

===DC Specific Resources===
http://mc.pp.se/dc/ - MC's Dreamcast Programming page
http://gamedev.allusion.net/ - Cryptic Allusion Gamedev, the people who made KOS.

===General Resources===
http://www.cprogramming.com/ - C/C++ programming tutorials / reference
http://www.gametutorials.com/ - Game programming tutorials, mostly 3D.
http://www.planet-source-code.com/ - Good For examples
http://www.programmersheaven.com/ - Lots of junk, programming info, code...
http://www.gamedev.net/ - Game development resources, some is useful
http://nehe.gamedev.net/ - OpenGL tutorials
http://www.opengl.org/resources/tutorials/ DEAD - Links to OpenGL tuts
http://www.strath.ac.uk/IT/Docs/Ccourse/ - C Programming
http://www.lugod.org/presentations/sdl-talk-1/ - Beginning SDL
http://www.lugod.org/presentations/sdl-talk-2/ - Intermediate SDL

============================================
Thanks to (in order of appearance ;) ):
BlackAura
BlueCrab
Bombshell
neoak
for contributing links.

This topic was messed up (some people couldn't see it) and when I was trying to fix it I think I deleted it on accident :oops: l So now we are left with a bunch of posts by me.. Feel free to flame me in PMs :twisted:
Last edited by ZacMc on Tue Feb 18, 2003 6:57 pm, edited 3 times in total.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Post by ZacMc » Tue Feb 18, 2003 6:09 pm

reaper2k2 posted..

HERE's a great link for SDL has every function and how to use it i find it very helpfull


ITS a nice looking site some may have this but i like how its set up

http://www.wlug.org.nz/SDLManPages

IT's from NZ lol not australia
Last edited by ZacMc on Tue Feb 18, 2003 6:28 pm, edited 3 times in total.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Post by ZacMc » Tue Feb 18, 2003 6:11 pm

404notfound posted..

You forgot my fav free compiler: Dev-C++

Also avalable in Pascal flavors.
Last edited by ZacMc on Tue Feb 18, 2003 6:16 pm, edited 2 times in total.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Post by ZacMc » Tue Feb 18, 2003 6:11 pm

Toastman posted..

Ack, j00 made the w0rds linkz j00 h4x0rz. How c4n 1 c0pi-p45t3 th4+?????///?

You broke my (implied) format rule
I guess I'll clean the thread tomorrow when I'm off.

To Do:
Add reaper's and 404's links.
Add respective names to the contributers list.
Last edited by ZacMc on Tue Feb 18, 2003 6:16 pm, edited 1 time in total.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Post by ZacMc » Tue Feb 18, 2003 6:12 pm

RenoRulez posted..

I want to beginn with programming on the DC, but I don?t have any idea where to start!
Has sb. a step-by-step-tutorial?

thank you!
reno
Last edited by ZacMc on Tue Feb 18, 2003 6:15 pm, edited 1 time in total.
ZacMc
DCEmu Super Fan
DCEmu Super Fan
Posts: 2715
Joined: Fri Nov 16, 2001 11:16 am
Location: Milwaukee, WI
Has liked: 0
Been liked: 0
Contact:

Post by ZacMc » Tue Feb 18, 2003 6:13 pm

OneThirty8 posted..

I found a "for dummies" style guide for sdl on http://www.gamecoding.org.uk DEAD that looks very easy to follow and I think you can download the source code for the examples they walk you through, so you can see what it looks like. But first check the links further up the thread, from the actual DC coders first because they know more than me... and grab KOS and a good book on C or C++.

Of course, coding anything is a long hard process when you're starting out. Even writing Basic programs on my Dad's old PC jr. took me a long time to learn besides

Code: Select all

10 PRINT "Hello World!" 
q_006
Mental DCEmu
Mental DCEmu
Posts: 415
Joined: Thu Oct 10, 2002 7:18 pm
Has liked: 0
Been liked: 0
Contact:

more links

Post by q_006 » Thu Mar 20, 2003 11:11 pm

If you are a programmer but relatively new to 2D programming then you should check out these links first, especially the first and last ones.

these are links to 2D Dos Game Programming

http://www.geocities.com/siliconvalley/ ... torial.htm
/*check out the wyog.zip in the link above, very complete!*/

http://www.brackeen.com/home/vga/unchain.html

http://www3.telus.net/alexander_russell ... uction.htm


Now if you have Visual C++ 6 (any edition will do) you can go to the The Pern Project and this ConsoleVision link. This is an alternative to Cygwin and MSYS setup. Although those have been known to work better than the setup/IDE above, it is much easier to setup.

Enjoy!
Last edited by q_006 on Tue Apr 08, 2003 11:15 pm, edited 3 times in total.
phowells
DCEmu Newbie
DCEmu Newbie
Posts: 1
Joined: Sun Apr 06, 2003 8:30 pm
Location: Victoria
Has liked: 0
Been liked: 0

Post by phowells » Sun Apr 06, 2003 8:37 pm

I have been looking into developing for the Dreamcast for a few weeks and I have found many references to the Windows CE Toolkit for Dremcast. The Dreamcast DirectX port could be very useful to an experienced DirectX programmer. Has Microsoft succeded in making this toolkit completely unobtainable?
BlackAura
DC Developer
DC Developer
Posts: 9951
Joined: Sun Dec 30, 2001 9:02 am
Has liked: 0
Been liked: 0

Post by BlackAura » Sun Apr 06, 2003 8:56 pm

Not completely unobtainable, but they aren't exactly easy to obtain. And it's probably not worth the effort, since KallistiOS can probably do most of it anyway. You'd just have to learn how to use it.
Mask of Destiny
Mental DCEmu
Mental DCEmu
Posts: 330
Joined: Sun Mar 23, 2003 10:52 pm
Has liked: 0
Been liked: 0

Post by Mask of Destiny » Mon May 19, 2003 10:34 pm

Is there a site with information on the sound system like the ARM memory map and information about Yamaha's chip?
Ex-Cyber
DCEmu User with No Life
DCEmu User with No Life
Posts: 3641
Joined: Sat Feb 16, 2002 1:55 pm
Has liked: 0
Been liked: 0

Post by Ex-Cyber » Mon May 19, 2003 10:57 pm

Some documentation on the AICA can be found here, courtesy of the ever-spiffy Hitmen.
"You know, I have a great, wonderful, really original method of teaching antitrust law, and it kept 80 percent of the students awake. They learned things. It was fabulous." -- Justice Stephen Breyer
Mask of Destiny
Mental DCEmu
Mental DCEmu
Posts: 330
Joined: Sun Mar 23, 2003 10:52 pm
Has liked: 0
Been liked: 0

Post by Mask of Destiny » Mon May 19, 2003 11:24 pm

That's the best documenation I've seen so far, but it is lacking in the area I'm most interested in. Is there a document with a description of some or all of the opcodes for the DSP?
User avatar
Quzar
Dream Coder
Dream Coder
Posts: 7489
Joined: Wed Jul 31, 2002 12:14 am
Location: Miami, FL
Has liked: 0
Been liked: 3 times
Contact:

Post by Quzar » Wed Dec 24, 2003 3:08 am

Was drudging through these forums and found this thread that i think may be helpful to programmers that have never made a program with sound.

http://www.dcemulation.org/phpBB/viewtopic.php?t=8409

is old, but gives example code for playing ogg sound.

The Dream Lives On.
"When you post fewer lines of text than your signature, consider not posting at all." - A Wise Man
ETR
Dumb
Posts: 1998
Joined: Mon Dec 08, 2003 8:36 pm
Location: Because My Heart is in O-H-I-OOOO
Has liked: 0
Been liked: 0
Contact:

Post by ETR » Tue Jan 13, 2004 9:36 pm

Know what would rock? A BitTorrent torrent for Sh4_Arm_Tools_win32.rar

I've been unable to find it, or an explanation of *what* it is. And if I can't find it or a replacement, I TI my programming class. And then I don't graduate.
Image
Smiley wrote:I was bored and like to hear myself talk, that's all....
dave13
DCEmu Newbie
DCEmu Newbie
Posts: 1
Joined: Sun Feb 29, 2004 4:50 pm
Has liked: 0
Been liked: 0

Post by dave13 » Sun Feb 29, 2004 5:10 pm

Can I use Dev C++ 4 to program on the Dreamcast?
q_006
Mental DCEmu
Mental DCEmu
Posts: 415
Joined: Thu Oct 10, 2002 7:18 pm
Has liked: 0
Been liked: 0
Contact:

DCFreeDev / Dev-C++ compiler setup

Post by q_006 » Fri Dec 31, 2004 10:53 am

User avatar
pnpbios
DCEmu Freak
DCEmu Freak
Posts: 96
Joined: Mon May 16, 2005 5:28 pm
Has liked: 0
Been liked: 0

Post by pnpbios » Mon May 16, 2005 5:55 pm

Are there any good tutorials on KOS, or am I just going to have to dig through the source and documentation?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has liked: 0
Been liked: 0

Post by OneThirty8 » Mon May 16, 2005 6:05 pm

pnpbios wrote:Are there any good tutorials on KOS, or am I just going to have to dig through the source and documentation?
There's not a whole lot in the way of documentation, sadly. Your best bet is to look at the KOS examples and the header files. There are plenty of tutorials on SDL all over the interweb, so you might want to give that a go first. You'll need to have KOS set up for SDL to be of any use, but with it you can ease into DC development since the same code should work on the PC and DC with only minor changes.

Also, BlackAura has a few KOS tutorials on his website. http://files.frashii.com/~sp00nz/Doom/f ... ura/tutes/ Those are definitely worth reading, especially those by BA and BlueCrab.
User avatar
pnpbios
DCEmu Freak
DCEmu Freak
Posts: 96
Joined: Mon May 16, 2005 5:28 pm
Has liked: 0
Been liked: 0

Post by pnpbios » Mon May 16, 2005 6:32 pm

OneThirty8 wrote:
pnpbios wrote:Are there any good tutorials on KOS, or am I just going to have to dig through the source and documentation?
There's not a whole lot in the way of documentation, sadly. Your best bet is to look at the KOS examples and the header files. There are plenty of tutorials on SDL all over the interweb, so you might want to give that a go first. You'll need to have KOS set up for SDL to be of any use, but with it you can ease into DC development since the same code should work on the PC and DC with only minor changes.

Also, BlackAura has a few KOS tutorials on his website. http://files.frashii.com/~sp00nz/Doom/f ... ura/tutes/ Those are definitely worth reading, especially those by BA and BlueCrab.
thanks! I'm a little hesitant to do anything that uses SDL on the Dreamcast though, I heard that the implementation was unusable, but that was from some time ago. Are things better than that now?
OneThirty8
Damn Dirty Ape
Damn Dirty Ape
Posts: 5031
Joined: Thu Nov 07, 2002 11:11 pm
Location: Saugerties, NY
Has liked: 0
Been liked: 0

Post by OneThirty8 » Mon May 16, 2005 7:03 pm

You'll need to apply a few fixes to SDL for the Joystick to work, and last I knew stereo sound still wasn't working right. (could have been that I screwed up my SDL when I tried to fix it, though.) For sound, KOS sound is just as easy to use anyway.

As far as being unusable, that's not really true. The timer needs to be fixed or many programs will run slowly - I don't have my SDL source handy at the moment, but a couple of us have posted our fixes/hacks for the SDL timer at dcemu.co.uk. I think GPF posted his, and I posted mine, which was essentially the same thing. The other thing is that it really only works well if you use a 320x240 screen surface. 640x480 works, but it's generally too slow. There's not really a fix for that, but you can still do some cool stuff with a 320x240 screen.
Post Reply