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
I GIVE UP!
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
I GIVE UP!

This sucks... I've tried EVERYTHING to make this damn thing do as I tell it to, but this trolling game doesn't let me! All I want to do is make the screen show me a message...

Here is my Script

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "Donejob", "Goodjob", true, 1);
}

void Goodjob(string &in asTimer)
{
SetMessage("Message", "Jobdone", 3.0f);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


And here is my Lang file...
Spoiler below!









What's that? Who's there? What's that noise? This is a story of Jack, the man who owns a bar at a rest stop in the woods. Will you survive, or shall you humbly perish?












Well, another day over. Well I am off for a vacation tomorrow! Can't wait!






Please for the love of God, Help me!
(This post was last modified: 09-27-2011, 02:04 AM by Angerpull.)
09-27-2011, 12:32 AM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#2
RE: I GIVE UP!

(09-27-2011, 12:32 AM)Angerpull Wrote: This sucks... I've tried EVERYTHING to make this damn thing do as I tell it to, but this trolling game doesn't let me! All I want to do is make the screen show me a message...

Here is my Script

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "Donejob", "Goodjob", true, 1);
}

void Goodjob(string &in asTimer)
{
SetMessage("Message", "Jobdone", 3.0f);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

You have an entity collide callback set as a timer...
should be "void Goodjob(string &in asChild, string &in asParent, int alState)"

Insanity. Static.
(This post was last modified: 09-27-2011, 12:37 AM by Juby.)
09-27-2011, 12:37 AM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#3
RE: I GIVE UP!

(09-27-2011, 12:32 AM)Angerpull Wrote: This sucks... I've tried EVERYTHING to make this damn thing do as I tell it to, but this trolling game doesn't let me! All I want to do is make the screen show me a message...

Here is my Script

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "Donejob", "Goodjob", true, 1);
}

void Goodjob(string &in asTimer)
{
SetMessage("Message", "Jobdone", 3.0f);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}


And here is my Lang file...
Spoiler below!









What's that? Who's there? What's that noise? This is a story of Jack, the man who owns a bar at a rest stop in the woods. Will you survive, or shall you humbly perish?












Well, another day over. Well I am off for a vacation tomorrow! Can't wait!






Please for the love of God, Help me!
Seems that my Lang file got a little bugged when I tried to show it...

___________________________________________________

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
Entry Name="Description">What's that? Who's there? What's that noise? This is a story of Jack, the man who owns a bar at a rest stop in the woods. Will you survive, or shall you humbly perish?</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
</CATEGORY>
<CATEGORY Name="Journal">
</CATEGORY>
<CATEGORY Name ="Message">
<Entry Name="Jobdone">Well, another day over. Well I am off for a vacation tomorrow! Can't wait!</Entry>
</CATEGORY>
</LANGUAGE>
(09-27-2011, 12:37 AM)Juby Wrote:
(09-27-2011, 12:32 AM)Angerpull Wrote: This sucks... I've tried EVERYTHING to make this damn thing do as I tell it to, but this trolling game doesn't let me! All I want to do is make the screen show me a message...

Here is my Script

Spoiler below!


void OnStart()
{
AddEntityCollideCallback("Player", "Donejob", "Goodjob", true, 1);
}

void Goodjob(string &in asTimer)
{
SetMessage("Message", "Jobdone", 3.0f);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

You have an entity collide callback set as a timer...
should be "void Goodjob(string &in asChild, string &in asParent, int alState)"
It didn't work when I changed it... Nothing at all appears.
(This post was last modified: 09-27-2011, 12:40 AM by Angerpull.)
09-27-2011, 12:38 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: I GIVE UP!

Make sure collision occurs. For example, use an AddDebugMessage function. That message will be shown only for 3 seconds.

Also your lang file is either lacking, or shown lacking.

Entry Name="Description"> should be <Entry Name="Description">

09-27-2011, 12:45 AM
Website Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#5
RE: I GIVE UP!

Could this all happen because I'm in developer mode?
09-27-2011, 01:25 AM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#6
RE: I GIVE UP!

Yes. Your game can't read extra_lang files while in developer mode.

09-27-2011, 01:30 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: I GIVE UP!

(09-27-2011, 01:30 AM)Homicide13 Wrote: Yes. Your game can't read extra_lang files while in developer mode.

No, the game will read it regardless of being in "developer mode." The only time the game doesn't load the contents of the .lang file is when there is a syntax error in it (or when there is no .lang file).

Tutorials: From Noob to Pro
(This post was last modified: 09-27-2011, 01:33 AM by Your Computer.)
09-27-2011, 01:32 AM
Website Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#8
RE: I GIVE UP!

Entry Name="Description">What's that? Who's there? What's that noise? This is a story of Jack, the man who owns a bar at a rest stop in the woods. Will you survive, or shall you humbly perish?</Entry>


You have no < symbol before Entry Name.

Usually when the lang file won't load, it's a syntax error.

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
09-27-2011, 01:38 AM
Find
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#9
RE: I GIVE UP!

(09-27-2011, 01:38 AM)Selyp Wrote: Entry Name="Description">What's that? Who's there? What's that noise? This is a story of Jack, the man who owns a bar at a rest stop in the woods. Will you survive, or shall you humbly perish?


You have no < symbol before Entry Name.

Usually when the lang file won't load, it's a syntax error.


Holy bread sniffing crums, that worked... jeeeez!!!!!! thank you!
And that's weird, I hardly know how to make a message on my screen, but I know now. And I instantly learn how to use timers? What kind of black magic is this?
(This post was last modified: 09-27-2011, 02:31 AM by Angerpull.)
09-27-2011, 01:57 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#10
RE: I GIVE UP!

I'm not sure if anyone told you this, but this:

void Goodjob(string &in asTimer)

Should be this:

void Goodjob(string &in asParent, string &in asChild, int alState)


(This post was last modified: 09-27-2011, 10:41 AM by Kyle.)
09-27-2011, 10:41 AM
Find




Users browsing this thread: 1 Guest(s)