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
message help
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#21
RE: message help

(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.

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-03-2012, 04:55 AM by eagledude4.)
01-03-2012, 04:21 AM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#22
RE: message help

(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 <--



01-03-2012, 04:36 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#23
RE: message help

Is that the issue?
01-03-2012, 04:40 AM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#24
RE: message help

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.

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-03-2012, 04:55 AM by eagledude4.)
01-03-2012, 04:53 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#25
RE: message help

Your issues baffle me... O.e Have you figured it out yet?
01-03-2012, 09:13 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#26
RE: message help

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

No Sad


Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-05-2012, 06:00 PM by eagledude4.)
01-05-2012, 12:58 AM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#27
RE: message help

Help please?

Its hard to see the truth when you've been blinded by lies.
01-11-2012, 10:02 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#28
RE: message help

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

01-12-2012, 02:13 AM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#29
RE: message help

.hps:
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:
<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.

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 01-12-2012, 02:20 AM by eagledude4.)
01-12-2012, 02:19 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#30
RE: message help

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.

(This post was last modified: 01-12-2012, 02:24 AM by flamez3.)
01-12-2012, 02:23 AM
Find




Users browsing this thread: 5 Guest(s)