Please help-SOLVED - 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: Please help-SOLVED (/thread-30092.html) Pages:
1
2
|
Please help-SOLVED - Thund3rb0lt - 06-05-2015 Hi i recently started using level editor evrything was fine until ir eceived this error FATAL ERROR:Could not load Script file custom_storie/test/custom_stories/test/maps/01_test.hps main (3,5) ERR No matching signatures to AddUseItemCallback(string@&, string@&, string@&, const bool) Here my script Ill really appreciate any help void OnStart() { AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true); } void OnEnter() { } void OnLeave() { } void FUNCTION(string &in item,string &in door) { SetLevelDoorLocked("level_hub_1",false); PlayGuiSound("unlock_door.snt",100); RemoveItem("key_study_1"); } RE: Please help - DnALANGE - 06-05-2015 AddUseIteamCallback --- You should make it AddUseItemCallback. You have Iteam Good luck! EDIT: PlayGuiSound("unlock_door.snt",100); TIP: The 100 is 100 x the Original sound volume.. x100 is a bit too loud i suppose The PlayGuiSound is only for .ogg files! Make it : PHP Code: PlayGuiSound("unlock_door.ogg",1); Or these often work as well : PHP Code: PlaySoundAtEntity("","unlock_door.snt", "WHERE TO PLAY YOUR SOUND AT", 0, false); RE: Please help - Mudbill - 06-05-2015 AddUseIteamCallback ^ Typo. Edit: Welp, I guess I took too long to have this tab open to not realize I was slowly ninja'd. Now that I'm here though, I guess I could point out what DnALANGE did about the volume, but 100 will not actually make it loud. The only valid values are from 0.0f to 1.0f. It's a float variable used as a percentage. RE: Please help - Thund3rb0lt - 06-05-2015 lol now i saw the grammar mistake :/ the problem is no matter what i do i get the same error RE: Please help - Traggey - 06-05-2015 Please try to post in the support section next time. Thanks. RE: Please help - DnALANGE - 06-05-2015 same error?... Are you sure? Send the error over please. --- ABout the 100, it should ONLY make sense in PlaySoundAtEntity! there 2 is times 2 the Original sound volume. Sorry RE: Please help - Thund3rb0lt - 06-05-2015 (06-05-2015, 06:07 PM)DnALANGE Wrote: same error?... FATAL ERROR could not load script file main(3,5) ERR No matching signatures to AddUseItemCallBack(string@&, string@&, string@&, const bool) Here i have no idea what does it mean (06-05-2015, 06:07 PM)Traggey Wrote: Please try to post in the support section next time. Thanks. Sorry its my first time on this site RE: Please help - DnALANGE - 06-05-2015 void FUNCTION(string &in item,string &in door) { SetLevelDoorLocked("level_hub_1",false); PlayGuiSound("unlock_door.snt",100); RemoveItem("key_study_1"); } --- Try this : void FUNCTION(string &in asItem, string &in asEntity) { SetLevelDoorLocked("level_hub_1",false); PlayGuiSound("unlock_door.snt",100); RemoveItem("key_study_1"); } RE: Please help - Thund3rb0lt - 06-05-2015 (06-05-2015, 06:44 PM)DnALANGE Wrote: void FUNCTION(string &in item,string &in door) i dont know if im doing something wront but its the same error over and over again here my files void OnStart() { AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true); } void OnEnter() { } void OnLeave() { } void FUNCTION(string &in asItem, string &in asEntity) { SetLevelDoorLocked("level_hub_1",false); PlayGuiSound("unlock_door.snt",100); RemoveItem("key_study_1"); } at the editor i checked and everything seems okay im really glad you are trying to help me RE: Please help - DnALANGE - 06-05-2015 AddUseItemCallback("","key_study_1", "level_hub_1" "FUNCTION",true); --- You missing a Comma. Try this line and replace it with yours.: AddUseItemCallback("","key_study_1", "level_hub_1", "FUNCTION",true); |