378 Commits

Author SHA1 Message Date
D G Turner
eac50757db STARTREK: Fix Bug in text Command of Debug Console
This was incorrectly passing a single character, rather than a pointer
for the string.
2021-03-27 02:53:00 +00:00
D G Turner
804ea64f31 STARTREK: Fix GCC Warning for Implicit Copy Operator
This is emitted when -Wdeprecated-copy is enabled.
2021-03-27 02:31:45 +00:00
D G Turner
6769b2b93b STARTREK: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-22 13:51:16 +00:00
Filippos Karapetis
ff6ed65844 STARTREK: Convert more room texts to the new format 2021-02-21 14:34:57 +02:00
Filippos Karapetis
2d6b182487 STARTREK: Re-implement shared functionality in the LOVE mission 2021-02-20 22:04:14 +02:00
Filippos Karapetis
a465274c0e STARTREK: Update spockScan and mccoyScan calls 2021-02-20 21:32:52 +02:00
Filippos Karapetis
7401a55dcf STARTREK: Convert more room texts to the new format 2021-02-20 21:32:51 +02:00
Filippos Karapetis
bc45372332 STARTREK: Rewrite more room texts with the new format 2021-02-19 23:19:00 +02:00
Filippos Karapetis
31f2fc675c STARTREK: Convert more rooms to the new text resource format 2021-02-15 03:26:59 +02:00
Filippos Karapetis
2a6a3637ea STARTREK: Remove some obsolete TODOs 2021-02-15 03:26:58 +02:00
Filippos Karapetis
e9300f33d5 STARTREK: Fix the text scanner and convert 3 rooms to the new format 2021-02-08 03:11:46 +02:00
Filippos Karapetis
748aec5783 STARTREK: Refactor room text handling to use offsets (first part)
This is a major change, which allows us to read room texts directly
from RDF files in a deterministic way. The previous attempt to read
texts on the fly failed with some texts at runtime, which made it
unreliable. Additionally, the scope of all room text IDs has been
reduced to each room.

With this change, it's now possible to support text in CD and floppy
versions and support multiple game languages, without hardcoding all
of the game texts in the engine source.

This is 50% done (29 out of 55 rooms), with the following left to be
done:
- MUDD mission rooms (need to improve the text reader for these)
- TRIAL mission rooms (need to improve the text reader for these)
- SINS mission rooms (need to improve the text reader for these)
- The rest of VENG mission rooms

The DEMON, TUG, LOVE, FEATHER and part of the VENG mission rooms have
been converted.
2021-02-08 03:11:46 +02:00
Filippos Karapetis
9327e5a381 STARTREK: More bridge sequences functionality 2021-01-24 23:13:09 +02:00
Filippos Karapetis
eb8e1a33fd STARTREK: More functionality for bridge sequences and crew responses 2020-12-29 16:14:03 +02:00
Filippos Karapetis
f7d0670522 STARTREK: Remove more calls to blank sounds 2020-12-29 16:14:03 +02:00
Filippos Karapetis
1705cbc846 STARTREK: Use the SFX enum instead of hardcoded values 2020-12-29 16:14:03 +02:00
Filippos Karapetis
49395f2a8a STARTREK: Rename sound IDs and remove calls to blank sounds 2020-12-29 16:14:02 +02:00
Filippos Karapetis
2227b2a3a2 STARTREK: More bridge-related functionality 2020-12-29 16:14:02 +02:00
Filippos Karapetis
df67983e68 STARTREK: Sync several missing fields in saved games
Most of these are related to the bridge screens
2020-12-29 16:14:02 +02:00
Filippos Karapetis
0f8194ccd6 STARTREK: More work on mission ending, mission points and captain's log 2020-12-29 16:14:02 +02:00
Filippos Karapetis
c6d3f1df65 STARTREK: Ensure that we're not reading past the end of RDF files 2020-12-29 16:14:01 +02:00
Filippos Karapetis
a333cf4490 STARTREK: More bridge sequences functionality 2020-12-22 21:08:50 +02:00
Filippos Karapetis
5ce0e00b7d STARTREK: Add a console command to play bridge sequences 2020-12-22 21:08:50 +02:00
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
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
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
Filippos Karapetis
8947282344 STARTREK: More bridge sequence functions. Start implementing beaming up 2020-12-19 22:06:09 +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
Filippos Karapetis
b40f2f31dd STARTREK: Change activeAction to be signed
One more change due to usage of negative action list terminators
2020-12-19 01:50:40 +02:00
Filippos Karapetis
7d454f2221 STARTREK: Change action type to signed
We now use an action array terminator with a negative value
2020-12-19 01:50:39 +02:00
Filippos Karapetis
5f8675a07d STARTREK: Use Common::String in playTextAudio() 2020-12-19 01:50:39 +02:00
Filippos Karapetis
8ff4da8980 StARTREK: Clean up bitmap file name for some animations
We get invalid characters for the standing Spock animation
2020-12-19 01:50:39 +02:00
Filippos Karapetis
cf559249d5 STARTREK: Add a console command to show the score of all missions 2020-12-19 01:50:39 +02:00
Filippos Karapetis
5e7b556310 STARTREK: Move room action arrays to their respective room
All action arrays now end with a terminator entry. The array count has been removed.
Also, fixed a regression when changing missions in endMission().
2020-12-19 01:50:38 +02:00
Le Philousophe
b65d187123 STARTREK: Remove comma at end of enumerator list
Old compilers don't like it
2020-12-14 12:15:59 +01:00
Filippos Karapetis
d8b76a2dfc STARTREK: Add some bridge sequences 2020-12-14 03:48:52 +02:00
Filippos Karapetis
2b8ea5c7e3 STARTREK: Some work on supporting the demo and floppy versions of st25 2020-12-14 03:48:52 +02:00
Filippos Karapetis
7db4b674b0 STARTREK: Fix some rounding issues with doubles 2020-12-14 03:48:52 +02:00
Filippos Karapetis
9c25f9ee64 STARTREK: Add support for loading actors into dynamically assigned slots 2020-12-14 03:48:51 +02:00
Filippos Karapetis
f654d9ea4a STARTREK: More bridge related functionality 2020-12-09 00:13:23 +02:00
Filippos Karapetis
691f460d9f STARTREK: Add more functionality related to bridge actions 2020-12-08 11:20:37 +02:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00