Frictional Games Forum (read-only)
message help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: message help (/thread-12231.html)

Pages: 1 2 3 4


RE: message help - eagledude4 - 01-03-2012

(01-03-2012, 04:20 AM)Statyk Wrote: Do the other message show up in-game? If they do, something is wrong in the script or name of category/entry... If not, something is wrong in the "extra_english.lang" But I don't see an error in it, which makes me wonder if the other messages show up.
I'm testing in dev mode, so I don't get a chance to see the other messages. My extra_english.lang is in my custom_stories/Test directory, if that makes a difference.



RE: message help - Obliviator27 - 01-03-2012

(01-03-2012, 04:21 AM)eagledude4 Wrote:
(01-03-2012, 04:20 AM)Statyk Wrote: Do the other message show up in-game? If they do, something is wrong in the script or name of category/entry... If not, something is wrong in the "extra_english.lang" But I don't see an error in it, which makes me wonder if the other messages show up.
I'm testing in dev mode, so I don't get a chance to see the other messages. My extra_english.lang is in my custom_stories directory, if that makes a difference.
It needs to be in your Custom Story folder, not the custom_stories directory.
I.e. Redist/custom_stories/YourCustomStory <--





RE: message help - Statyk - 01-03-2012

Is that the issue?


RE: message help - eagledude4 - 01-03-2012

Quote:It needs to be in your Custom Story folder, not the custom_stories directory.
I.e. Redist/custom_stories/YourCustomStory <--

It is in there, sorry I didn't describe the location properly.



RE: message help - Statyk - 01-03-2012

Your issues baffle me... O.e Have you figured it out yet?


RE: message help - eagledude4 - 01-05-2012

(01-03-2012, 09:13 PM)Statyk Wrote: Your issues baffle me... O.e Have you figured it out yet?

No Sad




RE: message help - eagledude4 - 01-11-2012

Help please?



RE: message help - flamez3 - 01-12-2012

Can you post your updated .lang file as well as your .hps file?


RE: message help - eagledude4 - 01-12-2012

.hps:
Code:
void OnStart() {
    if (ScriptDebugOn()) {
        GiveItemFromFile("lantern", "lantern.ent");
        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
        /*SetEntityActive("invisWall", false);
        SetEntityActive("blockArea", false);*/
    }
    SetPlayerActive(false);
    FadeIn(5);
    AddTimer("FadeTimer", 5, "StartGame");
    AddNote("First", "");
    AddEntityCollideCallback("Player", "EnemyTriggerArea", "EnteredEnemyTriggerArea", true, 1);
    AddEntityCollideCallback("Player", "BlockArea", "EnteredBlockArea", true, 1);
    SetEntityCallbackFunc("key_1", "OnPickup");
    PlaySoundAtEntity("", "big_clock_chime.snt", "clock_grandfather_1", 0.0f, false);
    SetDeathHint("Death", "StairScare");
}

void OnEnter() {
}

void OnLeave() {
}

void StartGame(string &in asTimer) {
    SetPlayerActive(true);
}
    
void EnteredEnemyTriggerArea(string &in asParent, string &in asChild, int alState) {
    SetEntityActive("servant_grunt_1", true);
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
    AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
    if (asChild == "SonRoomArea") {
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 8, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_31", 0, "");
    } else if (asChild == "DadRoomArea") {
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_30", 8, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_27", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
        AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_31", 0, "");
    }
}

void EnteredBlockArea(string &in asParent, string &in asChild, int alState) {
    if (HasItem("key_1") == false) {
        SetMessage("PersonalMessages", "Barrier", 6);
    }
}

void OnPickup(string &in asEntity, string &in type) {
    SetEntityActive("invisWall", false);
    SetEntityActive("blockArea", false);
}

lang:
Code:
<LANGUAGE>
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">You are awoken by the chimes of a grandfather clock.</Entry>
    </CATEGORY>

    <CATEGORY Name="PersonalMessages">
        <Entry Name="Barrier">I should investigate my father's room before heading downstairs.</Entry>
    </CATEGORY>

    <CATEGORY Name="Death">
        <Entry Name="StairScare">Wardrobes make good hiding places.</Entry>
    </CATEGORY>
    
    <CATEGORY Name="Journal">
        <Entry Name="First">See what's up.</Entry>
    </CATEGORY>
</LANGUAGE>

NOTE: The lang file is in my redist/custom_stories/Test folder, while the map I'm testing with, along with the .hps file is in redist/maps/Custom, so that may be the issue.



RE: message help - flamez3 - 01-12-2012

I'm pretty sure that you not having the .lang file in the directory of your Custom Story is the problem, move the .lang over to your Custom Story folder for now and see if it works.