Frictional Games Forum (read-only)
Need some help ! - 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: Need some help ! (/thread-11836.html)

Pages: 1 2


RE: Need some help ! - narutohokager - 12-16-2011

(12-16-2011, 12:37 AM)Karai16 Wrote: As-tu déja résolu le problem avec l'audio ou le script?


Quel problême parle-tu ? Est-tu français ? Ou As-tu utilisé "Google Translator" ?
(12-15-2011, 11:54 PM)palistov Wrote: FadeSepiaColorTo(0.2f, 1.0f); <-- see if that works.

Its still not working Sad

(12-15-2011, 10:58 PM)Your Computer Wrote: That's not enough to help you.


What do you want more ?




RE: Need some help ! - Your Computer - 12-16-2011

(12-16-2011, 06:39 PM)narutohokager Wrote: What do you want more ?

Pretty much the entire traceback. I have no idea where or how the collision callback is being set and whether or not that too is within another callback.


RE: Need some help ! - palistov - 12-16-2011

narutohokager: Well functions don't just randomly refuse to work; it's very likely that the collision between the player and the portrait area is never happening. Check the area, make sure its name matches the name of the area you scripted the callback for.


PHP Code:
//---!! IMPORTANT !!--//
// make sure you change "areaPortrait" to match the area in your map
void OnStart()
{
AddEntityCollideCallback("Player""areaPortrait""CollideAreaPortrait"true1);
}

// the code you posted, with some lines I added to help you debug
void CollideAreaPortrait(string &in asParentstring &in asChildint alState)
{
AddTimer("TimerFadeIn"1.5f"FadeInGuardien");
FadeOut(0.1f);AddDebugMessage("faded out"false);
}
void FadeInGuardien(string &in asTimer)
{
FadeIn(0.05f);
StartScreenShake(0.1f,10.5f,0.5f);
FadeSepiaColorTo(151);
SetPlayerActive(true); AddDebugMessage("fading to sepia"false); 


Also, try separating the sepia fade line to a different function. It's possible fade in/out conflicts with other screen effects -- I don't know for sure because I've never tested for it, but you can never be certain.