Bor Dc Source Compile

A forum for news and discussion about Beats of Rage and its modification.
Post Reply
DcSteve
Modder Of Rage
Modder Of Rage
Posts: 805
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Mon Mar 18, 2002 12:41 pm
Location: Midwest
Has thanked: 0
Been thanked: 0
Contact:

Bor Dc Source Compile

Post by DcSteve »

Has anyone been able to successfully compile the Dreamcast Bor sourcecode found at http://members.rott.chello.nl/~r.vanmas ... ource.html.

I have attempted to do so with the same compiler they use, and was unable to do so. SETTINGS.SAV is a the file that allows you to save in the pc version of BOR. Is there any code in the dc source that searches for this SETTINGS.SAV so that dc devvers or anyone else can put this SETTINGS.SAV on a vmu and have Bor look for it on the vmu. If not, would it be difficult for these devvers in question to implement such an ability.
speud
DCEmu Uncool Newbie
DCEmu Uncool Newbie
Posts: 1459
Joined: Sat Dec 27, 2003 10:40 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by speud »

bor doesnt use kos right? that would mean you would have to make your very low level functions to work with the vmu, that may be quite hard to implement actually, not impossible tho
http://blueswirl.fr.st - DC Online Tools and Downloads

thx to Wack0 for the avatar ;)
Ian Micheal
Soul Sold for DCEmu
Soul Sold for DCEmu
Posts: 4865
Joined: Fri Jul 11, 2003 9:56 pm
Has thanked: 2 times
Been thanked: 4 times

Re: Bor Dc Source Compile

Post by Ian Micheal »

DcSteve wrote:Has anyone been able to successfully compile the Dreamcast Bor sourcecode found at http://members.rott.chello.nl/~r.vanmas ... ource.html.

I have attempted to do so with the same compiler they use, and was unable to do so. SETTINGS.SAV is a the file that allows you to save in the pc version of BOR. Is there any code in the dc source that searches for this SETTINGS.SAV so that dc devvers or anyone else can put this SETTINGS.SAV on a vmu and have Bor look for it on the vmu. If not, would it be difficult for these devvers in question to implement such an ability.
Yes ive compiled it my mod uses a compiled bin i did.
Dreamcast forever!!!
DcSteve
Modder Of Rage
Modder Of Rage
Posts: 805
Joined: Mon Mar 18, 2002 12:41 pm
Location: Midwest
Has thanked: 0
Been thanked: 0
Contact:

Post by DcSteve »

did you try, or did you have any luck with getting bor to read SETTINGS.SAV from a vmu somehow, or at least put that ability in your build.
Ian Micheal
Soul Sold for DCEmu
Soul Sold for DCEmu
Posts: 4865
Joined: Fri Jul 11, 2003 9:56 pm
Has thanked: 2 times
Been thanked: 4 times

Post by Ian Micheal »

Have not given it a go yet must look into it. I dont see why i cant try and use kos with it as well. Might work i use SDL and kos and other things all together since.

Not tryed to do that yet. Might be worth a shot steve.
Dreamcast forever!!!
Storminator16
DCEmu Veteran
DCEmu Veteran
Posts: 850
Joined: Mon Sep 01, 2003 11:12 am
Location: NC/Iraq
Has thanked: 0
Been thanked: 0
Contact:

Post by Storminator16 »

Just a thought, try using libdream's vmu handling functions.
speud
DCEmu Uncool Newbie
DCEmu Uncool Newbie
Posts: 1459
Joined: Sat Dec 27, 2003 10:40 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by speud »

well if youre able to inlude the vmu_block_read() and vmu_block_write() functions properly that would become easier to do. i made vmu_file_read() and vmu_file_write() functions for my tool but i dont know if you would be able to export them as they are.
i dont think using the fs functions with the vmu dir would be the easy solution, unless youre able to include the whole kos or libdream without any conflict
http://blueswirl.fr.st - DC Online Tools and Downloads

thx to Wack0 for the avatar ;)
Ian Micheal
Soul Sold for DCEmu
Soul Sold for DCEmu
Posts: 4865
Joined: Fri Jul 11, 2003 9:56 pm
Has thanked: 2 times
Been thanked: 4 times

Post by Ian Micheal »

Used this as your make file and it will compile on a standard Cygwin Kos setup


Code: Select all

SH4PATH=/usr/local/dc/sh-elf/bin


CC=$(SH4PATH)/sh-elf-gcc -ml -m4-single-only -ffast-math
AS=$(SH4PATH)/sh-elf-as -little
OBJCOPY=$(SH4PATH)/sh-elf-objcopy

CFLAGS=-Wall -Werror -O9 -fomit-frame-pointer -fno-ident -freorder-blocks -funsigned-char

LFLAGS=-Wl,-T,dc.x,-Map,linkmap -nostdlib
LIBS=-lc -lgcc

all: 1ST_READ.BIN

OBJECTS=crt0.o dcport.o dcloadsc.o dcmath.o syscalls.o bios.o gdrom.o \
	vbr.o dcirq.o dcvga.o g2.o timer.o dcsound.o dcpad.o \
	dcpak.o filecache.o \
	adpcm.o anigif.o bitmap.o control.o draw.o font.o loadimg.o \
	palette.o rand32.o screen.o soundmix.o sprite.o spriteq.o \
	texture.o vga.o video.o \
	borstartup.o bor.o

%.o: %.c
	$(CC) $(CFLAGS) -c $<

%.o: %.s
	$(CC) $(CFLAGS) -c $<

%.cs: %.c
	$(CC) $(CFLAGS) -S -c $< -o $@

1ST_READ.elf: $(OBJECTS)
	$(CC) $(LFLAGS) $(OBJECTS) -o $@ $(LIBS)

1ST_READ.BIN: 1ST_READ.elf
	$(OBJCOPY) -S -R .stack --gap-fill 0 -O binary $< $@
	pad32 1ST_READ.BIN

clean:
	rm *.o *.elf *.cs linkmap 1ST_READ.BIN
Only slight changes but it works fine. I think any one with a kos setup up Sh4 tool chain should be able to compile it with out a problem.

Good luck.
Dreamcast forever!!!
DcSteve
Modder Of Rage
Modder Of Rage
Posts: 805
Joined: Mon Mar 18, 2002 12:41 pm
Location: Midwest
Has thanked: 0
Been thanked: 0
Contact:

Post by DcSteve »

wow, does thayt include vmu saving functions?
Check out the beats of rage community at http://borrevolution.vg-network.com/
speud
DCEmu Uncool Newbie
DCEmu Uncool Newbie
Posts: 1459
Joined: Sat Dec 27, 2003 10:40 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by speud »

i think thats "only" the makefile to compile bor from the source code without any editing and without including any external library that wasnt used first, is it correct?
http://blueswirl.fr.st - DC Online Tools and Downloads

thx to Wack0 for the avatar ;)
User avatar
lv.10!!!
DCEmu Newbie
DCEmu Newbie
Posts: 136
Joined: Fri Apr 02, 2004 12:11 am
Location: Da Bronx,Da Birth of Hip-Hop
Has thanked: 0
Been thanked: 0

Post by lv.10!!! »

don't stop,keep tryin' ya will get it up and workin'(I hope)
Don't really care about ranks,Don't really care about what you think about me,Just worry about you not getting bi**h slapped b*tc*
Post Reply