[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) |
RE: [STILL NEED HELP] World not loading correctly - Cruzore - 07-02-2012 So? Does it work? You didn't write anything if it works or not. RE: [STILL NEED HELP] World not loading correctly - Jagsrs28 - 07-02-2012 (07-02-2012, 07:55 PM)FastHunteR Wrote: So? Does it work? You didn't write anything if it works or not.I put in an edit "It didnt work" RE: [STILL NEED HELP] World not loading correctly - Cruzore - 07-02-2012 You do have the collide callback in void OnStart(), do you? Because it's not there. Else, there's nothing wrong. RE: [STILL NEED HELP] World not loading correctly - Jagsrs28 - 07-03-2012 (07-02-2012, 08:15 PM)FastHunteR Wrote: You do have the collide callback in void OnStart(), do you? Because it's not there. Else, there's nothing wrong.Yes I do have it there. I just included the script for THIS event. RE: [STILL NEED HELP] World not loading correctly - Statyk - 07-03-2012 I hate asking this but is your game pirated? Be honest, please. RE: [STILL NEED HELP] World not loading correctly - DaAinGame - 07-03-2012 (07-03-2012, 02:30 AM)Jagsrs28 Wrote:(07-02-2012, 08:15 PM)FastHunteR Wrote: You do have the collide callback in void OnStart(), do you? Because it's not there. Else, there's nothing wrong. Post your entire script. Sometimes there is an error that doesn't give you an error, but does mess up the entire script. I've had that happen several times, and it takes a while to pinpoint it. RE: [STILL NEED HELP] World not loading correctly - Stepper321 - 07-03-2012 (07-03-2012, 05:57 AM)Statyk Wrote: I hate asking this but is your game pirated? Be honest, please.Even tough it has nothing to do with that. Go check your hps.log and go down to see your error. If you can't figure out itself, post the entire Log in Pastebin and post it here. RE: [STILL NEED HELP] World not loading correctly - Jagsrs28 - 07-03-2012 (07-03-2012, 05:57 AM)Statyk Wrote: I hate asking this but is your game pirated? Be honest, please.I got my game from HumbleBundle. void OnStart() { AddUseItemCallback("", "Key_1", "castle_1", "KeyOnDoor", true); AddUseItemCallback("", "Key_2", "castle_2", "KeyOnDoor1", true); AddEntityCollideCallback("Player", "ScriptArea_1", "CloseDoorFunc", true, 1); AddEntityCollideCallback("Player", "ScriptArea_2", "CloseDoorFunc2", true, 1); AddEntityCollideCallback("Player", "ScriptArea_3", "ScareFake", true, 1); AddEntityCollideCallback("Player", "ScriptArea_4", "GruntHallucination", true, 1); AddEntityCollideCallback("Player", "ScriptArea_5", "KnightScare", true, -1); AddEntityCollideCallback("Player", "ScriptArea_6", "CabinateScare", true, 1); AddEntityCollideCallback("Player", "ScriptArea_7", "FlyingBarrel", true, 1); AddEntityCollideCallback("Player", "ScriptArea_8", "Fade1", true, 1); AddEntityCollideCallback("Player", "ScriptArea_9", "Fadein1", true, 1); AddEntityCollideCallback("Player", "ScriptArea_10", "Flashback1", true, 1); SetEntityPlayerInteractCallback("Key_1", "ActivateMonster1", true); AddEntityCollideCallback("Player", "ScriptArea_11", "DoorHole1", true, 1); SetEntityPlayerInteractCallback("Knife_1", "Murder", true); //SetEntityCallbackFunc("Knife_1", "Murder"); } 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); //} void Flashback1(string &in asParent, string &in asChild, int alState) { StartEffectFlash(1, 0.9, 4); FadeImageTrailTo(6, 3); PlayMusic("Flashback1",true,1,0,0,false); FadeRadialBlurTo(0.3, 3); SetPlayerMoveSpeedMul(0.5); SetPlayerJumpDisabled(true); MovePlayerForward(10); AddTimer("Timer1", 8, "SetMessage1"); } void SetMessage1(string &in asTimer) { SetMessage("Messages", "Message1", 8); } void Fadein1(string &in asParent, string &in asChild, int alState) { FadeIn(1); FadeImageTrailTo(2, 1); } void Fade1(string &in asParent, string &in asChild, int alState) { FadeOut(1); } void FlyingBarrel(string &in asParent, string &in asChild, int alState) { AddPropImpulse("barrel01_2", 0, 0, -20, "world"); PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false); } void CabinateScare(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false); SetEntityActive("servant_grunt_2", true); AddEnemyPatrolNode("servant_grunt_2", "PathNodeArea_5", 0, "Idle"); } void ActivateMonster1(string &in item) { SetEntityActive("servant_brute_1", true); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_1", 0, "Idle"); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_2", 0, "Idle"); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_3", 0, "Idle"); AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_4", 0, "Idle"); } void KnightScare(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false); SetEntityActive("armour_nice_complete_14", true); SetEntityActive("armour_nice_complete_15", true); SetEntityActive("armour_nice_complete_16", true); SetEntityActive("armour_nice_complete_17", true); SetEntityActive("armour_nice_complete_18", true); SetEntityActive("armour_nice_complete_19", true); SetEntityActive("armour_nice_complete_20", true); SetEntityActive("armour_nice_complete_21", true); SetEntityActive("armour_nice_complete_22", true); SetEntityActive("armour_nice_complete_23", true); } void ScareFake(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); } void GruntHallucination(string &in asParent, string &in asChild, int alState) { SetEntityActive("servant_grunt_1", true); ShowEnemyPlayerPosition("servant_grunt_1"); PlaySoundAtEntity("", "", "Player", 0, false); PlayMusic("scream_scare",true,1,0,0,false); } void CloseDoorFunc(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("castle_1", true, true); SetSwingDoorLocked("castle_1", true, false); PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false); PlaySoundAtEntity("", "hurt_pant.snt", "Player", 0, false); GiveSanityDamage(50.0f, true); } void CloseDoorFunc2(string &in asParent, string &in asChild, int alState) { SetSwingDoorClosed("castle_2", true, true); SetSwingDoorLocked("Magical Apples", true, false); PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false); PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "lurker_hit_wood1.snt", "Player", 0, false); PlaySoundAtEntity("", "insanity_whisper.snt", "Player", 0, false); PlaySoundAtEntity("", "insanity_baby_cry.snt", "Player", 0, false); GiveSanityDamage(40.0f, true); } void KeyOnDoor(string &in item, string &in door) { SetSwingDoorLocked("castle_1", false, true); PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false); RemoveItem("Key_1"); } void KeyOnDoor1(string &in item, string &in door) { SetSwingDoorLocked("castle_2", false, true); PlaySoundAtEntity("", "unlock_door", "castle_2", 0, false); RemoveItem("Key_2"); } void OnEnter() { } RE: [STILL NEED HELP] World not loading correctly - Jagsrs28 - 07-04-2012 I don't understand why it's not working. RE: [STILL HELP NEEDED] World not loading correctly - heyitsrobert97 - 07-04-2012 Have you tried Deleting the map_cache ( if there is one) this happened to be before and all i had to do was delete them |