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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script problem / fatal error
Thunderrr Offline
Junior Member

Posts: 5
Threads: 1
Joined: Apr 2011
Reputation: 0
#1
Script problem / fatal error

I'm rather new at scripting but I'm really interested in making my own level(s) for Amnesia. So I have this problem here:

Upon starting my custom story the game crashes with a fatal error. In the hpl.log I have this:

ERROR: Couldn't build script 'C:/Program Files (x86)/Amnesia - The Dark Descent/redist/custom_stories/TestLevel/maps/ch01/proov.hps'!
------- SCRIPT OUTPUT BEGIN --------------------------
main (1, 19) : ERR : Expected identifier
main (8, 10) : ERR : Expected identifier
main (10, 19) : ERR : Expected identifier
------- SCRIPT OUTPUT END ----------------------------
FATAL ERROR: Could not load script file 'custom_stories/TestLevel/custom_stories/TestLevel/maps/ch01/proov.hps'!
main (1, 19) : ERR : Expected identifier
main (8, 10) : ERR : Expected identifier
main (10, 19) : ERR : Expected identifier



My (whole) script file is this:

StartPlayerLookAt(Sound, 5, 10, onlook);

void TimerDoneLookAt(string &in asTimer)
{
StopPlayerLookAt();
}

AddTimer("", 2.5f, "TimerDoneLookAt");

PlaySoundAtEntity( "", react_breath4.ogg, player, 0.5f, false);


I made the script using mastersmith98's and anzki's script tutorials.
Can anyone please tell me what I did wrong?
Thank you!

/I included the map file.


Attached Files
.rar   proov.rar (Size: 7.68 KB / Downloads: 96)
(This post was last modified: 04-27-2011, 08:43 PM by Thunderrr.)
04-27-2011, 08:37 PM
Find


Messages In This Thread
Script problem / fatal error - by Thunderrr - 04-27-2011, 08:37 PM
RE: Script problem / fatal error - by palistov - 04-27-2011, 09:13 PM
RE: Script problem / fatal error - by Thunderrr - 04-29-2011, 03:19 PM
RE: Script problem / fatal error - by palistov - 04-29-2011, 03:42 PM
RE: Script problem / fatal error - by TheHunter - 02-28-2013, 03:39 PM
RE: Script problem / fatal error - by Thunderrr - 04-29-2011, 04:28 PM
RE: Script problem / fatal error - by Dalroc - 04-29-2011, 04:35 PM
RE: Script problem / fatal error - by Thunderrr - 04-29-2011, 05:28 PM
RE: Script problem / fatal error - by palistov - 04-29-2011, 07:15 PM
RE: Script problem / fatal error - by Thunderrr - 04-29-2011, 07:34 PM
RE: Script problem / fatal error - by i3670 - 02-28-2013, 03:42 PM



Users browsing this thread: 1 Guest(s)