Fatal error please help! - 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: Fatal error please help! (/thread-9072.html) |
Fatal error please help! - TheDavenia - 07-10-2011 This is what my fatal error says: FATAL ERROR: Could not load script file 'custom_stories/(secret)/maps/Bedroom.hps'! main (37, 1): ERR : Unexpected token '{' And here's my Bedroom.hps file: Code: void OnStart() Please help! Thanks, TheDavenia RE: Fatal error please help! - Russ Money - 07-10-2011 void SetLevelDoorLocked(string& asName, bool abLocked); Remove the ; at the end. Usually when you get an error like that, it's telling you that error is somewhere around Line 37, Character 1 RE: Fatal error please help! - TheDavenia - 07-10-2011 (07-10-2011, 09:28 PM)Russ Money Wrote: void SetLevelDoorLocked(string& asName, bool abLocked); Now i get this error: FATAL ERROR: Could not load script file 'custom_stories/(secret)/maps/Bedroom.hps'! main (36, 1) : ERR : A function with the same name and parameters allready exist main (38, 5) : ERR : No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)' RE: Fatal error please help! - SLAMnesia - 07-10-2011 you're line """"void SetLevelDoorLocked(string& asName, bool abLocked)"""" is incorrect. you should change it to void unlock_level_hub_1(string& asName, bool abLocked) [EDIT] the reason why its wrong (incase you are a learning type) is because you have the callback function at the beginning void Onstart { AddUseItemCallback("", "key_tower_1", "level_hub_1", "unlock_level_hub_1", true); } isn't referenced correctly, so change it to what I put above and it should all smoothen out Don't thank me, BLOW ME RE: Fatal error please help! - PumpMaster - 07-10-2011 DAMNesia that's some good hearty advice! RE: Fatal error please help! - TheDavenia - 07-11-2011 (07-10-2011, 11:12 PM)SLAMnesia Wrote: you're line """"void SetLevelDoorLocked(string& asName, bool abLocked)"""" Now i get this error: FATAL ERROR: Could not load script file 'custom_stories/(secret)/maps/Bedroom.hps'! main (38, 5) : ERR : No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)' RE: Fatal error please help! - plantum - 07-11-2011 (07-11-2011, 10:13 AM)TheDavenia Wrote:(07-10-2011, 11:12 PM)SLAMnesia Wrote: you're line """"void SetLevelDoorLocked(string& asName, bool abLocked)"""" Change "SetLevelDoorLocked("level_hub_1", false, true);" to "SetLevelDoorLocked("level_hub_1", false);" RE: Fatal error please help! - TheDavenia - 07-11-2011 (07-11-2011, 10:24 AM)plantum Wrote:(07-11-2011, 10:13 AM)TheDavenia Wrote:(07-10-2011, 11:12 PM)SLAMnesia Wrote: you're line """"void SetLevelDoorLocked(string& asName, bool abLocked)"""" now my key just doesn't work on the door RE: Fatal error please help! - Roenlond - 07-11-2011 change unlock_level_hub_1(string& asName, bool abLocked) to unlock_level_hub_1(string &in asItem, string &in asEntity) RE: Fatal error please help! - TheDavenia - 07-11-2011 Thanks guys it all works now! |