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
Credits don't work
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#1
Credits don't work

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 Wink

09-17-2011, 04:08 PM
Find
HplGeek Offline
Junior Member

Posts: 17
Threads: 8
Joined: Sep 2011
Reputation: 0
#2
RE: Credits don't work

void start_credits1(string &in asTimer)


Try This Instead:


void credits1(string &in asTimer)



(Remove start_)
09-17-2011, 05:35 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: Credits don't work

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

Current Project
Forgotten
09-17-2011, 05:39 PM
Find
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#4
RE: Credits don't work

(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 Sad

09-17-2011, 05:50 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#5
RE: Credits don't work

Good eye GreyFox!
void start_credits1(string &in asParent, string &in asChild, int alState)

(This post was last modified: 09-17-2011, 06:28 PM by Khyrpa.)
09-17-2011, 06:26 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#6
RE: Credits don't work

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.

Current Project
Forgotten
09-17-2011, 06:27 PM
Find
fuytko Offline
Junior Member

Posts: 41
Threads: 6
Joined: Jun 2011
Reputation: 1
#7
RE: Credits don't work

Thanks a lot,it's working !!!!
09-17-2011, 06:41 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#8
RE: Credits don't work

Awesome. Looking forward to playing it.

-Grey Fox

Current Project
Forgotten
09-17-2011, 06:49 PM
Find




Users browsing this thread: 2 Guest(s)