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
Error Unexpected End of File
Aglowglint11 Offline
Junior Member

Posts: 31
Threads: 8
Joined: Mar 2014
Reputation: 0
#1
Error Unexpected End of File

Hey Guys, I'm getting this error for my first map and can you possibly help me? Thanks. Here is my script. It says this: "FATAL ERROR: Could not load script file 'custom_stories/Into The Depths/maps/01.hps'! Main (41,2): ERR: Unexpected end of file"
=======================================================
Script Under here
=======================================================


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "Sound_1", True, 1);
AddEntityCollideCallback("Player", "fallarea", "fall", True, 1);
AddEntityCollideCallback("Player", "SoundArea_2", "Sound_2", True, 1);
AddEntityCollideCallback("Player", "SoundArea_3", "Sound_3", True, 1);

void fall(string &in asParent, string &in asChild, int alState); {
SetEntityActive("2", True);
SetEntityActive("3", True);
SetEntityActive("4", True);
SetEntityActive("5", True);
SetEntityActive("6", True);
}

void Sound_1(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "react_breath1.ogg", "Player", 0, False);
react_breath1.ogg
}

{
AddUseItemCallback("", "Stairs_Key", "Stairs_Downstairs", "UsedKeyonDoor", true);
}

void UsedKeyonDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Stairs_Downstairs", false, true);
PlaySoundAtEntity("", "unlock_door", "Stairs_Downstairs", 0, false);
RemoveItem("Stairs_Key");
}

void Sound_2(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "general_thunder1.ogg", "Player", 0, False);

}

void Sound_3(string &in asParent, string &in asChild, int alState) {
PlaySoundAtEntity("", "amb_idle_whimp01.ogg", "Player", 0, False);
}



======================================================
Script ends here
======================================================
Please, help if you can. Thanks Big Grin

~Skyrimdude111

N00B
03-07-2014, 11:43 PM
Find


Messages In This Thread
Error Unexpected End of File - by Aglowglint11 - 03-07-2014, 11:43 PM
RE: Error Unexpected End of File - by Romulator - 03-08-2014, 01:33 AM
RE: Error Unexpected End of File - by Urkle - 03-08-2014, 03:39 AM
RE: Error Unexpected End of File - by Romulator - 03-08-2014, 12:13 PM
RE: Error Unexpected End of File - by Urkle - 03-08-2014, 02:55 PM
RE: Error Unexpected End of File - by Traggey - 03-08-2014, 04:04 PM
RE: Error Unexpected End of File - by DnALANGE - 07-10-2014, 06:38 PM
RE: Error Unexpected End of File - by Neelke - 03-09-2014, 02:16 PM
RE: Error Unexpected End of File - by Fotis - 07-10-2014, 09:37 AM
RE: Error Unexpected End of File - by Urkle - 07-10-2014, 02:48 PM



Users browsing this thread: 3 Guest(s)