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
Script problems
justin Offline
Junior Member

Posts: 2
Threads: 1
Joined: Nov 2012
Reputation: 0
#1
Script problems

Hello, (first im german,so my english is very bad Tongue)
I maked a custom story, but if I start it, there appears a message:
FATAL ERROR :Could not load script file "custom_stories/Die Flucht/maps/Die Flucht.hps"!
main (98.2): ERR :Unexpected end of file.... Huh
thats my hps file: The error is in the last line after the } pls help .thanks Big Grin
void OnStart()
{
AddUseItemCallback("", "key_tomb_1", "mansion_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "event", "event1", true, 1);
SetEntityCallbackFunc("schraube", "OnPickup");
AddEntityCollideCallback("Player", "infa", "startinf", true, 1);
AddEntityCollideCallback("inf", "infent", "entinf", true, 1);
AddUseItemCallback("", "key2", "tuer2", "UsedKeyOnDoor2", true);
AddEntityCollideCallback("stuhl,wandbrechen,brech, true, 1);
AddEntityCollideCallback("player", "vatera", "vaterevent", true, 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("key_tomb_1");
}
void event1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amb_idle.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
SetPlayerActive(false);
SetMessage("Message", "intro1", 3);
StartPlayerLookAt("abc", 2, 2, "");
AddTimer("", 3.5f, "gerausch");
}
void gerausch(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
void OnPickup(string &in asEntity, string &in type)
{
SetMessage("Message", "schraubea", 3);
GiveSanityBoostSmall();
}
void startinf(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("inf", "true");
AddEnemyPatrolNode("inf", "PathNodeArea_1", 5, "");
AddEnemyPatrolNode("inf", "PathNodeArea_2", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_3", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_4", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_5", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_6", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_7", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_8", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_9", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_10", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_11", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_12", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_13", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_14", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_15", 0.001, "");
SetMessage("Message", "versteck", 3);
}
void entinf(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("inf", false);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
SetMessage("Message", "weg", 2);
}
void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("tuer2", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("key2");
}
void brech(string &in asParent, string &in asChild, int alState)
{
SetMessage("Message", "geschafft", 3);
PlaySoundAtEntity("", "break_wood_metal.snt", "Player", 0, false);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
GiveSanityBoostSmall();
SetEntityActive("zu", false);
SetEntityActive("offen", true);
StartScreenShake(0.01,0,0,2.9);
}
void vaterevent(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("vater", 3, 3, "");
AddTimer("", 2.0f, "vaterend");
SetMessage("Message", "vateraa", 3);
}
void vaterend(string &in asTimer)
{
StopPlayerLookAt();
}
Here is the error......
11-26-2012, 03:45 PM
Find


Messages In This Thread
Script problems - by justin - 11-26-2012, 03:45 PM
RE: Script problems - by FlawlessHappiness - 11-26-2012, 05:44 PM
RE: Script problems - by The chaser - 11-26-2012, 05:51 PM
RE: Script problems - by FlawlessHappiness - 11-26-2012, 05:52 PM
RE: Script problems - by justin - 11-27-2012, 05:18 PM



Users browsing this thread: 1 Guest(s)