|
Hello, I am contacting Scripters to possibly get a resolution to my audio issue. I am using Adonis to play music, and the audio cuts out randomly whilst songs are playing, the audio issues are not solely with Adonis either, it is with various sound scripts in-game.
If you guys could steer me in the right direction in regards to a solution, I would greatly appreciate it. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
your sound scripts are most likely operating on a time limit before going to the next sound
so say 30 seconds
you may have sounds that are 10, 40 seconds, 3 minutes, but they will all cut out at 30 seconds(for example) |
|
|
The problem is, the sounds aren't cutting out at a fixed interval, it's just completely random. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
have you tried making your own script? |
|
|
I know I could just make my own script, but I'm working with a game that I was asked to dev for, and I want to identify the cause of the audio cutting out. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
post the code |
|
|
The problem is, I don't know which script is causing it, that's what I am trying to identify. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
well i would assume you only have one script controlling the audio
IF NOT, that should give you a good idea of the problem, because multiple scripts trying to control the audio at once might give random cuts |
|
|
There are tons of different sounds in the game, and they all cut out randomly. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
show me, any script |
|
|
One script would not be helpful. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
well
you don't know what the problem is
you decided to not make your own script
this all means you are currently depending on someone else to tell you what the problem is so you can fix it
and you are giving me literally nothing to work with
show me a script, and let me decide for myself if it is the problem or not |
|
|
There are literally 73 scripts that have to do with sound. |
|
|
I can add you to a TC or something. |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
last chance
i didn't ask for 73 scripts
i asked for one, any of them
if you don't reply with a script, i'm not helping anymore because you are just wasting my time |
|
|
eng = script.Parent.Parent.Engine
seat = script.Parent
maxSpeed = seat.MaxSpeed
rotSpeed = seat.TurnSpeed
BV = eng.BodyVelocity
BAV = eng.BodyAngularVelocity
currSpeed = 0
oldSpeed = 0
function stop()
local speed = seat.Velocity.magnitude
if speed < 2 then --If We're Barely Moving
currSpeed = 0
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Moving.Volume = 0.2
script.Parent.Parent.Engine.Idle:Play() --Kill Velocity
script.Parent.Parent.Engine.Idle.Volume = 0.3
else --If not
currSpeed = (speed * 0.9 - 0.8) * currSpeed / math.abs(currSpeed)
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Moving.Volume = 0.5
script.Parent.Parent.Engine.Idle.Volume = 0.3
end
end
while wait(0.1) do
if seat.Throttle == -1 then --Turning
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Moving.Volume = .5
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.4
BAV.angularvelocity = Vector3.new(0,rotSpeed * seat.Steer,0)
else
BAV.angularvelocity = Vector3.new(0,-rotSpeed * seat.Steer,0)
end
if seat.Throttle == 0 and currSpeed == 0 then
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.5
script.Parent.Parent.Engine.Moving:Pause()
end
if seat.Throttle == 0 and currSpeed ~= 0 then --If We're Trying to Stop
stop()
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.2
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Moving.Volume = 0.3
end
if seat.Throttle == 1 then --If We're Trying to go Forwards
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.1
script.Parent.Parent.Engine.Moving.Volume = 0.2
if currSpeed < 0 then --If going backwards
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.1
script.Parent.Parent.Engine.Moving.Volume = 0.2
stop()
else
currSpeed = currSpeed + 1 --Go slightly faster than we already are
if currSpeed > maxSpeed then --Limit our speed
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Idle:Pause()
script.Parent.Parent.Engine.Moving.Volume = .5
currSpeed = maxSpeed
end
end
elseif seat.Throttle == -1 then --If We're Trying to go Backwards
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.1
script.Parent.Parent.Engine.Moving.Volume = 0.2
if currSpeed > 0 then --If Going Forwards
script.Parent.Parent.Engine.Moving:Play()
script.Parent.Parent.Engine.Idle:Play()
script.Parent.Parent.Engine.Idle.Volume = 0.1
script.Parent.Parent.Engine.Moving.Volume = 0.2
stop() --Stop
else --Otherwise
currSpeed = currSpeed - 0.8 --Reverse
if currSpeed < maxSpeed * -0.7 then --If Going Too Fast
currSpeed = maxSpeed * -0.7
end
end
end
dir = eng.CFrame.lookVector
BV.velocity = dir*Vector3.new(currSpeed,currSpeed,currSpeed)
end
|
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
A huge chunk of that is in a while loop that loops every .1 seconds
so if your sounds are longer than .1 seconds, they are likely to cut out |
|
|
Ok, and any ideas why Adonis Music is cutting out? |
|
amandaJoin Date: 2006-11-21 Post Count: 5925 |
i dont know what that is
show a script |
|
HydrulaJoin Date: 2015-04-03 Post Count: 13 |
have you tried resetting the ###### |
|
|
d1shonourJoin Date: 2015-08-19 Post Count: 345 |
"73 scripts to do with audio"
no, theres 73 copies to do with one script cloned.
|
|