Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help-SOLVED
Thund3rb0lt Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jun 2015
Reputation: 0
#1
Please help-SOLVED

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");
}
(This post was last modified: 06-06-2015, 07:08 AM by Thund3rb0lt.)
06-05-2015, 03:46 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Please help

AddUseIteamCallback
---
You should make it AddUseItemCallback.

You have Iteam Wink
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 Wink
The PlayGuiSound is only for .ogg files!
Make it :
PHP Code: (Select All)
PlayGuiSound("unlock_door.ogg",1); Or these often work as well :
PlayGuiSound("unlock_door",1); Try it yourself
OR
PHP Code: (Select All)
PlaySoundAtEntity("","unlock_door.snt""WHERE TO PLAY YOUR SOUND AT"0false); 
(This post was last modified: 06-05-2015, 04:29 PM by DnALANGE.)
06-05-2015, 04:23 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Please help

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.

(This post was last modified: 06-05-2015, 04:41 PM by Mudbill.)
06-05-2015, 04:38 PM
Find
Thund3rb0lt Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jun 2015
Reputation: 0
#4
RE: Please help

lol now i saw the grammar mistake :/
the problem is no matter what i do i get the same error Sad
(This post was last modified: 06-05-2015, 05:34 PM by Thund3rb0lt.)
06-05-2015, 05:24 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#5
RE: Please help

Please try to post in the support section next time. Thanks.
06-05-2015, 06:07 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: Please help

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 Wink
06-05-2015, 06:07 PM
Find
Thund3rb0lt Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jun 2015
Reputation: 0
#7
RE: Please help

(06-05-2015, 06:07 PM)DnALANGE Wrote: 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 Wink

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 Huh

(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
(This post was last modified: 06-05-2015, 06:16 PM by Thund3rb0lt.)
06-05-2015, 06:16 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#8
RE: Please help

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");
}
06-05-2015, 06:44 PM
Find
Thund3rb0lt Offline
Junior Member

Posts: 8
Threads: 1
Joined: Jun 2015
Reputation: 0
#9
RE: Please help

(06-05-2015, 06:44 PM)DnALANGE Wrote: 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");
}

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 Smile
06-05-2015, 06:53 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#10
RE: Please help

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);
06-05-2015, 06:55 PM
Find




Users browsing this thread: 2 Guest(s)