The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Fatal error help please
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#1
Fatal error help please

Hey guys when i load my map on Amnesia it gives me this error:

[Image: fatalerror.png]

Here is my maps .hps file:

void OnStart()
{
AddEntityCollideCallback("korv_foreal", "korven", "BreakDoor", true, 1);
AddUseItemCallback("UseCrowbar", "crowbar_1", "korv_use_crowbar", "UseCrowbar", true);
SetLocalVarInt("CrowbarUsed", 0);
AddEntityCollideCallback("Player", "ScriptArea_1", "RollCredits", true, 1);
AddEntityCollideCallback("Player", "MonsterArea", "Spawn_Monster", true);
}

void UseCrowbar(string &in asItem, string &in asEntity)
{
    SetEntityActive("crowbar_joint_1", true);
    RemoveItem(asItem);
    AddLocalVarInt("CrowbarUsed", 1);
}

void BreakDoor(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("korv_foreal", false);
    SetSwingDoorLocked("korven_door", false, true);
    SetPropHealth("korven_door", 0);
    SetSwingDoorClosed("korven_door", false, false);
    PlaySoundAtEntity("break","break_wood_metal", "AreaBreakEffect", 0, false);
    CreateParticleSystemAtEntity("breakps", "ps_hit_wood", "AreaBreakEffect", false);
    SetEntityActive("broken_korv", true);
    GiveSanityBoostSmall();
}

void RollCredits(string &in asParent, string &in asChild, int alState)
{
    StartCredits("", true, "Ending", "MainCredits", 0);
}

void Spawn_Monster(string &in entity)
{
SetEntityActive("Korven", true);
ShowEnemyPlayerPosition("Korven");
SetMessage("Korv", "Korv2", 5.0f);
GiveSanityDamage(9.0f, true);
StartPlayerLookAt("Korven", 10, 50, "");
AddTimer("", 1.0f, "TimerStopPlayerLookAtKorven");
}

void TimerStopPlayerLookAtKorven(string &in asTimer)
{
StopPlayerLookAt();
}

void OnLeave()
{

}

And this is what i put inside of my .lang file for the SetMessage("Korv", "Korv2", 5.0f);:

<CATEGORY Name="Korv">
        <Entry Name="Korv2">Quickly! Run to the door!</Entry>
        </CATEGORY>
Please help Confused

Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 06-28-2011, 10:17 PM by TheDavenia.)
06-28-2011, 10:05 PM
Find


Messages In This Thread
Fatal error help please - by TheDavenia - 06-28-2011, 10:05 PM
RE: Fatal error help please - by Kyle - 06-28-2011, 11:10 PM
RE: Fatal error help please - by TheDavenia - 06-28-2011, 11:19 PM
RE: Fatal error help please - by Kyle - 06-28-2011, 11:33 PM
RE: Fatal error help please - by TheDavenia - 06-28-2011, 11:40 PM
RE: Fatal error help please - by Kyle - 06-29-2011, 12:15 AM
RE: Fatal error help please - by TheDavenia - 06-29-2011, 12:18 AM
RE: Fatal error help please - by Kyle - 06-29-2011, 12:29 AM
RE: Fatal error help please - by TheDavenia - 06-29-2011, 12:32 AM
RE: Fatal error help please - by Fnoigy - 06-29-2011, 12:22 PM
RE: Fatal error help please - by Kyle - 06-29-2011, 01:56 PM



Users browsing this thread: 2 Guest(s)