Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making an Introduction & more
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#4
RE: Making an Introduction & more

Well, there's more to this question than you think, so I suggest that you take it one step at the time. Tell us what you'd like to do first, so that we can walk you through it.
You'll need to do some scripting - are you familiar with it at least a bit?

In a nutshell, when making your own commentary/subtitles and music and sound, you have to create additional files besides just the sounds themselves. Commentary entries go into the extra_english.lang file, while music and sounds also have files add additional information to the audio itself, to be used by the game (like the .snt files). For commentary and flashbacks, this helps the game use the same code for different languages. For sounds, these files contain information about things like the volume, and how far from the source the sounds can be heard.
These are all just plain text files, using what's called XML format to store this additional data. You can open, view and edit them with plain text editors like Notepad, or Notepad++. (Don't use applications like Word, which support fancy text formatting, because when saved the file itself will not be plain text, but will have formation information embedded into it, and then it will not work.)

Just to give you a quick overview, here's how a .flash (flashback) file looks like:
<Flashback>
    <Voices>
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlaguebs_01.ogg" EffectSound="fb_sfx_19_false_dead02.ogg" TextCat="" TextEntry="" />
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlague_04.ogg" EffectSound="" TextCat="Flashbacks" TextEntry="CH02L19_FalseDeadPlague_04" />
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlague_05.ogg" EffectSound="" TextCat="Flashbacks" TextEntry="CH02L19_FalseDeadPlague_05" />
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlague_06.ogg" EffectSound="" TextCat="Flashbacks" TextEntry="CH02L19_FalseDeadPlague_06" />
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlague_07.ogg" EffectSound="" TextCat="Flashbacks" TextEntry="CH02L19_FalseDeadPlague_07" />
        <Voice VoiceSound="flashbacks/CH02L19_FalseDeadPlaguebs_01.ogg" EffectSound="" TextCat="" TextEntry="" />
    </Voices>
</Flashback>

If you've ever seen a source of a web page, you'll notice that this is somewhat similar to HTML. Basically, you have these tags, which can nest other tags, and contain attributes, etc. When creating your own, you'd probably copy and rename one of the existing files, and then change some details in it so that they correspond to your own assets (and purposes).

extra_english.lang and .snt files have a similar structure, and when using script functions, you normally pass in arguments which refer to the entries in these files.
You could walk through this for a relatively easy intro to XML files, just to get the feel for it.

BTW, you can achieve voiceover/commentary/subtitle effect using the AddEffectVoice function
PHP Code: (Select All)
AddEffectVoice("CH02L15_Alexander_01""""Voice""CH02L15_Alexander_01"false""0.0f0.0f); 

And flashbacks use Flashback Areas you place in the editor, where you can specify the flashback file.

If you're making an intro-like sequence, you'd also want to know how to take away the control from the player, how to fade in and out, how to teleport player and force the camera to look in a certain direction.

So, what you wanna do first?
04-22-2013, 10:37 AM
Find


Messages In This Thread
Making an Introduction & more - by T122002 - 04-22-2013, 03:51 AM
RE: Making an Introduction & more - by T122002 - 04-22-2013, 05:05 PM
RE: Making an Introduction & more - by Romulator - 04-23-2013, 07:36 AM
RE: Making an Introduction & more - by Romulator - 04-22-2013, 08:48 AM
RE: Making an Introduction & more - by TheGreatCthulhu - 04-22-2013, 10:37 AM



Users browsing this thread: 1 Guest(s)