83805 Commits

Author SHA1 Message Date
Strangerke
7485a45909 SUPERNOVA: Remove useless 2nd initialization of _shown to false 2018-01-23 02:15:34 +00:00
Strangerke
46bdb304dd SUPERNOVA: Remove useless defines 2018-01-23 02:15:34 +00:00
Strangerke
9bf0a656a6 SUPERNOVA: Change _shown to an array of bytes in order to handle extra values used by dialogs, fix ArsanoMeetup2::onEntrance by using a shown variable 2018-01-23 02:15:34 +00:00
Strangerke
f0d139d519 SUPERNOVA: Fix some warnings 2018-01-23 02:15:34 +00:00
Thierry Crozat
c3241c7c42 SUPERNOVA: Improve translated title display
The title is displayed on three lines aligned on their center,
but the code provides the left coordinate for each line so we
need to compute it based on the translated line length.
2018-01-23 02:15:34 +00:00
Thierry Crozat
7c4d4e1647 SUPERNOVA: Update English translation
Now the title screen and intro cutscene are translated!
2018-01-23 02:15:34 +00:00
Thierry Crozat
1229195b21 SUPERNOVA: Fix unicode characters in game strings
The non-ASCII characters should be coded using the octal value in
the CP850 encoding.
2018-01-23 02:15:33 +00:00
Thierry Crozat
69d7b91965 SUPERNOVA: Improve interactivity of title screen and intro cutscene
We can now press the mouse button to leave the title screen instead
of having to press a key. Since the mouse cursor was visible, not
being able to press the mouse button was strange. Especially as it
was possible to use the mouse button earlier in the title screen.

Also we can now use the mouse button or any key other than escape
during the cutscene to move to the next sentence. And the code is
more reactive to pressing the Escape key (we don't need to wait
for the current annimation to finish) to exit the cutscene.
2018-01-23 02:15:33 +00:00
Thierry Crozat
095679c4f2 SUPERNOVA: Move intro cutscene strings to engine data file 2018-01-23 02:15:33 +00:00
Thierry Crozat
6cadee9d19 SUPERNOVA: Update English translation 2018-01-23 02:15:33 +00:00
Thierry Crozat
7722fe99cd SUPERNOVA: Move object name and description strings to engine data file 2018-01-23 02:15:33 +00:00
Thierry Crozat
be08dd3c57 SUPERNOVA: Add POTFILES to get translated text for the GUI 2018-01-23 02:15:33 +00:00
Thierry Crozat
6fc0659222 SUPERNOVA: Start using strings from the engine data file
This means that now all that remains to be done to play in English
is to move all the strings to the engine data file and to translate
them.
2018-01-23 02:15:33 +00:00
Thierry Crozat
184b3a1662 SUPERNOVA: Load strings from the supernova.dat file 2018-01-23 02:15:33 +00:00
Thierry Crozat
d76b44ee57 SUPERNOVA: Add detection entry for English translation 2018-01-23 02:15:33 +00:00
Thierry Crozat
0f4d364e63 SUPERNOVA: Add getting translated images from the engine data file 2018-01-23 02:15:33 +00:00
Thierry Crozat
a13086ad25 SUPERNOVA: Add partial English translation to the create_supernova tool 2018-01-23 02:15:33 +00:00
Thierry Crozat
4e374cc9be SUPERNOVA: Add some German strings to the create_supernova tool 2018-01-23 02:15:33 +00:00
Thierry Crozat
b2384152ce SUPERNOVA: Add parsing of po file in create_supernova
This means the tool is now complete and can add translations to the
supernova engine data file.
2018-01-23 02:15:32 +00:00
Thierry Crozat
5efa5a8a05 SUPERNOVA: Add bitmap files for the first newspaper English translation
The pbm file is the source file for the create_supernova tool. The xcf
file is the gimp image that was used to create it and is also added in
case we need to modify it.
2018-01-23 02:15:32 +00:00
Thierry Crozat
f9310e11d8 SUPERNOVA: Add tool skeleton to generate engine data file
The tool is only a skeleton at this point. Most of the logic is there
but it is missing the data to write the German strings and it is missing
the logic to write the translated strings. This means that currently the
only data written are bitmap images.
2018-01-23 02:15:32 +00:00
Thierry Crozat
65d30cf720 SUPERNOVA: Plug memory leak in MOD music streams 2018-01-23 02:15:32 +00:00
Thierry Crozat
d1bdfd2bde SUPERNOVA: Clean indentations 2018-01-23 02:15:32 +00:00
Strangerke
4c9fc3cdbc SUPERNOVA: Fix compilation using MSVC9, silent some CppCheck warnings 2018-01-23 02:15:32 +00:00
D G Turner
2e79e24392 SUPERNOVA: Fix GCC Signed vs. Unsigned Comparison Warnings. 2018-01-23 02:15:32 +00:00
D G Turner
ea955675db SUPERNOVA: Fix GCC Warning for Malformed Narrowing Conversions in C++11. 2018-01-23 02:15:32 +00:00
D G Turner
e6fea1bd86 SUPERNOVA: Fix GCC Unused Variable Warnings. 2018-01-23 02:15:32 +00:00
Thierry Crozat
86795f0fa2 SUPERNOVA: Fix clicks at start and end of audio samples
The sound samples start with a 6 bytes header (including the size of
the sample coded on a little endian 16 bits uint on bytes 2 and 3)
and end with 4 bytes set to null. Those were passed to the raw stream,
which resulted in the audible clicks.

Note that we could use the information from the header to load the
sound samples instead of keeping around an array of offset and size.
2018-01-23 02:15:32 +00:00
Thierry Crozat
696fcb6bb9 SUPERNOVA: Add saving/loading of playtime 2018-01-23 02:15:32 +00:00
Thierry Crozat
275daa81c3 SUPERNOVA: Disable loading during intro cutscene
Loading during the intro is not currently working and is not
trivial to implement. So disable it for now.
2018-01-23 02:15:32 +00:00
Thierry Crozat
1cdede12ac SUPERNOVA: Properly handle loading saved game from launcher 2018-01-23 02:15:32 +00:00
Thierry Crozat
ed7fa6f7d7 SUPERNOVA: Improve save state handling
The saved game files now start with a header and version which allows
to do some sanity check and will allow to change the format in the
future if needed.

Also the MetaEngine can now be queried for the meta infos of a save
state.
2018-01-23 02:15:31 +00:00
Thierry Crozat
a4470edb29 SUPERNOVA: Fix exiting intro cutscene using Escape 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
aef0e122c7 SUPERNOVA: Restores brightness when leaving the cave 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
e45d94b065 SUPERNOVA: Implements screen shake 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
ba7729a767 SUPERNOVA: Restores brightness if power on 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
945dc9f46f SUPERNOVA: Fixes rendering and logic for cable 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
7da494427d SUPERNOVA: Adds current room to save file
and restores player location to it on load.
2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
03414f789a SUPERNOVA: Implements inventory arrows 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
3814f33826 SUPERNOVA: Scrolls inventory when taking an object
Signed-off-by: Joseph-Eugene Winzer <joewinzer@googlemail.com>
2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
9f3f9f47ad SUPERNOVA: Limits inventory scroll 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
5bdfb6f13a SUPERNOVA: Removes saveload.h
This header file contained info on the data structres of the original
game. The engine reimplementation is too different now to easily provide
compatibility for the original save files though.
2018-01-23 02:15:31 +00:00
Thierry Crozat
577ec1c56d SUPERNOVA: Fix missing return value for cmdGiveAll debug command 2018-01-23 02:15:31 +00:00
Joseph-Eugene Winzer
02290c32b6 SUPERNOVA: Allows saving by default
When saving is not apropriate, for example during cutscenes, explicitly
disable it.
2018-01-23 02:15:30 +00:00
Joseph-Eugene Winzer
142e1743ce SUPERNOVA: Fixes playing vinyl in CabinL3 2018-01-23 02:15:25 +00:00
Joseph-Eugene Winzer
749fa6336e SUPERNOVA: Fixes save/load dialog 2018-01-23 02:14:56 +00:00
Joseph-Eugene Winzer
23f57ca83f SUPERNOVA: Fixes de-/serialization of game state 2018-01-23 02:14:56 +00:00
Joseph-Eugene Winzer
68c52362e5 SUPERNOVA: Adds Outro initialization 2018-01-23 02:14:47 +00:00
Joseph-Eugene Winzer
735e2a8301 SUPERNOVA: Assigns room id of ShipOuterSpace 2018-01-23 02:07:46 +00:00
Joseph-Eugene Winzer
7cae6fde30 SUPERNOVA: Fixes number of rooms 2018-01-23 02:07:37 +00:00