Frictional Games Forum (read-only)
My map keeps crashing when loading.. - 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: My map keeps crashing when loading.. (/thread-19995.html)



My map keeps crashing when loading.. - DnALANGE - 01-20-2013

I need some help with this...
My map is around 4mb atm..
There will be NO more stuff in it..
BUT...
It loads the first time ... then you go to some other maps then you come back in the big 4mb map..
While loading it gives that OOPS there is something wrong
It only happens when i return to that big map.. AND not every time i test it..
What can i do.. almost impossible to cut this map into pieces...
Anone some ideas?
Thanks!


RE: My map keeps crashing when loading.. - Asaratha - 01-21-2013

Do you mean turn around and go back through the door to try to go back into the level?

If thats what you mean, does your level door actually load a mapfile?


RE: My map keeps crashing when loading.. - DnALANGE - 01-21-2013

Nah...
Not to be rude.. i am not new to this all...
It's just... the map is 4 mb.. 4.100 something..
Is that the cause of this problem?
If this will occur while the Full Conversion is ready.. i'm screwed!
Uhhm....
Might be something... no it's weird.. cause it DOES load sometimes..
Let's say 3-10 it gives the error..
Anyone some ideas \ suggestions?
Thanx for replaying Asaratha!


RE: My map keeps crashing when loading.. - FlawlessHappiness - 01-21-2013

No, i guess, THATS why Frictional Games created those .map caches.

When you are completely done with your map, you should try creating a map .cache and then see if it works.

Or just try now. You can always delete it.

Those .map caches were made to load big levels easier.


RE: My map keeps crashing when loading.. - amusei - 01-21-2013

(01-20-2013, 05:01 PM)dnalange Wrote: I need some help with this...
My map is around 4mb atm..
There will be NO more stuff in it..
BUT...
It loads the first time ... then you go to some other maps then you come back in the big 4mb map..
While loading it gives that OOPS there is something wrong
It only happens when i return to that big map.. AND not every time i test it..
What can i do.. almost impossible to cut this map into pieces...
Anone some ideas?
Thanks!
I had a similiar problem. Do you go back through a DOOR or through scritps(for example when you enter an area) because if it is through script make sure your player is not moving while loading and add a FadeOut func
example
Code:
void OnStart()
{    
    AddEntityCollideCallback("Player", "endmap", "EndMapFade", true, 1);
}

void EndMapFade(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    FadeOut(3);
    AddTimer("", 3, "LoadNextMap");
}

void LoadNextMap(string &in asTimer)
{
    ChangeMap("testmap.map", "PlayerStartArea_1", "", "");
}
If that is not the case I don't know how to fix it Sad


RE: My map keeps crashing when loading.. - DnALANGE - 01-21-2013

(01-21-2013, 01:55 PM)amusei Wrote:
(01-20-2013, 05:01 PM)dnalange Wrote: I need some help with this...
My map is around 4mb atm..
There will be NO more stuff in it..
BUT...
It loads the first time ... then you go to some other maps then you come back in the big 4mb map..
While loading it gives that OOPS there is something wrong
It only happens when i return to that big map.. AND not every time i test it..
What can i do.. almost impossible to cut this map into pieces...
Anone some ideas?
Thanks!
I had a similiar problem. Do you go back through a DOOR or through scritps(for example when you enter an area) because if it is through script make sure your player is not moving while loading and add a FadeOut func
example
Code:
void OnStart()
{    
    AddEntityCollideCallback("Player", "endmap", "EndMapFade", true, 1);
}

void EndMapFade(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    FadeOut(3);
    AddTimer("", 3, "LoadNextMap");
}

void LoadNextMap(string &in asTimer)
{
    ChangeMap("testmap.map", "PlayerStartArea_1", "", "");
}
If that is not the case I don't know how to fix it Sad

I think My friend here fixed it already!
Tnx beecake! As far as i tested it it workes now!
TNX again!