Frictional Games Forum (read-only)
I GIVE UP! - 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: I GIVE UP! (/thread-10486.html)

Pages: 1 2


I GIVE UP! - Angerpull - 09-27-2011

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!


RE: I GIVE UP! - Juby - 09-27-2011

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


RE: I GIVE UP! - Angerpull - 09-27-2011

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


RE: I GIVE UP! - Tanshaydar - 09-27-2011

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



RE: I GIVE UP! - Angerpull - 09-27-2011

Could this all happen because I'm in developer mode?


RE: I GIVE UP! - Homicide13 - 09-27-2011

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



RE: I GIVE UP! - Your Computer - 09-27-2011

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


RE: I GIVE UP! - Selyp - 09-27-2011

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.



RE: I GIVE UP! - Angerpull - 09-27-2011

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


RE: I GIVE UP! - Kyle - 09-27-2011

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)