Frictional Games Forum (read-only)
Custom Story Help (FIXED!) - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Custom Story Help (FIXED!) (/thread-4531.html)

Pages: 1 2


RE: Custom Story Help - gosseyn - 09-19-2010

a cfg file is a txt file, without the txt extension but cfg extension instead. Maybe he was talking about "custom_story_settings.cfg.txt".


RE: Custom Story Help - Soon - 09-19-2010

I just don't understand why it's not working! I'm getting super frustrated with this!


RE: Custom Story Help (FIXED!) - Luis - 09-19-2010

Glad you got it finally working Smile


RE: Custom Story Help - Alexander - 09-19-2010

(09-19-2010, 07:59 AM)Soon Wrote: I just don't understand why it's not working! I'm getting super frustrated with this!

Well I downloaded Jordo76's The Darkness. Installed it to see if it would show up in the "custom story" list - and it did. So I decided to edit the files and presto.

Here's my setup

custom_stories>TS -
-maps(folder)
-custom_story_settings
-extra_english

custom_stories>TS>maps-
-ch00(folder)

custom_stories>TS>maps>ch00-
-test(map)
-test(hps)
-test.map_cache

The custom_story_settings contains this

Code:
<Main
    Name = "Dreamality"
    Author = "Alexander"
    ImgFile = "screen.png"
    MapsFolder = "maps/ch00"
    StartMap = "test.map"
    StartPos = "PlayerStartArea_1"
/>

The english_lang contains this (from the wiki)
Code:
<CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">Just a brief description!</Entry>
</CATEGORY>

The test(hps) contains this (I think I got this one from a post made by Jens)
Code:
////////////////////////////
// Run first time starting map
void OnStart()
{
    //Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");

        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    }
    
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Hope I didn't forget anything.
Ah man... you got it working? I wasn't paying attention I suppose xD


RE: Custom Story Help (FIXED!) - Soon - 09-19-2010

All that grief because of a few quotation marks lol.


RE: Custom Story Help - MulleDK19 - 09-19-2010

(09-19-2010, 07:36 AM)Soon Wrote: I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt


RE: Custom Story Help - Alexander - 09-19-2010

(09-19-2010, 05:12 PM)MulleDK19 Wrote:
(09-19-2010, 07:36 AM)Soon Wrote: I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt

Well... The actual name of my files are "custom_story_settings" "test" "test", there are no .cfg .map .hps etc.. And if the file type doesn't show as "CFG File", but instead "Text Document" - it will not work. That's what was causing my problems. Apparently it's not as easy as making a text file and adding '.cfg' at the end -- well at least in my case. I had to copy a CFG File, then edit it.

O___o Either that or I was missing something in the code.


RE: Custom Story Help - MulleDK19 - 09-19-2010

(09-19-2010, 09:11 PM)Alexander Wrote:
(09-19-2010, 05:12 PM)MulleDK19 Wrote:
(09-19-2010, 07:36 AM)Soon Wrote: I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt

Well... The actual name of my files are "custom_story_settings" "test" "test", there are no .cfg .map .hps etc.. And if the file type doesn't show as "CFG File", but instead "Text Document" - it will not work. That's what was causing my problems. Apparently it's not as easy as making a text file and adding '.cfg' at the end -- well at least in my case. I had to copy a CFG File, then edit it.

O___o Either that or I was missing something in the code.

1. Go to the menu Tools > Folder options...
2. Go to the "View" tab.
3. Untick "Hide extensions for known file types".


RE: Custom Story Help - Alexander - 09-19-2010

Ah! Thanks Big Grin