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 Help fatal error! help plz
pewds..fan Offline
Junior Member

Posts: 11
Threads: 4
Joined: May 2013
Reputation: 0
#1
fatal error! help plz

hi everyone here is the error that arrives when im trying to enter from my map 2 to map 3:

FATAL ERROR:Could not load script file
'custom_stories/paskaa/custom_stories/paskaa/maps/C:/Program Files(x86)/kauhupelit/Amnesia-The Dark Descent(2)/redist/custom_stories/paskaa/maps/03_testi.hps'
main(11,4): ERR : Expected ',' or ','
main(12,19) : ERR : Expected identifier
main(13,19) : ERR : Expected identifier
main(14,19) : ERR : Expected identifier

SCRIPT
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "START_GRUNT_1", "GRUNT", true, 1);
AddEntityCollideCallback("Player", "START_KNIGHTS", "KNIGHT", true, 1);
}

void KNIGHT(string &in asParent, string &in asChild, int alState)

SetEntityActive("KNIGHT_0", true);
SetEntityActive("KNIGHT_1", true);
SetEntityActive("KNIGHT_2", true);
SetEntityActive("KNIGHT_3", true);

void GRUNT(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("GRUNT_1", true);
AddEnemyPatrolNode("GRUNT_1", "NODE_1", 0, "");
}

////////////////////////////
// Run when entering map
void OnEnter()
{
AutoSave();
AddEntityCollideCallback("Player", "door_close", "closedoor", true, 1);
}

void closedoor(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
}


////////////////////////////
// Run when leaving map
void OnLeave()
{
AutoSave();
}


if you can find these mistakes that i could not find plz tell me Smile !
05-28-2013, 02:05 PM
Find


Messages In This Thread
fatal error! help plz - by pewds..fan - 05-28-2013, 02:05 PM
RE: fatal error! help plz - by Adrianis - 05-28-2013, 02:18 PM
RE: fatal error! help plz - by pewds..fan - 05-28-2013, 02:26 PM
RE: fatal error! help plz - by Adrianis - 05-28-2013, 02:32 PM
RE: fatal error! help plz - by pewds..fan - 05-28-2013, 02:38 PM



Users browsing this thread: 1 Guest(s)