Commit Graph
142 Commits
Author SHA1 Message Date
athrxx 3947df46f8 KYRA: code style fixes 2022-10-10 22:44:02 +02:00
athrxx 6bd08e1627 KYRA: code style fixes 2022-10-09 03:08:03 +02:00
athrxx 2474d96709 KYRA: more coding style cleanup 2022-09-26 19:59:35 +02:00
athrxx 7204eaaf34 KYRA: more code style cleanup 2022-09-24 15:44:14 +02:00
athrxx b54f6adcb7 KYRA: more coding style and sanity checking cleanup 2022-09-23 21:37:55 +02:00
athrxx 77866676a7 KYRA: init non-initialized member vars 2022-09-23 21:37:51 +02:00
athrxx 3ebd9fc90a KYRA: cleanup 2022-09-23 02:57:50 +02:00
athrxx 3a49ea6248 KYRA: reduce unsafe string ops
(replace all strcpy calls and similar fixes)
2022-09-22 21:01:16 +02:00
athrxx e14afbf282 KYRA: init non-initialized member vars 2022-09-20 23:10:27 +02:00
athrxx 015820f0bd KYRA: init non-initialized member vars 2022-09-20 22:14:53 +02:00
athrxx 236db2d658 KYRA: init non-initialized member vars 2022-09-20 20:32:44 +02:00
athrxx 785c52b18b KYRA: (EOB) - minor font load cleanup 2022-09-20 00:46:52 +02:00
athrxx 6378e505b5 KYRA: init non-initialized member vars 2022-09-20 00:27:09 +02:00
athrxx b56c26f134 KYRA: (HOF) - fix bug no. 13709 (Zanthia walks through a rock in Volcania) 2022-07-17 15:56:54 +02:00
athrxx ff5a1cb2ae KYRA: cleanup static resource loader
(the latest changes were a bit on the ugly side)
2022-06-28 23:59:38 +02:00
athrxx 22e33f97b9 KYRA: (MR/ZH) - fix ZH font issue when language is set to other than ZH (Step 2)
Allow reloading individual kyradat resources with a different language. Until now, our multi-language games did not require this, but for more or less random reasons (e. g. it just isn't possible to restart the intro or the main menu after changing the language ingame). However, the Chinese MR versions require this for the font loading.
2022-06-28 00:36:37 +02:00
athrxx f1b085d867 KYRA: (MR/ZH) - fix ZH font issue when language is set to other than ZH (Step 1)
This is only one of two steps. It slightly changes the detection so that the game always "remembers" whether it is Simplified or Traditional Chinese, even when the language is set to English, German or French.
2022-06-28 00:36:29 +02:00
athrxx 5cf139f055 KYRA: (LoK) - fix animation glitch when skipping over scene
(When skipping over a scene by left-clicking, sometimes parts of the ongoing animation would remain visible on screen, e. g. some of Herman's body parts in the cave at the beginning)
2022-06-25 00:14:17 +02:00
athrxx a99055617b KYRA: (LoK/Floppy) - fix minor animator glitch
(in the first cave, when trying to cross the broken bridge and falling into the river, a "cut off" Herman's head could appear on screen beside the death dialog)

The animator code is a bit different here between versions. Our code was apparently based only on DOS CD (Talkie).
2022-06-23 19:06:04 +02:00
athrxx 05b9df0821 KYRA: (LoK/KOR) - make use of new Johab string encoding 2022-06-13 19:38:51 +02:00
athrxx 5eea71c0c7 KYRA: fix warnings 2022-06-09 01:17:13 +02:00
athrxx d2d4765aaf KYRA: (LoK/KOR) - some preparations for Hangul input
(not working yet)
2022-06-09 00:49:05 +02:00
athrxx ae4934bc8c KYRA: (LoK/KOR) - more accuracy fixes 2022-06-09 00:49:05 +02:00
athrxx c6a02db614 KYRA: (LoK/KOR) - fine tune dialogue text lines 2022-06-09 00:49:05 +02:00
athrxx a6fb73725a KYRA: (LoK/KOR) - fine tune ingame menus 2022-06-09 00:49:05 +02:00
athrxx 6d83986bca KYRA: (LoK/KOR) - more font related fixes
e. g.
- font spacing
- scene message field
- ingame menus
- Brynn's note
2022-06-09 00:49:05 +02:00
athrxx 4670159f26 KYRA: (LoK/KOR) - inital font support
This is still glitchy and will need some more polishing, but at least the intro runs...
2022-06-09 00:49:05 +02:00
eientei 8ec7fe9bae KYRA: Fix build, add credits filename 2022-06-09 00:49:05 +02:00
athrxx 8461189916 KYRA: rename some flags 2022-06-07 18:31:35 +02:00
athrxx c1a01e9708 KYRA: (LOK) - slow down intro to make it closer to the original
Animations often run at full speed without any delays. Apparently the target hardware of that time (286/386, Amiga, Mac) would ensure sufficient slowdown. Unfortunately, comparing with DOSBox, ScummVM runs somewhat faster. I have tried to add extra delays depending on the amount of onscreen activity. I have finally gotten a result which is very similiar to DOSBox execution.

Basing this on the screen activity is not optimal. Ideally, it would be based on the orignal cpu activity. But we can hardly do that...
2022-03-29 14:17:10 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Filippos Karapetis eaf173111c KYRA: Remove unused variable
Thanks to eientei for reporting this
2021-12-24 03:18:27 +02:00
athrxx c837fafaa8 KYRA: (LoK/Mac) - fix line breaks glitch
(regression from 6f2df10d)

The dialog text displayer functions really only handle '\n' in the Mac version. But the equivalent function to our Screen::printText() function actually handles both '\r' and '\n'.
2021-12-05 17:03:02 +01:00
athrxx 9673b0a0ea KYRA: implement idle screen updates
Apparently, as I have been told, there are (still) OS'es with non-compositing window managers which may cause glitches when drawing windows over the ScummVM window, unless the engine keeps updating the screen. So, now we do that, even if there isn't any actual on-screen activity. The whole thing is a bit more tricky than it would appear at first glance, since one misplaced/untimely screen update may cause palette glitches. I have implemented a timer which is reset whenever actual on-screen activity happens. That should work around any such glitches.

Maybe the rates for the timer have to be tweaked some more. I have also added an ifdef so this could be disabled or restricted to certain platforms if required.
2021-12-05 15:18:38 +01:00
D G Turner 6e097626ce KYRA: Fix GCC Signed vs. Unsigned Comparison Compiler Warnings 2021-12-04 16:14:46 +00:00
athrxx 6f2df10d03 KYRA: (LoK/Mac) - fix linebreak chars
Mac uses '\n' instead of '\r'. I have verified from disasm that it only uses '\n'. '\r' is not used at all.

Now, I know only 2 cases where it matters and these are hard coded cases: "That snake must\nbe poisonous!" and "The flask is now filled\nwith %s water.". So I could just hard code these differently.
But the scripts might have more of these linebreaks, so it makes sense to have it accurate...
2021-12-03 21:31:05 +01:00
athrxx f436ebbeb0 KYRA: (HOF/Traditional Chinese) - fix ingame texts
(adjust ui, text formatting, menus, etc)
2021-12-01 22:39:24 +01:00
athrxx bd12b5f2f6 KYRA: (HOF/Traditional Chinese) - fix final sequence 2021-12-01 22:38:58 +01:00
athrxx ad05db611d KYRA: (HOF/Traditional Chinese) - fix intro and main menu 2021-12-01 22:38:35 +01:00
athrxx d9850a2d78 KYRA: (HOF/Traditional Chinese) - add static resources 2021-12-01 22:37:59 +01:00
athrxx a7fda28519 KYRA: (LoK/Traditional Chinese) - finish support
(add font drawing, gui and text formatting fixes etc.)
2021-11-15 01:01:25 +01:00
athrxx f0255f3fe2 KYRA: (FM-Towns) - fix minor font glitch 2021-11-15 01:01:16 +01:00
athrxx db2c959289 KYRA: (LoK/Traditional Chinese) - add static resources 2021-11-15 01:01:06 +01:00
athrxx 2c4f9fcc95 KYRA: (Chinese) - refactor Chinese font code to allow better support for different formats
(the Chinese font code is similiar enough between the KYRA games, but with some differences (e. g. LoK has the Ascii glyphs in an extra file, MR has these in the executable; LoK has a lookup table for the two-byte glyphs etc.)
2021-11-15 01:00:48 +01:00
Orgad Shaneh da751361a4 KYRA: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh 14f516282c KYRA: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Alexandre Detiste 6044504762 JANITORIAL: typos
some in the variable names, some in the comments;
no change for the strings that interract with original games assets
2021-10-31 20:46:31 +01:00
athrxx 095f7b73da KYRA: (MR/Simplified Chinese) - fix preprocessing of long actor strings 2021-10-24 19:20:25 +02:00
athrxx 39a9f86820 KYRA: fix some MSVC warnings 2021-10-24 15:16:19 +02:00
Torbjörn Andersson c6efd7a27c KYRA: Fix error message in loadSpecialAmigaCPS() 2021-10-15 07:25:22 +02:00