Frictional Games Forum (read-only)
How to? - 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: How to? (/thread-4377.html)

Pages: 1 2 3


How to? - darkdamp - 09-15-2010

Hi, ive created a map,and it saves it self in /redist folder but, how do i play it?
ive tried to put it in custom stories, but diden´t work. Please have i missed something or how do i play the map i created?

EDIT: Ive tried: http://hpl2.frictionalgames.com/amnesia:custom_story
but still diden´t got it to work.

sorry for my english, im swedish ^^


RE: How to? - Hofmannism - 09-15-2010

Hehe, I think Frictional Games are also Swedish so you may be able to talk Swedish with them. (I'm Swedish as well.)


RE: How to? - ScorpyX - 09-15-2010

StartPos = "PlayerStartArea_1"

and create this aria in your map


RE: How to? - Luis - 09-15-2010

(09-15-2010, 12:41 PM)darkdamp Wrote: Hi, ive created a map,and it saves it self in /redist folder but, how do i play it?
ive tried to put it in custom stories, but diden´t work. Please have i missed something or how do i play the map i created?

EDIT: Ive tried: http://hpl2.frictionalgames.com/amnesia:custom_story
but still diden´t got it to work.

What does "didn't work" really mean? Didn't work as in it showed in the custom story list but didn't start when trying? Or as in not showing up at all?

(09-15-2010, 03:34 PM)Hofmannism Wrote: Hehe, I think Frictional Games are also Swedish so you may be able to talk Swedish with them. (I'm Swedish as well.)

Well not everyone at Frictional Games is Swedish Wink


RE: How to? - sacroid - 09-15-2010

(09-15-2010, 04:59 PM)Luis Wrote:
(09-15-2010, 03:34 PM)Hofmannism Wrote: Hehe, I think Frictional Games are also Swedish so you may be able to talk Swedish with them. (I'm Swedish as well.)

Well not everyone at Frictional Games is Swedish Wink

Tu tienes sangre española Wink XD


RE: How to? - Javist - 09-15-2010

Эх, жаль Русских нет Big Grin Big Grin


RE: How to? - Boulipoulpe - 09-16-2010

Hello,

I have the same problem as darkdamp.

I created a map with a StartPlayer area, then created a subfolder in custom_stories folder with my map and the custom_story_settings.cfg.

But my map doesn't appear in the list after launching game.

Thank you for your help!


RE: How to? - Luis - 09-16-2010

(09-15-2010, 09:22 PM)sacroid Wrote: Tu tienes sangre española Wink XD
Es posible Tongue Stick to english anyway, most people here are not supposed to understand spanish Smile


Boulipoulpe: could you post the game log after opening the custom story list?
Also, if you can post the contents of the custom_story_settings.cfg file and the folder structure you have in there it would help a lot.


RE: How to? - Boulipoulpe - 09-16-2010

I can't post images so here is a description of my folder structure:

Folder "custom stories" of the game contains just one subfolder that I named "test". In that "test" subfolder I have put test.map and custom_story_settings.cfg. That's all.

Here is what I put in the custom_story_settings file :

Quote:<Main
Name="test"
Author="bouli"
ImgFile=""

StartMap="test.map"
StartPos=""

/>

I also tried to put the name of my StartArea at StartPos line but it doesn't work either.

About the game log I don't know what is it, I only found a hpl.log file, is that it ?

Please notice that I have very few knowledge about game scripting and modding, that's why I may ask for very simple things. Sorry for that.

Thank you Smile


RE: How to? - jens - 09-16-2010

If I'm not confused you need to add a script file named same as you map but ending with .hps.

test.map and then make a text file called test.hps and in the text file add:

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()
{

}

I've updated the main page of the wiki to be a bit more clear on this.