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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [STILL HELP NEEDED] World not loading correctly
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#11
RE: [STILL NEED HELP] World not loading correctly

So? Does it work? You didn't write anything if it works or not.

Think, before you speak Google, before you post
07-02-2012, 07:55 PM
Find
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#12
RE: [STILL NEED HELP] World not loading correctly

(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"

Special Custom Story for 2 special people!

[Image: LWFcAl]


07-02-2012, 08:10 PM
Find
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#13
RE: [STILL NEED HELP] World not loading correctly

You do have the collide callback in void OnStart(), do you? Because it's not there. Else, there's nothing wrong.

Think, before you speak Google, before you post
07-02-2012, 08:15 PM
Find
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#14
RE: [STILL NEED HELP] World not loading correctly

(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.

Special Custom Story for 2 special people!

[Image: LWFcAl]


07-03-2012, 02:30 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#15
RE: [STILL NEED HELP] World not loading correctly

I hate asking this but is your game pirated? Be honest, please.
07-03-2012, 05:57 AM
Find
DaAinGame Offline
Member

Posts: 90
Threads: 11
Joined: Mar 2012
Reputation: 4
#16
RE: [STILL NEED HELP] World not loading correctly

(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.

Yes I do have it there.



I just included the script for THIS event.

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.

Realm Of Another Chapter 1: http://www.frictionalgames.com/forum/thread-14142.html
Realm Of Another Chapter 2: Postponed
Adder Halls: 5%
07-03-2012, 01:46 PM
Find
Stepper321 Offline
Senior Member

Posts: 263
Threads: 26
Joined: Nov 2011
Reputation: 8
#17
RE: [STILL NEED HELP] World not loading correctly

(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.

Signature to awesome to be displayed.
07-03-2012, 02:04 PM
Find
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#18
RE: [STILL NEED HELP] World not loading correctly

(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()
{


}

Special Custom Story for 2 special people!

[Image: LWFcAl]


(This post was last modified: 07-03-2012, 06:20 PM by Jagsrs28.)
07-03-2012, 06:19 PM
Find
Jagsrs28 Offline
Member

Posts: 101
Threads: 25
Joined: Jun 2012
Reputation: 0
#19
RE: [STILL NEED HELP] World not loading correctly

I don't understand why it's not working.

Special Custom Story for 2 special people!

[Image: LWFcAl]


07-04-2012, 06:14 AM
Find
heyitsrobert97 Offline
Member

Posts: 68
Threads: 29
Joined: Jan 2012
Reputation: 0
#20
RE: [STILL HELP NEEDED] World not loading correctly

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

This Darn House! , Four Doors, Youtube
07-04-2012, 11:26 AM
Find




Users browsing this thread: 1 Guest(s)