Frictional Games Forum (read-only)

Full Version: Custom story wont show D:
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just made a (very simple) custom story as a sort of practice. I have all the files in one folder with the .map file and the .hps file in a folder in that folder called: maps. I tried to add a key to the scripting but the custom story no longer appeared in the amnesia custom stories list on the main menu. I deleted all the key scripting from my .hps file and it still wont work D: I have absolutely no idea what has happened but i know that it would sometimes appear on the list before I added the key, but it would also sometimes not appear. I know pretty much nothing about scripting and had just followed a few youtube tutorials on how to put in a key. please help! Sad

Oh and here's my .hps file with the key:


////////////////////////////
// Run when entering map
void OnStart()
{
AddUseItemCallback("", "BedroomKey_1", "BedroomDoor_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("BedroomDoor_1", false, true);
PlaySoundAtEntity("", "Unlock_door", "BedroomDoor_1", 0, false);
RemoveItem("BedroomKey_1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
Try switching "Users" in Amnesia. I found that that sometimes works for fixing custom stories not appearing.
The scripts file has nothing to do with it.

Show us your custom_story_settings.cfg

And make sure that name ^ is exactly correct!
(10-20-2012, 01:52 PM)beecake Wrote: [ -> ]The scripts file has nothing to do with it.

Show us your custom_story_settings.cfg

And make sure that name ^ is exactly correct!
Here is the file, and yep i have checked the name and everything seems to be fine there. :S The custom story popped in and out of the list as \i have been able to go on it a few times. :S


<Main
ImgFile = "story.png"
Name = "Tutorial"
Author = "MrDosht"

MapsFolder = "maps/"
StartMap = "Tutorial.map"
StartPos = "PlayerStartArea_1"
/>
Did you mess with the startarea in the editor?
Oh it's ok! I tried switching profiles and it worked! Thanks you greatly Big Grin