Scripting doesnt work. 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: Scripting doesnt work. Help! (/thread-10545.html) |
Scripting doesnt work. Help! - Electrofuze - 10-01-2011 For some reason my custom story i am testing wont apear on the custom story list and these are my configs for it Custom_Story_Settings.cfg < Main Name = "LivingNightmare" Author = "Electrofuze" Imgfile = "Amnesia-Shambles" Mapsfolder = "Maps/Ch01/" Startmap = "00_TheHowling.map Startpos = "PlayerStartArea_2" /> 00_Thehowling.hps //////////////////////////// // Run first time starting map void OnStart() { AddUseItemCallback("", "SmallStorageRoomkey", "SmallStorageRoom", "UsedKeyOnDoor", true); } void UsedKeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("Smallstorageroom", false, true); PlaySoundAtEntity("", "unlock_door", "SmallStorageRoom", 0, false); RemoveItem("SmallStorageRoomkey"); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } extra_english.lang < LANGUAGE> < CATEGORY Name="Livingnightmare"> < Entry Name="Description">Just a description.</Entry> < /CATEGORY> < CATEGORY Name="Journal"> < Entry Name="Explaining_Name">Explaining</Entry> < Entry Name="Explaining_Text">This is a test note.</Entry> < /CATEGORY> < /LANGUAGE> thats what i have and for the locations My customstory settings are in my Livingnightmare Directory same goes for extra english lang and then Maps/ch01 i have my map and my hps folder I hope thats correct. If it isnt can you guys help me if i need to change anything RE: Scripting doesnt work. Help! - Obliviator27 - 10-01-2011 < Main Name = "LivingNightmare" Author = "Electrofuze" Imgfile = "Amnesia-Shambles" Mapsfolder = "Maps/Ch01/" Startmap = "00_TheHowling.map Startpos = "PlayerStartArea_2" /> I dun goof'd and didn't do this right when I rearranged it. It should be < Main Name = "LivingNightmare" Author = "Electrofuze" ImgFile = "Amnesia-Shambles" MapsFolder = "Maps/Ch01/" StartMap = "00_TheHowling.map" StartPos = "PlayerStartArea_2" /> Difference being the second word is capitalized and there is an end quotation mark after 00_TheHowling.map RE: Scripting doesnt work. Help! - Electrofuze - 10-01-2011 (10-01-2011, 07:03 PM)Obliviator27 Wrote: < Main K i fixed it but still same problem is the problem within my scripting or maybe my gamefile itself doesnt want any customstorys? RE: Scripting doesnt work. Help! - Statyk - 10-02-2011 (10-01-2011, 04:25 PM)Electrofuze Wrote: For some reason my custom story i am testing wont apear on the custom story list and these are my configs for itMake sure the map name matches exactly again.. I'm not sure how you arranged it. It sounds like you need to fix up your "custom_story_settings.cfg' (make sure it is typed JUST LIKE THAT. and that it is NOT in your map folder. It should be in the main folder you probably listed as the campaign folder. The image file and "extra_english.lang" should ALSO be in the MAIN FOLDER. If that doesn't fix it, try copy and pasting this (exactly) into your custom_story_settings.cfg (also, check your capitalizations and if the image is a jpg, png, etc. everything has to be exact): <Main ImgFile = "Amnesia-Shambles.jpg" Name = "Living Nightmare" Author = "Electrofuze" MapsFolder = "Maps/Ch01/" StartMap = "00_TheHowling.map" StartPos = "PlayerStartArea_2" /> __________________ Note, also make sure your StartPos is correct. I noticed it has a "2" at the end. What happened to the first one? lol... (This is my .cfg layout and it works so it SHOULD work for you.) ***Hope this helps |