Opened 17 years ago

Closed 14 years ago

Last modified 6 years ago

#8865 closed patch (outdated)

RTZ: Add Sega Saturn Version

Reported by: SF/mthreepwood Owned by: SF/mthreepwood
Priority: normal Component: Engine: MADE
Version: Keywords:
Cc: Game: Return to Zork

Description

This patch does two things:

1) Add detection for RTZ Sega Saturn Japanese 2) Add some minor file loading changes

The Sega Saturn is Big Endian, so several of the database read-ins had to be modified.

However, the game still crashes. During the opening script, it attempts to access the stack, but it's empty.

One other thing: The videos are not pmv, but rather cpk (Sega's FILM video -- see http://wiki.multimedia.cx/index.php?title=Sega_FILM). I'll work on that.

Ticket imported from: #1962624. Ticket imported from: patches/970.

Attachments (6)

rtz_sega_saturn.diff (6.4 KB ) - added by SF/mthreepwood 17 years ago.
patch
sega_film_player.diff (8.6 KB ) - added by SF/mthreepwood 17 years ago.
WIP sega film player patch
rtz_saturn_updated.diff (19.1 KB ) - added by SF/mthreepwood 16 years ago.
Updated Patch
updated_rtz_patch.diff (22.9 KB ) - added by SF/mthreepwood 16 years ago.
Updated Patch
rtz_saturn_8-4-08.diff (22.5 KB ) - added by SF/mthreepwood 16 years ago.
Patch (8/4/08)
rtz_saturn_5-22-09.diff (25.7 KB ) - added by SF/mthreepwood 15 years ago.
Patch (5/22/09)

Download all attachments as: .zip

Change History (17)

by SF/mthreepwood, 17 years ago

Attachment: rtz_sega_saturn.diff added

patch

by SF/mthreepwood, 17 years ago

Attachment: sega_film_player.diff added

WIP sega film player patch

comment:1 by SF/mthreepwood, 17 years ago

Assigning this to john_doe.

I'm also attaching an extremely rough Sega FILM player, and it's really WIP. I figure I'll post it in case anyone gets to the Cinepak for SEGA codec before me... *g* File Added: sega_film_player.diff

comment:2 by SF/mthreepwood, 17 years ago

Owner: set to johndoe123

by SF/mthreepwood, 16 years ago

Attachment: rtz_saturn_updated.diff added

Updated Patch

comment:3 by SF/mthreepwood, 16 years ago

I've revised the patch. Objects are now loaded correctly. The script even begins to work properly. But, it fails with an assertion from going out of bounds in an array. I'll continue looking into it.

I've also modified the scriptfuncs based on a.bin (the binary). File Added: rtz_saturn_updated.diff

by SF/mthreepwood, 16 years ago

Attachment: updated_rtz_patch.diff added

Updated Patch

comment:4 by SF/mthreepwood, 16 years ago

Updating so it compiles with the latest changes. File Added: updated_rtz_patch.diff

by SF/mthreepwood, 16 years ago

Attachment: rtz_saturn_8-4-08.diff added

Patch (8/4/08)

comment:5 by SF/mthreepwood, 16 years ago

Updating the patch.

I did this change a while ago, and forgot to update the patch here. The script still takes LE values in readInt16(), not BE. This should get more of the scripts parsing.

However, there is a segfault while calling the external function 'sfSetSoundRate' with the parameter 11027, which seems to be right. No idea why it's segfaulting on calling that function. File Added: rtz_saturn_8-4-08.diff

comment:6 by fingolfin, 16 years ago

What is the status of this item?

comment:7 by SF/mthreepwood, 16 years ago

No change; it still segfaults and I haven't figured out why.

As for continuing on it, there's some snags. There are graphics inside the main file, and some other graphics in separate files. The other files are raw 16bpp images (which already is a problem) and the format of the graphics inside are unknown. Same with sound inside the main file.

by SF/mthreepwood, 15 years ago

Attachment: rtz_saturn_5-22-09.diff added

Patch (5/22/09)

comment:8 by SF/mthreepwood, 15 years ago

A little over a year since submission, here is an updated patch. Just to let it compile again.

Out of sheer luck, the stack smashing segfault is gone now. A new segfault happens when the game tries to draw an image. This makes sense -- the new image format isn't supported yet. Work will continue when 16bpp is added from GSoC.

comment:9 by SF/mthreepwood, 14 years ago

Owner: changed from johndoe123 to SF/mthreepwood
Resolution: outdated
Status: newclosed

comment:10 by SF/mthreepwood, 14 years ago

This is way out of date now. My updated code is currently on my github fork, with lots of further changes including that fully implemented CPK player: https://github.com/clone2727/scummvm/tree/rtz-versions

comment:11 by digitall, 6 years ago

Component: Engine: MADE
Game: Return to Zork
Note: See TracTickets for help on using tickets.