Help this spanish guy working on the bennu port to dreacmast

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.
Post Reply
DrNicholas
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 31
Joined: Sun Oct 02, 2011 5:33 pm
Has liked: 0
Been liked: 0

Help this spanish guy working on the bennu port to dreacmast

Post by DrNicholas » Fri Oct 21, 2011 8:17 am

http://forum.bennugd.org/index.php?topic=2731.msg48272
on page 2 he lists his problem with something. maybe you could help him? lol
coldev
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 26
Joined: Tue Nov 01, 2011 7:30 pm
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by coldev » Tue Nov 01, 2011 8:58 pm

we are try port this tool to dc,
http://www.bennugd.org/


fopen not work ok..

is possible use fopen not including in exe file the rom?
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);

we are create a cdi file , run in emulator and not load our resource file with fopen()


include rom in exe = waste mem, and not is possible with kos load a file directly
in cdrom , how in windows ce ?


if (fopen("...."))
printf("exist");
else
printf("not exist");


our example print not exist, we are including all files with bootdreams = cdi,
executable run ok, but fopen work wrong,


only remain this feature to finish our project ..please help..
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5387
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 12 times
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by BlueCrab » Tue Nov 01, 2011 9:12 pm

Are you sure you're opening the correct file? I'm the main KOS maintainer at this point, and I've not heard of anyone having problems with fopen() working. If you can give an actual piece of code and the data files you're expecting on the disc, I'll take a look (preferably the minimal amount of stuff to show the issue).
nymus
DC Developer
DC Developer
Posts: 955
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream
Has liked: 0
Been liked: 1 time

Re: Help this spanish guy working on the bennu port to dreacmast

Post by nymus » Wed Nov 02, 2011 2:46 am

Should it be fs_open/fs_close? (A lazy guess)

To emulate a CD you need to make an iso or cdi image of your game/program's directory and instead of "/rd" use "/cd" in the fopen/fs_open function. I have not used the emulators so I do not know if you need to create your IP.BIN and 1ST_READ.BIN and scramble it....

Bootdreams might make the process easier.
behold the mind
inspired by Dreamcast
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5387
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 12 times
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by BlueCrab » Wed Nov 02, 2011 6:16 am

You do not have to use the fs_* functions. The fopen() function (and its friends) should work just fine. You can use fs_open() and all, if you'd like, as well as the more UNIXy open() and such, if you really want to. They all work pretty much equivalently.
nymus
DC Developer
DC Developer
Posts: 955
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream
Has liked: 0
Been liked: 1 time

Re: Help this spanish guy working on the bennu port to dreacmast

Post by nymus » Wed Nov 02, 2011 6:47 am

I also doubt the problem is with kos because the fs stuff usually works or blows up at build time.

The romdisk seems to be building because the compile completes without missing the "extern romdisk" and you've mentioned taking up space so... maybe...

- case-sensitivity?
- not using "/rd" ? eg fopen("/rd/file") (I missed this one when I started out)
- not using kos tools/Makefiles to create the romdisk symbol?

/kos/examples/dreamcast/png/ seems to have a lot of file reading in it which might help confirm that your KOS setup is working properly.
behold the mind
inspired by Dreamcast
coldev
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 26
Joined: Tue Nov 01, 2011 7:30 pm
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by coldev » Wed Nov 02, 2011 3:52 pm

nice.. thanks .. bennu internal core .. work !!!

fix with ....

remove this
//extern uint8 romdisk[];
//KOS_INIT_ROMDISK(romdisk);

//KOS_INIT_FLAGS(INIT_DEFAULT | INIT_MALLOCSTATS); // */

add this:
int main()
{
...
..
fopen("/cd/main.dcb");
...
...
}


our team , soon publish a beta... and a new "DC DEV KIT" more easy..


God bless everyone..
DrNicholas
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 31
Joined: Sun Oct 02, 2011 5:33 pm
Has liked: 0
Been liked: 0

Re: Help this spanish guy working on the bennu port to dreacmast

Post by DrNicholas » Wed Nov 02, 2011 11:06 pm

can you try and make scrolling work?
coldev
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 26
Joined: Tue Nov 01, 2011 7:30 pm
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by coldev » Thu Nov 03, 2011 12:18 pm

off course
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5387
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 12 times
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by BlueCrab » Thu Nov 03, 2011 12:35 pm

Glad to hear that the fopen() issue was something easy to deal with (and not a bug in KOS).
Ayla
Insane DCEmu
Insane DCEmu
Posts: 138
Joined: Thu Apr 03, 2008 7:01 am
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by Ayla » Thu Nov 03, 2011 2:19 pm

Why did you comment KOS_INIT_FLAGS() ?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5387
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 1 time
Been liked: 12 times
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by BlueCrab » Thu Nov 03, 2011 2:48 pm

Ayla wrote:Why did you comment KOS_INIT_FLAGS() ?
Unless you really need to set something other than the defaults, they're pointless.
coldev
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 26
Joined: Tue Nov 01, 2011 7:30 pm
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by coldev » Sat Nov 05, 2011 10:31 am

we ported to DC and lived to tell the tale



http://code.google.com/p/bennugddreamcast/

soon release and preview versions...


Image
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 353
Joined: Wed Mar 30, 2011 12:13 pm
Has liked: 0
Been liked: 0

Re: Help this spanish guy working on the bennu port to dreacmast

Post by RyoDC » Mon Nov 07, 2011 2:16 pm

for(;;)
printf("Hello, world!\n")

? Genius.
How do I try to build a Dreamcast toolchain:
Image
coldev
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 26
Joined: Tue Nov 01, 2011 7:30 pm
Has liked: 0
Been liked: 0
Contact:

Re: Help this spanish guy working on the bennu port to dreacmast

Post by coldev » Tue Nov 08, 2011 10:09 am

RyoDC wrote:for(;;)
printf("Hello, world!\n")

? Genius.

jajajajaja....

not is a bennu app..

import "mod_say"

Process main()
Begin
loop
say("Hello, World!");
end
End;


port with source code included..



spread the rumours so that everybody finds out about it

God Bless Everyone, happy christmas

Image

Image
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 574
Joined: Fri Jun 18, 2010 9:29 pm
Has liked: 0
Been liked: 0

Re: Help this spanish guy working on the bennu port to dreacmast

Post by PH3NOM » Tue Nov 08, 2011 10:51 pm

Looks cool, thanks for the release, coldev.

When I get some time, I will look at the code.

Is this using SDL? If it is, that would explain the 7fps in the second screen-shot.
User avatar
RyoDC
Mental DCEmu
Mental DCEmu
Posts: 353
Joined: Wed Mar 30, 2011 12:13 pm
Has liked: 0
Been liked: 0

Re: Help this spanish guy working on the bennu port to dreacmast

Post by RyoDC » Sat Nov 12, 2011 8:02 am

Phenom, you're awesome. I'm sayin' it without any sarcasm.
How do I try to build a Dreamcast toolchain:
Image
User avatar
Anthony817
Insane DCEmu
Insane DCEmu
Posts: 127
Joined: Wed Mar 10, 2010 1:29 am
Location: Fort Worth, Texas
Has liked: 9 times
Been liked: 3 times

Re: Help this spanish guy working on the bennu port to dreacmast

Post by Anthony817 » Mon Nov 14, 2011 4:44 pm

The reason the FPS is so slow is cause it was done with an emulator. It runs full speed on real hardware.

I look forward to ports like the Streets of Rage remake with this engine. :mrgreen:
Post Reply