Build ScummDC attempt(s)

Place for discussing homebrew games, development, new releases and emulation.

Moderators: pcwzrd13, deluxux, VasiliyRS

kremiso
Rank 9
Posts: 966

Build ScummDC attempt(s)

Post#1 » Tue Apr 14, 2020 12:26 pm

completely noob in compiling/build from source code here
biggest step i'm trying to do atm, using this sad lockdown period

hope this can become a noob tutorial in compiling ScummDC, starting from scratch

please correct me if you find some wrong steps, you'll avoid me future headaches lol

first infos, the compile ScummDC wiki page :

https://wiki.scummvm.org/index.php/Compiling_ScummVM/Dreamcast

GCC, Binutils, Newlib, Libronin and Libmad are requested, and cross-compiled for sh-elf

Now, first doubts, i have installed the DreamSDK_R2, that grants pre built cross-compile with 3 of them (GCC, Binutils, Newlib)
but using KallistiOS; in the docs there is written that Libronin should work too but has not been tested at all - DOUBT 1

Second ,i have taken the Scumm2.0.0 source code, that has been developed using GCC4.6.3, Binutils2.18 and Newlib1.19.0,
when instead DreamSDK has installed GCC4.7.3, Binutils2.31.1 and Newlib2.0.0

DOUBT 2 - I should match the same releases to avoid issues, or i can freely try with the updates ones?

atm i'm doing lite 'make' attempts to construct only the SCUMMVM.ELF main file, keeping for now all the plugins disabled, obviously with ton of errors lol, expecially to make find Libmad libraries files

never said it would have been easy :)

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Build ScummDC attempt(s)

Post#2 » Tue Apr 14, 2020 1:21 pm

https://wiki.scummvm.org/index.php/Comp ... /Dreamcast this has all the tools you need precompiled to build it i would not use dreamsdk for it

use wayback machine to get the dead links

Optional
libmad (MPEG Audio Decoder, needed if you want to play MP3-compressed games) - Precompiled binaries of v0.15.1b

http://sourceforge.net/projects/mad/files/libmad/

http://mc.pp.se/dc/files/libmad-0.15.1b.tar.gz

kremiso
Rank 9
Posts: 966

Re: Build ScummDC attempt(s)

Post#3 » Tue Apr 14, 2020 4:04 pm

Thanks Ian, i have already all the required libraries.
What do you recommend in alternative to DreamSDK, i mean to cross-build from Windows to Dreamcast ? Cygwin perhaps ?

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Build ScummDC attempt(s)

Post#4 » Tue Apr 14, 2020 5:02 pm

I would have a base install of cygwin then use all the above why i have not done it mean building a whole new tool chain just for it..

User avatar
Anthony817
Shark Patrol
Posts: 4009

Re: Build ScummDC attempt(s)

Post#5 » Wed Apr 15, 2020 12:56 am

I just want to state my support to you kremiso, this makes me happy to see you taking a shot at this!
Image

kremiso
Rank 9
Posts: 966

Re: Build ScummDC attempt(s)

Post#6 » Thu Apr 16, 2020 5:28 am

Thanks Anthony, appreciated

if i reach to toolchain libronin to sh-elf... PITA

i want share here what i have found about the Myst/Riven save issue, so maybe also some anonymous readers can help hopefully
(because the scumm download subforum is hidden to guest users)

examinating the source code, seem that the DC load/save process (vmsave.cpp) lead to the common Mohawk engine one,
splitted in two, one for Myst (myst_state.cpp) and one for Riven (riven_saveload.cpp)
inside those, a sad confirm, a name-match filename check, plus the number of the slot where the gamesave is, that imo
makes also Myst save unreadable (more than 12 chars)
imo because it's a chained string '$namefile'+'slot number'

so, that's what Myst check for :

Common::String MystGameState::buildSaveFilename(int slot) {
return Common::String::format("myst-%03d.mys", slot);

and that's Riven :

Common::String RivenSaveLoad::buildSaveFilename(const int slot) {
return Common::String::format("riven-%03d.rvn", slot);

so, here is needed to shorten the filename string to fix the issue imo
really a shame to leave this as it is :(
also strange that has not already been fixed

if anyone here around it's faster than me in build the source code, please help! :)
Last edited by kremiso on Tue Jun 16, 2020 5:21 am, edited 1 time in total.

kremiso
Rank 9
Posts: 966

Re: Build ScummDC attempt(s)

Post#7 » Fri Apr 17, 2020 10:31 am

update news, both good and bad

i have probably found another way to go without recompile anything
hexediting the MOHAWK.PLG file, because it's basically an ELF packed file (also using i.e. PeaZip it's possible to extract all the files too)
i have already found the Riven savename string 'riven-%03d.rvn' and tried to change it...
but, again, the save works and also you have in the vmu the exactly name you choose, the load instead shows nothing as usual

don't know, i suspect the Mohawk load routine has not been implemented at all in the Dreamcast port :(

atm i'm doing other tries, also with games that use the same plugin, to at least check if the LOADsave works in any of them;
also, the main scummvm.bin (or 1st_read.bin) can be descrambled to try some modifies there too

kremiso
Rank 9
Posts: 966

Re: Build ScummDC attempt(s)

Post#8 » Sat Apr 18, 2020 9:08 am

finally, a good news only
i reached to fix the NEVERHOOD gamesave!
using the same Myst/Riven approach, only 1 byte value changed in the correct plugin
doing tries with Demul, it seems WORK :)

now, at least it's possible to test if it is completable first, and with which scummvm release for second :)
i'll upload a test release in the scummvm/download section

EDIT
done, let me know how works on real hw :)
Last edited by kremiso on Sat Apr 18, 2020 7:33 pm, edited 1 time in total.

User avatar
Anthony817
Shark Patrol
Posts: 4009

Re: Build ScummDC attempt(s)

Post#9 » Sat Apr 18, 2020 6:20 pm

Sweet great to see you working so hard fixing these great titles! :mrgreen:
Image

User avatar
Nz17
St.Jimmy
Posts: 386
Contact:

Re: Build ScummDC attempt(s)

Post#10 » Sat Apr 18, 2020 10:40 pm

Let me know if after this porting project you would then like to port the open-source Adventure Game Studio (AGS) to Dreamcast. If so, then it would help you to start with the PSP port of AGS. :-)

  • Similar Topics
    Replies
    Views
    Last post

Return to “New Releases/Homebrew/Emulation”

Who is online

Users browsing this forum: No registered users