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
Custom Story Error? pls Heeelp
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#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
RaideX Offline
Member

Posts: 212
Threads: 33
Joined: May 2013
Reputation: 7
#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
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#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#0001
[Image: 3f6f01a904.png]
(This post was last modified: 12-20-2013, 03:56 PM by Romulator.)
12-20-2013, 03:55 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#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
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#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




Users browsing this thread: 1 Guest(s)