The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error trying to run first map, help!
ZutaraRaven Offline
Junior Member

Posts: 8
Threads: 2
Joined: Apr 2011
Reputation: 0
#1
Error trying to run first map, help!

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. Smile

That felt like a lot of information to type out. Tongue Please help me out guys.
04-22-2011, 08:32 PM
Find


Messages In This Thread
Error trying to run first map, help! - by ZutaraRaven - 04-22-2011, 08:32 PM



Users browsing this thread: 1 Guest(s)