ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Subtitle.txt: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
 
m moved Subtitle to Subtitle.txt: The page clearly talks about a file, not a flag. Dunno why this is here and why it has a flag header.
 
(No difference)

Latest revision as of 02:07, 11 December 2009

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Subtitle.txt
File(s): rules(md).ini
Values: ERROR – No value types set! Please edit this page and fix the Flag template!

This entry was copied from DeeZire's Red Alert 2 and Yuris Revenge INI Editing Guide for the sake of completeness. As it is not our intention to rip off DeeZire's work, this article is subject to a re-write and update with the latest community knowledge.

For further information, please read Inclusion of The Guide.




SUBTITLE.TXT - This very useful file controls the subtitles which can appear on screen during any of the 'main screen' movies. Its intention is to provide cross-language support by playing the movies in English but printing subtitles on screen in the relevant language. This file does not exist in any English version of Red Alert 2 or Yuri's Revenge (note that the file should follow the usual convention and be named SUBTITLEMD.TXT for Yuri's Revenge) although it can be included for customization.

NOTE: although this is a plain text file, it needs to be saved in Unicode Text Format (.TXT) - Windows WordPad can do this.

The file itself is simply a list of entries, each of which contains details pertaining to one movie. Each entry takes the following format;-

BeginMovie <filename>
Font=
<Time=MM:MM:SS:SS, Duration=MM:MM:SS:SS, Position=H:<tab>, Color=R:G:B, Text="">
EndMovie

Following those rules, here is an example section which will display 'Welcome To Red Alert 2' in a yellow Arial font at the bottom center of the screen. It will be displayed 4.5 seconds into the movie and display for 10 seconds. The movie file,
A00_F00E, is the main game intro movie;-

BeginMovie A00_F00E
Font=arial.ttc
<Time=00:00:04:30, Duration=00:00:10:00, Position=14:Center, Color=255:255:0, Text="Welcome To Red Alert 2">
EndMovie

NOTE: it is not recommended to use subtitles for any of the movies that appear in the sidebar radar screen - this can lead to crashes and Internal Errors as the radar screen is not designed to accommodate text.