111744 Commits

Author SHA1 Message Date
Filippos Karapetis
85b8806ca8 STARTREK: More work on bridge sequences
Also, unify the Common::String types
2020-12-21 03:13:56 +02:00
Filippos Karapetis
d0253df616 STARTREK: Fix type check 2020-12-21 03:13:56 +02:00
VAN-Gluon
f316e4430c I18N: Update translation (Japanese)
Currently translated at 53.4% (857 of 1603 strings)
2020-12-20 22:00:58 +00:00
antoniou79
05b42faab4 BLADERUNNER: Additional subtitles fix for accented characters 2020-12-20 22:36:36 +02:00
sluicebox
b205bc0e8a SCI: Add missing newlines to console output 2020-12-20 12:09:06 -08:00
Paul Gilbert
2c7d2f135b GLK: GLULX: Mark games for testing 2020-12-20 11:10:00 -08:00
Paul Gilbert
0c6c8274b4 GLK: COMPREHEND: Mark complete games for testing 2020-12-20 11:10:00 -08:00
Paul Gilbert
3cd57d537c GLK: COMPREHEND: Fix size of parsed words array 2020-12-20 11:10:00 -08:00
antoniou79
b48ffe374d BLADERUNNER: Fix missing accented glyphs from subtitles
This was introduced by the use of U32String. The default codepage (utf8) was not suitable.
2020-12-20 19:25:18 +02:00
antoniou79
8a18f0afd8 BLADERUNNER: Tweak timing of some VK questions 2020-12-20 19:25:18 +02:00
Le Philousophe
9419d3d6d1 HADESCH: Mark the engine as C++11 dependent
Aggregate initialization for classes with constructor requires C++11
2020-12-20 17:14:28 +01:00
antoniou79
45448f93da BLADERUNNER: Fix for when talking characters get interrupted 2020-12-20 18:10:08 +02:00
Eugene Sandulenko
074b558e16 STARTREK: Attempt to fix compilation 2020-12-20 17:00:09 +01:00
Eugene Sandulenko
c4111c9e32 STARTREK: Fix checking for the modifier keys 2020-12-20 16:50:38 +01:00
Filippos Karapetis
af09a8bbfd STARTREK: Whitespace fixes 2020-12-20 16:57:04 +02:00
Filippos Karapetis
7f09ab5868 STARTREK: More bridge actions functionality 2020-12-20 16:53:53 +02:00
Filippos Karapetis
1cd061fa00 STARTREK: Always return a value in leftClickEvent() 2020-12-20 16:53:53 +02:00
Filippos Karapetis
e46e7e022b STARTREK: Fix action type 2020-12-20 16:53:53 +02:00
antoniou79
c3fe087fa3 BLADERUNNER: Fix rogue hotspot in UG12
A chair from another scene was somewhere in the background
2020-12-20 16:07:52 +02:00
sluicebox
4ecfa0c217 SCI: Implement SCI 1.1 view scaling algorithm
Replaces a home-made scaling algorithm with Sierra's algorithm.
Views should now be scaled the same as in the original interpreter.
Discrepancies were particularly noticeable when scaling down.

Examples:
ego in KQ6 after entering room 210 from 240.
ego in LSL6 after entering room 860 from 230.
2020-12-19 22:31:38 -08:00
Matthew Duggan
f9b14adc62 ULTIMA8: Correct the way typeflags are used
For both U8 and Crusader, load and use "animSpeed" bits.  Finally everything
animates at the right speed in both games!
2020-12-20 09:35:32 +09:00
Matthew Duggan
280c103bc5 ULTIMA8: Enable crusader firing from animation flags 2020-12-20 09:35:32 +09:00
Matthew Duggan
fe32fcf596 ULTIMA8: Apply crusader anim rotation flag 2020-12-20 09:35:32 +09:00
Matthew Duggan
fa9694739f ULTIMA8: Animation cleanups
From reading through the AnimPrimitive disassemblies for U8 and Crusader
side-by-side.
2020-12-20 09:35:32 +09:00
Matthew Duggan
d1992cb52c ULTIMA8: Improve comments in Process 2020-12-20 09:35:32 +09:00
Matthew Duggan
2647bfd0a8 ULTIMA8: Ignore 'combat' music in Cruader 2020-12-20 09:35:32 +09:00
Matthew Duggan
28d9667a9e ULTIMA8: Remove misleading/incorrect comment 2020-12-20 09:35:32 +09:00
Matthew Duggan
90064583b2 ULTIMA8: Add original CD game variant
Provided by ddeluca1com (bug #11944)
2020-12-20 09:35:32 +09:00
Matthew Duggan
f3cd1452a4 ULTIMA8: Note what 2 more engine functions do 2020-12-20 09:35:32 +09:00
Matthew Duggan
69f5a76100 ULTIMA8: Small cleanups of unused code in RemorseMenuGump 2020-12-20 09:35:32 +09:00
Vladimir Serbinenko
b76576abd4 STARTREK: Specify that action is signed char
x86 uses signed chars but this is architecture-dependent and on arm it's
unsigned and leads to compilation failure
2020-12-19 23:23:19 +02:00
antoniou79
0bc1586bcc BLADERUNNER: RESTOREDCONTENT: Quote about fake McCoy on photo 2020-12-19 23:10:36 +02:00
Filippos Karapetis
8947282344 STARTREK: More bridge sequence functions. Start implementing beaming up 2020-12-19 22:06:09 +02:00
athrxx
d3dc9d2276 KYRA: fix gcc warnings 2020-12-19 03:16:47 +01:00
Alexander Miller
34e8ecb492 KYRA: Name variables/methods for rhythm section volume
Rename updateCallback51(), updateCallback52(), and updateCallback53()
to update_setRhythmLevel2(), update_changeRhythmLevel1(), and
update_setRhythmLevel1(), respectively. Name the variables
_unkValue6, _unkValue7, _unkValue8, _unkValue9, _unkValue10,
_unkValue11, _unkValue12, _unkValue13, _unkValue14, _unkValue15,
_unkValue16, _unkValue17, _unkValue18, _unkValue19, _unkValue20
that hold volume levels for the rhythm instruments.

Note that while update_setRhythmLevel1() behaves as expected (it
sets ExtraLevel1 for a subset of the rhythm intruments and updates
the total level in the OPL chip to the sum of the 3 driver levels)
the other two methods look a bit unusual: update_setRhythmLevel2()
changes ExtraLevel2, but then adds the new value _twice_ to the
total level, and update_changeRhythmLevel1() increases the total
level and stores the new total in ExtraLevel1.
2020-12-19 03:15:35 +01:00
Alexander Miller
4dde8d433d KYRA: Rename updateCallback39() -> update_changeNoteRandomly()
The method adds a random number of selectable magnitude to the
current octave and/or F-number. (The "note on" status is preserved
unless the octave field overflows.) Rename the method and clean up
its code.
2020-12-19 03:15:35 +01:00
Alexander Miller
401f1705d3 KYRA: Rename updateCallback38() -> update_clearChannel()
The method stops the channel's program and silences the channel.
2020-12-19 03:15:35 +01:00
Alexander Miller
4c43e996b3 KYRA: Name unknowns used to synchronize channels with a beat
Name methods updateCallback23() and updateCallback24() as well as
variables _unkValue1, _unkValue2, _unkValue4, and _unkValue5. These
can be used to set up a divider for a global "beat" counter and wait
for the rising edge of a counter bit, respectively. Add comments to
describe the functionality.
2020-12-19 03:15:35 +01:00
Alexander Miller
c481f9fb47 KYRA: Name channel fields used for secondaryEffect1()
Rename unk18, unk19, unk20, unk21, unk22, and offset to indicate
their purpose and that they are related to secondaryEffect1().

The method itself is not renamed since I don't have a good name
for it. It modulates an instrument parameter register with data
read from a chunk of the _soundData[] buffer. Once we have a good
name for it, the variable names should be shortened, too.
2020-12-19 03:15:35 +01:00
Alexander Miller
7773c01ee8 KYRA: Rename unkOutput2() to initAdlibChannel() 2020-12-19 03:15:35 +01:00
Alexander Miller
189ee12cec KYRA: Clear program queue (non-trivial type) without memset 2020-12-19 03:15:35 +01:00
Alexander Miller
7124ea9b38 KYRA: Rename methods/variables for vibrato (primaryEffect2)
Rename primaryEffect2() to primaryEffectVibrato() (related update
callbacks likewise). Name the channel fields unk32, unk33, unk34,
unk35, unk36, unk37, unk38, and unk41 that are used to control
this effect and some local variables in the affected methods.
Update related comments.
2020-12-19 03:15:35 +01:00
Alexander Miller
5b669f11a8 KYRA: Name unknowns and method for frequency slide effect
Rename primaryEffect1() to primaryEffectSlide() to indicate it's
a frequency slide effect. Also rename for the related update
callbacks accordingly. Name the channel fields unk29, unk30, unk31
used for this effect. Use proper names for primaryEffectSlide()'s
local variables and clarify code a bit.
2020-12-19 03:15:35 +01:00
Alexander Miller
78cde14dc9 KYRA: Limit octave to valid range in setupNote() 2020-12-19 03:15:35 +01:00
Alexander Miller
c50cf51f5e KYRA: One more missed check in update_setupProgram() 2020-12-19 03:15:35 +01:00
Alexander Miller
0726a93a30 KYRA: Minor code cleanups in AdLib driver
* Replace some conditional code with CLIP().

* Replace a bunch of 0 with nullptr.

* Change control structures in a few places to make code shorter
  and easier to read; reduces nesting level. No functional change.

* Make Channel::unk30 signed and remove local alias unk3 in
  primaryEffect1(). Likewise for Channel::unk37 and unk1 in
  primaryEffect2(); use - operator to replace bit twiddling.

* Get rid of setupParserOpcodeTable(). Make the table and its size
  static const members. Add _unkTable2Size and use it instead of
  hardcoded number. (Note that the size members wouldn't be necessary
  at all if the tables were defined earlier.)
2020-12-19 03:15:35 +01:00
Filippos Karapetis
1c5be741a2 CREDITS: Added/updated myself 2020-12-19 02:06:44 +02:00
Filippos Karapetis
fc8b185197 STARTREK: Slight cleanup 2020-12-19 01:56:08 +02:00
Filippos Karapetis
de20df5ccc STARTREK: Add some planet data, and add mission performance sequences 2020-12-19 01:50:40 +02:00
Filippos Karapetis
4a6828f305 STARTREK: Change type in addAction to be signed
One more change due to the usage of negative action terminators
2020-12-19 01:50:40 +02:00