Frictional Games Forum (read-only)

Full Version: Amnesia crashes when loading map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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()
{

}
What does the crash say?
(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
Take a screenshot of the error when it comes up.
(11-21-2015, 05:57 AM)Romulator Wrote: [ -> ]Take a screenshot of the error when it comes up.


[Image: zRm75hMVoYA.jpg]
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?
(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
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.
(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
You will need to be more specific.

Please copy exactly what the log file says, or simply attach the log file.
Pages: 1 2 3