Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
Some wierd bug
First off, I have a bug with the .lang file, or to more exact, the letter function.
Surviving is the key[br][br]Just survive
Kitchen Key
Key for the Kitchen
Bobby Pin
This item is needed for later
Kitchen
Workplace
Kitchen
The smell of blood and flesh makes this place much worse... [br][br]I just want to get out of here, I can't stand this place
The letter said this place is filled with riddles, and if I want to survive, I have to get through this place.. [br][br] The letter also mentioned this area would be crawling with those things, I don't like the sound of that
The pathway is blocked, maybe I can find something to unblock the path?
The Abduction
[br]Today, I went to work, it was a normal day.
Nothing out of the ordinary..
[br]But later on, I noticed this girl crying in the alley.
I went over to check it out, but it seemed there was nobody there.
[br] I turned around to walk back as I was hit on my head with something hard,
it all went black. [br][br] I woke up in this room, and I am scared, I dont know what to do..
[br]If someone reads this, I suggest you get out of here.
Beware; there are alot of dangers in this place.
And some bug with one of my maps, it doesent give any crash or typo wrongs.
void Onstart()
{
AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1);
AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1);
AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1);
AddEntityCollideCallback("Player", "lyd_4", "activatelookat", true, 1);
SetEntityPlayerLookAtCallback("monster", "ambush", true);
AddEntityCollideCallback("Player", "servant_grunt_1", "backtomansion", true, 0);
}
void girlcry(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_1");
AddTimer("", 3, "girlstopcry");
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_2", 2, 2, "");
SetPlayerActive(false);
}
void girlcry1(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_2");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_3", 2, 2, "");
}
void girlcry2(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_3");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_4", 2, 2, "");
}
void activatelookat(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);
}
void ambush(string &in asEntity, int alState)
{
SetEntityActive("servant_grunt_1", true);
}
void backtomansion(string &in asParent, string &in asChild, int alState)
{
ChangeMap("mansion_1.map", "from_flashback_1", "", "");
PlaySoundAtEntity("", "attack_claw.snt", "", 0, false);
GivePlayerDamage(0, "Claws", true, false);
FadeOut(3);
SetPlayerActive(false);
SetPlayerCrouching(true);
SetEnemyDisableTriggers("servant_grunt_1", false);
}
void StopPlayerLook(string &in asTimer)
{
StopPlayerLookAt();
}
void ResetPlayer(string &in asTimer)
{
SetPlayerActive(true);
}
void girlstopcry(string &in asTimer)
{
StopSound(asTimer, 1.0);
}
void girlcry_1(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false);
}
void girlcry_2(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false);
}
void girlcry_3(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false);
}
void OnEnter()
{
}
void OnLeave()
{
SetupLoadScreen("LoadingText", "Flashback", 0, "");
}
None of them works, nothing happens when i go inside script area.
(This post was last modified: 02-23-2012, 05:27 AM by Ardoetia.)
|
|
02-22-2012, 05:39 PM |
|
Unearthlybrutal
Posting Freak
Posts: 775
Threads: 12
Joined: May 2011
Reputation:
26
|
RE: Some wierd bug
Timer's syntax is (string &in asTimer),
and not (string &in asParent, string &in asChild, int alState).
|
|
02-22-2012, 06:15 PM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Some wierd bug
(02-22-2012, 06:15 PM)Unearthlybrutal Wrote: Timer's syntax is (string &in asTimer),
and not (string &in asParent, string &in asChild, int alState). What?
void StopPlayerLook(string &in asTimer)
{
StopPlayerLookAt();
}
void ResetPlayer(string &in asTimer)
{
SetPlayerActive(true);
}
void girlstopcry(string &in asTimer)
{
StopSound(asTimer, 1.0);
}
void girlcry_1(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_2", 0, false);
}
void girlcry_2(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_3", 0, false);
}
void girlcry_3(string &in asTimer)
{
PlaySoundAtEntity("", "12_girl_cry.snt", "lyd_4", 0, false);
}
These are the only timers?
void girlcry(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_1");
AddTimer("", 3, "girlstopcry");
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_2", 2, 2, "");
SetPlayerActive(false);
}
void girlcry1(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_2");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_3", 2, 2, "");
}
void girlcry2(string &in asParent, string &in asChild, int alState)
{
AddTimer("", 0, "girlcry_3");
AddTimer("", 3, "girlstopcry");
SetPlayerActive(false);
AddTimer("", 1, "ResetPlayer");
AddTimer("", 1.5, "SetPlayerActive");
StartPlayerLookAt("lyd_4", 2, 2, "");
}
Points to
AddEntityCollideCallback("Player", "lyd_1", "girlcry", true, 1);
AddEntityCollideCallback("Player", "lyd_2", "girlcry1", true, 1);
AddEntityCollideCallback("Player", "lyd_3", "girlcry2", true, 1);
|
|
02-22-2012, 06:40 PM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Some wierd bug
Onstart != OnStart.
|
|
02-22-2012, 07:12 PM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Some wierd bug
Omg fucking embarressing, I hate my life. And I hate doing that mistake.
|
|
02-22-2012, 07:18 PM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Some wierd bug
What about the letter?
Whats wrong there?
|
|
02-23-2012, 01:29 AM |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Some wierd bug
(02-23-2012, 01:29 AM)Ardoetia Wrote: What about the letter?
Whats wrong there?
I don't see anything wrong with the .lang file. Maybe you typed in FormerVictim instead of FomerVictim in the level editor.
|
|
02-23-2012, 01:45 AM |
|
Ardoetia
Junior Member
Posts: 46
Threads: 4
Joined: Feb 2012
Reputation:
0
|
RE: Some wierd bug
Thx, I havent really looked there, nice to get it done tho, thanks bro :]
|
|
02-23-2012, 03:28 AM |
|
|