17800 Commits

Author SHA1 Message Date
Filippos Karapetis
f17a9f9fb0 SCI: Changed consecutive ifs to a switch
A table would be better, but the switch will do for now

svn-id: r52543
2010-09-05 11:30:40 +00:00
Filippos Karapetis
047979b409 SCI: Fix for alignment exception issue, reported by Bluddy
svn-id: r52542
2010-09-05 11:10:49 +00:00
Filippos Karapetis
913f39da19 SCI: Some cleanup of the static selector code
- Added more static selectors, for debugging
- Added some needed selectors for the non-interactive demo of Pepper

svn-id: r52541
2010-09-05 10:59:44 +00:00
Filippos Karapetis
7dcb19e41b SCI: Added a workaround for the non-interactive demo of Pepper
svn-id: r52540
2010-09-05 10:55:25 +00:00
Filippos Karapetis
16bed50469 SCI: Fixed script bug #3059544 - "KQ6CD: Error when looking at rotten tomato"
svn-id: r52539
2010-09-05 09:27:41 +00:00
Matthew Hoops
34f570419a MOHAWK: Cleanup
- Split the main Riven event loop into a separate function for readability and for use in the sunner external functions eventually
- Some minor function signature changes (const!)
- Rename matchVarToString() to getVar() (I have no idea where that original name came from, considering it takes a string and returns a variable
- Use solely Common::String in getVar()

svn-id: r52538
2010-09-05 00:48:38 +00:00
Matthew Hoops
aa5cd3e682 MOHAWK: Ignore invalid Riven hotspots again
There is at least one example of a bad hotspot in Riven (tspit 
371 (377 in the DVD version), hotspot 4). This particular hotspot is a zip hotspot which looks like it has its left and right coordinates reversed. However, the zip hotspot would only take the player to the same card as the non zip hotspot so it seems they removed this hotspot with a hack. This fixes a regression from r52487.

svn-id: r52532
2010-09-04 21:43:16 +00:00
Martin Kiewitz
e55c928075 SCI: kDoBresen changes for sci1early+
including change to compare dest and current position directly, otherwise we would trigger ::moveDone one cycle too late in case the current move completed - fixes lsl5 patti upside down bug #3059336 and lb2cd (cd only!) laura bow getting transformed into a boiler-flame (bug #3050602) - lsl5 was not a real regression, the timing of previous kDoBresen way just off, so it didn't happen in that scene, but happened in lb2cd

svn-id: r52531
2010-09-04 18:23:37 +00:00
Eugene Sandulenko
3972091734 SCUMM: Patch #3059327
Patch #3059327: "Remove untrue "not yet implemented" from inventory controls"

svn-id: r52530
2010-09-04 18:03:35 +00:00
Johannes Schickel
8733cdb900 HUGO: Formatting.
svn-id: r52529
2010-09-04 17:30:39 +00:00
Torbjörn Andersson
871064b3c7 HUGO: Add destructor to Scheduler class
GCC complained, and I think this is what it wanted.

svn-id: r52528
2010-09-04 17:22:27 +00:00
Filippos Karapetis
3daf588e08 SCI: Janitorial - fixed spaces and typos
svn-id: r52527
2010-09-04 17:16:41 +00:00
Filippos Karapetis
98f36800e3 SCI: Added another version of Hoyle 3 (bug report #3038837)
svn-id: r52526
2010-09-04 17:10:27 +00:00
Arnaud Boutonné
a29ae44296 HUGO: Fix decryption in H2 DOS, plus some cleanup
svn-id: r52525
2010-09-04 16:02:16 +00:00
Filippos Karapetis
34195238bb SCI: Don't try to initialize non-existent scripts, error out instead
(Invalid scripts may be requested to be loaded when warping to an incorrect room)

svn-id: r52524
2010-09-04 15:38:24 +00:00
Filippos Karapetis
8a93da0516 SCI: Updated comment concerning kCantBeHere and removed a wrong check for Hoyle 3
svn-id: r52523
2010-09-04 14:46:29 +00:00
Martin Kiewitz
7836bb87fd SCI: fixing typo in kDoAvoider
svn-id: r52520
2010-09-04 11:27:03 +00:00
Martin Kiewitz
e7f834e103 SCI: delete on textedit control now checks string
svn-id: r52518
2010-09-04 10:39:22 +00:00
Martin Kiewitz
afada2b60d SCI: fixing comment
svn-id: r52517
2010-09-04 09:58:37 +00:00
Filippos Karapetis
c34cec4e15 SCI: Fixed bug #3037595 - "KQ4: Crash reading message in the bottle (whale mouth)"
svn-id: r52516
2010-09-04 09:41:39 +00:00
Martin Kiewitz
f95a2ac499 SCI: removing non-sierra sci code in kDirLoop
svn-id: r52515
2010-09-04 09:20:38 +00:00
Martin Kiewitz
89d4e44281 SCI: doing detectDoSoundType() properly sci0early
checking, if sound resources are sci0early or late for sci0early games instead of hardcoding lsl2

svn-id: r52514
2010-09-04 08:51:10 +00:00
Martin Kiewitz
92c3a4b5aa SCI: lsl2 early uses sci0late sound
fixes bug #3037012 and lsl2 now has music everywhere

svn-id: r52513
2010-09-04 08:28:53 +00:00
Martin Kiewitz
acc294c7a8 SCI: properly reversed kDoAvoider
getAngle()-code is missing though. Still fixes lsl2early hang on airport (bug #3037036), fixes kq4early unicorn doing moonwalk (kq4late still works as well)

svn-id: r52512
2010-09-04 07:29:27 +00:00
Filippos Karapetis
976458058d SCI: Fixed bug #3058865 - "Jones in the Fast Lane CD: Graphics Missing"
svn-id: r52511
2010-09-03 22:51:27 +00:00
Martin Kiewitz
e4c07925ec SCI: kDirLoop freshly reversed
svn-id: r52510
2010-09-03 22:15:08 +00:00
Matthew Hoops
8a168f028b MOHAWK: Improve support for the Riven Demo
- The exit button now appears and is functional
- The intro movies now play on start up
- Add shortcuts for returning to the menu/playing the intro videos again
- Make the text when hitting a boundary match the original
- Change the wording of the browser button message
- Note: The demo's extras.mhk (not the full game's!) is required now

svn-id: r52509
2010-09-03 19:13:58 +00:00
Martin Kiewitz
87b78b1673 SCI: kClone/kDisposeClone behaviour more accurate
now also checking -info- selector, if object is supposed to get freed. Fixes kq4 early hanging (in intro, when opening door, etc.)

svn-id: r52508
2010-09-03 18:14:59 +00:00
Martin Kiewitz
b7a2fd899e SCI: adding mother goose title
svn-id: r52507
2010-09-03 17:49:22 +00:00
Filippos Karapetis
f78b4b9f85 SCI: Added a warning when using GM with SCI1 games
The MT-32 <-> GM mapping has only been worked on for
SCI0/SCI01 games. Throw a warning when the user
chooses GM in a SCI1 game, and there is no after
market GM support from Sierra for this game

svn-id: r52505
2010-09-03 12:42:35 +00:00
Filippos Karapetis
ace4477041 SCI: Rewrote the game name IDs of the Mt32MemoryTimbreMaps array to be like the game IDs we use
svn-id: r52504
2010-09-03 08:46:07 +00:00
Filippos Karapetis
d87fa1c890 SCI: Show a warning window regarding GM in some games.
Sierra has released a patch adding after market General MIDI support for 8 SCI1
games (LSL1, LSL5, Hoyle 3, SQ1, SQ4, Eco1 floppy, Longbow and Fairy Tales). If
the user has selected the General MIDI music driver in one of these games and
no associated MIDI patch is found, show an informational dialog on game startup
in order to inform the user to download Sierra's MIDI patch, together with some
short instructions.

svn-id: r52500
2010-09-02 21:50:00 +00:00
Filippos Karapetis
2f88eec713 SCI: Fixed compilation when VM_DEBUG_SEND is enabled
svn-id: r52498
2010-09-02 18:58:25 +00:00
Filippos Karapetis
a816a27928 SCI: Added a FIXME for bug #3038870, related to kParse()
svn-id: r52497
2010-09-02 13:50:49 +00:00
Arnaud Boutonné
21a09427de HUGO: Cleanup and fix mouse pointer issue
- Suppress commented code
- Suppress readConfig() and writeConfig()
- Fix the disappearing mouse issue

svn-id: r52495
2010-09-02 12:50:10 +00:00
Arnaud Boutonné
e284852b64 HUGO: Fix warnings
svn-id: r52494
2010-09-02 11:43:00 +00:00
Arnaud Boutonné
d74e82fe7f HUGO: Fix loading of config file during game init
Add a check on CONFIG.DAT size in order to avoid loading crap into 
the _config structure during the initialization of the engine.
The game no longer starts in turbo & mute mode

svn-id: r52493
2010-09-02 10:52:29 +00:00
Martin Kiewitz
82f138b728 SCI: fixing debug output for bpx
svn-id: r52491
2010-09-02 10:21:20 +00:00
Martin Kiewitz
cf3289ee3f SCI: adding "bpr" and "bpw" debug commands
"bpr" breakpoint on reading of selectors
"bpw" breakpoint of writing of selectors
"bpx" is now breakpoint on executing of selectors only

svn-id: r52490
2010-09-02 09:05:08 +00:00
Torbjörn Andersson
9324a80d93 JANITORIAL: Remove extra semi-colons.
svn-id: r52489
2010-09-02 05:12:07 +00:00
Matthew Hoops
1475f75653 MOHAWK: Update videos when the delay opcode is called
The fixes a couple scripts which decide to delay through a background video turning into a virtual blocking video.

svn-id: r52488
2010-09-01 23:39:25 +00:00
Matthew Hoops
a053ef7cd1 MOHAWK: Cleanup mouse cursor position handling in Riven
This fixes some cursors showing up incorrectly if the cursor moved during ie. a video and then the card changes. Also, remove an unneeded rect check in loadHotspots() that's from the ancient times before script size calculation was fixed and some warnings that don't affect gameplay.

svn-id: r52487
2010-09-01 23:22:12 +00:00
Arnaud Boutonné
ca74eb3e8b HUGO: Fix labyrinth bug in Hugo 2 for Windows
svn-id: r52485
2010-09-01 22:11:01 +00:00
Martin Kiewitz
64313cd7f1 SCI: set master volume correctly
and merge it together with global volume, fixes bug #3053104)

svn-id: r52484
2010-09-01 19:20:17 +00:00
Matthew Hoops
649e275ca6 MOHAWK: Implement xbookclick
It is now possible to trap Gehn in the trap book. Side note: Riven is now completable from the beginning provided you know the D'ni number system already (and the marble puzzle is just hacked to always work).

svn-id: r52482
2010-09-01 13:28:12 +00:00
Martin Kiewitz
81eb3cfba1 SCI: disable dialog replacement for jones
fixes odd crash right at the start, although you can't save/restore in jones o_O (fixes bug #3057080)

svn-id: r52479
2010-09-01 09:48:00 +00:00
Filippos Karapetis
5666df7b38 SCI: Added the Italian version of QFG3 (bug #3053457)
svn-id: r52478
2010-08-31 21:22:52 +00:00
Filippos Karapetis
7dffcf43c2 SCI: Added a workaround for bug #3056811 - "SQ5: Game crashes while playing "Battle Cruiser""
svn-id: r52477
2010-08-31 21:18:20 +00:00
Matthew Hoops
cfbbc3928a MOHAWK: Implement functionality for the dome sliders
The sliders are now movable and reset properly. The combination defined in the lab journal works on all the domes too.

svn-id: r52476
2010-08-31 20:05:00 +00:00
Martin Kiewitz
fa7c6a9969 SCI: adding workaround for platform-specific
incompatibility with some sierra games. Some games open a new menu, set mouse cursor within that menu and expect the mouse cursor to be in there and will close it, if it's outside. In case of Wiimote/touch interfaces this logic won't work of course. Fixes island of dr. brain and QfG1VGA on Wii and touch-interface platforms

svn-id: r52474
2010-08-31 15:50:46 +00:00