Credits don't work - fuytko - 09-17-2011
Hello,
my credits don't want work..I have area named "Credits" in the map 06_End.map .. And i have note in this map and it don't shows text ..
But if i pickup note in my another map,it shows text..So i don't know where i have mystake..
Here is my extra_english.lang
Quote: <LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are Patrick..And you must find your father..</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="LostFatherEnterRoom">Where is my father? He told me,that he will be here today..I must go find him!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Letter_Father_01_Name">Father's diary</Entry>
<Entry Name="Note_Letter_Father_01_Text">Today I decided to create diary where I will write important events and things like this.Things in my life was changed and I live alone now.[br][br]Father Lucas,12.8.1952</Entry>
<Entry Name="Note_Letter_Father_02_Name">Father's diary</Entry>
<Entry Name="Note_Letter_Father_02_Text">I sat on the chair and read the book,when he came.He broke the door and he went to me.I tried to escape,but he stopped me and cut off my hand. Then I managed to escape.That was horrible![br][br]Father Lucas,15.8.1952</Entry>
<Entry Name="Note_Letter_Father_03_Name">Father's diary</Entry>
<Entry Name="Note_Letter_Father_03_Text">In this room I hide from monster for few hours.The whole time I've heard scary noises.I was afraid to go out of this room,but I had to do this.I came out from this room and I saw the monster.It didn't see me.So I got a chance to run away from Study and go to the Guest Room.The key to the Guest Room is on the cupboard.[br][br]Father Lucas,16.8.1952</Entry>
<Entry Name="Note_Letter_Father_04_Name">Father's diary</Entry>
<Entry Name="Note_Letter_Father_04_Text">I do not know what happened here.This place is really scary now.And..Patrick,I know you are here,you must find the key to Cellar![br][br]Father Lucas,17.8.1952</Entry>
<Entry Name="Paper_End_Name">My last words</Entry>
<Entry Name="Paper_End_Text">I love you Patrick,my dear son! It was all my mystake..Now,run away from this place!</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Key_1">Key to some door</Entry>
<Entry Name="ItemName_Key_1">Key</Entry>
<Entry Name="ItemDesc_Key_GR">Key to the Guest Room</Entry>
<Entry Name="ItemName_Key_GR">Guest Room Key</Entry>
<Entry Name="ItemDesc_Key_3">Key to some door</Entry>
<Entry Name="ItemName_Key_3">Key</Entry>
<Entry Name="ItemDesc_Key_GR1">Key to some door</Entry>
<Entry Name="ItemName_Key_GR1">Key</Entry>
<Entry Name="ItemDesc_Key_GR2">Key to some door</Entry>
<Entry Name="ItemName_Key_GR2">Key</Entry>
<Entry Name="ItemDesc_Key_GR3">Key to some door</Entry>
<Entry Name="ItemName_Key_GR3">Key</Entry>
<Entry Name="ItemDesc_Key_Cellar">Key to Cellar</Entry>
<Entry Name="ItemName_Key_Cellar">Cellar Key</Entry>
<Entry Name="ItemDesc_Key_Final">Key to some door</Entry>
<Entry Name="ItemName_Key_Final">Key</Entry>
<Entry Name="ItemDesc_GC1">Empty glass jar</Entry>
<Entry Name="ItemName_GC1">Glass Jar</Entry>
<Entry Name="ItemDesc_GC2">Glass jar with some substance</Entry>
<Entry Name="ItemName_GC2">Glass jar with substance</Entry>
<Entry Name="ItemDesc_GC3">Glass jar with some hot substance</Entry>
<Entry Name="ItemName_GC3">Glass jar with hot substance</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="00_Main_Room">Father's room</Entry>
<Entry Name="00_Entry_Hall">Entry Hall</Entry>
<Entry Name="01_Entry_Hall">Entry Hall</Entry>
<Entry Name="02_Study">Study</Entry>
<Entry Name="03_Dungeon">Dungeon</Entry>
<Entry Name="04_Cellar">Cellar</Entry>
<Entry Name="05_Guest_Room">Guest Room</Entry>
<Entry Name="06_Entry Hall">Entry Hall</Entry>
<Entry Name="To_End">???</Entry>
<Entry Name="To_Dungeon">Dungeon</Entry>
<Entry Name="To_EntryHall">Entry Hall</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="MainCredits">Thank you for playing Lost Father[br][br]
Made by fuyt[br][br]
Level design,scripting and story:[br]
fuyt[br][br]
Testing:[br]
fuyt,Adam,Liqiud
Special Thanks:[br][br]
Frictional Games Forum - For helping with scripting![br]
Adam - For testing,translating and tips[br]
Liqiud - Testing and tips[br]
</Entry>
</CATEGORY>
</LANGUAGE>
And here is my 06_End.map
Quote: void OnStart()
{
PlayMusic("29_amb_end_soft.ogg", true, 0.5f, 0.1, 1, false);
SetEntityPlayerInteractCallback("Paper_End", "BruteEnd", true);
AddEntityCollideCallback("Player", "Credits", "start_credits1", true, 1);
}
void BruteEnd(string &in asEntity)
{
SetEntityActive("Brute_End", true);
}
void OnEnter()
{
}
void start_credits1(string &in asTimer)
{
StartCredits("01_paper_self.ogg", true, "Ending", "MainCredits", 0);
}
void OnLeave()
{
StopMusic(3.0f, 10);
}
.. I spoilering my new custom story a bit..but i need your help :/
Please help me..thanks a lot
RE: Credits don't work - HplGeek - 09-17-2011
void start_credits1(string &in asTimer)
Try This Instead:
void credits1(string &in asTimer)
(Remove start_)
RE: Credits don't work - GreyFox - 09-17-2011
You have your
void start_credits1(string &in asTimer)
{
StartCredits("01_paper_self.ogg", true, "Ending", "MainCredits", 0);
}
In the
void OnEnter()
{
}
But you have no callbacks in the OnEnter() Part so either move your Start_Credits Up to the OnStart() or Move your Callback for Start Credits down to OnEnter()
Atleast I think thats the problem, No Problem to try though.
-Grey Fox
RE: Credits don't work - fuytko - 09-17-2011
(09-17-2011, 05:39 PM)GreyFox Wrote: You have your
void start_credits1(string &in asTimer)
{
StartCredits("01_paper_self.ogg", true, "Ending", "MainCredits", 0);
}
In the
void OnEnter()
{
}
But you have no callbacks in the OnEnter() Part so either move your Start_Credits Up to the OnStart() or Move your Callback for Start Credits down to OnEnter()
Atleast I think thats the problem, No Problem to try though.
-Grey Fox It don't work
RE: Credits don't work - Khyrpa - 09-17-2011
Good eye GreyFox!
void start_credits1(string &in asParent, string &in asChild, int alState)
RE: Credits don't work - GreyFox - 09-17-2011
void start_credits1(string &in asTimer)
Shouldn't It be
void start_credits1(string &in asParent, string &in asChild, int alState)
Because your using a collidecallback and not a timer.
Hopefully this works for you.
RE: Credits don't work - fuytko - 09-17-2011
Thanks a lot,it's working !!!!
RE: Credits don't work - GreyFox - 09-17-2011
Awesome. Looking forward to playing it.
-Grey Fox
|