Commit Graph
137148 Commits
Author SHA1 Message Date
NMIError 0f297559cd ULTIMA8/MIDI: Rename doNotAutoStartPlayback
Renamed doNotAutoStartPlayback to disableAutoStartPlayback for more consistency
in property naming.
2020-06-12 13:46:27 -05:00
NMIError ee4de6ebee ULTIMA8: Fix warnings when track has no branches
When a MIDI track was played that had no branch index points, the music player
would attempt to start the track at branch index 0 anyway, producing warnings
and then falling back to the start of the track.

This adds a check to see if there are any branches, and start the track at the
beginning if there aren't any. This gets rid of the warnings.
2020-06-12 13:46:27 -05:00
NMIError a24e3b2a4f MIDI: Add constant for number of tracks 2020-06-12 13:46:27 -05:00
NMIError 69032b4ee6 ULTIMA8: Add support for music starting points
The Ultima 8 music files define different positions for starting playback using
XMIDI sequence branches. This adds support for using these starting positions.

Because the XMIDI data must be read first to determine which starting points
are available, starting music playback has been split in two functions: load
and play. Between these two calls, the starting point can be selected.
2020-06-12 13:46:27 -05:00
NMIError f497753b21 MIDI: Add support for XMIDI sequence branch indexes
This adds support for the "sequence branch index" feature of the XMIDI format.
These "branches" (positions in the MIDI bytestream) are defined in the track
header. I've added two generic methods to the MidiParser interface to set the
current parsing position to one of these positions, or to check for the
existence of a position with a certain number (this is needed for Ultima 8).

Additionally, I've added an option to the MIDI parser to prevent the parser
from starting playback immediately after parsing, so that a starting position
(or a track) can be selected first. Playback can then be started with the new
startPlaying method.
2020-06-12 13:46:27 -05:00
djsrv 742c0d5b6d DIRECTOR: LINGO: Fix reading files with '\r' 2020-06-12 14:20:19 -04:00
djsrv 26d50d67f3 GUI: Ignore file extension case
The file browser was appending an extra extension if the case didn't
match.
2020-06-12 13:39:47 -04:00
djsrv c00e1199ad DIRECTOR: LINGO: Improve FileIO error handling 2020-06-12 13:36:27 -04:00
djsrv 61183fd300 DIRECTOR: JANITORIAL: Remove header dependencies 2020-06-12 12:21:31 -04:00
djsrv 68007b1dc2 DIRECTOR: Fix text cast loading 2020-06-12 11:14:09 -04:00
Nathanael Gentry d3434050bf DIRECTOR: Properly handle text cast background colour 2020-06-12 11:00:10 -04:00
djsrv 0fe3ab531d DIRECTOR: LINGO: Remove custom menu on restart 2020-06-12 10:50:17 -04:00
djsrv 51b37067ca GRAPHICS: MACGUI: Add removeMenu 2020-06-12 10:49:57 -04:00
djsrv d5d4e077ab DIRECTOR: LINGO: Allow loading shared casts' menus 2020-06-12 10:32:41 -04:00
Eugene Sandulenko e82ca330b9 DIRECTOR: TextCast palinfo is actually bgcolor.
TODO: Check for newer directors
2020-06-12 16:04:12 +02:00
djsrv 1c5edb6fb8 DIRECTOR: LINGO: Use load dialog for file append 2020-06-11 22:02:10 -04:00
Matthew Jimenez 36fb4493aa ULTIMA8: Hide modal menu gump and repaint screen during save for better screenshots in global load dialog 2020-06-11 18:21:46 -05:00
Eugene Sandulenko 215f077a8c DIRECTOR: LINGO: Narrowed down 'the <builtin> of <expr>' to D3- 2020-06-12 01:05:13 +02:00
Matthew Duggan 0b8711dd6a ULTIMA: Fix typo in commented-out detection table entry 2020-06-12 08:01:42 +09:00
Eugene Sandulenko 7180bede71 DIRECTOR: LINGO: Proper fix for 'the <builtin> of <expr>' 2020-06-12 00:50:26 +02:00
djsrv 60a4438309 DIRECTOR: LINGO: Fix FileIO append mode 2020-06-11 18:34:55 -04:00
djsrv 035633dc1f DIRECTOR: LINGO: Don't append extra .txt in FileIO 2020-06-11 18:34:54 -04:00
Eugene Sandulenko 55c58e1151 DIRECTOR: LINGO: Object references existed at least in D2 too 2020-06-11 23:46:31 +02:00
Eugene Sandulenko 1e22c02f49 DIRECTOR: LINGO: Added test for additional 'return' preprocessing 2020-06-11 23:46:31 +02:00
Eugene Sandulenko 3fdea5ceee DIRECTOR: LINGO: Enhanced preprocessor for 'return' 2020-06-11 23:46:31 +02:00
djsrv e2065feca7 DIRECTOR: LINGO: Keep menu callbacks on restart 2020-06-11 17:00:28 -04:00
BLooperZ 441e73bf58 SCUMM: do not reverse strings in HE 2020-06-11 21:10:30 +02:00
Roland van Laar e7b4b56742 GIT: gitignore compile_commands.json for VSCode 2020-06-11 20:31:44 +02:00
djsrv 98cdffaf74 DIRECTOR: LINGO: Run LINGO.INI if present 2020-06-11 14:17:02 -04:00
djsrv 8fc7f16d43 DIRECTOR: LINGO: Fix kTheDate and kTheTime version 2020-06-11 14:17:02 -04:00
Scott Percival 79168e1769 DIRECTOR: LINGO: Fix D4 event handler lookups 2020-06-12 01:30:17 +08:00
djsrv 34eb654106 DIRECTOR: LINGO: Keep shared cast scripts on goto
Shared casts' handlers should only be removed when switching to a movie
in a different directory.
2020-06-11 13:01:37 -04:00
djsrv d76e876e7a DIRECTOR: LINGO: Load shared cast with loadArchive 2020-06-11 12:02:47 -04:00
djsrv 7a3f2c452d DIRECTOR: LINGO: Write files as plaintext 2020-06-11 10:39:50 -04:00
Nathanael Gentry c3ebc87390 DIRECTOR: Set basic widget priority 2020-06-11 10:21:28 -04:00
Nathanael Gentry 83418686ee GRAPHICS: MACGUI: Implement basic priority handling 2020-06-11 10:20:17 -04:00
Nathanael Gentry 3131f2b532 DIRECTOR: Overload editableText and puppetSprite 2020-06-11 10:20:17 -04:00
Nathanael Gentry b8fb454867 DIRECTOR: LINGO: Begin implementing kTheField properties 2020-06-11 08:32:20 -04:00
Nathanael Gentry d70fed560d GRAPHICS: MACGUI: MacEditableText: Properly set MacText align 2020-06-11 08:32:20 -04:00
Eugene Sandulenko 00442a193c KINGDOM: Simplified drawHotSpot() 2020-06-11 10:55:28 +02:00
Eugene Sandulenko b7e878f0de KINGDOM: Got rid of global constructors 2020-06-11 10:53:00 +02:00
Eugene Sandulenko b54ba7c7e7 KINGDOM: Switched _finalFrameTable to byte for better readability 2020-06-11 10:28:26 +02:00
D G Turner 4adae15840 VIDEO: Fix Compiler Warnings in MVE Decoder 2020-06-11 01:59:53 +01:00
Paul Gilbert 0e244a6b3b GLK: COMPREHEND: Refactoring static methods into GameData class 2020-06-10 17:49:33 -07:00
Paul Gilbert e3cf51a868 GLK: COMPREHEND: Move static methods into ComprehendGame class 2020-06-10 17:49:33 -07:00
djsrv 5b31dad8fe Revert "DIRECTOR: LINGO: Don't destroy local vars"
This reverts commit 85077477c3.
I was mistaken - Local vars were working correctly, and this change just
caused more issues.
2020-06-10 19:23:26 -04:00
Eugene Sandulenko 2bcc7f2bc4 GRAPHICS: MACGUI: Optimize MacText::getTextChunk() 2020-06-11 01:04:08 +02:00
Eugene Sandulenko 10c2055faf DIRECTOR: LINGO: Do not crash during tests on 'set the stageColor' 2020-06-11 00:59:56 +02:00
Strangerke 4fc151caf1 KINGDOM: Add finalFrameTable to better match the original, rename enAll and dsAll, add some comment in the Help screen 2020-06-10 23:24:00 +01:00
djsrv efebd805ba DIRECTOR: LINGO: Fix b_installMenu
Menu items were associated with the wrong actions before.
2020-06-10 17:24:28 -04:00