Frictional Games Forum (read-only)

Full Version: most weird error message ever
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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".

It seems as though the game hates you. Just saying.
To repeat the same error multiple times.. it's totally pissed.
OK thank you for your help
I'm goin' to love this website...



GReeZe' P44