Frictional Games Forum (read-only)
Amnesia crashes when loading map - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Amnesia crashes when loading map (/thread-31724.html)

Pages: 1 2 3


Amnesia crashes when loading map - Nanatsumi - 11-20-2015

My FC mod crashes when i load a map, i figured out that problem with HPS, but whats wrong with it?

void OnStart()
{

PlaySoundAtEntity("", "00_00_elevatormusic.snt", "Elevator_music_looping_1", 0.5f, true);
PlaySoundAtEntity("", "elevator_loop.snt", "Elevator_looping_1", 0.5f, true);
AddTimer("", 15, "elevator_stops_scene");
AddTimer("", 13, "elevator_fadeout");
AddEntityCollideCallback("Player", "Light_1_Scene", "Lights_Begin", true, 1);

}

void light_two(string &in asTimer)
{

SetEntityActive("tesla_lamp_ball_Raleigh_1", true);
PlaySoundAtEntity("", "00_intro_machine_lamp_lit.snt", "Player", 0.0f, false);


}

void Lights_Begin(string &in asParent, string &in asChild, int alState)
{

SetEntityActive("tesla_lamp_ball_Raleigh_2", true);
AddTimer("", 4, "light_two");
PlaySoundAtEntity("", "00_intro_machine_lamp_lit.snt", "Player", 0.0f, false);
PlayMusic("01_EricOffice.ogg", false, 1.0f, 0.0f, 10, false);

}

void elevator_fadeout(string &in asTimer)
{

FadeOut(1.0f);

}

void elevator_stops_scene(string &in asTimer)
{

PlaySoundAtEntity("", "elevator_stop.snt", "Player", 0.0f, false);
FadeIn(1.0f);
TeleportPlayer("PlayerStartArea_2");

}


void OnEnter()
{

SetSanityDrainDisabled(true);

}


void OnLeave()
{

}


RE: Amnesia crashes when loading map - FlawlessHappiness - 11-20-2015

What does the crash say?


RE: Amnesia crashes when loading map - Nanatsumi - 11-21-2015

(11-20-2015, 11:07 PM)FlawlessHappiness Wrote: What does the crash say?

It says that it can't load a map, and something like a cubemap, path


RE: Amnesia crashes when loading map - Romulator - 11-21-2015

Take a screenshot of the error when it comes up.


RE: Amnesia crashes when loading map - Nanatsumi - 11-21-2015

(11-21-2015, 05:57 AM)Romulator Wrote: Take a screenshot of the error when it comes up.


[Image: zRm75hMVoYA.jpg]


RE: Amnesia crashes when loading map - Romulator - 11-21-2015

If you're getting black boxes, I'm pretty sure the problem is not with your script. When does this error occur? When the map is loading? When the Full Conversion is loaded?


RE: Amnesia crashes when loading map - Nanatsumi - 11-21-2015

(11-21-2015, 09:48 AM)Romulator Wrote: If you're getting black boxes, I'm pretty sure the problem is not with your script. When does this error occur? When the map is loading? When the Full Conversion is loaded?

When map is loading


RE: Amnesia crashes when loading map - Mudbill - 11-21-2015

It could be your script, but it wouldn't be a syntax error. If anything, it'd be something like an infinite loop that causes the crash. Though, most likely it's something in your configs, perhaps a missing file. Check the hpl.log file.


RE: Amnesia crashes when loading map - Nanatsumi - 11-21-2015

(11-21-2015, 03:05 PM)Mudbill Wrote: It could be your script, but it wouldn't be a syntax error. If anything, it'd be something like an infinite loop that causes the crash. Though, most likely it's something in your configs, perhaps a missing file. Check the hpl.log file.
Config files are normal
Hpl log file says that it can't load map, and something like a path, cubemap


RE: Amnesia crashes when loading map - FlawlessHappiness - 11-21-2015

You will need to be more specific.

Please copy exactly what the log file says, or simply attach the log file.