Commit Graph
137148 Commits
Author SHA1 Message Date
Roland van Laar 0c0863ce42 DIRECTOR: LINGO: Add floats and ints to proparrays
Implement the use of integers and floats as keys in property arrays.
Property arrays in lingo use the following syntax: [#a: "text"].
They are better known as HashMaps in CPP.

It resolves a bug in Star Trek Omnipedia which uses integers for keys.

- Includes lingo tests.
2022-09-14 21:50:53 +02:00
ScummVM-Translations 0bc697296a I18N: Update translations templates 2022-09-14 15:25:59 +00:00
athrxx e8542d8cb6 SCUMM: reset audio cd settings at startup
(the audio cd manager is a global object, so it may start
up in SCUMM with wrong values)
2022-09-14 17:18:28 +02:00
athrxx 7c5b367b54 AUDIO: (FM-TOWNS) - restore audio cd settings on exit
(The cd audio manager is a global object. It keeps its settings
when returning to the launcher)
2022-09-14 17:18:24 +02:00
Roland van Laar 1d88dabd70 DIRECTOR: fix crash when stxtsid isn't available
Check if the the key requested from loadedStxts is available before
getting the value.

Star Trek Omnipedia requests stxt id 5, which isn't loaded.
Resolves: https://bugs.scummvm.org/ticket/13341
2022-09-14 12:20:37 +02:00
sluicebox 73da3458ba SCI32: Fix QFG4 scripts that consume extra projectiles
Fixes bug #13823
2022-09-13 22:17:33 -08:00
sluicebox aef56199cf SCI: Remove unused code from soundcmd.h 2022-09-13 22:17:05 -08:00
Misty De Meo eeb924bcf6 AD: add data to grayList 2022-09-13 17:41:42 -07:00
Misty De Meo 13b37c4b13 DIRECTOR: add macintosho20 2022-09-13 16:03:15 -07:00
ScummVM-Translations be4f4a7da2 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2022-09-13 21:19:15 +00:00
Scott Percival b8bff29967 DIRECTOR: Revert use of detection code 2022-09-13 23:19:00 +02:00
ScummVM-Translations 41b81b5926 I18N: Update translations templates 2022-09-13 20:14:25 +00:00
athrxx e052fee77f SCUMM: (IMS) - cleanup sound init process
Reduce abuse of the property function to set init vars.
Better distinction between drivers to prevent a GM init on
the Mac driver (which could happen depending on the
launcher sound setting).
2022-09-13 22:13:53 +02:00
athrxx f5bfc7b60a SCUMM: (IMS) - improve transpose precision
(I have checked some more drivers. It seems that the AdLib and PC Speaker
drivers of the earlier games have larger boundaries, the MT-32 drivers have
smaller ones)
2022-09-13 22:13:43 +02:00
Roland van Laar 1445230bc9 DIRECTOR: LINGO: XOBJ: fix uninitialized variable 2022-09-12 21:54:51 +02:00
ScummVM-Translations 6afa46cc70 I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2022-09-12 13:52:33 +00:00
Scott Percival d3a2931285 DIRECTOR: Tidy up debugger based on feedback 2022-09-12 15:52:18 +02:00
Scott Percival b8155408f2 DIRECTOR: Add warning for unhandled Datum::reset() 2022-09-12 15:52:18 +02:00
Scott Percival c8ccf0e688 DIRECTOR: Add scriptframe command for debugger 2022-09-12 15:52:18 +02:00
Scott Percival 6876849f97 DIRECTOR: Add step, finish and next commands for debugger 2022-09-12 15:52:18 +02:00
Scott Percival 05c8119220 DIRECTOR: Start implementing Lingo debugger console 2022-09-12 15:52:18 +02:00
Scott Percival 3a096e60c3 DIRECTOR: Add version function to debugger 2022-09-12 15:52:18 +02:00
Scott Percival e460102c77 DIRECTOR: Simplify D3 palette-loading code
Fixes Invictus logo animation in Alice: An Interactive Museum.
2022-09-12 15:52:18 +02:00
Scott Percival cb0455e34d DIRECTOR: Fix audio loop use-after-free 2022-09-12 15:52:18 +02:00
Scott Percival 533dd7c78f DIRECTOR: Fix searching for files in subdirectories
Fixes regression introduced in 0c09bba0f6

Fixes resource detection in Total Distortion.
2022-09-12 15:52:18 +02:00
Scott Percival af0dd7abe1 DIRECTOR: Pass mutable reference to Cast::loadPaletteData()
Fixes regression introduced in 411395565b
2022-09-12 15:52:18 +02:00
Scott Percival 9e17e5aa85 DIRECTOR: Plug memory leak 2022-09-12 15:52:18 +02:00
Scott Percival c7efa10493 DIRECTOR: Fix loading defaultPalette from config block
Fixes regression introduced in e4f1471aa9
2022-09-12 15:52:18 +02:00
Scott Percival e750f05fe4 DIRECTOR: Don't erase _composeSurface after movie change
Fixes the scene transitions in the Spaceship Warlock trailer.
2022-09-12 15:52:18 +02:00
Scott Percival 54ff429191 DIRECTOR: Improve playback speed for all dissolve transitions 2022-09-12 15:52:18 +02:00
Scott Percival f1db87e6d4 DIRECTOR: Improve dissolvePatternsTrans playback speed 2022-09-12 15:52:18 +02:00
Scott Percival 7e412f1278 DIRECTOR: Use default palette in Score::startPlay()
Switching to a new movie should force a switch to the default palette if
required, and not assume the palette in use is correct.

Fixes the palette tinting after being reincarnated in Eastern Mind.
2022-09-12 15:52:18 +02:00
Scott Percival b572de94a4 DIRECTOR: Hardcode white and black in Channel::getPlotData()
Blit operations in Director expect that the "white" and "black" color
indexes are at 255 and 0, respectively. Fetching these values from
the window manager is not reliable when the palette has multiple
indexes sharing a color (e.g. blackPalette and whitePalette), which will
mean the applyColor flag is incorrectly set to true when foreColor and
backColor are the correct values.

Fixes fade from white when entering the door to the Land of Desire in
Eastern Mind.
2022-09-12 15:52:18 +02:00
Scott Percival 59fbdf7558 DIRECTOR: Don't override sprite parameters for shapes
Fixes various blue rectangles in Eastern Mind and Total Distortion.
2022-09-12 15:52:18 +02:00
Scott Percival 8f88c8a19a DIRECTOR: Make Lingo::setTheSprite coerce sprite IDs
Fixes parts not hiding after being selected on the face
selection screen in Eastern Mind.
2022-09-12 15:52:18 +02:00
Scott Percival 7de1d320a0 DIRECTOR: Add more palette transition modes 2022-09-12 15:52:18 +02:00
Scott Percival 076423de8a DIRECTOR: Implement color cycling 2022-09-12 15:52:18 +02:00
Scott Percival 7fc407bc4b DIRECTOR: Plug more memory leaks 2022-09-12 15:52:18 +02:00
Scott Percival 756cfdd27d DIRECTOR: Make DirectorEngine copy palettes on use
This is going to be the basis for the palette-cycling effects.
2022-09-12 15:52:18 +02:00
Scott Percival 9163b939c4 DIRECTOR: Improve Frame::readChannels() logging 2022-09-12 15:52:18 +02:00
Scott Percival 7d4a89367e DIRECTOR: Improve transitions layer
- Transitions now appear in the debug log, including parameters and
  timing.
- Most transitions would calculate a fixed number of steps, then work
  backwards to figure out the framerate required to fit the duration.
  This approach didn't work for shorter durations, as the delay required
  for the number of steps would drag out the duration. This has been
  fixed by introducing a floor to the number of steps, so that the
  framerate is no higher than 60fps.
- Multi-pass transitions were previously calling stepTransition() on
  every blit; this would effectively redraw the entire screen ~96 times
  a step and blow out the draw time to ~44 seconds. stepTransition() is
  now called once per step.
- Blind transitions now cover the full range.
- kTransDissolveBoxySquares and kTransDissolveBoxyRects were swapped.
- kTransDissolveBoxyRects now adjusts for the viewport aspect ratio.
2022-09-12 15:52:18 +02:00
Scott Percival 671d3116ea DIRECTOR: Add palette shifting code for transitions
Fixes transitions in Lost Mind of Dr. Brain demo.
2022-09-12 15:52:18 +02:00
Scott Percival 0e847c42bd DIRECTOR: LINGO: Limit sound updates in b_updateStage()
Previously it was possible for a Lingo script to stop a score sound channel,
then call updateStage, which would immediately start it again. To fix
this, updateStage() will now only update puppet sounds.

Fixes the sound playback when going from the map to the exit screen in
Chop Suey.
2022-09-12 15:52:18 +02:00
Scott Percival fcfa9652e3 DIRECTOR: Add Lost Mind of Dr. Brain demo detection entry 2022-09-12 15:52:18 +02:00
ScummVM-Translations 8a087cec9c I18N: Update translations templates 2022-09-12 04:50:38 +00:00
ScummVM-Translations 458b7dbc0a I18N: Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: ScummVM/scummvm
Translate-URL: https://translations.scummvm.org/projects/scummvm/scummvm/
2022-09-12 04:50:36 +00:00
Die4Ever 4b9cefef2c GROOVIE: UHP Beta detection entry (#4264)
suggested by realisticrain on Discord
2022-09-11 23:50:23 -05:00
ScummVM-Translations 0c1d86f7b5 I18N: Update translations templates 2022-09-11 22:38:34 +00:00
Walter Agazzi 832176cb16 GROOVIE: Update detection for ENG version, add RUS version 2022-09-11 17:38:24 -05:00
Paweł Kołodziejski fddfc47e5b WINTERMUTE: Fixed AmigaOS4 compilation 2022-09-11 23:51:05 +02:00