Author Topic: SCI32 Source Code  (Read 22686 times)

0 Members and 1 Guest are viewing this topic.

Offline OmerMor

SCI32 Source Code
« on: January 11, 2019, 06:17:32 AM »
https://github.com/OmerMor/SCI32

This repository contains snapshots of the SCI interpreter and system scripts between 11/1994 - 10/1995, and you can learn about the evolution of the SCI in this era.
You can see the these snapshots in git's commit history: https://github.com/OmerMor/SCI32/commits/master



Offline Daventry

Re: SCI32 Source Code
« Reply #1 on: January 11, 2019, 07:18:44 AM »
Thanks so much. Have you sci0, approximately 88-90 years?

Offline MusicallyInspired

Re: SCI32 Source Code
« Reply #2 on: January 11, 2019, 09:10:57 AM »
Awesome!! God bless you and your connections!
Brass Lantern Prop Competition

Offline EricOakford

Re: SCI32 Source Code
« Reply #3 on: January 11, 2019, 12:17:45 PM »
Maybe now we can get to work on improving SCI32 support in Companion. I could maybe work on putting together a decompile of the SQ6 demo, and using that as the basis for the SCI32 template game. We now have original procedure and global names!
My SCI templates
SCI0 SCI0.1 SCI1.0 SCI1.1
SCI2.1 planned

Offline Kawa

Re: SCI32 Source Code
« Reply #4 on: January 11, 2019, 01:22:45 PM »
WOOHOO!

Offline Collector

Re: SCI32 Source Code
« Reply #5 on: January 11, 2019, 02:55:22 PM »
Thank you Omer!
KQII Remake Pic

Offline Kawa

Re: SCI32 Source Code
« Reply #6 on: January 11, 2019, 03:59:15 PM »
I tried to compile it. After a bunch of work regarding missing implied int and some scope shenanigans, I got up to the point where it can complain about sound drivers in 640x480, then crashes.

Offline Collector

Re: SCI32 Source Code
« Reply #7 on: January 11, 2019, 04:39:15 PM »
I have not yet looked through this. What version is this interpreter?
KQII Remake Pic

Offline Kawa

Re: SCI32 Source Code
« Reply #8 on: January 11, 2019, 05:30:16 PM »
INFO.CPP says 2.100.002.

Offline EricOakford

Re: SCI32 Source Code
« Reply #9 on: January 11, 2019, 08:44:23 PM »
Okay, here is my decompile of the SQ6 demo. The system scripts have been identified (namely, those in the 64xxx range), as have the system globals (namely, the first 100).

The scripts compile without error, but the game will refuse to run, giving "Error 42: This game has not been version-stamped".
My SCI templates
SCI0 SCI0.1 SCI1.0 SCI1.1
SCI2.1 planned

Offline Collector

Re: SCI32 Source Code
« Reply #10 on: January 11, 2019, 09:29:23 PM »
INFO.CPP says 2.100.002.

So we are talking about KQ7/SQ6 era.
KQII Remake Pic

Offline lskovlun

Re: SCI32 Source Code
« Reply #11 on: January 11, 2019, 10:26:10 PM »
Meanwhile, I've been working on a savegame dumper for SCI32 games (where that is actually possible, unlike earlier SCI generations). It uses ScummVM to get data on class layouts and such (and for the compression code). I've already used it to investigate one bug in KQ7.

EDIT: Sierra SCI savegames, of course.

Offline Collector

Re: SCI32 Source Code
« Reply #12 on: January 12, 2019, 12:22:27 AM »
What bug?
KQII Remake Pic

Offline lskovlun

Re: SCI32 Source Code
« Reply #13 on: January 12, 2019, 02:19:28 AM »
Some KQ7 rooms set up global state and may not reset that state properly if you teleport out (using the debugger). This causes a crash down the road (so far down the road, in fact, that you wouldn't make the connection between the two events). It only happens if you edit variable 13 directly, not when a script calls the newRoom: method. This, of course, means that the KQ7 debug script works, since it does it the proper way. But that is not so easy to do by hand.

Offline Kawa

Re: SCI32 Source Code
« Reply #14 on: January 12, 2019, 06:16:04 AM »
The latest version of Watcom I could find that would compile the interpreter without needing anything like adding missing int type specifiers and had the required compiler and linker, 11b, gave me the same result as yesterday's attempt with OpenWatcom: it switches to high-res, throws up a message about the sound driver if you set that up wrong, then crashes. I had to remove the univbe and spmode library inclusions to finish the make, and I guess one of those might be related to the crash?

https://winworldpc.com/product/watcom-c-c/110b

(7 didn't have the right programs, 10 choked on memory.cpp, and OpenWatcom is too strict.)


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.064 seconds with 23 queries.