Help this spanish guy working on the bennu port to dreacmast
-
- 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
http://forum.bennugd.org/index.php?topic=2731.msg48272
on page 2 he lists his problem with something. maybe you could help him? lol
on page 2 he lists his problem with something. maybe you could help him? lol
-
- 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
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..
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..
Colombian Developers
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- 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
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).
-
- 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
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.
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
inspired by Dreamcast
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- 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
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.
-
- 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
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.
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
inspired by Dreamcast
-
- 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
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..
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..
Colombian Developers
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
-
- 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
can you try and make scrolling work?
-
- 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
off course
Colombian Developers
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- 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
Glad to hear that the fopen() issue was something easy to deal with (and not a bug in KOS).
-
- 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
Why did you comment KOS_INIT_FLAGS() ?
- BlueCrab
- The Crabby Overlord
- Posts: 5666
- 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
Unless you really need to set something other than the defaults, they're pointless.Ayla wrote:Why did you comment KOS_INIT_FLAGS() ?
-
- 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
we ported to DC and lived to tell the tale
http://code.google.com/p/bennugddreamcast/
soon release and preview versions...
http://code.google.com/p/bennugddreamcast/
soon release and preview versions...
Colombian Developers
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
- RyoDC
- 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
for(;;)
printf("Hello, world!\n")
? Genius.
printf("Hello, world!\n")
? Genius.
How do I try to build a Dreamcast toolchain:
-
- 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
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
Colombian Developers
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
http://coldev.sf.net
Dreamcast Dev:
https://sourceforge.net/projects/coldev/files/Dreamcast
- PH3NOM
- 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
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.
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.
- RyoDC
- 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
Phenom, you're awesome. I'm sayin' it without any sarcasm.
How do I try to build a Dreamcast toolchain:
- Anthony817
- 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
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.
I look forward to ports like the Streets of Rage remake with this engine.