Frictional Games Forum (read-only)
[LANG] [SOLVED]Easy - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LANG] [SOLVED]Easy (/thread-27065.html)

Pages: 1 2


[SOLVED]Easy - Straxedix - 10-31-2014

+Rep for one who solve..
How to make text comes up in down left corridor?
That's all Tongue


RE: Easy - FlawlessHappiness - 10-31-2014

You mean debug messages?

AddDebugMessage("Test", false);


You have to enable them by enabling ScriptDebug.
You can check out this guide.
https://wiki.frictionalgames.com/doku.php?id=hpl2/amnesia/devenvguide

When you have enabled that, you can press F1 ingame and check "Show Debug Messages". Then the text will appear.


RE: Easy - Straxedix - 10-31-2014

Say whattt ????
No i need just basic text like in original amnesia when it hits you white flashback then you walk slowly and text appears down in LEFT corridor with voices...

EDIT:Oh wait wait wait something like here:]

Spoiler below!




See that text on beginning ?

"Daniel! Turn around this instant. You are carrying the Shadow with you!"

User(s) browsing this thread: Darkfire, DnALANGE, Newsman Waterpaper, Straxedix, 1 Guest(s)

and still no answers...
So hard theory...like math Big Grin


RE: Easy - DnALANGE - 10-31-2014

PHP Code:
AddEffectVoice("Hereisthesoundfile.ogg""""Voice""00_Gameissaved"false""0); 
---
Voice= The langfile name Catagory;
Example:
Quote:<CATEGORY Name="Voice">
<Entry Name="00_Gameissaved">"Game saved"</Entry>
</CATEGORY>
---
The 00_Gameissaved is the text what will show up in the left corner.
For this above shows : "Game saved" in the left corner.

Hope it helps you.


RE: Easy - Darkfire - 10-31-2014

This is a callback used for dialogues.
AddEffectVoice(string& asVoiceFile, string& asEffectFile, string& asTextCat, string& asTextEntry,
bool abUsePosition, string& asPosEntity, float afMinDistance, float afMaxDistance);

Unless you use a voice file in there, the text isn't going to appear. You can always make a blank voice file, but I'd suggest using
SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

It's much more handy, but it will display the message in the centre, as I recall.


RE: Easy - Straxedix - 10-31-2014

Okay or i am crazy or what ?
I asked like for a little text like...normal SetMessage
Just to be down not in middle screen wtf ? i don't need any voices it was example Tongue
See that video in spoiler and you see in video says:
"Daniel! Turn around this instant. You are carrying the Shadow with you!"
and it is not in middle screen text
That's what i need xD


RE: Easy - DnALANGE - 10-31-2014

(10-31-2014, 08:12 PM)Darkfire Wrote: This is a callback used for dialogues.
AddEffectVoice(string& asVoiceFile, string& asEffectFile, string& asTextCat, string& asTextEntry,
bool abUsePosition, string& asPosEntity, float afMinDistance, float afMaxDistance);

Unless you use a voice file in there, the text isn't going to appear. You can always make a blank voice file, but I'd suggest using
SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

It's much more handy, but it will display the message in the centre, as I recall.

SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
IS WAY cheaper and looks unprofeccional for voiceacting!

(10-31-2014, 08:13 PM)Straxedix Wrote: Okay or i am crazy or what ?
I asked like for a little text like...normal SetMessage
Just to be down not in middle screen wtf ? i don't need any voices it was example Tongue
See that video in spoiler and you see in video says:
"Daniel! Turn around this instant. You are carrying the Shadow with you!"
and it is not in middle screen text
That's what i need xD

Calm down man!
AddEffectVoice("Hereisthesoundfile.ogg", "", "Voice", "00_Gameissaved", false, "", 0, 0 );
WHat i subscribed above should work!
Don't worry about the function nameTongue it should work.


RE: Easy - Straxedix - 10-31-2014

Look i DON'T have sound file...i just need simple text to be down... and nothing else.
SO if i wanna that i MUST have sound file ?


RE: Easy - FlawlessHappiness - 10-31-2014

The text in the corner is supposed to be subtitles for the voice acting.
That's why we're talking about voices.

I think you need a voice file, but you can just make a silent one if you don't want a voice.


Sorry I misunderstood you in the beginning. There are more than 1 type of text in the left corner.


RE: Easy - DnALANGE - 10-31-2014

Yep, you NEED a soundfile.
Just make an empty one.
For example if you read this tekst here:
Hello Daniel, i am not sure how i have to make a tekst appear below the screen.
If you read this is should take me : 5 seconds.
Make an empty sound file for 5 seconds that''s it Tongue