Frictional Games Forum (read-only)
Map keeps loading forever - 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: Map keeps loading forever (/thread-23958.html)



Map keeps loading forever - Slanderous - 11-27-2013

Hey

I finally reached the end of making a map, and it keeps loading forever. I mean when I load it using the toolbar in game (f1) it loads normal, and everything is okay, but when I go to this map through level doors it keeps loading forever.

How can I solve this?

Notice if you launch my map it will propably give you an error, because there is a Wretch from AMFP and a new floor texture and yes, I have the update and stuff and it works. Just don't mind about it if you want to test it.

Download map and hps stuff - HERE


RE: Map keeps loading forever - ingedoom - 11-29-2013

Have you tried using another texture? Maybe it could be that?


RE: Map keeps loading forever - Romulator - 11-29-2013

The issue is you have an error in your code somewhere. Tongue
Got a Fatal Error trying to load it.

Trying to look over it now to see why. Found the issue:

Here:
PHP Code:
void ActiveWretch(string &in asParentstring &in asChildint alState)
{
    
SetPropHealth(0"castle_3");         //This is your issue. You have the bracketed values reversed.
    
SetEntityActive("keyneed",true);
    
SetEntityActive("wrecz",true);
    
SetEntityActive("kaboom",true);
    
ShowEnemyPlayerPosition("wrecz");
    
SetPlayerRunSpeedMul(0.35f);
    
FadeImageTrailTo(1.252.5);
    
PlayMusic("26_event_brute.ogg"false1.001true);
    
GiveSanityDamage(25.0ftrue);
    
StartPlayerLookAt("look"2.0f2.0f""); 
    
AddTimer("LookRight"6.0f"LookTimer"); 


Change the SetPropHealth() to:
PHP Code:
SetPropHealth("castle_3"0.0f); 

Also, between the LookTimer and Reset routines, you have a closing brace with no opening brace. Remove that.
Should work fine then, as it did on my end!

For the map itself however...
Spoiler below!
BOXLIGHTS! If you know how to use them, put it in. They will make your map keep a consistent light amount. Because of the amount of lighting there is, there shouldn't be many to any dark spots. A boxlight will help fix that easily Smile



RE: Map keeps loading forever - Slanderous - 11-30-2013

(11-29-2013, 02:13 PM)Romulator Wrote: The issue is you have an error in your code somewhere. Tongue
Got a Fatal Error trying to load it.

Trying to look over it now to see why. Found the issue:

Here:
PHP Code:
void ActiveWretch(string &in asParentstring &in asChildint alState)
{
    
SetPropHealth(0"castle_3");         //This is your issue. You have the bracketed values reversed.
    
SetEntityActive("keyneed",true);
    
SetEntityActive("wrecz",true);
    
SetEntityActive("kaboom",true);
    
ShowEnemyPlayerPosition("wrecz");
    
SetPlayerRunSpeedMul(0.35f);
    
FadeImageTrailTo(1.252.5);
    
PlayMusic("26_event_brute.ogg"false1.001true);
    
GiveSanityDamage(25.0ftrue);
    
StartPlayerLookAt("look"2.0f2.0f""); 
    
AddTimer("LookRight"6.0f"LookTimer"); 


Change the SetPropHealth() to:
PHP Code:
SetPropHealth("castle_3"0.0f); 

Also, between the LookTimer and Reset routines, you have a closing brace with no opening brace. Remove that.
Should work fine then, as it did on my end!

For the map itself however...
Spoiler below!
BOXLIGHTS! If you know how to use them, put it in. They will make your map keep a consistent light amount. Because of the amount of lighting there is, there shouldn't be many to any dark spots. A boxlight will help fix that easily Smile

Oh, thanks Big Grin Works now.