![]() |
most weird error message ever - 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: most weird error message ever (/thread-15133.html) |
most weird error message ever - P44RTHURN4X - 04-27-2012 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? RE: most weird error message ever - Cranky Old Man - 04-27-2012 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". RE: most weird error message ever - JenniferOrange - 04-27-2012 It seems as though the game hates you. Just saying. To repeat the same error multiple times.. it's totally pissed. RE: most weird error message ever - P44RTHURN4X - 04-28-2012 OK thank you for your help I'm goin' to love this website... GReeZe' P44 |