The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Bizarre Music Error
AGP Offline
Senior Member

Posts: 448
Threads: 45
Joined: Dec 2012
Reputation: 23
#1
Bizarre Music Error

This feels silly, because I'd gotten down how to add scripted music and all of a sudden this strange thing happens! The music is not playing at all and where the script area is for the music to start, a hand appears. 0.0

Maybe I'm just looking to hard to find what's wrong and need a second pair of eyes. I've been fighting this problem for a while now.

hps file:
void OnStart ()
{    
    {    
    AddEntityCollideCallback("Player", "hallking_area", "HallKing", true, -1);
    }    
}

void OnEnter()
{

}

void OnLeave()
{
    
}

void HallKing(string &in parent, string &in child, int state)
{
    PlaySoundAtEntity("HallKing", "hallking.snt", "hallking_area", 0.5, false);

snt file: (named hallking.snt)
<SOUNDENTITY>
    <SOUNDS>
        <Main>
            <Sound File="hallking.ogg" />
        </Main>
    </SOUNDS>

    <PROPERTIES Volume="5" MinDistance="1" MaxDistance="50" Random="0"
    Interval="0" FadeEnd="False" FadeStart="False" Stream="False"
    Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7"
    Priority="5" />
</SOUNDENTITY>

In the level editor, the script area is named hallking_area and it's callback listed as HallKing under the area tab.

02-03-2013, 02:04 AM
Find


Messages In This Thread
Bizarre Music Error - by AGP - 02-03-2013, 02:04 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:31 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 02:35 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:38 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 02:40 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 02:52 AM
RE: Bizarre Music Error - by NaxEla - 02-03-2013, 02:54 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:00 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 03:21 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:27 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 03:46 AM
RE: Bizarre Music Error - by PutraenusAlivius - 02-03-2013, 03:54 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 04:18 AM
RE: Bizarre Music Error - by No Author - 02-03-2013, 05:18 AM
RE: Bizarre Music Error - by AGP - 02-03-2013, 05:20 AM
RE: Bizarre Music Error - by The chaser - 02-03-2013, 11:55 AM
RE: Bizarre Music Error - by No Author - 02-03-2013, 12:00 PM
RE: Bizarre Music Error - by The chaser - 02-03-2013, 12:20 PM



Users browsing this thread: 1 Guest(s)