07-18-2011, 02:07 PM
I need help on this fatal error please!
This is what my maps .hps file says:
And this is what the error says:
Please help!
Thanks,
TheDavenia
This is what my maps .hps file says:
Code:
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:
Code:
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