Frictional Games Forum (read-only)
Can't find my Custom Story - 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: Can't find my Custom Story (/thread-10574.html)

Pages: 1 2 3


Can't find my Custom Story - i3670 - 10-03-2011

Hello forum! I'm currently doing a map called coronation. I think the map looks pretty good, the only problem I have is that both my Amnesia (steam) and Amnesia (retail) can't find my map Angry . I've placed the map and script documents in both the steam and retail version. Can someone help me Huh

P.S. If you want any details on my scripting just leave a message below.
I can play Custom Stories, have tried 2 so far.



RE: Can't find my Custom Story - Your Computer - 10-03-2011

Chances are you either have a syntax error in the custom_story_settings.cfg file, you provided the wrong path for your story's map directory, have an issue with the starting map, or something random. I'm not sure what you did except for placing your script and map files in both of your Amnesia set-ups. You're going to need to provide all the steps you took when attempting to set-up your story.


RE: Can't find my Custom Story - i3670 - 10-03-2011

This is my .cfg file

<Main
Name = "First"
Author = "i3670"
Imgfile = "story.jpg"

MapsFolder = "maps/ch01/"
startmap = "First.map"
startpos = "PlayerStartArea_1"
/>

Followed a guide on youtube. Looks right to me tbh.

In my maps folder I have my map and the .hps file. Outside the maps folder I have my .lang .cfg and the picture.



RE: Can't find my Custom Story - Your Computer - 10-03-2011

"startmap" and "startpos" and "Imgfile" should be "StartMap" and "StartPos" and "ImgFile". If that doesn't fix it, then can you post a link to the exact video?


RE: Can't find my Custom Story - i3670 - 10-03-2011

Changed the specific letters. Tried, did not work .

Video: http://www.youtube.com/watch?v=0grr7uipnk0



RE: Can't find my Custom Story - Your Computer - 10-03-2011

(10-03-2011, 04:08 PM)i3670 Wrote: Changed the specific letters. Tried, did not work .

Video: http://www.youtube.com/watch?v=0grr7uipnk0

Okay, so the video doesn't touch on the extra_english.lang file and i have no idea where he put his .map file (though he specified where it goes). Can i look at the contents of your extra_english.lang (or whatever langauge you chose) file?


RE: Can't find my Custom Story - i3670 - 10-03-2011

Content of .lang file:

<LANGUAGE>
<CATEGORY Name="Journal">
<Entry Name="Note_scroll_1_Name">Good Morning</Entry>
<Entry Name="Note_scroll_1_Text">Good morning my prince. Or should I say king? I do hope you remember what day it is. It's the day of your coronation. You will soon be the ruler of Preussia. [br][br] Oh, and try not to wake your servant Franz, he's been feeling under the weather recently and he needs his rest.[br][br]Lovely yours, Caroline.</Entry>
<Entry Name="Note_generic_1_Name">Damn books</Entry>
<Entry Name="Note_generic_1_Text">Where the bloody hell is it? I've looked everywhere. It's not here. Maybe in the master library? I haft to find a cure for this horrible disease. It was NOT my fault, please, forgive me my master!</Entry>
<Entry Name="Note_letter_1_Name">Argh!</Entry>
<Entry Name="Note_letter_1_Text">My chest...my heart...not long time now...sleep....yes, sleep.</Entry>
<Entry Name="Note_letter_2_Name">Damn Books vol.2</Entry>
<Entry Name="Note_letter_2_Text">So many books and yet you can't move them, it's like someone has glued them together.[br][br] Anyway I've put the key to the big hall in the desk over there. I placed it there so that Franz wont find it. You see, he really hates books.</Entry>
<Entry Name="Note_letter_3_Name">Jailor Rules</Entry>
<Entry Name="Note_letter_3_Text">Congratulations for your promotion to jailor. Do not fear the prisoner in this cell he is completely harmless, except for that time he bit me. However here's the rules [br][br]1. Do not laugh at the prisoners appearance, he takes it personally. [br] 2. Do not give any food to him, he can't chew it anyways, not even soup. [br]3. Last but not least. Do NOT release him, for he killed Stephano.</Entry>
<Entry Name="Note_generic_2_Name">Confessions</Entry>
<Entry Name="Note_generic_2_Text">Our bodies are prisons of the souls. Our flesh and blood the iron bars of confinement. In order to release our spirit from its chains, we need to break the iron bars. We do this for our own good.[br] Do not pity the ones we torture, congratulate them for their chance of complete freedom. If they confess, that is. [br][br] The prince of this castle needs to be free, if you see what I mean. He is a selfish and arrogant tyrant that needs to be stopped. I hope you all remember what he did to his dear mother and father, and that poor girl Caroline, what a queen she would have been. Until she fell in love with the wrong boy. The prince must NOT be allowed the crown. [br][br] High Inquisitor Michaelis. </Entry>
<Entry Name="Note_scroll_2_Name">Request for Dismissal</Entry>
<Entry Name="Note_scroll_2_Text">He dare critcize me?! I don't know if I should laugh or actually be concerned, maybe both? I will have the inquisitors head when I have the throne for my own. All I need to do is get some people out of the way, like my father for instance. </Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Bedroomkey">Bedroom Key</Entry>
<Entry Name="ItemName_Thronedoorkey">Big Hall Key</Entry>
</CATEGORY>
<CATEGORY Name="The Next Ruler">
<Entry Name="Description">You are to become the next ruler of Preussia. But first you need to complete your coronation, which happens to take place today, don't be late.</Entry>
</CATEGORY>
<CATEGORY Name="LoadingText">
<Entry Name="Loading_Mansion">"The history of saints is mainly the history of insane people."[br]-Mussolini</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="A4_Credits">Vive le roi![br][br][br][br][br][br][br]Level Desing, Scripting[br]Hairdoo[br][br][br][br]Level Desing[br]Harrassa[br][br][br][br][br][br][br]Thank you[br][br]Frictional Games for making this game,[br][br][br]and Frictional Forum Community.</Entry>
</CATEGORY>
</LANGUAGE>



This will sound so retarded... Dodgy

Amnesia could find my map now. I had forgotten an "s" at the end of settings.

A new problem has come up though. When I tried to start it, it said:

Fatar Error: Could not load script file 'custom stories/Test/Custom_stories/Test/maps/ch01/First.hps'!
main (53,2): ERR: unexpected end of file



RE: Can't find my Custom Story - Your Computer - 10-03-2011

Post the contents of the First.hps file.


RE: Can't find my Custom Story - i3670 - 10-03-2011

void OnStart()
{
AddUseItemCallback("", "Key", "Bedroom", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(""Bedroom, false, true);
PlaySoundAtEntity("", "unlock_door", "Bedroom", 0, false);
RemoveItem("BedroomKey);
}

{
AddEntityCollideCallback("Player", "Sound_5", "StartMusic", true, 1);
AddEntityCollideCallback("Player", "Sound_3", "StartMusic", true, 1);
AddEntityCollideCallback("Player", "Music_1", "StartMusic", true, 1);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_14", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_15", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_16", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_17", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_18", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_19", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_20", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_21", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_22", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_23", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_24", 4, "");
}

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("general_piano03.snt", false, 1, 2, 1, bool abResume);
PlayMusic("player_react_guardian3.snt", false, 1, 2, 1, bool abResume);
PlayMusic("scare_male_terrified4.ogg", true, 1, 2, 1, bool abResume);
}


RE: Can't find my Custom Story - Your Computer - 10-03-2011

You're missing a function definition for the third code block (line 13). A code block that isn't a function (a.k.a. nested code blocks) are only allowed within function code blocks.