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 Unexpected End of File
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#1
Unexpected End of File

I really didn't want to resort to this because this is such a silly problem. I know exactly what an unexpected end of file means, but, after going through the .hps file numerous times (seriously, for the past two and a half hours I've been going through this darn thing) I found one missing quotation mark. But fixing that did nothing. The error box says the problem is at the very end of the file and obviously there is nothing wrong with that.

This problem wasn't happening until I put in this script for void Open (a working script from another map I made a while back), and I've gone through that script looking for any errors: nothing. I tried removing it: nothing.

I'm at my wit's end. At this point, I've probably stared at this for so long, I'm not bound to notice anything. -.-

EDIT: I went the through .hps again, putting in everything a little bit at a time to find out which section is causing the trouble. I've edited down the code to show only this problem code.

void Open(string &in asItem, string &in asEntity)
{
    SetEntityInteractionDisabled("door", false);

    SetWheelInteractionDisablesStuck(asEntity, false);
    SetWheelStuckState(asEntity, alState, false);
    SetEntityInteractionDisabled("key", false);
    PlaySoundAtEntity("", "lapeurdelaverite.snt", "door", 0, false);
    AddDebugMessage("State changed to: "+alState, false);
}

(This post was last modified: 01-19-2015, 03:49 AM by AGP.)
01-19-2015, 02:14 AM
Find


Messages In This Thread
Unexpected End of File - by AGP - 01-19-2015, 02:14 AM
RE: Unexpected End of File - by PutraenusAlivius - 01-19-2015, 07:34 AM
RE: Unexpected End of File - by Mudbill - 01-19-2015, 08:31 AM
RE: Unexpected End of File - by AGP - 01-19-2015, 08:49 AM
RE: Unexpected End of File - by Mudbill - 01-19-2015, 09:12 AM
RE: Unexpected End of File - by PutraenusAlivius - 01-19-2015, 09:24 AM
RE: Unexpected End of File - by AGP - 01-19-2015, 09:49 AM
RE: Unexpected End of File - by Mudbill - 01-19-2015, 11:45 AM



Users browsing this thread: 1 Guest(s)