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
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun Oct 02, 2011 5:33 pm
Has thanked: 0
Been thanked: 0

Help this spanish guy working on the bennu port to dreacmast

Post by DrNicholas »

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 thanked: 0
Been thanked: 0
Contact:

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

Post by coldev »

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: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

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

Post by BlueCrab »

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: 968
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream
Has thanked: 5 times
Been thanked: 6 times

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

Post by nymus »

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: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

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

Post by BlueCrab »

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: 968
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream
Has thanked: 5 times
Been thanked: 6 times

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

Post by nymus »

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 thanked: 0
Been thanked: 0
Contact:

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

Post by coldev »

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 thanked: 0
Been thanked: 0

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

Post by DrNicholas »

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 thanked: 0
Been thanked: 0
Contact:

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

Post by coldev »

off course
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

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

Post by BlueCrab »

Glad to hear that the fopen() issue was something easy to deal with (and not a bug in KOS).
Ayla
DC Developer
DC Developer
Posts: 142
Joined: Thu Apr 03, 2008 7:01 am
Has thanked: 0
Been thanked: 4 times
Contact:

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

Post by Ayla »

Why did you comment KOS_INIT_FLAGS() ?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5658
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has thanked: 9 times
Been thanked: 69 times
Contact:

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

Post by BlueCrab »

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 thanked: 0
Been thanked: 0
Contact:

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

Post by coldev »

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: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

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

Post by RyoDC »

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 thanked: 0
Been thanked: 0
Contact:

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

Post by coldev »

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: 576
Joined: Fri Jun 18, 2010 9:29 pm
Has thanked: 0
Been thanked: 5 times

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

Post by PH3NOM »

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: 366
Joined: Wed Mar 30, 2011 12:13 pm
Has thanked: 2 times
Been thanked: 0

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

Post by RyoDC »

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: 132
Joined: Wed Mar 10, 2010 1:29 am
Location: Fort Worth, Texas
Has thanked: 12 times
Been thanked: 4 times

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

Post by Anthony817 »

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