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
Need various information
Kyle Offline
Posting Freak

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

It should work. :/

05-27-2011, 07:53 PM
Find Reply
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#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 Reply
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#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 Reply
Kyle Offline
Posting Freak

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

You forgot "void" on the first line.

Should be:

void OnStart()

05-28-2011, 09:04 PM
Find Reply
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#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 Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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.

:p

05-28-2011, 09:10 PM
Find Reply
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#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 Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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 Reply
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#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 Reply
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#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! :p

05-30-2011, 10:35 PM
Find Reply




Users browsing this thread: 1 Guest(s)