Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Thread Closed 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story Error? pls Heeelp
Author Message
Radical Batz Offline
Posting Freak

Posts: 953
Joined: Dec 2013
Reputation: 25
Post: #1
Custom Story Error? pls Heeelp

so this is the script for my amnesia custom story!

void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}



Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'
(This post was last modified: 12-20-2013 02:52 PM by Radical Batz.)
12-20-2013 02:50 PM
Find all posts by this user
RaideX Offline
Member

Posts: 212
Joined: May 2013
Reputation: 7
Post: #2
RE: Custom Story Error? pls Heeelp

(12-20-2013 02:50 PM)Badcat5550 Wrote:  so this is the script for my amnesia custom story!

void OnStart()
{
setEntityPlayerInteractCallback("key_tomb_rusty_1", "ActivateMonster"), true);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster(string &in item)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}



Is there something I did wrong because I keep getting an error whenever I load my custom story! saying "FATAL ERROR: Could not load script file
'custom_stories/ThereHasToBeaWayout/maps/ch01/ThereHasToBeaWayOut.hps'!
main (4,77):ERR :Expected ';'

You have a missplaced bracked on line 4 Smile

try replacing the line with this:

PHP Code: (Select All)
SetEntityPlayerInteractCallback("key_tomb_rusty_1""ActivateMonster"true); 

If you don't draw first, you don't get to draw at all... -The False Shepherd
(This post was last modified: 12-20-2013 03:47 PM by RaideX.)
12-20-2013 03:47 PM
Find all posts by this user
Romulator Offline
G'day mate! :3

Posts: 3,503
Joined: Jan 2013
Reputation: 191
Post: #3
RE: Custom Story Error? pls Heeelp

Firstly: Welcome to the forums!

Secondly, you have posted this in the wrong section. Please use the Development Support section next time you are having errors related to Custom Story installation or development errors.

What is wrong is your SetEntityPlayerInteractCallback syntax. It should be written as:
PHP Code: (Select All)
SetEntityPlayerInteractCallback("key_tomb_rusty_1""ActivateMonster"true); 

What your issue is; is that you have a bracket that shouldn't be there. Otherwise, I believe it to be correct.

Edit: Was ninja'd by RaideX. Stupid iPod.

Discord: Romulator#4942
[Image: 8f5d099c7b.png]
(This post was last modified: 12-20-2013 03:56 PM by Romulator.)
12-20-2013 03:55 PM
Find all posts by this user
Radical Batz Offline
Posting Freak

Posts: 953
Joined: Dec 2013
Reputation: 25
Post: #4
RE: Custom Story Error? pls Heeelp

Ahhh memories, I remember when I didn't know how to code, not even anything XD
I used to tell people to give me a code every single time but now because of the help of neelke, lazzer and the forums now I know how to script all by myself. Thank u neelke, lazzer and the forums, my work would be nothing without u Heart

10-05-2014 01:05 PM
Find all posts by this user
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Joined: Mar 2012
Reputation: 124
Post: #5
RE: Custom Story Error? pls Heeelp

That's great and all Badcat, but there's no need to go digging up old threads over it Smile

-Locked

[Image: Tv0YgQb.gif]
Image by BandyGrass
10-05-2014 04:01 PM
Find all posts by this user
Thread Closed 




User(s) browsing this thread: 1 Guest(s)