Creating ingame subtitles. Seeking for help. - by Loot1
Le MAlin 76 on 28/6/2016 at 12:35
You can check with mono of dromed, and thief2.log, it don't say what wrong, but it say in which line there are errors. But I never had crash because of syntax error in subtitle files.
baeuchlein on 30/6/2016 at 16:41
I have looked a bit deeper into the problem, and the picture became clearer. The crashes happen only with NewDark v1.24, and exactly when the game usually processes the subtitles files.
An installation with T2 NewDark v1.23 does not crash when the miss1.sub file from this thread is placed in a folder called "subtitles" in the game directory. If one starts the original game or a FM with FMSel, thief2.log shows a few error messages about the subtitles:
: dark_zcomp_arm
: edit_screen_size 800,600
: -----------------------------------------------------------
: WARNING: subtitle file 'miss1.sub' in path 'd:\t2_newdark\subtitles\'> WARNING (line 19676): Failed to open SRT subtitle file "B01.srt"
: WARNING: subtitle file 'miss1.sub' in path 'd:\t2_newdark\subtitles\'> WARNING (line 19681): Failed to open SRT subtitle file "B02.srt"
: WARNING: subtitle file 'miss1.sub' in path 'd:\t2_newdark\subtitles\'> WARNING (line 19686): Failed to open SRT subtitle file "SUCCESS.srt"
: WARNING: subtitle file 'miss1.sub' in path 'd:\t2_newdark\subtitles\'> WARNING (line 19691): Failed to open SRT subtitle file "INTRO.srt"
: ERROR: subtitle file 'miss1.sub' in path 'd:\t2_newdark\subtitles\'> SYNTAX ERROR (line 19694): expected '{'
: Enumerating D3D9 adapters (1)...
(This is not a complete thief2.log, of course, only the relevant part.)
When playing the original game, most subtitle lines appear onscreen, including Garrett's "Better check my map" line and his remarks in the cellar of the first mission.
If the subtitles file is removed (deleted), the "WARNING" and "ERROR" lines won't appear in thief2.log anymore, but everything else remains the same. This is true for NewDark v1.24 as well.
However, if the subtitles file is present with NewDark v1.24, the game crashes upon start (at least for me), as mentioned above in the thread. The thief2.log ends before the first "WARNING" line.
Similar things happen with DromEd and monolog.txt, but I did not check them out in detail. It now seems pretty obvious to me that Thief 2 with NewDark v1.24 may crash when it has to parse a subtitles file with errors.
I see that crash only with the miss1.sub file from this thread and with NewDark v1.24, which may be the reason for other people not having any crashes. The few FMs which already feature subtitles processed by NewDark (as opposed to subtitle scripts used in some pre-NewDark missions) most likely have error-free subtitles files which don't lead to crashes.
Since I have these crashes with two different versions of Thief 2 (german CD-based version and english version most likely identical to the one sold by, e.g., GOG) as well as with Windows 7 x64 and Vista x86 (32-bit), I don't think it's just something with my setup of the game or Windows.
It would be interesting to know what other players with NewDark v1.24 experience with the subtitles file from this thread.