Frictional Games Forum (read-only)
[SCRIPT] AddCombineCallback Error No Signiture - 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: [SCRIPT] AddCombineCallback Error No Signiture (/thread-14668.html)



AddCombineCallback Error No Signiture - heyitsrobert97 - 04-10-2012

Hi I added 2 combine callbacks but when the game is loading it says no signiture. you first mix 2 chemical containers to make 1 then mix that with another and your done but it says No Matching Signuture Why?

==================================================================================

void attop(string &in asTimer)
{
FadeIn(2.0f);
CheckPoint ("checkpoint3", "bunkercheckpoint3", "", "", "");
AddCombineCallback("", "chemical_4", "chemical_5", mixonetwo, true); <---- Error No Matching Signiture
}

void mixonetwo(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_nearly_finished", "chemical_container_full", "mixnearly", "chemical_container_full.tga", 1.0f);
AddCombineCallback("", "chemical_6", "chemical_nearly_finished", mixtwothree, true); < Error
}

void mixtwothree(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_finished", "chemical_container_full", "mixdone", "chemical_container_full.tga", 1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
AddUseItemCallback("", "chemical_finished", "sewer_grate", "blowexit", true);
AddUseItemCallback("", "chemical_finished", "sewer_grate2", "blowexit", true);
}

void blowexit(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_finished");
StartEffectFlash(0.0f, 1.0f, 0.2f);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
SetEntityActive("sewer_grate", false);
SetEntityActive("sewer_grate2", false);
AddEntityCollideCallback("Player", "endinggame", "credittimer", true, 1);
}

void credittimer(string &in asParent, string &in asChild, int alState)
{
FadeOut(3.0f);
AddTimer("goodbye", 3.5f, "cya");
}

void cya(string &in asTimer)
{
StopMusic(1.0f, 0);
StartCredits("Music_02", true, "halldoormessage", "endofgame", 0);
}

===================================================================================




RE: AddCombineCallback Error No Signiture - Obliviator27 - 04-10-2012

mixonetwo and mixtwothree need to be in quotation marks.



RE: AddCombineCallback Error No Signiture - heyitsrobert97 - 04-10-2012

(04-10-2012, 07:26 AM)Obliviator27 Wrote: mixonetwo and mixtwothree need to be in quotation marks.
Game No Longer Crashes But It Won't Combine. Don't You Need To Create an Inventory.hps. but i don't know how to put in it




RE: AddCombineCallback Error No Signiture - Datguy5 - 04-10-2012

Yes you need to create inventory.hps in your maps folder.To combine items there is a tutorial on the wiki(i suggested it Big Grin)but in that tutorial you combine the hammer and chipper.But its almost the same thing.Heres the link http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/combininghammerchipperjenniferorange