Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BlackBox and stuff
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#1
Tongue  BlackBox and stuff

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!
(This post was last modified: 11-06-2011, 03:59 AM by Victor.)
11-06-2011, 03:58 AM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#2
RE: BlackBox and stuff

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

-Grey Fox

Current Project
Forgotten
11-06-2011, 04:01 AM
Find
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#3
RE: BlackBox and stuff

(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
11-06-2011, 04:18 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: BlackBox and stuff

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

11-06-2011, 10:29 AM
Find
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#5
RE: BlackBox and stuff

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

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

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
11-06-2011, 02:42 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#6
RE: BlackBox and stuff

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

Good Luck

-Grey Fox

Current Project
Forgotten
11-06-2011, 03:26 PM
Find
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#7
RE: BlackBox and stuff

(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!
(This post was last modified: 11-06-2011, 05:06 PM by Victor.)
11-06-2011, 04:47 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#8
RE: BlackBox and stuff

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

-Grey Fox

Current Project
Forgotten
11-06-2011, 06:56 PM
Find
Victor Offline
Member

Posts: 83
Threads: 19
Joined: Oct 2011
Reputation: 2
#9
RE: BlackBox and stuff

(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
11-06-2011, 08:23 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#10
RE: BlackBox and stuff

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

Current Project
Forgotten
11-06-2011, 11:57 PM
Find




Users browsing this thread: 3 Guest(s)