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
Narration problem
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Narration problem

Hey

So I was going to make a narration with subtitles in my story, but it won't work for me.
The problem is, it won't show.

Here is my .hps code and .lang as well



Spoiler below!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""Nar01""Talk01"true1); //this stands for the narration below
AddDebugMessage("Dopefish lives"true);
AddEntityCollideCallback("Player""introArea""intro"true1);
AddEntityCollideCallback("Player""introArea2""intro4"true1);
AddEntityCollideCallback("Player""Save01""SaveGame01"true1);
SetSanityDrainDisabled(true);
AddUseItemCallback("""stone_chipper_1""ScriptArea_1""HitBar"false);
AddUseItemCallback("""pipe_piece_1""ScriptArea_2""UsePipe"false);
AddEntityCollideCallback("Bar_Item""BarCollideSound""FallSound"true0);
BlockHint ("DarknessDecrease");
BlockHint ("SanityAdd");
BlockHint ("PickLantern");
SetPlayerLampOil(25);
}
void HitBar(string &in asItemstring &in asEntity)
{
SetMessage("Messages""putButnot"5);
CreateParticleSystemAtEntity("""ps_hit_metal.ps""PS"true);
PlaySoundAtEntity("""impact_metal_high.snt""Player"0true);
//SetEntityActive("Bar_Item", true);
//SetEntityActive("wriggle_prison_bar_1", false);
SetEntityActive("ScriptArea_2"true);
SetEntityActive("ScriptArea_1"false);
SetEntityActive("put"true);
//SetEntityActive("cellar_wood01_2", true);
SetMessage("Messages""BarUse"2.5);
PlaySoundAtEntity("""25_attach_bar.snt""HitSoundArea"0true);
}

void UsePipe(string &in asItemstring &in asEntity)
{
SetEntityActive("ScriptArea_2"false);
CreateParticleSystemAtEntity("""ps_hit_metal.ps""PS"true);
PlaySoundAtEntity("""impact_metal_high.snt""Player"0true);
SetSwingDoorLocked("cellar_wood01_1"falsetrue);
SetEntityActive("put"false);
}
void LockedInteract(string &in entity)
{
SetMessage("Messages""Ch01Locked01"3);
}
void intro(string &in asParentstring &in asChildint alState)
{
SetPlayerMoveSpeedMul(0.35f);
SetPlayerRunSpeedMul(0.0f);
PlayMusic("11_paper_howl.ogg"true0.821true);
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);                  // "Tilts" the players head
FadeRadialBlurTo(0.152);
SetMessage("Messages""intro"5);
AddTimer("intro2"7"intro2");


void intro2(string &in asTimer)
{
SetMessage("Messages""intro2"8);
AddTimer("intro3"7"intro3");
}

void intro3(string &in asTimer)
{
FadeIn(0);
PlayMusic("02_puzzle"false0.821true);
SetMessage("Messages""intro3"10);
AddTimer("intro4"12"intro4");
ChangeMap("00_outSide01","PlayerStartArea_1","","");
}

void intro4(string &in asParentstring &in asChildint alState)
{
SetPlayerMoveSpeedMul(1);
SetPlayerRunSpeedMul(1.20f);
ChangePlayerStateToNormal();
SetPlayerActive(true);        // Change all settings to defaults
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
SetMessage("Messages""Ch01"7);
}
void SaveGame01(string &in asParentstring &in asChildint alState)
{
SetMessage("Messages""SAVED"4);
AutoSave();
}
void Talk01(string &in asParentstring &in asChildint alState)
{
AddDebugMessage("voice"true);
AddEffectVoice("BLANK.ogg""""Voice""voice_1"false""00);




And my lang file

Spoiler below!
PHP Code: (Select All)
<LANGUAGE>  //there is "Voice" category below

<CATEGORY Name="CustomStoryMain">
    <
Entry Name="Description">In the deep English moutainsthere lies an abandoned village, [NAZWA].[br][br]Your name is Jeffrey Jonesyou grew up in this villagein a poor familyYour parents died because of tuberculosis, and you were taken with your sister to orphan house in the nearest cityAfter all these yearsyou are a brave manready to re-visit the village againThings are going to complicate soon...</Entry>
</
CATEGORY>

<
CATEGORY Name="Journal">
<
Entry Name="Note_history01_Name">A note</Entry>
<
Entry Name="Note_history01_Text">17th of August1867.[br][br]My research are about to start tomorrowUsing a new found medicinecalled [NAZWA LEKUon these people may heal them and stop the plague around this villageI hope there won't be any side effects.[br][br]-Dr Garry Cuprit</Entry>
<Entry Name="Note_horror01_Name">Baron'
s note</Entry>
<
Entry Name="Note_horror01_Text">I'm afraid that I don't have enough vitae to run the Great Spherefound at the templeI invited some people to my "birthday"so I will make them my slaves and then I will throw them to my monstersThe blood that will be spilled is the main part of vitaeIn short I need 500 liters of blood to make an only small glass of the substance to make the Sphere work for ten minutesI paid the local bandits to bring me people. And my latest guestJack seems like a very interesting manIt's a shame for me that I have to sacrifice him, but it is necessary. I will drop the remains of their bodies to my monsters, that should give me quite long peace because they will have things to eat. Oh, and I almost forget. Maybe some of the guest will want to escape, so I locked the machine room and I left the key in the archives. ~Isaac.</Entry>
<Entry Name="Note_horror02_Name">The archives</Entry>
<Entry Name="Note_horror02_Text">I saw it ! I saw that "thing". It had leather belts all around its body. His body shape was human-like, but it had many deformations and wounds. Its skin was horrible, it looked like old human body took out of the coffin. It had deformed head, and something like sharp claws. It was eating a ... man. I'
m now hiding here and waiting for helplet's just hope that someone will help me soon.</Entry>
<Entry Name="Note_albert01_Name">Refugee'
s note.</Entry>
<
Entry Name="Note_albert01_Text">To anyone who reads itit is a part of my journali'm trying to escape this madness. If you want to get my help, go to the "Maps" section and find me in here. One of these creatures injuried me and my wound is bleeding badly, if you leave some laudanum or morphine to me I will be grateful. For now, just go to this section. I've found a key to a Libraryit may be useful. ~Albert</Entry>
<
Entry Name="Quest_Memento01_Text">I knew that man is planning something badhis eyes... They are evilI have to escapeHow can I get out of this room?</Entry>
<
Entry Name="Quest_Memento02_Text">GoshThe cellar looks really badBut I knew it before buying this housePerhaps I should leave cellar nowThere are a lot of things to repair. </Entry>
<
Entry Name="Quest_Memento03_Text">The house is not safeSomething is lurking in the shadowsI can feel itSomething follows meI want to leave this place as soon as I canI should go to the police, if someone will notice the blood everywhere they will lock me up.</Entry>
<
Entry Name="Quest_Memento04_Text">I'm wondering who and how wrote this note, it's really new paper and the ink is still fresh... I must find this manI hope he is alive.</Entry>
<
Entry Name="Quest_Memento05_Text">Find a way to the Prison sewers, and escape through it!</Entry>
<
Entry Name="Quest_Memento06_Text">The entrance to the sewers is floddedFind a way to remove water.</Entry>
<
Entry Name="Quest_Memento07_Text">There is a weak padlock on a door to the torture tools storagemaybe I will find something useful in hereMaybe stone hammer and chipper would finish it up?</Entry>
<
Entry Name="Note_manual_Name">Drying machine manual</Entry>
<
Entry Name="Note_manual_Text">Drying sewer machine manual[br][br]In order to dry the sewerfour levers located arround the prison must be pulled DOWN.[br][br]DO NOT USE THE MACHINE WHEN:[br][br]a)When the sewer is already dry[br][br]b)When one of the levers is broken[br][br]c)When there is no need to dry the sewer up.[br][br]-CptGal Simpson</Entry>
</
CATEGORY>

<
CATEGORY Name="LoadingText">
<
Entry Name="Loading_fromMansionToMain">By entering the main hallI realised something strange is going on... There was nobody except me and them...</Entry>
<
Entry Name="Loading_fromMainHalltoTower">The Tower</Entry>
<
Entry Name="Loading_captured">Where are they taking me?!</Entry>
</
CATEGORY>

<
CATEGORY Name="Levels">
<
Entry Name="Village">Village main storage entrance</Entry>
<
Entry Name="mh">Main Hall</Entry>
</
CATEGORY>

<
CATEGORY Name="LevelDoors">
<
Entry Name="ChurchFrontDoorLocked">The door is locked.</Entry>
</
CATEGORY>

<
CATEGORY Name="Inventory">
<
Entry Name="ItemName_torturekey66">Torture Chambers Key66</Entry>
<
Entry Name="ItemDesc_torturekey66">66</Entry

<
Entry Name="ItemName_Ch01Pipe">Rusty piece of pipe</Entry>
<
Entry Name="ItemDesc_Ch01Pipe">It's a part of a pipe, it looks very old, and it's covered in rust.</Entry>
<
Entry Name="ItemName_Ch01Chipper">Chipper</Entry>
<
Entry Name="ItemDesc_Ch01Chipper">It may be useful in breaking locks.</Entry>
<
Entry Name="ItemName_mrk">Machine Room key</Entry>
<
Entry Name="ItemDesc_mrk">A key to the Machine Room in the Main Hall.</Entry>
<
Entry Name="ItemName_elk">Elevator key</Entry>
<
Entry Name="ItemDesc_elk">A key to the Elevator in the Main Hall.</Entry>
<
Entry Name="ItemName_picklock">Picklock</Entry>
<
Entry Name="ItemDesc_picklock">A picklock.</Entry>
<
Entry Name="ItemName_mapss">Maps secton key</Entry>
<
Entry Name="ItemDesc_mapss">A key to the maps section found in one of the archives roomI think I really should read the note left next to this key.</Entry
</
CATEGORY>

<
CATEGORY Name="Messages">
<
Entry Name="intro">lazz3r presents</Entry>
<
Entry Name="intro2">An Amnesia story</Entry>
<
Entry Name="intro3">[NAZWA MODA]</Entry>
<
Entry Name="putButnot">I put the chipper into the lockbut to destroy the mechanism it needs more force.</Entry>
<
Entry Name="Ch01Locked01">This door is lockedI must find a way to open it.</Entry>
<
Entry Name="Ch01">Chapter I Awakening</Entry>
<
Entry Name="SAVED">[br][br][br][br][br][br]Your game has been saved.</Entry>
<
Entry Name="Ch02">Chapter II Lost in The Darkness</Entry>
<
Entry Name="Ch03">Chapter III A Nest of Wretches</Entry>
<
Entry Name="Ch04">Chapter IV Revealing Truth</Entry>
<
Entry Name="IntroNar01"></Entry>
<
Entry Name="chapter5">Chapter V Unforeseen Consequences</Entry>                           
</
CATEGORY>

<
CATEGORY Name="Voice">
<
Entry Name="voice_1">I should hurry upit's getting colder.</Entry>
<Entry Name="intro2">An Amnesia story</Entry>
<Entry Name="intro3">[NAZWA MODA]</Entry>
<Entry Name="putButnot"></Entry>                          
</CATEGORY>

<CATEGORY Name="Credits">
<Entry Name="end01">[br][br]*Custom story created by:[br][br]orbiee232[br][br]Capture sound:[br][br]- it'
s a bunch of sounds from AmnesiaPenumbra mixed by meThe original sounds are created by Frctional Games.[br][br]Scripting help:[br][br]-Paulpolska[br][br][br]This was my first custom story. If you enjoyed the Chapter Iyou may also enjoy the coming soon Chapter II.[br][br]*Thank you for playing!</Entry
</
CATEGORY>
</
LANGUAGE


Can someone explain me what have I messed up?
(This post was last modified: 12-23-2013, 01:03 PM by Slanderous.)
12-23-2013, 01:03 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Narration problem

When you look at your CS from the Custom Story, do you see "No Description" or your CS description as seen in your lang file? With this, we can determine if the error is within the .lang or the script. Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
12-23-2013, 02:02 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: Narration problem

(12-23-2013, 02:02 PM)Romulator Wrote: When you look at your CS from the Custom Story, do you see "No Description" or your CS description as seen in your lang file? With this, we can determine if the error is within the .lang or the script. Smile

Description, item names, messages, notes and other stuff works. Only Dialogue stuff is not working.
12-23-2013, 02:55 PM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Narration problem

Try changing the float afTime to 0 in the SetMessage commands to 0.

"Veni, vidi, vici."
"I came, I saw, I conquered."
12-23-2013, 05:15 PM
Find




Users browsing this thread: 1 Guest(s)