Commit Graph
19 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Filippos Karapetis 5bead291d6 STARTREK: Initial work on the texts of the German and French versions
This is still a proof of concept, and only some of the first room texts
have been added
2021-08-30 22:05:30 +03:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Filippos Karapetis a465274c0e STARTREK: Update spockScan and mccoyScan calls 2021-02-20 21:32:52 +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 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 49395f2a8a STARTREK: Rename sound IDs and remove calls to blank sounds 2020-12-29 16:14:02 +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
D G Turner bffb4418bd STARTREK: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-01 00:59:20 +00:00
Filippos Karapetis 71346d15eb STARTREK: Read the text of the MUDD mission rooms from RDF files
Also, add a central mechanism to fix text typos
2019-10-20 15:23:44 +03:00
Filippos Karapetis e8f0e9e998 STARTREK: Rename the different showText() functions for disambiguation
Hopefully, this will fix the AmigaOS and DS builds
2019-06-11 01:28:12 +03:00
Filippos Karapetis 42ac19e804 STARTREK: Start reading text from RDF files, instead of hardcoding it
Rooms DEMON0 and DEMON5 have been partially adapted to the new logic.

This isn't yet fully functional, for the following reasons:
- We only read the main text block. There are also some others which
are not handled yet. The unhandled blocks have been kept in text.cpp
- We load text in dictionaries, splitting the strings in look and talk.
However, there's a third category (look with a talker), which isn't
handled yet
- Text is loaded per-room, but there are enhancements where text and
samples are loaded from other rooms. These need to be refactored
2019-05-28 21:41:58 +03:00
D G Turner 7e4faf2111 STARTREK: Hopefully Fix Remaining Compilation Issues. 2018-08-09 14:37:35 +01:00
Matthew Stewart 8970909318 STARTREK: Reorganize includes in room.h
This should avoid the costly rebuild of everything in the 'rooms/'
folder, at least sometimes...
2018-08-09 08:37:30 +02:00
Matthew Stewart fe98dbb69d STARTREK: Reformat with artistic style 2018-08-09 08:37:30 +02:00
Matthew Stewart a636aacf51 STARTREK: MUDD4 2018-08-09 08:37:30 +02:00
Matthew Stewart c471503581 STARTREK: MUDD2 2018-08-09 08:37:30 +02:00
Matthew Stewart 7cff724864 STARTREK: MUDD1 2018-08-09 08:37:30 +02:00
Matthew Stewart 4c0eb3aa67 STARTREK: MUDD0 2018-08-09 08:37:30 +02:00