Frictional Games Forum (read-only)

Full Version: Map keeps loading forever
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Have you tried using another texture? Maybe it could be that?
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
(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.