A collection of decompiled source code for Sierra's SCI games.
ericoakford / sci-decompilation-archive Goto Github PK
View Code? Open in Web Editor NEWA collection of decompiled source code for Sierra's SCI games.
A collection of decompiled source code for Sierra's SCI games.
In KQ4 rm55.sc changing
(if (== newRoomNumber 28) ((ScriptID DWARF_HOUSE) keep: 0))
to
(if (== newRoomNumber 28) ((ScriptID DWARF_MINE) keep: 0))
stops the music when exiting the mine.
Also, in rm56.sc changing
(self setRegions: DWARF_HOUSE)
to
(self setRegions: DWARF_MINE)
prevents "out of heap space" crashes when entering fisherman or dwarf houses after Rosella has entered the 2nd mine screen rm56.
Edit:
rm44.sc has some said spec errors.
((Said '>,ignite,create,begin/fire')(Print 44 9))
and
((Said '/)') (Print 44 13))
are both causing errors.
Thank you!
Not really an issue but I just wanted to say: THANK YOU VERY MUCH.
This repository is a godsent. We are doing german translations of multiple Sierra games and this repository is incredibly helpful.
While these games are not true adventure games it would be fun to see these games decompiled if possible. Perhaps they will be quirky and not possible though???
Thanks for all the hard work on this!
In kq4/SRC/rm83.sc there is a typo on line 123
((Said '/skeleton,[') (Print 83 1))
should be
((Said '/skeleton') (Print 83 1))
The extra .[ causes the game to throw an error message when looking at any specific item in the room, i.e. "Look wall".
Hello,
I am hoping to see LSL6CD at some point...just curious if it will be added or if anything is preventing it from being added from a technical standpoint?
These are great resources cheers!
The official debug modes (if such exist) involved using a software like SCI Resource Viewer to extract certain internal files and then put them in the game's folder.
But how can one use this great archive here? For example, if the game is qfg3, what should one do with the files on this archive in order to get debug mode in the game?
There is a strange bug in the whale's mouth rm44.sc. It's almost never encountered because of how unforgiving the tongue is, but you might want to fix it anyway.
If Rosella is standing on top of the tongue and tries to climb down she will softlock unless she hits the green control color before the water. The player will normally almost always hit the green, but if you adjust the background pic to make climbing really easy the bug becomes apparent.
In the inWhale script doit method there is a check for ego script 0, but a few lines down when it calls (slide changestate: 1)
it doesn't set a script on Rosella. This causes the game to keep checking the control colors during the fall and breaks stuff.
I fixed this by adding (ego setScript: slide)
before changing the state.
I was looking through the KQ4 decompile, and came to a conclusion.
Lines like this don't make much sense:
(= saveBits (Print 51 9 #font smallFont #at -1 5 #time 12))
saveBits
is only ever set, never actually used, and its name implies it's a little screenshot of the stuff below the window instead of a control's value or a boolean.
Was KQ4 just that weirdly written? Did Print
at one point return something other than true, false, or a control value?
Can you add EcoQuest I: The Search for Cetus as well as the full EcoQuest II: Lost Secret of the Rainforest, both of which you can also find at Sluicebox' archive?
Also, both your eco2demo and Sluicebox' eco2 have debug scripts but it seems they're just like the game's built-in 98.scr
and 98.hep
files which do nothing but an initial WhereTo? dialog at boot (whereas leaving the room or doing any actions gets the game stuck!).
That was also the case with QFG1VGA and QFG3, yet you somehow managed to uniquely restore their full debug functionality anyway, so can you do the same here like you did with your QFG1VGA and your QFG3?
When Keith is using an avoider in rm61 and rm60 (likely elsewhere too), the game will frequently freeze if he gets stuck on cWHITE or blocked by Sonny. Disabling the avoider on Keith prevents freezing, but doesn't present the correct behavior in game.
Sorry for being a nuisance, but I started working on a KQ4 mod before I realized the decompile wasn't completable. Now that I've invested a bunch of time in the project I'd like to see if we can work through some lingering issues that prevent the player from finishing the game.
Currently there are a bunch of said spec errors in the caves behind the waterfall. While I can deal with those, turning on the lamp doesn't seem possible because of some spec errors in main.sc. Unfortunately, I haven't learned assembly yet, and I'm struggling to find a workaround for igniting the lamp.
Also, when reading the Note from the bottle in the whale, nothing seems to happen. I think this might also be related to the asm code in main.sc. It's trivial, but I'd like to be able to read the note in my mod if possible.
With the heap space crashes fixed, I think getting the lamp to turn on would make this game close to completable! Your work on these decompiles has been extremely valuable in trying to mod KQ4. Thank you for the effort - it's appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.