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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need various information
Author Message
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #11
RE: Need various information

It should work. :/

05-27-2011 07:53 PM
Find all posts by this user Quote this message in a reply
KenOfAllTrades Offline
Member

Posts: 53
Joined: Apr 2011
Reputation: 0
Post: #12
RE: Need various information

You left out a } by the end of the script, so I fixed it. But can't you just tell me what was wrong with my last one? I can't understand the script anymore :v

EDIT: A lot of :v's I make up in here

2ND EDIT: Nevermind, I found the mistake. I had just copypasted something from the forum that was apparently wrong

I probably made a LP of this! Youtube channel here!
(This post was last modified: 05-27-2011 09:07 PM by KenOfAllTrades.)
05-27-2011 08:20 PM
Find all posts by this user Quote this message in a reply
KenOfAllTrades Offline
Member

Posts: 53
Joined: Apr 2011
Reputation: 0
Post: #13
RE: Need various information

Okay, I ask for help once again. Hope you don't mind :<

OnStart()
{
SetEntityPlayerInteractCallback("lantern_1", "Monster1", true);
}


void Monster1(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
SetEntityActive("servant_grunt_1", true);
AddTimer("Monster", 4, "Monster2");
}

void Monster2(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEntityCollideCallback("servant_grunt_1", "PathNodeArea_2", "Leave1", true, 1);
}

void Leave1(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("servant_grunt_1", false);
    SetEntityActive("Sound_1", true);
    AddTimer("Doorclose", 3.5, "Doorclosed");
}

void Doorclosed(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("Sound_1", false);
}

I've tried looking through the script but I can't find out what's wrong. When I start it, it just says "FATAL ERROR: Could not load script file 'custom_stories/Test/maps/Cellar.hps'! main (1, 8) : ERR : Expected identifier"

And instead of correcting my script, can you tell me what I did wrong so I can learn from my mistake?

I probably made a LP of this! Youtube channel here!
05-28-2011 09:00 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #14
RE: Need various information

You forgot "void" on the first line.

Should be:

void OnStart()

05-28-2011 09:04 PM
Find all posts by this user Quote this message in a reply
KenOfAllTrades Offline
Member

Posts: 53
Joined: Apr 2011
Reputation: 0
Post: #15
RE: Need various information

Ah! Can't believe I forgot that! Thank you once again, you have NO IDEA how I appreciate you and everyone else's help!!

I probably made a LP of this! Youtube channel here!
05-28-2011 09:08 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #16
RE: Need various information

(05-28-2011 09:08 PM)KenOfAllTrades Wrote:  Ah! Can't believe I forgot that! Thank you once again, you have NO IDEA how I appreciate you and everyone else's help!!

Just doing my job.

Tongue

05-28-2011 09:10 PM
Find all posts by this user Quote this message in a reply
KenOfAllTrades Offline
Member

Posts: 53
Joined: Apr 2011
Reputation: 0
Post: #17
RE: Need various information

Okay, so once again I call upon ye! How do I make custom entities show up in the level editor? And where do I have to put them in my custom story folder when I want to upload the story?

I probably made a LP of this! Youtube channel here!
05-30-2011 07:08 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #18
RE: Need various information

(05-30-2011 07:08 PM)KenOfAllTrades Wrote:  Okay, so once again I call upon ye! How do I make custom entities show up in the level editor? And where do I have to put them in my custom story folder when I want to upload the story?

In your "Amnesia The Dark Descent" folder, go to the "entities" folder, then go to were the custom entity would follow under. Then create a folder in there that has the name of your custom entity. Then put your custom entity files in there. The you can do whatever you want with that custom entity in the editor. Smile

05-30-2011 10:29 PM
Find all posts by this user Quote this message in a reply
KenOfAllTrades Offline
Member

Posts: 53
Joined: Apr 2011
Reputation: 0
Post: #19
RE: Need various information

Capital!! I tried putting the .ent in entities, not in a folder in entities! Thanks once again! You're a life-saver!!

I probably made a LP of this! Youtube channel here!
05-30-2011 10:32 PM
Find all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #20
RE: Need various information

(05-30-2011 10:32 PM)KenOfAllTrades Wrote:  Capital!! I tried putting the .ent in entities, not in a folder in entities! Thanks once again! You're a life-saver!!

Wow, I'm only 13 and I'm saving lifes now! Sweet! Tongue

05-30-2011 10:35 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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