37 Commits

Author SHA1 Message Date
Matthew Hoops
d883b6215f Detect whether to use the modified SCI2 or SCI2.1 kernel table based on the kDoSound call used in Sound::play(), which fixes at least my version of KQ7 - probably others. The kernel table initialization now occurs after the script signatures are adjusted as we need it adjusted before checking through Sound::play for the kDoSound call.
svn-id: r47645
2010-01-28 18:57:31 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Filippos Karapetis
a637f50862 Silenced warnings ("this" isn't defined on object instantiation, and commented out some unused variables)
svn-id: r47237
2010-01-10 21:13:38 +00:00
Martin Kiewitz
7d7d23ce2b SCI: making most of the variables in screen class private (some of it was needed for old gui)
svn-id: r47075
2010-01-06 13:05:14 +00:00
Matthew Hoops
e87cc86665 Fix walking in SCI32. Gabriel now will walk and DrMcCoy can now hear his precious 'Gabriel is a lout' line :P
svn-id: r47011
2010-01-05 01:51:09 +00:00
Filippos Karapetis
84cd8d2dc7 Renamed /gui to /graphics and /sfx to /sound, to better illustrate their purpose
svn-id: r47007
2010-01-05 01:22:16 +00:00
Martin Kiewitz
3767d3a718 SCI: now filtering screenItems against planes
svn-id: r46996
2010-01-04 23:09:57 +00:00
Martin Kiewitz
a6aaeb70e6 SCI: fix crash due accessing invalid object (implemented deleteScreenitem)
svn-id: r46993
2010-01-04 22:23:45 +00:00
Martin Kiewitz
05a16d7cba SCI: surprise for this DrMcCoy guy
svn-id: r46992
2010-01-04 22:14:34 +00:00
Matthew Hoops
986a75b7ee Implement kInPolygon for SCI32. GK1 now responds when you click on things.
svn-id: r46918
2010-01-03 05:29:30 +00:00
Filippos Karapetis
d4556f5a26 SCI32: Added sanity checks to kAddScreenItem and kUpdateScreenItem, so that they don't try and draw cels outside the screen
svn-id: r46767
2009-12-30 18:33:03 +00:00
Matthew Hoops
5382aa1ab0 SCI32:
- Set signature for Array/String
	- Add the kernel table differences for the GK2 demo
	- Implement kMessage changes in SCI32
	- Use an empty string as the default path for all games now (and modify kValidPath to accept that only as valid)
	- Add dereferencing for Arrays

svn-id: r46756
2009-12-30 16:00:56 +00:00
Filippos Karapetis
6305dde687 Fixed warnings
svn-id: r46747
2009-12-30 15:01:54 +00:00
Filippos Karapetis
d8b67ed7c6 SCI32: Moved all the list related kernel functions inside klists.cpp, and implemented kListAllTrue with the help of waltervn
svn-id: r46742
2009-12-30 14:00:30 +00:00
Filippos Karapetis
bbc52c13ab Implemented ListFirstTrue(), thanks to the help of waltervn. Now, buttons can be highlighted and clicked when the control panel is shown in GK1, and the options dialog pops up when the options button is selected
svn-id: r46741
2009-12-30 13:43:17 +00:00
Filippos Karapetis
5430de7931 SCI32: added handling of variable selectors in kListEachElementDo() and silenced some annoying warnings
svn-id: r46740
2009-12-30 13:19:52 +00:00
Filippos Karapetis
0e63912970 SCI32: added some of clone2727's changes to kArray and kString, and implemented kListIndexOf
svn-id: r46739
2009-12-30 12:55:24 +00:00
Filippos Karapetis
ebb391790f SCI32: Partially implemented kOnMe. Now the main menu in GK1 works
svn-id: r46614
2009-12-27 03:57:59 +00:00
Filippos Karapetis
a4990f6f33 Now using m_kiewitz's picture code to show pictures in SCI32. Also took some bits off a similar patch from clone2727. The Sierra logo screen and the menu screen in GK1 should now be shown fully!
svn-id: r46609
2009-12-27 01:49:39 +00:00
Filippos Karapetis
4e743e1a46 SCI2: Figured out the screen coordinates of views. Now, part of the interface can be seen in GK1. Also, silenced the OnMe warnings
svn-id: r46593
2009-12-26 16:16:02 +00:00
Filippos Karapetis
b2c170168e SCI2: Implemented kListEachElementDo (a more advanced version of SciGuiAnimate:invoke()) and kListAt. Now, the Sierra logo music can be heard, and game logic is running on objects of the animated views list
svn-id: r46591
2009-12-26 15:47:57 +00:00
Filippos Karapetis
98053616d1 Silenced some MSVC warnings
svn-id: r46536
2009-12-24 20:45:32 +00:00
Matthew Hoops
996da19fc9 Stub SCI32's kOnMe to give better debugging info (used when clicking in the GK1 menu).
svn-id: r46533
2009-12-24 18:37:35 +00:00
Filippos Karapetis
f73e9c43c4 Updated comments in kListEachElementDo() to show how it's called, with the help of waltervn
svn-id: r46530
2009-12-24 15:24:48 +00:00
Filippos Karapetis
9072b0c26e SCI32: Added some more stubs for picture manipulation, screen update and animation functions
svn-id: r46529
2009-12-24 15:02:06 +00:00
Filippos Karapetis
c8a3d163d1 Added a hack in kAddScreenItem to display the view in question on screen. Some parts of the main menu can be seen now in GK1
svn-id: r46528
2009-12-24 14:18:16 +00:00
Filippos Karapetis
69fa167902 SCI32: The view related functions pass a view object as parameter, and the engine should deduce the parameters it needs from that object. Added stub view functions based on that fact. Also, added a sanity check in kCelHigh and kCelWide
svn-id: r46527
2009-12-24 13:50:50 +00:00
Matthew Hoops
65dcc0b2a3 SCI32:
- Fix dup for kArray/kString
	- Implement kFileIO::rename (SCI1.1)
	- Implement part of the SCI32 additions to kFileIO
	- Implement the GetSaveDir part of kSave (SCI2.1)
	- Torin (SCI2.1!) now shows signs of life -- it will create the torin.prf file with correct data!

svn-id: r46521
2009-12-24 02:43:07 +00:00
Matthew Hoops
4be2788ffd Some SCI32 (minor) String bug fixes and cleanup.
svn-id: r46492
2009-12-23 05:10:16 +00:00
Matthew Hoops
482812a1ff Update/add some comments/TODOs.
svn-id: r46463
2009-12-21 14:46:07 +00:00
Matthew Hoops
ef79d7f017 SCI32:
- Fully implement kArray and kIsHiRes and mostly implement kString (printf and atoi subfunctions still missing).
	- Add a dummy SciGui class for SCI32 to bypass the views. Gabriel Knight 1 will now play the Sierra logo music and the main menu music.
	- Some other minor SCI32 changes.

svn-id: r46462
2009-12-21 14:32:54 +00:00
Matthew Hoops
5d83522e75 Add the minor differences of SCI3 to the SCI2.1 kernel table.
svn-id: r43763
2009-08-27 01:39:30 +00:00
Matthew Hoops
2ceafbae77 - Fix the opcode formats for some opcodes in SCI32 (some arguments are now words instead of bytes).
- Fix the SCI2.1 kernel table.
- Add DoSound detection for SCI2.

svn-id: r43762
2009-08-26 22:11:31 +00:00
Matthew Hoops
0a40bb4d88 Missed another comma....
svn-id: r43761
2009-08-26 20:57:43 +00:00
Matthew Hoops
6a50e6dc7f Oops! Missed a comma.
svn-id: r43753
2009-08-26 06:28:12 +00:00
Filippos Karapetis
f7acc7f669 Fixed compilation when ENABLE_SCI32 is not set
svn-id: r43744
2009-08-25 23:15:18 +00:00
Matthew Hoops
b5da8a5cdc - Split SCI_VERSION_32 into SCI_VERSION_2, SCI_VERSION_2_1, and SCI_VERSION_3 (each version has a different kernel table).
- Improve map detection.
- Fix SCI32 object and script initialization (Torin's Passage and GK1 scripts now start up, and probably most SCI2/2.1 games).
- Add SCI2 and SCI2.1 kernel tables.

svn-id: r43742
2009-08-25 23:02:57 +00:00