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
Custom Music FATAL ERROR (Seriously Need Assistance)
Fictionult Offline
Junior Member

Posts: 16
Threads: 6
Joined: Apr 2011
Reputation: 0
#1
Question  Custom Music FATAL ERROR (Seriously Need Assistance)

Hey there guys, I'll provide you with a couple of screenshots, and help is highly appreciated.


I have all the code written down into my .hps file.. I followed and learned what I was suppose to script and this is currently what I have (on the .hps)

[Image: uLyqf.jpg]
To continue on, when I launch my game, select the story.. It closes the game right after showing me this message presented here..

[Image: XhV1S.jpg]



Please, if someone has a solution on how I can fix this, please help out.
Again, I'd much appreciate any help!
(This post was last modified: 11-16-2012, 06:12 PM by Fictionult.)
11-16-2012, 06:10 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

remove the ";" at the end of void start(string &in asParent, string &in asChild, int alState)


For future reference, please just copy&paste the script directly into the chat box - it makes it easier for others to revise.

I rate it 3 memes.
11-16-2012, 06:13 PM
Find
Fictionult Offline
Junior Member

Posts: 16
Threads: 6
Joined: Apr 2011
Reputation: 0
#3
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(11-16-2012, 06:13 PM)andyrockin123 Wrote: remove the ";" at the end of void start(string &in asParent, string &in asChild, int alState)

For future reference, please just copy&paste the script directly into the chat box - it makes it easier for others to revise.
That didn't entirely help, just gave a new error. Instead it now says main (5, 1) now as opposed to (13, 1)..
Oh and.

For anyone who needs this.



//////////////////
// Run first time starting map
void OnStart()
{
Fadeout(0);

FadeIn(50);

AddEntityCollideCallback ("PlayerStartArea_1" , "Music_1", "start", true, 1);
}

void start(string &in asParent, string &in asChild, int alstate)
{
PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);
}
//////////////////
// Run first time starting map
void OnEnter()
{

}

//////////////////
// Run first time starting map
void OnLeave()
{

}
11-16-2012, 06:19 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

the "O" in FadeOut needs to be capitalized.

I rate it 3 memes.
11-16-2012, 06:21 PM
Find
Fictionult Offline
Junior Member

Posts: 16
Threads: 6
Joined: Apr 2011
Reputation: 0
#5
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(11-16-2012, 06:21 PM)andyrockin123 Wrote: the "O" in FadeOut needs to be capitalized.
The map now runs, thanks to you.

Yet no music is playing at all. Any wonder to that?
11-16-2012, 06:26 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#6
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(11-16-2012, 06:26 PM)Fictionult Wrote:
(11-16-2012, 06:21 PM)andyrockin123 Wrote: the "O" in FadeOut needs to be capitalized.
The map now runs, thanks to you.

Yet no music is playing at all. Any wonder to that?
This is what you have:

//////////////////

// Run first time starting map

void OnStart()

{

Fadeout(0);



FadeIn(50);



AddEntityCollideCallback ("PlayerStartArea_1" , "Music_1", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

It should be like this:

//////////////////

// Run first time starting map

void OnStart()

{

FadeOut(0);



FadeIn(50);



AddEntityCollideCallback ("Player" , "nameofarea", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

You have to specify that when the player collides with an area this one does something, right? Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-16-2012, 06:40 PM
Find
Fictionult Offline
Junior Member

Posts: 16
Threads: 6
Joined: Apr 2011
Reputation: 0
#7
RE: Custom Music FATAL ERROR (Seriously Need Assistance)

(11-16-2012, 06:40 PM)The chaser Wrote:
(11-16-2012, 06:26 PM)Fictionult Wrote:
(11-16-2012, 06:21 PM)andyrockin123 Wrote: the "O" in FadeOut needs to be capitalized.
The map now runs, thanks to you.

Yet no music is playing at all. Any wonder to that?
This is what you have:

//////////////////

// Run first time starting map

void OnStart()

{

Fadeout(0);



FadeIn(50);



AddEntityCollideCallback ("PlayerStartArea_1" , "Music_1", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

It should be like this:

//////////////////

// Run first time starting map

void OnStart()

{

FadeOut(0);



FadeIn(50);



AddEntityCollideCallback ("Player" , "nameofarea", "start", true, 1);

}



void start(string &in asParent, string &in asChild, int alstate)

{

PlaySoundAtEntity("", "Distance.snt", "PlayerStartArea_1", 0, false);

}

//////////////////

// Run first time starting map

void OnEnter()

{



}



//////////////////

// Run first time starting map

void OnLeave()

{



}

You have to specify that when the player collides with an area this one does something, right? Wink
Yours was correct, although I had to fix a couple things.
Still, thank you so much for your help. I appreciate all of it.
11-16-2012, 08:17 PM
Find




Users browsing this thread: 1 Guest(s)