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
most weird error message ever
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#1
most weird error message ever

OK, i was trying out some new big scripts and then came this:
FATAL ERROR: Could not load script file 'custom...'!
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,2):ERR : Expected expression value
ExecuteString(1,1):ERR : No matching signatures to 'OnLeave()'
main(10,2):ERR : No matching signatures to 'PlaySound(string@&,string@&,string@&, const unit, const
*7 chinese sings*

WHAT THE HELL?
my scriptfile is:
void OnStart()
{
PlayMusic("16_amb.ogg", true, 1.0f, 5, 1, true);
SetPlayerCrouching(false);
SetPlayerActive(true);
SetLanternActive(false, true);
SetPlayerHealth(100);
SetPlayerSanity(100);
SetPlayerLampOil(100);
PlaySound("", "react_sigh", "Player", 0, false);
SetEntityPlayerInteractCallback("orb_ball_obj", 1.0f, "ObjFunc");
}


void OrbFunc(string &in asEntity)
{
AddPropHealth("chest_small_1", 0.0f);
AddPropImpulse("sklave_obj" 5, 0, 0, "world");
SetEntityActive("armor_4", true);
SetEntityActive("armor_3", true);
SetEntityActive("armour_nice_complete_1", true);
SetMoveObjectState("armour_nice_complete_1", 6.0f);
SetEntityActive("deformed_man_1", true);
SetEntityActive("deformed_man_2", true);
SetEntityActive("rude_man_chains_statue_1", true);
SetEntityActive("rude_man_chains_statue_2", true);
PlaySoundAtEntity("thunderboo", "general_thunder03.ogg", "Player", 0, false);
StartPlayerLookAt("armour_nice_complete_1", 10.0f, 22.3f, "");
AddTimer("lookat_timer_func", 1.0f, "stop_p_lookat");
SetLightVisible("redlight_obj", true);
StartScreenShake(0.01f,0.25f, 0.01f,0.5f);
StartEffectFlash(4.0f, 3.0f, 0.7f);
}


void stop_p_lookat(string &in asTimer)
{
SetLightVisible("redlight_obj", false);
StopPlayerLookAt();
PlaySoundAtEntity("react_sigh02.ogg", "react_sigh04.ogg", "Player", 0, false);
AddQuest("Weird Ball", "findoutwhatis");
}

and my e_e.lang is:
<LANGUAGE>

...
...
...

<CATEGORY Name="Journal">
<Entry Name="findoutwhatis_Text">Find out for what this weird ball usable is.</Entry>
</CATEGORY>

...
...
...

</LANGUAGE>

what means the err message?
(This post was last modified: 04-27-2012, 09:58 PM by P44RTHURN4X.)
04-27-2012, 09:56 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#2
RE: most weird error message ever

Let's see...
10, 2 - That means that the error is located on the 10th line...
1... 2... 3... 4... 5... 6... 7... 8... 9... 10... Oh, here we go:
PlaySound("", "react_sigh", "Player", 0, false);
Hmm...
PlaySound?
I've never heard of PlaySound.
*checks wiki.*
Nope, no PlaySound function in there.
Could he have meant PlaySoundAtEntity?

Edit: Also I think the entry has to read "Quest_findoutwhatis_Text", not "findoutwhatis_Text".


Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-27-2012, 10:16 PM by Cranky Old Man.)
04-27-2012, 10:11 PM
Find
JenniferOrange Offline
Senior Member

Posts: 424
Threads: 43
Joined: Jun 2011
Reputation: 33
#3
RE: most weird error message ever

It seems as though the game hates you. Just saying.
To repeat the same error multiple times.. it's totally pissed.

Ba-da bing, ba-da boom.
04-27-2012, 10:30 PM
Find
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#4
RE: most weird error message ever

OK thank you for your help
I'm goin' to love this website...



GReeZe' P44
04-28-2012, 07:26 PM
Find




Users browsing this thread: 2 Guest(s)