Frictional Games Forum (read-only)
FATAL ERROR....EXPECTED '{' - 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: FATAL ERROR....EXPECTED '{' (/thread-16728.html)



FATAL ERROR....EXPECTED '{' - munsee16 - 07-04-2012

HI
HEELP ME
This is my hps text

////////////////////////////
// Run when starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
SetEntityPlayerInteractCallback("potion_oil_1", "Roar1", true);
SetEntityPlayerInteractCallback("potion_health_1", "Roar2", true);
SetEntityPlayerInteractCallback("note_manual", "prison_1", true);
AddEntityCollideCallback("Player", "DoorExplode", "CollideDoorExplode", true, 1);
AddUseItemCallback("", "key_1", "mansion_2", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem("key_1");
}
void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("02_amb_safe.ogg", true, 0.8, 2, 1, true);
}
void Roar1(string &in Entity)
{
PlaySoundAtEntity("Roar1", "grunt/amb_alert.snt", "Roar1", 0, false);
}
void Roar2(string &in Entity)
{
PlaySoundAtEntity("Roar2", "explosion_rock_large.snt", "Roar2", 0, false);
}
void prison_1(string &in Entity)
{
PlaySoundAtEntity("prison_1", "break_wood_metal.snt", "prison_1", 0, false);
}

void CollideDoorExplode(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("DoorExplode1", false);
SetEntityActive("DoorExploded", true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "DoorExplodeParticle", false);
PlaySoundAtEntity("", "break_wood.snt", "DoorExplodeParticle", 0, false);
}

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






AND I HAVE THIS FATAL ERROR: FATAL ERROR: Could not load script file 'custom_story/THE DARK PINK/custom_stories/THE DARK PINK/maps/THE DARK PINK.hps,! main (46,1) : ERR :Expected '{'


RE: FATAL ERROR....EXPECTED '{' - Mine Turtle - 07-04-2012

you need to have "{" and "}" at the end of your void OnLeave()


so it becomes:

void OnLeave()
{

}


RE: FATAL ERROR....EXPECTED '{' - munsee16 - 07-04-2012

(07-04-2012, 11:21 AM)darkadders Wrote: you need to have "{" and "}" at the end of your void OnLeave()


so it becomes:

void OnLeave()
{

}

THAANKS Smile NOW I HAVE NEW PROBLEM WITH NOTE AND TEXT AND NOT APPEAR DESCRIPTION
THIS IS MY EXTRA_ENGLISH.LANG TEXT

<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Bine ai venit PINK!</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>
>Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

<CATEGORY Name="Journal">
<Entry Name="Note_NOTA01_Name">Salut!</Entry>
<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe aici.[br]</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_NOTA02_Name">Monstrul</Entry>
<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a fost transformat in monstru si acum vrea sa isi foloseasca aparetele in scopuri negative.[br]</Entry>
</CATEGORY>
</LANGUAGE>


RE: FATAL ERROR....EXPECTED '{' - Your Computer - 07-04-2012

YOU HAVE A GREATER-THAN SYMBOL WHERE A LESS-THAN SYMBOL IS SUPPOSED TO BE.


RE: FATAL ERROR....EXPECTED '{' - flamez3 - 07-04-2012

^ ALLCAPS = FUNNY RESPONSE ;D


RE: FATAL ERROR....EXPECTED '{' - munsee16 - 07-04-2012

(07-04-2012, 12:09 PM)Your Computer Wrote: YOU HAVE A GREATER-THAN SYMBOL WHERE A LESS-THAN SYMBOL IS SUPPOSED TO BE.
some symbol? :-? sorry but i'm begginer


RE: FATAL ERROR....EXPECTED '{' - Traggey - 07-04-2012

Silly people, this thread does not belong here.


RE: PROBLEM WITH NOTE, TEXT AND NOT APPEAR DESCRIPTION - SilentHideButFine - 07-04-2012

<LANGUAGE>

<RESOURCES>

</RESOURCES>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">Bine ai venit PINK!</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">

<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>

<Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_NOTA01_Name">Salut!</Entry>

<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si
acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe
aici.[br]</Entry>

</CATEGORY>



<CATEGORY Name="Journal">

<Entry Name="Note_NOTA02_Name">Monstrul</Entry>

<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face
aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a
fost transformat in monstru si acum vrea sa isi foloseasca aparetele in
scopuri negative.[br]</Entry>

</CATEGORY>

</LANGUAGE>


RE: PROBLEM WITH NOTE, TEXT AND NOT APPEAR DESCRIPTION - munsee16 - 07-04-2012

(07-04-2012, 01:27 PM)SilentHideButFine Wrote: <LANGUAGE>

<RESOURCES>

</RESOURCES>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">Bine ai venit PINK!</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">

<Entry Name="ItemName_AwesomeKey">Awesome Key</Entry>

<Entry Name="ItemDesc_AwesomeKey">Cheia urmatoarei camere</Entry>

</CATEGORY>

<CATEGORY Name="Journal">

<Entry Name="Note_NOTA01_Name">Salut!</Entry>

<Entry Name="Note_NOTA01_Text">Salut![br]Ma numesc Daniel si
acestea sunt scrisorile mele in speranta de a ajuta pe cine mai trece pe
aici.[br]</Entry>

</CATEGORY>



<CATEGORY Name="Journal">

<Entry Name="Note_NOTA02_Name">Monstrul</Entry>

<Entry Name="Note_NOTA02_Text">O nu...[br]Monstrul isi face
aparitia si Doctor Cannon..o nu pot nici sa mai scriu...[br]Dr.Cannon a
fost transformat in monstru si acum vrea sa isi foloseasca aparetele in
scopuri negative.[br]</Entry>

</CATEGORY>

</LANGUAGE>
Thanks Big Grin