Frictional Games Forum (read-only)
BlackBox and stuff - 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: BlackBox and stuff (/thread-11209.html)

Pages: 1 2


BlackBox and stuff - Victor - 11-06-2011

So, I've made a map that had one of those big arched doors, and I scripted it to when I touch, it teleports me to another level, but when I test it, I click on the door, and then there is a loading screen... but then, the game crashes (NOT A FATAL ERROR), and one of those black boxes pops up in my screen, and it says:



Exception Reason--------------

Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module
Amnesia.exe at 001B:0044A6BB

Stack trace-------------

001B:0044A6BB Amnesia.exe
001B:0043BEBE Amnesia.exe
001B:0043CF4F Amnesia.exe
001B:00538F50 Amnesia.exe
001B:7C3A4EC3 MSVCP71.dll,std::basic_string,std::allocator

001B:005342A1 Amnesia.exe
001B:0053D548 Amnesia.exe
001B:004EA89F Amnesia.exe


I don't know if there's anything to do with, but in the level where I scripted the player to teleport to, I've used some White Night textures/models/stuff.

Please, help!


RE: BlackBox and stuff - GreyFox - 11-06-2011

I don't know the above error, but could you post your script.

-Grey Fox



RE: BlackBox and stuff - Victor - 11-06-2011

(11-06-2011, 04:01 AM)GreyFox Wrote: I don't know the above error, but could you post your script.

-Grey Fox
Sure!
This is the 1st map script:


////////////////////////////
// Run first time starting map
void OnStart()
{
wakeUp();
PlayMusic("03_amb_rime.snt", true, 5, 2, 0, true);
SetEntityPlayerInteractCallback("castle_gate_arched01_1", "Bye_tel", true);
}

void Bye_tel(string &in asEntity)
{
ChangeMap("IntroInside.map", "Telplayerstart", "move_gate.snt", "close_gate.snt");
StopMusic(5, 0);
}

void wakeUp ()
{
FadeOut(0);
FadeIn(20);
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 150, 150);
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true);
AddTimer("trig1", 11.0f, "beginStory");
PlaySoundAtEntity("", "react_pant2.snt", "Player", 0, false);
}

void beginStory(string &in asTimer)
{
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33);
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

And this is the indoor map .hps script(IntroInside.hps):


////////////////////////////
// Run first time starting map
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever1", "func_shelf");
SetEntityPlayerInteractCallback("door_double_rusty_broken_1", "tel1", true);
}

void tel1(string &in asEntity)
{
ChangeMap(".map", "Telplayerstart", "move_gate.snt", "close_gate.snt");
StopMusic(5, 0);
}

void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("shelf",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}

}

void LockedModernDoor1(string &in asEntity)
{
SetMessage("Misc", "ModernDoor1", 5.0f);
AddQuest("ModernDoor_Quest", "Quest_ModernDoor_Text");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Smile



RE: BlackBox and stuff - flamez3 - 11-06-2011

Not much to say, may be check your hpl level editor log?


RE: BlackBox and stuff - nemesis567 - 11-06-2011

ChangeMap(".map", "Telplayerstart", "move_gate.snt", "close_gate.snt");

You need to place the name of the map, otherwise the game will crash...



RE: BlackBox and stuff - GreyFox - 11-06-2011

there ya go nemesis567 found the problem. Sorry I Couldn't Help Earlier I was Sleeping haha.

Good Luck

-Grey Fox



RE: BlackBox and stuff - Victor - 11-06-2011

(11-06-2011, 02:42 PM)nemesis567 Wrote: ChangeMap(".map", "Telplayerstart", "move_gate.snt", "close_gate.snt");

You need to place the name of the map, otherwise the game will crash...
I'm such a noob! hahahah! Thank you! Im'na see if that works!


(11-06-2011, 03:26 PM)GreyFox Wrote: there ya go nemesis567 found the problem. Sorry I Couldn't Help Earlier I was Sleeping haha.

Good Luck

-Grey Fox
LOL that's ok... Everybody needs to sleep sometime...

EDIT: Nothing happens. Same crash! And I think the problem is not the door/ the teleport, but the map itself, because I've tried to load it using the Debug Menu and the same crash pops up. Fu*ck. I think Im going to have to make a bram new map. Sh*it!


RE: BlackBox and stuff - GreyFox - 11-06-2011

Could you possibly send me your map? I'll test to see if It crashes for me.

-Grey Fox



RE: BlackBox and stuff - Victor - 11-06-2011

(11-06-2011, 06:56 PM)GreyFox Wrote: Could you possibly send me your map? I'll test to see if It crashes for me.

-Grey Fox
When I try to attach the file, it says: "The type of file that you attached is not allowed..blabla"!

P.S: "Current Project
Forgotten"
LOL


RE: BlackBox and stuff - GreyFox - 11-06-2011

Yes Yes, haha Now that I think about it thats a funny name. And It's true in both ways. It's my Storys Name and It is Kinda Forgotten (sorta, just not working on it ATM)

Anyways. Have you Played through white night or did you just download it for the textures and such?

If you did play through it did you have any problems with that (this is just seeing if maybe a texture is corrupt or something)

-Grey Fox