Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story - Setup Guide
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#1
Custom Story - Setup Guide

I can't wait any longer for the Level Editor!

So, I started by setting up my story Tongue

After doing some *cough*researching*cough* on the executable, I found out what was needed for custom stories to appear in the list.


Note, I'm using Windows, but I guess the structure is the same on Mac/Linux (At least after you find the custom_stories folder)

  1. Create a folder inside the custom_stories folder. This could be anything, and is not the name used in the list, etc. If your story is called "My Super Original Story", you could simply call the folder "MSOS".
  2. Then go inside the folder you just created, and create a new text file called custom_story_settings.cfg
  3. Inside this file, you put:
<Main
    Name = "My Super Original Story"
    Author = "MulleDK19"
    ImgFile = "story.png"
    Description = "I have yet to find the tag used for the description."
    MapsFolder = "maps/ch01/"
    StartMap = "00_study.map"
    StartPos = "PlayerStartArea_1"
/>

The Name is the actual name to show in the Custom Story list.
Author is whoever made it.
ImgFile is the filename of an image in your story folder. When someone selects your story, this image will be used as background.
Description... Well... Not working, and I have no idea what else it's called, or where to define it if not there.
MapsFolder is the location of the maps. I don't know if it's needed or not.
StartMap is the map to load when players select your story and clicks "Start".
StartPos is the area defined in the level file, that the player should start at. a.k.a. the starting spawn point.

My file layout.
\custom_stories\Morten1\custom_story_settings.cfg
\custom_stories\Morten1\maps\ch01\00_study.map
\custom_stories\Morten1\maps\ch01\00_study.hps

resources.cfg does not appear to be needed. It looks like the engine includes all subfolders in the story.


So, now I'm gonna rescript the Study level, until I get my hands on the Level Editor Tongue Chop chop! Big Grin



Enjoy Wink



Update: As your story is independent from the rest of the game, you will spawn with no lantern, etc., because this is the first level of the story.
So, open the .hps (script) file, and search for "ScriptDebugOn" (without the quotes), and then comment it out, so it looks like this:

    //---- DEBUG ----//
    //if(ScriptDebugOn())
    //{
        GiveItemFromFile("lantern", "lantern.ent");
        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    //}

[Image: 16455.png]
09-09-2010, 05:49 PM
Find
Sajber Offline
Member

Posts: 94
Threads: 6
Joined: May 2010
Reputation: 0
#2
RE: Custom Story - Setup Guide

Nice work!

The Unofficial Amnesia: The Dark Descent, Penumbra and Frictional Games IRC Channel.
#amnesiareleaseparty @ irc.gamesurge.net
09-09-2010, 05:55 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#3
RE: Custom Story - Setup Guide

(09-09-2010, 05:55 PM)Sajber Wrote: Nice work!

Thanks Big Grin

[Image: 16455.png]
09-09-2010, 09:02 PM
Find
DukeNume Offline
Junior Member

Posts: 10
Threads: 2
Joined: Sep 2010
Reputation: 0
#4
RE: Custom Story - Setup Guide

Works good, the scripts doesn't look too hard to make, they remember me the scripts of ZDoom (Doom modern source port witch advace editing).
Thanks Mate! D:
09-10-2010, 12:48 PM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#5
RE: Custom Story - Setup Guide

(09-10-2010, 12:48 PM)DukeNume Wrote: Thanks Mate! D:

No problem Sad

[Image: 16455.png]
09-10-2010, 03:13 PM
Find
penumbra 4ever Offline
Member

Posts: 55
Threads: 1
Joined: Dec 2009
Reputation: 0
#6
RE: Custom Story - Setup Guide

Why nothing appears on the list Custom History?



sorry about my bad english, i'm brazilian.

Sorry for my bad English
09-11-2010, 12:52 AM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#7
RE: Custom Story - Setup Guide

(09-11-2010, 12:52 AM)penumbra 4ever Wrote: Why nothing appears on the list Custom History?



sorry about my bad english, i'm brazilian.

There should, if you did it correct.

[Image: 16455.png]
09-11-2010, 12:56 AM
Find
penumbra 4ever Offline
Member

Posts: 55
Threads: 1
Joined: Dec 2009
Reputation: 0
#8
RE: Custom Story - Setup Guide

my custom_story_settings

Spoiler below!
<Main
Name = "Study2"
Author = "Penumbra_4ever"
ImgFile = "story.png"
Description = "lol."
MapsFolder = "maps\ch01\"
StartMap = "\custom_stories\Study2\maps\ch01\00_study.map"
StartPos = "\custom_stories\Study2\maps\ch01\00_study.hps"
/>

print screen

Spoiler below!
[Image: amnesiaimage.jpg]

Sorry for my bad English
09-11-2010, 01:07 AM
Find
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#9
RE: Custom Story - Setup Guide

(09-11-2010, 01:07 AM)penumbra 4ever Wrote: my custom_story_settings

Spoiler below!
<Main
Name = "Study2"
Author = "Penumbra_4ever"
ImgFile = "story.png"
Description = "lol."
MapsFolder = "maps\ch01\"
StartMap = "\custom_stories\Study2\maps\ch01\00_study.map"
StartPos = "\custom_stories\Study2\maps\ch01\00_study.hps"
/>

Change it to:
<Main
    Name = "Study2"
    Author = "Penumbra_4ever"
    ImgFile = "story.png"
    Description = "lol."
    MapsFolder = "maps/ch01/"
    StartMap = "00_study.map"
    StartPos = "PlayerStartArea_1"
/>

[Image: 16455.png]
09-11-2010, 01:08 AM
Find
penumbra 4ever Offline
Member

Posts: 55
Threads: 1
Joined: Dec 2009
Reputation: 0
#10
RE: Custom Story - Setup Guide

nothing happens Sad

Sorry for my bad English
09-11-2010, 01:37 AM
Find




Users browsing this thread: 1 Guest(s)