Hi guys!
So I decided to make a little test map for myself to learn the tools and things I need to know to create my custom story, but I'm having trouble getting it to run.
Basically all I've done so far is browse around frictional games' hpl2 wiki, reading around scripts and following tutorials, and reading some stuff on scripting on these forums.
I followed this tutorial for the map:
http://wiki.frictionalgames.com/hpl2/tut...tutorial_1
Used this to set up the dev environment:
http://wiki.frictionalgames.com/hpl2/amn...evenvguide
Used the default script from this tutorial:
http://wiki.frictionalgames.com/hpl2/tut...tutorial_1
And followed the steps here:
http://wiki.frictionalgames.com/hpl2/amn...stom_story
I browsed around the frictional games forum and made a couple edits to a few things.
This is my map's hps file:
////////////////////////////
// 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");
}
}
void MonsterFunc1(string &in asParent, string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
[I put a little miniature grunt in the closet... heheh. I think I may have to put the path nodes in the script to make him follow it though... I forgot about that.]
And this is the custom_story_settings.cfg file:
<Main
Name="First Map"
Author="Meigen and Ailin"
ImgFile=""
MapsFolder="maps/"
StartMap="First Map--Tutorial.map"
StartPos="PlayerStartArea_1"
/>
I made sure the start map, the maps folder, and the player start area were consistent in all the files they were in.
Map .map and .hps files are in C:\Program Files (x86)\Amnesia - The Dark Descent\redist\custom_stories\Custom Map Test\maps
The rest of the configuration and language files are in Custom Map Test.
When I try to run Amnesia, it gives me the error: FATAL ERROR: Cannot load world files 'maps/First Map--Tutorial.map'
Okay... That's what I've got. As far as previous programming experience, I've taken a class on javascript before. But I pretty much suck.
That felt like a lot of information to type out.
Please help me out guys.