Frictional Games Forum (read-only)

Full Version: message help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(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.
(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 <--


Is that the issue?
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.
Your issues baffle me... O.e Have you figured it out yet?
(01-03-2012, 09:13 PM)Statyk Wrote: [ -> ]Your issues baffle me... O.e Have you figured it out yet?

No Sad

Help please?
Can you post your updated .lang file as well as your .hps file?
.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.
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.
Pages: 1 2 3 4