Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 6 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script causing game to randomly crash (No FATAL ERROR)
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
RE: Script causing game to randomly crash (No FATAL ERROR)

Try this

void OnStart()
{
if(ScriptDebugOn());
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100);
}
AddEntityCollideCallback("Player", "BruteWalkAway", "ActivateBrute", true, 1);
AddEntityCollideCallback("servant_brute_1", "Disappear", "FadeEnemy", true, 1);
}

void ActivateBrute(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddTimer("Freeze", 2.0f, "FreezePlayer");
SetLightVisible("torch_static01_6", false);
SetLightVisible("torch_static01_7", false);
SetLightVisible("torch_static01_8", false);
SetLightVisible("torch_static01_9", false);
SetLightVisible("torch_static01_10", false);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0.5f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0.5f, "");

}

void FreezePlayer(string &in asTimer)
{
SetPlayerActive(false);
StartPlayerLookAt("servant_brute_1", "", "", "");
AddTimer("Look", 5.0f, "LookAt");
}

void LookAt(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}

void FadeEnemy(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_brute_1", false);
}

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

(This post was last modified: 08-30-2011, 02:48 AM by JetlinerX.)
08-27-2011, 11:52 PM
Website Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

May I ask what you guys changed? Tongue

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-29-2011, 10:26 PM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
RE: Script causing game to randomly crash (No FATAL ERROR)

Semi-colon after the script de-bug.

I had the same problem a while ago, and that fixed it for me.

Did I fix it for you?

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-30-2011, 02:47 AM
Website Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

Oh wow, I was putting it all in the wrong script...
I will re-try both of them...

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-31-2011, 08:29 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

Nope not working...

Anything else?

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
08-31-2011, 10:41 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

Bumpsssssssssssssss

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
09-02-2011, 05:49 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

Is my question literally impossible to fix???

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
09-03-2011, 06:09 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

.... HELP MEEEE

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
09-09-2011, 01:42 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
RE: Script causing game to randomly crash (No FATAL ERROR)

void OnStart()
{
    if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");
        SetPlayerLampOil(100);
    }
    
    AddEntityCollideCallback("Player", "BruteWalkAway", "ActivateBrute", true, 1);
    AddEntityCollideCallback("servant_brute_1", "Disappear", "FadeEnemy", true, 1);
}

void ActivateBrute(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("servant_brute_1", true);
    AddTimer("Freeze", 2.0f, "FreezePlayer");
    SetLightVisible("torch_static01_6", false);
    SetLightVisible("torch_static01_7", false);
    SetLightVisible("torch_static01_8", false);
    SetLightVisible("torch_static01_9", false);
    SetLightVisible("torch_static01_10", false);
    AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0.5f, "");
    AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0.5f, "");
}

void FreezePlayer(string &in asTimer)
{
    SetPlayerActive(false);
    StartPlayerLookAt("servant_brute_1", 5, 10, "");
    AddTimer("Look", 5.0f, "LookAt");
}

void LookAt(string &in asTimer)
{
    StopPlayerLookAt();
    SetPlayerActive(true);
}

void FadeEnemy(string &in asParent, string &in asChild, int alState)
{
    FadeEnemyToSmoke("servant_brute_1", false);
}

>_>

Tutorials: From Noob to Pro
(This post was last modified: 09-09-2011, 03:50 AM by Your Computer.)
09-09-2011, 03:48 AM
Website Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
RE: Script causing game to randomly crash (No FATAL ERROR)

(09-09-2011, 03:48 AM)Your Computer Wrote:
void OnStart()
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100);
}

AddEntityCollideCallback("Player", "BruteWalkAway", "ActivateBrute", true, 1);
AddEntityCollideCallback("servant_brute_1", "Disappear", "FadeEnemy", true, 1);
}

void ActivateBrute(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddTimer("Freeze", 2.0f, "FreezePlayer");
SetLightVisible("torch_static01_6", false);
SetLightVisible("torch_static01_7", false);
SetLightVisible("torch_static01_8", false);
SetLightVisible("torch_static01_9", false);
SetLightVisible("torch_static01_10", false);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0.5f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0.5f, "");
}

void FreezePlayer(string &in asTimer)
{
SetPlayerActive(false);
StartPlayerLookAt("servant_brute_1", 5, 10, "");
AddTimer("Look", 5.0f, "LookAt");
}

void LookAt(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}

void FadeEnemy(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_brute_1", false);
}

>_>
-asplodes-

THANK YOU.

Just wondering, what did you change?

Also getting a new crash, but this time it should be an easily fixable FATAL ERROR script crash...

I can't remember it exactly, but its something like this..


(1,1) something about OnEnter()
(1,1) something about Activation(string@)
and some other line I forgot, I will have to play through again today.

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1, "Credits", true, 1);
}

void Credits(string &in asParent, string &in asChild, int alState)
{
StartCredits("", false, "Ending", "StartCredits", 4);
}


I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 09-11-2011, 04:11 PM by RawkBandMan.)
09-11-2011, 04:10 PM
Find




Users browsing this thread: 1 Guest(s)