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
Script Help :(
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
:(

I have this

.hps

void OnStart()
{
SetPlayerLampOil(0);
SetPlayerHealth(5);
SetPlayerSanity(70);
SetPlayerRunSpeedMul(0);
wakeUp();
}

void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetMessage("Ch01Level01", "WakeUpMessage", 5);
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(true);
FadeImageTrailTo(0,1);
}


and .lang


<CATEGORY Name="Ch01Level01">
<Entry Name="WakeUpMessage">Where am i ? What happened? I feel... nothing.</Entry>
</CATEGORY>


by the friend who help me but it's not working for some reason...
any ideas ?
It should when he stands to text comes.

05-03-2014, 08:51 AM
Find
Romulator Offline
Not Tech Support ;-)

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

Is this your whole code and your whole lang file?

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-03-2014, 09:05 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: :(

i dont see anything wrong here.
Does your script work ( void beginStory(string &in asTimer) )
Do the other functions work? ( seems they are fine )
I think you have misplaced something in the .english.
Please send over your entire .english
-
Here is a hint do it into a SPOILER LIKE THIS.
Spoiler below!
Copy your tekst in here like this, so it is easyer to read and saves a LOT of space on the forum page.. ; [spooiler] Tekst here, Do this with 1 o -> spoiler. [/spooiler]
(This post was last modified: 05-03-2014, 11:11 AM by DnALANGE.)
05-03-2014, 11:09 AM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#4
RE: :(

you have a couple (For example: 1.6) numbers without an f after it. Also, 0.0? I don't know if that's your problem, but you could check it out.
05-03-2014, 02:47 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: :(

What is not working? Is it crashing? Is it not doing anything? Any crash message/log?

05-03-2014, 03:29 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: :(

Try calling it something else than Ch01Level01.
Maybe that name is already in use.

Trying is the first step to success.
05-03-2014, 05:08 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#7
RE: :(

No it's not in use
ugh problem is no show text
only that

[spooiler]This works ?[/spooiler]

And no it's not the whole lang but hps is

I wonder why not working it is all right ?

It should when stands to come text but it just don't Sad

(This post was last modified: 05-03-2014, 06:53 PM by Straxedix.)
05-03-2014, 06:47 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#8
RE: :(

The spooiler thing.
What i said, do it with 1 o . so like this : spoiler, not like this : spooiler Wink
[s.p.o.i.l.e.r]REMOVE THE DOTS[/s.p.o.i.le.r]
---
About the story..
Can you send your entire script and english file?
Please do it in the spoiler tags.
(This post was last modified: 05-03-2014, 06:59 PM by DnALANGE.)
05-03-2014, 06:58 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#9
RE: :(

Ok

Spoiler below!
void OnStart()
{
SetPlayerLampOil(0);
SetPlayerHealth(5);
SetPlayerSanity(70);
SetPlayerRunSpeedMul(0);
wakeUp();
}

void wakeUp () {
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetMessage("Ch01Level01", "WakeUpMessage", 5);
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(true);
FadeImageTrailTo(0,1);
}


and .lang

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Hello Player,[br]You Entered into forbidden Forest with your friends.[br]Then you got hit into head from back by unknown creature,your friends run...Maybe for help maybe they RUN AWAY![br]You are still alive but you don't remember anything![br]My first custom story by Straxedix[br]play with headphones and lights off for better FUN!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">

<CATEGORY Name="TextCategory">
<Entry Name="TextEntry">Where am i ? What happened?</Entry>
</CATEGORY>

<CATEGORY Name="Ch01Level01">
<Entry Name="WakeUpMessage">Where am i ? What happened? I feel... nothing.</Entry>
</CATEGORY>

<CATEGORY Name="Place">
<Entry Name="Wake">What is this place i know it from somewhere...Like i was already here.</Entry>
</CATEGORY>

<CATEGORY Name="DeathHint1">
<Entry Name="Entry2">Careful[br]And be ready.</Entry>
</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="test1">Where am i ? I know this place from my...Nightmares!</Entry>
</CATEGORY>
/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Notes------------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Note_NoteStranger_Name">Note from Stranger</Entry>
<Entry Name="Note_NoteStranger_Text">Hello.[br][br][br]You don't know me, but I certaintly know you.[br][br]But don't worry we will meet!</Entry>

/////////////////////////////////////////////////////////////////////////////////
//-----------------------------------Diaries-----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Diary_diary1_Name">End of the World</Entry>
<Entry Name="Diary_diary1_Text">21 December, 2012[br][br][br]The ground is literally shaking beneath my feat.</Entry>

/////////////////////////////////////////////////////////////////////////////////
//-----------------------------------Mementos----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<Entry Name="Quest_memento1_Text">Perhaps I should go the other way.</Entry>

<Entry Name="Note_voice_Name">Welcome!</Entry>
<Entry Name="Note_voice_Text">Hello.[br] [br] [br]im stuck in here i don't remember anything please help me![br][br]Find me PLEASE!!![br][br]I remmember just a hit in head and fog</Entry>

</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//----------------------------Item Names/Descriptions--------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Inventory">
<Entry Name="ItemName_key1">A Key</Entry>
<Entry Name="ItemDesc_key1">It's for unlocking a door.</Entry>

<Entry Name="ItemName_Key1234">Key for Room</Entry>
<Entry Name="ItemDesc_Key1234">It unlocks the door of room.</Entry>

<Entry Name="ItemName_Extreme1">Key for Some Door</Entry>
<Entry Name="ItemDesc_Extreme1">It unlocks the door somewhere.</Entry>

<Entry Name="ItemName_Extreme2">The Key</Entry>
<Entry Name="ItemDesc_Extreme2">It's a key</Entry>

<Entry Name="ItemName_Torture1">The Lost Key</Entry>
<Entry Name="ItemDesc_Torture1">It's a lost key of this HOUSE!</Entry>

<Entry Name="ItemName_Blah">The Key</Entry>
<Entry Name="ItemDesc_Blah">It's a key!</Entry>

<Entry Name="ItemName_Blah1">The key</Entry>
<Entry Name="ItemDesc_Blah1">It's a heavy key maybe it unlocks a that black door!</Entry>


</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Signs------------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Sign">
<Entry Name="Entry1">Study Room</Entry>
</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//------------------------------------Levels-----------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="Levels">
<Entry Name="Entry1">Main Hall</Entry>
</CATEGORY>

/////////////////////////////////////////////////////////////////////////////////
//----------------------------------Death Hints--------------------------------//
/////////////////////////////////////////////////////////////////////////////////

<CATEGORY Name="DeathHint">
<Entry Name="Entry1">You have to cary on...</Entry>
</CATEGORY>
</LANGUAGE>

05-03-2014, 07:00 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#10
RE: :(

This looks perfect.
Nice done with the spoiler tag.
Way better and saves space on the tread.
We are on the problem now.
05-03-2014, 07:01 PM
Find




Users browsing this thread: 2 Guest(s)