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
Error: Unexpected End of File
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#1
Error: Unexpected End of File

I don't think that it should have messed up... but here is the script:

void OnStart()

{
AddEntityCollideCallback("Player" , "ScriptArea_2" , "CollideRoomFour" , true, 1);
AddEntityCollideCallback("CellarDoor2" , "ScriptArea_2" , "CollideRoomThree" , true, 1);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
AddUseItemCallback("", "Castle Key" , "Castle Door" , "UsedKeyOnDoor2" , true);
AddUseItemCallback("", "Cellar Key" , "CellarDoor" , "UsedKeyOnDoor" , true);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_1", true, true);
GiveSanityDamage(25, true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{

SetSwingDoorLocked(asEntity, false, true);
SetLevelDoorLocked(asEntity, false);

PlaySoundAtEntity("unlocksound", "unlock_door.snt", asEntity, 0.0f, false);

RemoveItem(asItem);
}
void CollideRoomThree(string &in asParent, string &in asChild, int alstate)
{
GiveSanityDamage(10, true);
SetEntityActive("servant_grunt_1" , true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 5.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_23", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_34", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_33", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_35", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_49", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_55", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_57", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_65", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_66", 0.0f, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_70", 0.0f, "");

}
void CollideRoomFour(string &in asParent, string &in asChild, int alstate)
{
PlayGuiSound("scare_baby_cry.snt, 1);
}


void OnEnter()
{

}

void OnLeave()
{

}

10-12-2010, 12:05 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Error: Unexpected End of File

I should also add that it messed up when I added the callback "CollideRoomFour" and also the sound that is under CollideRoomFour.

10-12-2010, 01:42 AM
Find
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#3
RE: Error: Unexpected End of File

void CollideRoomFour(string &in asParent, string &in asChild, int alstate)
{
PlayGuiSound("scare_baby_cry.snt, 1);
}

You forgot the quotation mark close after .snt.

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
10-12-2010, 01:44 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Error: Unexpected End of File

Thanks! Smile

Now I feel so stupid. XD

10-12-2010, 01:58 AM
Find
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#5
RE: Error: Unexpected End of File

Happens to everyone, a bunch of times Smile

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
10-12-2010, 02:01 AM
Find




Users browsing this thread: 2 Guest(s)