Commit Graph

25268 Commits

Author SHA1 Message Date
Eugene Sandulenko
e95a4b42ac Narrow corrections to clipping code introduced with commit r31757 to
SCUMM 6+ as pointed out by Fingolfin

svn-id: r31759
2008-04-28 18:57:17 +00:00
Eugene Sandulenko
3af2d8d0fd Fix compilation
svn-id: r31758
2008-04-28 16:10:40 +00:00
Eugene Sandulenko
0ca949db2a Fix Kanji text positioning in DIG. Constants based on disassembly, but
it can bring some regressions to subtitles.

svn-id: r31757
2008-04-28 15:21:36 +00:00
Benjamin Haisch
fc6fe46951 Implemented text drawing and cleanup.
svn-id: r31756
2008-04-28 10:56:21 +00:00
Nicola Mettifogo
6d3a7e4f6b Moved some static members into Parallaction class.
svn-id: r31755
2008-04-28 09:42:29 +00:00
Johannes Schickel
bd067bffe9 Fixed bug while loading savegame.
svn-id: r31754
2008-04-27 14:33:03 +00:00
Johannes Schickel
77bae01195 - Fixed bug in itemInventoryMagic
- Fixed original game bug when creating item 7 (Bent nail-on-a-string), now it should award points when creating it with scene item and also in french version when creating it in inventory

svn-id: r31753
2008-04-27 14:03:51 +00:00
Johannes Schickel
7eef01cec4 Moved newShape code to sequences_v3.cpp
svn-id: r31752
2008-04-27 12:40:56 +00:00
Johannes Schickel
1aac349da4 Implemented KyraEngine_v3::eelScript.
svn-id: r31751
2008-04-27 12:39:16 +00:00
Sven Hesse
ab1a3b0cc8 Implemented support for VMDs substituting object animations.
Still far from being complete (and correct), but it's a start...

- Only VMD "command" -3 is followed
- Not all animation types are working
- Timing is still off in most cases
- Offsets are generally OK, but not always
- No sound yet
- Shouldn't segfault randomly, but I'm not entirely sure ;)

svn-id: r31750
2008-04-27 03:19:19 +00:00
Johannes Schickel
1d167da633 - Implemented opcodes
-> 57: o3_makeSecondChanceSave
  -> 98: o3_setDeathHandler
- Made game automatically reload second chance save on death for now

svn-id: r31749
2008-04-27 00:50:13 +00:00
Johannes Schickel
d49dd4e2fa Renamed some kyra3 variables to match kyra2/kyra1 names.
svn-id: r31748
2008-04-27 00:42:17 +00:00
Johannes Schickel
78ee2e449e Implemented (quick-)save/load support for kyra3.
svn-id: r31747
2008-04-27 00:38:01 +00:00
Johannes Schickel
f6e622e303 Cleanup.
svn-id: r31745
2008-04-26 23:43:12 +00:00
Johannes Schickel
9b3edffa8d Implemented opcodes:
- 74: o3_setSceneAnimPosAndFrame
 - 81: o3_switchScene

svn-id: r31744
2008-04-26 23:26:47 +00:00
Johannes Schickel
567c731235 Added code to play VQA files when entering new scenes.
svn-id: r31743
2008-04-26 23:01:06 +00:00
Johannes Schickel
c0f4b3faa7 - load new tlk file on chapter change
- added warning when trying to play non-existent soundfile

svn-id: r31742
2008-04-26 22:53:00 +00:00
Johannes Schickel
b179320edf Implemented opcode 34: o3_resetInventory.
svn-id: r31741
2008-04-26 22:33:07 +00:00
Johannes Schickel
99307976d5 Finished o3_delay implementation.
svn-id: r31740
2008-04-26 22:30:55 +00:00
Johannes Schickel
dd98898a23 Implemented opcodes:
- 78: o3_disableInventory
 - 79: o3_enableInventory

svn-id: r31739
2008-04-26 22:29:27 +00:00
Johannes Schickel
71f4dee9ae Implemented opcode 129 o3_chapterChange.
svn-id: r31738
2008-04-26 22:22:21 +00:00
Johannes Schickel
6ed2d9c287 Implemented opcodes:
- 26: o3_setInventorySlot
 - 27: o3_getInventorySlot
 - 28: o3_addItemToInventory

svn-id: r31737
2008-04-26 22:13:19 +00:00
Johannes Schickel
fa208a4386 - Implemented support for jesters staff, mood change and score displaying
- Fixed bug in KyraEngine_v3::loadMalcolmShapes

svn-id: r31736
2008-04-26 21:52:15 +00:00
Johannes Schickel
7eef295729 Added support for kyra3 inventory. (jesters staff not supported yet)
svn-id: r31735
2008-04-26 21:08:47 +00:00
Eugene Sandulenko
8c9311280f Fix Kanji rendering
svn-id: r31734
2008-04-26 20:33:59 +00:00
Johannes Schickel
2ae81f0096 Implemented opcodes:
- 76: o3_removeItemInstances
 - 94: o3_showSceneStringsMessage

svn-id: r31733
2008-04-26 19:00:22 +00:00
Johannes Schickel
3bde19a137 Fixed unitialized variable in Screen.
svn-id: r31732
2008-04-26 10:28:23 +00:00
Johannes Schickel
bba003e53a Fixed segfault when trying to start invalid gameid from command line.
svn-id: r31731
2008-04-26 10:21:53 +00:00
Johannes Schickel
61101b6dce Fixed kyra screen initialization.
svn-id: r31730
2008-04-26 10:15:54 +00:00
Jonathan Gray
0bb41c23ca Call _screen->Init(). Fixes segfaults when
trying to start via a command line.

svn-id: r31729
2008-04-26 09:52:17 +00:00
Florian Kagerer
13ef28215d minor drawShape() bug fix for Malcolm's shadow
svn-id: r31728
2008-04-25 22:38:40 +00:00
Johannes Schickel
7fb4a87c24 Implemented opcodes:
- 20: o3_setCharacterAnimFrameFromFacing
 - 61: o3_disguiseMalcolm

svn-id: r31727
2008-04-25 17:59:38 +00:00
Johannes Schickel
c10f59d358 Implemented opcodes:
- 152: o3_customChat
 - 153: o3_customChatFinish

svn-id: r31726
2008-04-25 17:43:40 +00:00
Johannes Schickel
2479b03fbf Implemented opcodes:
- 156: o3_disableTimer
 - 157: o3_enableTimer
 - 158: o3_setTimerCountdown

svn-id: r31725
2008-04-25 17:36:43 +00:00
Johannes Schickel
66518b5be0 Oops... fixes compiling.
svn-id: r31724
2008-04-25 16:09:30 +00:00
Johannes Schickel
3150313377 - Committed slightly modified patch #1951735 "kyra3: debugger and "give" command"
- Added some more commands to new kyra3 debugger
- Cleaned up some debugger code

svn-id: r31723
2008-04-25 16:02:20 +00:00
Johannes Schickel
671e475567 Implmented opcodes:
- 11: o3_getCharacterFrameFromFacing
 - 12: o3_setCharacterFacingOverwrite

svn-id: r31722
2008-04-25 15:46:07 +00:00
Johannes Schickel
425c874816 - Implemented opcodes:
-> 30: o3_addItemToCurScene
  -> 62: o3_drawSceneShape
- Fixed bug in KyraEngine_v3::exchangeMouseItem, fixes user input after combining items

svn-id: r31721
2008-04-25 15:41:06 +00:00
Johannes Schickel
fd5064b069 Renamed opcode 63 to o3_drawSceneShapeOnPage.
svn-id: r31720
2008-04-25 12:20:06 +00:00
Benjamin Haisch
3dc6263b17 Started work on text drawing code.
svn-id: r31719
2008-04-25 11:20:43 +00:00
Benjamin Haisch
134762be38 Fixed cmd_rand and cmd_randomize and some cleanup.
svn-id: r31718
2008-04-25 11:07:56 +00:00
Benjamin Haisch
5540ef2d67 Added FontResource type
svn-id: r31717
2008-04-25 11:05:56 +00:00
Benjamin Haisch
4bcf3ab823 (Poissbly) fixed sound glitches due to a non-implemented decoding variant.
svn-id: r31716
2008-04-25 11:02:37 +00:00
Filippos Karapetis
2172eee072 Center videos to screen
svn-id: r31715
2008-04-25 10:43:47 +00:00
Filippos Karapetis
9e0cd64629 Implemented cmd_rand() and cmd_randomize()
svn-id: r31714
2008-04-25 07:36:38 +00:00
Joost Peters
c622414022 add detection entry for 1.2 CD version.
the md5 of rtzcd.dat is identical to the existing entry, so no additional "unpacked" entry was added.

svn-id: r31713
2008-04-24 23:11:34 +00:00
Filippos Karapetis
673784e6ef Typo
svn-id: r31712
2008-04-24 23:07:22 +00:00
Filippos Karapetis
8b7486b5ca Implemented opcodes o1_DROPSHADOW, o1_TEXTCOLOR, o1_OUTLINE. Added some initial code for opcode o1_TEXTRECT
svn-id: r31711
2008-04-24 23:06:21 +00:00
Johannes Schickel
c05d16826d - implemented opcode 90: o3_getScore
- opcode 103 is yet another dummy opcode

svn-id: r31710
2008-04-24 21:48:04 +00:00
Johannes Schickel
a546869dac Implemented opcode temporary 4: o3t_setNewShapeFlag.
svn-id: r31709
2008-04-24 21:38:08 +00:00