zombiehacker595
Member
Posts: 141
Threads: 51
Joined: Mar 2012
Reputation:
3
|
FATAL ERROR plz help
help my amnesia custom story scripting is not working
this is my script so far
void OnStart()
{
SetEntityPlayerInteractCallback("key_study_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");
}
and i get this message
FATAL ERROR could not load script file
custom_stories/test/maps/intro.hps
main 19,60 : ERR: expected identifier
main 20,60 : ERR: expected indentifier
how can i fix this i did it before and it worked than i added level doors or something now its fucked little help plz ?
|
|
03-28-2012, 03:26 PM |
|
Robby
Posting Freak
Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation:
47
|
RE: FATAL ERROR plz help
(03-28-2012, 03:26 PM)zombiehacker595 Wrote: help my amnesia custom story scripting is not working
this is my script so far
void OnStart()
{
SetEntityPlayerInteractCallback("key_study_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");
}
and i get this message
FATAL ERROR could not load script file
custom_stories/test/maps/intro.hps
main 19,60 : ERR: expected identifier
main 20,60 : ERR: expected indentifier
how can i fix this i did it before and it worked than i added level doors or something now its fucked little help plz ?
There is this part of the script.
SetentityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1". 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2". 0, "Idle");
There are wrong pieces here. It should be like this...
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
At the AddEnemyPatrolNode, at "PathNodeArea_1" and PathNodeArea_2", you placed ".", which is wrong. Just copy the code I gave you. It should work.
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
|
|
03-28-2012, 03:40 PM |
|
zombiehacker595
Member
Posts: 141
Threads: 51
Joined: Mar 2012
Reputation:
3
|
RE: FATAL ERROR plz help
(03-28-2012, 03:40 PM)Nemet Robert Wrote: (03-28-2012, 03:26 PM)zombiehacker595 Wrote: help my amnesia custom story scripting is not working
this is my script so far
void OnStart()
{
SetEntityPlayerInteractCallback("key_study_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");
}
and i get this message
FATAL ERROR could not load script file
custom_stories/test/maps/intro.hps
main 19,60 : ERR: expected identifier
main 20,60 : ERR: expected indentifier
how can i fix this i did it before and it worked than i added level doors or something now its fucked little help plz ?
There is this part of the script.
SetentityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1". 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2". 0, "Idle");
There are wrong pieces here. It should be like this...
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
At the AddEnemyPatrolNode, at "PathNodeArea_1" and PathNodeArea_2", you placed ".", which is wrong. Just copy the code I gave you. It should work. thank you so much i was actually going spaztic but i cant beleive i missed that dot thanks dude
|
|
03-29-2012, 06:40 AM |
|
|