Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
Map keeps loading forever
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
|
|
11-27-2013, 08:59 PM |
|
ingedoom
Member
Posts: 120
Threads: 12
Joined: Feb 2012
Reputation:
0
|
RE: Map keeps loading forever
Have you tried using another texture? Maybe it could be that?
|
|
11-29-2013, 01:33 AM |
|
Romulator
Not Tech Support ;-)
Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation:
195
|
RE: Map keeps loading forever
The issue is you have an error in your code somewhere.
Got a Fatal Error trying to load it.
Trying to look over it now to see why. Found the issue:
Here:
void ActiveWretch(string &in asParent, string &in asChild, int 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.25, 2.5); PlayMusic("26_event_brute.ogg", false, 1.0, 0, 1, true); GiveSanityDamage(25.0f, true); StartPlayerLookAt("look", 2.0f, 2.0f, ""); AddTimer("LookRight", 6.0f, "LookTimer"); }
Change the SetPropHealth() to:
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...
Discord: Romulator#0001
(This post was last modified: 11-29-2013, 02:25 PM by Romulator.)
|
|
11-29-2013, 02:13 PM |
|
Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
RE: Map keeps loading forever
(11-29-2013, 02:13 PM)Romulator Wrote: The issue is you have an error in your code somewhere.
Got a Fatal Error trying to load it.
Trying to look over it now to see why. Found the issue:
Here:
void ActiveWretch(string &in asParent, string &in asChild, int 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.25, 2.5); PlayMusic("26_event_brute.ogg", false, 1.0, 0, 1, true); GiveSanityDamage(25.0f, true); StartPlayerLookAt("look", 2.0f, 2.0f, ""); AddTimer("LookRight", 6.0f, "LookTimer"); }
Change the SetPropHealth() to:
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...
Oh, thanks Works now.
|
|
11-30-2013, 10:40 AM |
|
|