Dreamcast Development

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

MrDeathNote wrote:
Lord Pingas wrote:Do you need Unix based command lines like Cygwin to develop on other consoles as well as the Dreamcast?
It's the same with the psp, i've just recently started developing for it (by recently i mean a few days ago). So far ive done a hello world and rendered a sprite, but i have plans for the psp in the near future.....
Oh cool.

What do you use to develop for it?
User avatar
Trask
ES Beta Backer
ES Beta Backer
Posts: 738
Joined: Wed Oct 29, 2008 8:17 pm
Current Project: Building a 2D Engine
Favorite Gaming Platforms: Sega Genesis and Xbox 360
Programming Language of Choice: C/C++
Location: Pittsburgh, PA
Contact:

Re: Dreamcast Development

Post by Trask »

If you use the HAM environment for GBA development, you can avoid the hassles of make files. At my school, we used the HAM compiler(not the HAM Lib, we did things using ASM/C) and it made life simpler for us compiler babies. :D
MarauderIIC wrote:You know those people that are like "CHECK IT OUT I just made Linux run on this piece of celery [or other random object]!!"? Yeah, that's Falco, but with ES.
Dear god, they actually ported ES to a piece of celery!
Martin Golding wrote: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

Ok, I downloaded DC Dev ISO R4 but when I opened the file all there was in there was a cdi file.

What did I do wrong?
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Dreamcast Development

Post by Falco Girgis »

So like either burn it or mount it.
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

So I burn or mount it then I can install it?
User avatar
Trask
ES Beta Backer
ES Beta Backer
Posts: 738
Joined: Wed Oct 29, 2008 8:17 pm
Current Project: Building a 2D Engine
Favorite Gaming Platforms: Sega Genesis and Xbox 360
Programming Language of Choice: C/C++
Location: Pittsburgh, PA
Contact:

Re: Dreamcast Development

Post by Trask »

Lord Pingas wrote:So I burn or mount it then I can install it?
Yes, I just went through the install. .CDI images are image files that I've seen for DC games. You can mount the image using DiscJuggler, Daemon Tools(my personal pick) or Alcohol 120%
MarauderIIC wrote:You know those people that are like "CHECK IT OUT I just made Linux run on this piece of celery [or other random object]!!"? Yeah, that's Falco, but with ES.
Dear god, they actually ported ES to a piece of celery!
Martin Golding wrote: "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

Trask wrote:
Lord Pingas wrote:So I burn or mount it then I can install it?
Yes, I just went through the install. .CDI images are image files that I've seen for DC games. You can mount the image using DiscJuggler, Daemon Tools(my personal pick) or Alcohol 120%
Cool. I just installed it now. :)

How do I compile one of the example programs?
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Dreamcast Development

Post by Falco Girgis »

Very nice.

To compile an example program, open up the cygwin terminal, change directories to one of the KOS examples folder and just type "make."
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

GyroVorbis wrote:Very nice.

To compile an example program, open up the cygwin terminal, change directories to one of the KOS examples folder and just type "make."
Where?

Sorry for the obvious questions but where do I change directories and how?
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: Dreamcast Development

Post by Falco Girgis »

Is your cygwin terminal open?

Type "ls" for a list of files/directories in your current directory. Then type "cd <name>" for changing directories. "cd .." to go up a directory.
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

Ok, so far, so bad. :oops:

I wrote eveything in the Cygwin terminal.

I wrote "cd C:/kos/kos/examples/dreamcast/hello make" but nothing happens...

I also wrote "cd C:/kos/kos/examples/dreamcast/hello" and I wrote "make" afterwards but it says that there is no such command called "make".
XianForce
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 767
Joined: Wed Oct 29, 2008 8:36 pm

Re: Dreamcast Development

Post by XianForce »

Lord Pingas wrote:Ok, so far, so bad. :oops:

I wrote eveything in the Cygwin terminal.

I wrote "cd C:/kos/kos/examples/dreamcast/hello make" but nothing happens...

I also wrote "cd C:/kos/kos/examples/dreamcast/hello" and I wrote "make" afterwards but it says that there is no such command called "make".
Check your environment variables, make sure you have a path set to the bin directory of cygwin (I'm not sure if it's the bin directory... but for other things, it's usually the bin)
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Dreamcast Development

Post by Lord Pingas »

XianForce wrote:
Lord Pingas wrote:Ok, so far, so bad. :oops:

I wrote eveything in the Cygwin terminal.

I wrote "cd C:/kos/kos/examples/dreamcast/hello make" but nothing happens...

I also wrote "cd C:/kos/kos/examples/dreamcast/hello" and I wrote "make" afterwards but it says that there is no such command called "make".
Check your environment variables, make sure you have a path set to the bin directory of cygwin (I'm not sure if it's the bin directory... but for other things, it's usually the bin)
I wish I understand anything about bin files and the rest. I'm used to having the IDE do it all for me.

To compile the file, can somebody please explain what the bin, Makefile and the rest are used for?
User avatar
ultimatedragoon69
Chaos Rift Regular
Chaos Rift Regular
Posts: 122
Joined: Tue Oct 28, 2008 1:57 pm
Current Project: Pangea's quest (text ~tile~ based rpg)
Favorite Gaming Platforms: Dreamcast, PC, playstation 1, Virtual Boy, Snes
Programming Language of Choice: c++
Contact:

Re: Dreamcast Development

Post by ultimatedragoon69 »

wow those tools area awsome. thanks for links.
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Dreamcast Development

Post by MrDeathNote »

Lord Pingas wrote:
XianForce wrote:
Lord Pingas wrote:Ok, so far, so bad. :oops:

I wrote eveything in the Cygwin terminal.

I wrote "cd C:/kos/kos/examples/dreamcast/hello make" but nothing happens...

I also wrote "cd C:/kos/kos/examples/dreamcast/hello" and I wrote "make" afterwards but it says that there is no such command called "make".
Check your environment variables, make sure you have a path set to the bin directory of cygwin (I'm not sure if it's the bin directory... but for other things, it's usually the bin)
I wish I understand anything about bin files and the rest. I'm used to having the IDE do it all for me.

To compile the file, can somebody please explain what the bin, Makefile and the rest are used for?
A bin file can be anything really thats encoded in binary, a makefile specifies how to derive the target program from each of it's dependencies. Basically it tells the computer which files you want to build and defines their dependencies.

Just one more thing in the cygwin terminal you didn't actually type the quotation marks did you? I mean you typed make and not "make", right. Just gotta ask these things because it's an easy mistake to make and for any1 just starting they wouldn't know the difference.
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply