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
sigh... a fatal error.. again!
TheDavenia Offline
Member

Posts: 223
Threads: 38
Joined: Jun 2011
Reputation: 0
#1
sigh... a fatal error.. again!

I need help on this fatal error please!

This is what my maps .hps file says:

void OnStart()
{
AddUseItemCallback("", "key_laboratory_1", "level_dungeon_2", "unlock_level_dungeon_2", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_10", "unlock_cabinet_metal_10", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_9", "unlock_cabinet_metal_9", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_8", "unlock_cabinet_metal_8", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_7", "unlock_cabinet_metal_7", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_6", "unlock_cabinet_metal_6", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_5", "unlock_cabinet_metal_5", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_4", "unlock_cabinet_metal_4", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_3", "unlock_cabinet_metal_3", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_2", "unlock_cabinet_metal_2", true);
AddUseItemCallback("", "hollow_needle_1", "cabinet_metal_1", "unlock_cabinet_metal_1", true);
}

void unlock_level_dungeon_2(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("level_dungeon_2", false);
    PlaySoundAtEntity("", "unlock_door", "level_dungeon_2", 0, false);
    RemoveItem("key_laboratory_1");
}

void unlock_cabinet_metal_10(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_10", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_10", 0, false);
}

void unlock_cabinet_metal_9(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_9", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_9", 0, false);
}

void unlock_cabinet_metal_8(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_8", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_7", 0, false);

void unlock_cabinet_metal_7(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_7", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_7", 0, false);
}

void unlock_cabinet_metal_6(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_6", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_6", 0, false);
}

void unlock_cabinet_metal_5(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_5", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_5", 0, false);
}

void unlock_cabinet_metal_4(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_4", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_4", 0, false);
}

void unlock_cabinet_metal_3(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_3", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_3", 0, false);
}

void unlock_cabinet_metal_2(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_2", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_2", 0, false);
}

void unlock_cabinet_metal_1(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("cabinet_metal_1", false);
    PlaySoundAtEntity("", "unlock_door", "cabinet_metal_1", 0, false);
}

And this is what the error says:

FATAL ERROR: Could not load script file
'custom_stories/(secret)/maps/c:/Program Files (x86)/Steam/SteamApps/common/amnesia the dark descent/custom_stories/(secret)/maps/dungeon.hps'!
ExecuteString (1, 1) : ERR : No matching signatures to 'OnEnter()'
ExecuteString (1, 1) : ERR : No matching signatures to 'OnLeave()'
main (80, 2) : ERR : Unexpected end of file

Please help!
Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
07-18-2011, 02:07 PM
Find


Messages In This Thread
sigh... a fatal error.. again! - by TheDavenia - 07-18-2011, 02:07 PM
RE: sigh... a fatal error.. again! - by Kyle - 07-18-2011, 02:12 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 02:23 PM
RE: sigh... a fatal error.. again! - by Roenlond - 07-18-2011, 02:40 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 02:41 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 03:35 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 03:49 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-18-2011, 07:49 PM
RE: sigh... a fatal error.. again! - by Ouroboros - 07-19-2011, 04:24 AM



Users browsing this thread: 1 Guest(s)