Frictional Games Forum (read-only)

Full Version: Game freezes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys

I've added a few things to my .hps and .lang file and suddenly my game starts freezing when i enter the map

Things i added to my .hps file
void OnStart()
{
AddUseItemCallback("", "ChestKey", "block_box_1", "UsedKeyOnChest", true);

}


void UsedKeyOnChest(string &in asItem, string &in asEntity)
{
SetEntityActive("block_box_1", false);
PlaySoundAtEntity("", "unlock_door", "treasure_chest_1", 0, false);
RemoveItem("ChestKey");
}


Things i've added to my .lang file



Last Words
I overheard two guards talking about, that i knew to much.[br]I now fear for my life, so before they get me, i writing down, what it might be that i knew to much about, in another note, that is hidding in the chest right over there
Secret Information
To get out of this dungeon, you most enter the guards office, which contains a lever puzzle to unlock the door to the castle cellar[br][br]To enter the guards office, you'll need a sledge and then knock downa weak wall, in the prinson cell right beside the office



PS. i've already checked for cached files
Does removing that script fix anything? I doubt something like that can freeze the game.
(08-09-2012, 04:42 PM)Your Computer Wrote: [ -> ]Does removing that script fix anything? I doubt something like that can freeze the game.
I've tryed to remove the script, it's still freezing, can it be something that i added in the editor?
Try removing the rag doll corpse, it's one of the buggiest entities I've seen.
(08-09-2012, 06:53 PM)andyrockin123 Wrote: [ -> ]Try removing the rag doll corpse, it's one of the buggiest entities I've seen.
Did not work Sad