Frictional Games Forum (read-only)
[SCRIPT] [STILL HELP NEEDED] World not loading correctly - 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: [SCRIPT] [STILL HELP NEEDED] World not loading correctly (/thread-16685.html)

Pages: 1 2 3


[STILL HELP NEEDED] World not loading correctly - Jagsrs28 - 07-02-2012

When I pick up Knife_1 It is supposed to bring my vision back to normal (Which it does) then makes my screen go black (Which it does) then loads up my world and as it displays on the screen "Loading..." ,but then It looks like I am in the same place as I was when my screen went black. The screen is frozen (I didn't lag fraps said I was running at about 130-140 fps) and I can't move anywhere then I hit the floor (Sorta like falling in black) then "You have to carry on" displays on the screen can anyone PLEASE help me.


Reason:


\/\/\/\/\/ Look Below\/\/\/\/\/


RE: World not loading correctly - Cruzore - 07-02-2012

look if the playerstartarea is not too much into the ground. Else, you might want to give us some more information.


RE: World not loading correctly - Jagsrs28 - 07-02-2012

(07-02-2012, 03:32 PM)FastHunteR Wrote: look if the playerstartarea is not too much into the ground. Else, you might want to give us some more information.
What info is needed?


RE: World not loading correctly - Your Computer - 07-02-2012

(07-02-2012, 03:42 PM)Jagsrs28 Wrote: What info is needed?

For example: Whether or not you're trying to load the same map; whether or not you provided the correct PlayerStart area name to ChangeMap; whether or not you have a floor in the map; script used for the events; etc...


RE: World not loading correctly - Jagsrs28 - 07-02-2012

(07-02-2012, 03:55 PM)Your Computer Wrote:
(07-02-2012, 03:42 PM)Jagsrs28 Wrote: What info is needed?

For example: Whether or not you're trying to load the same map; whether or not you provided the correct PlayerStart area name to ChangeMap; whether or not you have a floor in the map; script used for the events; etc...
I double checked the Player start and its correct I am trying to upload a different map, I have a floor in my map, script used for the even:

{

SetEntityPlayerInteractCallback("Knife_1", "Murder", true);
}


void Murder(string &in asEntity)
{
StopMusic(1, 0);
FadeIn(1);
AddTimer("Timer2", 4, "Into2");
GetPlayerSpeed();
SetPlayerMoveSpeedMul(0);
}

void Into2(string &in asTimer)
{
FadeOut(1);
AddTimer("Timer3", 1, "Sounds1");
}

void Sounds1(string &in asTimer)
{
ChangeMap("02.map", "PlayerStartArea_2", "", "");
AddTimer("Timer4", 27, "Neworld1");
}

void Neworld1(string &in asTimer)
{
AddTimer("Timer5", 2, "Loaded1");
PlaySoundAtEntity("", "24_cut.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
}

void Loaded1(string &in asTimer)
{
SetPlayerJumpDisabled(false);
FadeIn(2);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
SetPlayerMoveSpeedMul(1);
}
anything else?


RE: World not loading correctly - Cruzore - 07-02-2012

when you change the map, you need a different .hps file for that map.
example:
map1.map goes with map1.hps
map2.map goes with map2.hps


RE: World not loading correctly - Jagsrs28 - 07-02-2012

(07-02-2012, 04:16 PM)FastHunteR Wrote: when you change the map, you need a different .hps file for that map.
example:
map1.map goes with map1.hps
map2.map goes with map2.hps
Yeah I created a 2nd Map and named in 02.map then a 02.hps


RE: World not loading correctly [NEED HELP] - Jagsrs28 - 07-02-2012

None of this is working my world still wont load Sad


RE: [STILL NEED HELP] World not loading correctly - Cruzore - 07-02-2012

No, I ment this:
void Sounds1(string &in asTimer)
{
ChangeMap("02.map", "PlayerStartArea_2", "", "");
AddTimer("Timer4", 27, "Neworld1");
}

void Neworld1(string &in asTimer)
{
AddTimer("Timer5", 2, "Loaded1");
PlaySoundAtEntity("", "24_cut.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
}

void Loaded1(string &in asTimer)
{
SetPlayerJumpDisabled(false);
FadeIn(2);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
SetPlayerMoveSpeedMul(1);
}
You change the map, add a timer right after, which also plays some stuff? I don't think that#s possibly, you have to move the timer and all the stuff for after the map change to the .hps file for that map you change to.


RE: [STILL NEED HELP] World not loading correctly - Jagsrs28 - 07-02-2012

(07-02-2012, 07:39 PM)FastHunteR Wrote: No, I ment this:
void Sounds1(string &in asTimer)
{
ChangeMap("02.map", "PlayerStartArea_2", "", "");
AddTimer("Timer4", 27, "Neworld1");
}

void Neworld1(string &in asTimer)
{
AddTimer("Timer5", 2, "Loaded1");
PlaySoundAtEntity("", "24_cut.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
}

void Loaded1(string &in asTimer)
{
SetPlayerJumpDisabled(false);
FadeIn(2);
PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
SetPlayerMoveSpeedMul(1);
}
You change the map, add a timer right after, which also plays some stuff? I don't think that#s possibly, you have to move the timer and all the stuff for after the map change to the .hps file for that map you change to.
I took out all of that and I have this now:





SetEntityPlayerInteractCallback("Knife_1", "Murder", true);
}


void Murder(string &in asEntity)
{
StopMusic(1, 0);
FadeIn(1);
AddTimer("Timer2", 4, "Into2");
GetPlayerSpeed();
SetPlayerMoveSpeedMul(0);
}

void Into2(string &in asTimer)
{
FadeOut(1);
AddTimer("Timer3", 1, "Sounds1");
}

void Sounds1(string &in asTimer)
{
ChangeMap("02.map", "PlayerStartArea_2", "", "");

//addTimer("Timer4", 27, "Neworld1");
}

//void Neworld1(string &in asTimer)
//{
//addTimer("Timer5", 2, "Loaded1");
//PlaySoundAtEntity("", "24_cut.snt", "Player", 0, false);
//PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
//}

//void Loaded1(string &in asTimer)
//{
//SetPlayerJumpDisabled(false);
//FadeIn(2);
//PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
//SetPlayerMoveSpeedMul(1);
//}

EDIT: Still didn't work