![]() |
Cant get my custom story to show! 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: Cant get my custom story to show! PLEASE help!! (/thread-16814.html) Pages:
1
2
|
Cant get my custom story to show! PLEASE help!! - Ravenxx - 07-07-2012 Hey, i created a custom story and iv done everything correctly, my .map is in a maps folder, all the scripting is done right (so i think) But there's just one problem, when i want to test out my map i go into amnesia and open up custom story's, but its not there! Iv done all i can but i cant get it to show up, iv even looked in other custom story folders and mine seems to look the same. I really don't know what to do, iv tried everything. To be honest im not brilliant at scripting, in fact i think its really confusing as it is my first time doing this. If anyone could help id really appreciate it! My lang file. <LANGUAGE> <RESOURCES /> <CATEGORY Name="Secrets"> <Entry Name="Description">Your brothers friend invited you over to his new house, you have to go into the storage to get a crowbar, but people say if you go in there strange things will happen to you...You then set out to find your brother as he has wonderd of. What will you encounter when you go looking for him?</Entry> </CATEGORY> </LANGUAGE> <CATEGORY Name="Journal"> <Entry Name="Note_Test01_Name">Note</Entry> <Entry Name="Note_Test01_Text">Hey, I know your busy and everything but please can you do me this favour? If yes, can you go down to the storage and get me a crowbar, i need it to open this door, it is quite dark down there, so be sure to get the lantern it should be in one of the cabinets. No one else i asked dare go down there, they say if you do strange things will happen to you, no one knows why... But as you dont believe in those things id appreciate it if you could. Alex.</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemDesc_Storage1">Item description</Entry> <Entry Name="ItemName_Storage1">Item name<Entry> </CATEGORY> I THINK thats right, i just followed a tutorial on it, thats all! so dont blame me for been stupid or anything please im really new at this. Custom story settings file! <Main Name="Secrets" Author="Raven" ImgFile="story.png" StartMap="Secrets_script_test.map" StartPos="" /> My hps file. //////////////////////////// // Run when the map starts void OnStart() { AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true); } void FUNCTION(string &in asItem, string &in asEntity) { SetSwingDoorLocked(door, false, true); PlaySoundAtEntity("", "unlock_door", door, 0, false); RemoveItem(item); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } And the .hps file is in the same folder as my .maps is. Basicly you open custom storys, you see mine in there "Secrets" you open it up, you see a folder called maps, in theres my .hps file and my .map file, and in the main folder is my .lang file and my cfg file and also my image.png PLEASE HELP! RE: Cant get my custom story to show! PLEASE help!! - Adny - 07-07-2012 You MUST have a start position in the custom_story_settings.cfg. Usually it is PlayerStartArea_1, but name it whatever you have in your map. Also, if that doesn't solve it, make sure everything is spelled the same. in your folders/custom_stories_settings. hps and lang files are not necessary to run a custom story, just the settings.cfg and the map file. Hope that helped! RE: Cant get my custom story to show! PLEASE help!! - Ravenxx - 07-07-2012 If anyone could look at the script and possibly contact me through steam: 4257e_t is my username, my nick name is Jellytot_clumpz tho, add me on that if you want too so you can actually discuss the matter with me. As i can get easily confused and im really new at scripting. Id love the help. (07-07-2012, 08:49 PM)andyrockin123 Wrote: You MUST have a start position in the custom_story_settings.cfg. Usually it is PlayerStartArea_1, but name it whatever you have in your map. Also, if that doesn't solve it, make sure everything is spelled the same. in your folders/custom_stories_settings. (07-07-2012, 08:49 PM)andyrockin123 Wrote: It hasnt worked RE: Cant get my custom story to show! PLEASE help!! - Your Computer - 07-07-2012 The only thing the game needs to list a custom story in its custom story menu is a working custom_story_settings.cfg file with the map file it points to, somewhere in the custom_stories folder. If the map doesn't exist or if the file has the wrong name or extension, it won't get listed. RE: Cant get my custom story to show! PLEASE help!! - Adny - 07-07-2012 Doh, can't believe I missed that; I just looked at the custom story settings again and you don't have the "MapsFolder". Try adding this to your settings (assuming the map folder is named "maps"): MapsFolder = "maps/" So a full custom_story_settings.cfg should look like this: <Main Name = "NAME" Author = "AUTHOR" ImgFile= "" MapsFolder = "maps/" StartMap = "nameofmap.map" StartPos = "PlayerStartArea_1" /> You can change all of the things in quotations ("") to your specific file names. RE: Cant get my custom story to show! PLEASE help!! - Ravenxx - 07-07-2012 Yeh, i know but i double checked that file and it all looks ok D: So now it looks like this <Main Name = "Secrets" Author = "Raven" ImgFile= "Secrets.png" MapsFolder = "maps/Secrets.map" StartMap = "Secrets.map" StartPos = "PlayerStartArea_1" /> Im not sure if thats right, the maps location thing, i open my custom stories, go to Secrets, then the maps folder, then the map is in there its called Secrets.map ... im not sure if iv done it right, but its not showing up in amnesia still ![]() RE: Cant get my custom story to show! PLEASE help!! - Adny - 07-08-2012 For the <maps folder>, it is just the directory to the folder where the map is; not the map itself. Try this: MapsFolder = "maps/" That is all that's required for that part of the settings. Everything else in the .cfg looks fine. RE: Cant get my custom story to show! PLEASE help!! - Ravenxx - 07-08-2012 Ok so it shows up in the custom stories, some reason it doesnt say the descroption of the map, and also when i press start it just goes to a black screen D: FATAL ERROR: Could not load script file "custom_stories/Secrets/maps/Secrets.hps' Main (10, 24) : ERR : "door" is not declared Main (11,5) : ERR No matching signatures 'PlayerSoundEntity(string@&, int, const uint,, const bool)' main (12,16 : ERR : 'item' is not declared ^^^^^^^^ Thats the error i get when i try to open it. ![]() RE: Cant get my custom story to show! PLEASE help!! - Statyk - 07-08-2012 Why it doesn't come up with a description is because your .lang file is wrong. You shouldn't have "</RESOURCES>" if there is no "<RESOURCES>", so I took it out. And you didn't close an entry at the bottom. You also had your </LANGUAGE> in the wrong spot. Lastly, you had the wrong category name for your description. (copy and paste this into your current .lang): <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">Your brothers friend invited you over to his new house, you have to go into the storage to get a crowbar, but people say if you go in there strange things will happen to you...You then set out to find your brother as he has wonderd of. What will you encounter when you go looking for him?</Entry> </CATEGORY> <CATEGORY Name="Journal"> <Entry Name="Note_Test01_Name">Note</Entry> <Entry Name="Note_Test01_Text">Hey, I know your busy and everything but please can you do me this favour? If yes, can you go down to the storage and get me a crowbar, i need it to open this door, it is quite dark down there, so be sure to get the lantern it should be in one of the cabinets. No one else i asked dare go down there, they say if you do strange things will happen to you, no one knows why... But as you dont believe in those things id appreciate it if you could. Alex.</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemDesc_Storage1">Item description</Entry> <Entry Name="ItemName_Storage1">Item name</Entry> </CATEGORY> </LANGUAGE> As for the script, I think you should study the scripting process a bit more and perhaps make names of objects a bit more unique. "door" is a strange way to go about scripting (at least in my opinion): void OnStart() { AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true); } void FUNCTION(string &in asItem, string &in asEntity) { SetSwingDoorLocked("door", false, true); PlaySoundAtEntity("", "unlock_door", "door", 0, false); RemoveItem("ITEMNAME"); } RE: Cant get my custom story to show! PLEASE help!! - Ravenxx - 07-08-2012 Where do i copy and paste the script you gave me? i just followed a tutorial on this really, because i have a key, and wanted it to unlock this door, thats why in the .lang file theres "storage" things. I got a few more things in the script, //////////////////////////// // Run when the map starts void OnStart() { AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true); } void FUNCTION(string &in asItem, string &in asEntity) { SetSwingDoorLocked(door, false, true); PlaySoundAtEntity("", "unlock_door", door, 0, false); RemoveItem(item); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } Thats what i have so far, do i just delete that and replace it with what you typed ? Btw thank you ![]() |