Home   Help Search Login Register  

Author Topic: second BIS Music track wont play  (Read 505 times)

0 Members and 1 Guest are viewing this topic.

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
second BIS Music track wont play
« on: 19 Jun 2003, 01:25:39 »
I have an intro and an outro script that plays two different tracks of BIS Res music

The problem is, i dont hear the outro sound if the intro sound has been played
If i remove the intro sound the outro sound plays.

Initially i thought the reason was in my testing i only allowed a mission time of 3 minutes to test outro etc.
But alas even on 30 minutes i get the same problem.

Both sounds are run from a script
I have tried the outro music from a trigger
I have tried having the outro music play the same track as the intro music


Here is a basic breakdown of the system i use

Its part of a competition map template, hence the variable declarations in the init.sqs (makes things easier for a mapper to change

********************************************************************
So my init.sqs extract

;;init.sqs
introtime = 23
intromusic = ["RTrack9",0]
outromusic = ["Frost",0]

********************************************************************
;;intro.sqs
;;;;;;;; ________ DO NOT EDIT THIS SCRIPT ________ ;;;;;;;;
;;Intro Created by steiner
;;Modified by Terox to give different views to east and west

playmusic intromusic
(introtime + 15) fademusic 0
?side player==west:goto "westview"
?side player==east:goto "eastview"

(the rest is just camera stuff)

exit

************************************************************************
;;outro.sqs

;;;;;;;; ________ DO NOT EDIT THIS SCRIPT ________ ;;;;;;;;

;;works of a trigger
 
#start
~1
EndGame = false
?(Time>=Param1):goto "Gamefinish"
Goto "start"
 
#Gamefinish
;;intromusic = nil   (This didnt have any effect)
playmusic outromusic
20 fademusic 0
disableuserinput true


rest is all camera stuff ans some titletext messages
***************************************************************************
*************************************************************************

I havent done anything silly like running the endmission Outro script of the server only, its run on the client

I have also tried nulling the intromusic
eg intromusic = nil, before trying to play the outromusic

I cant get it to work and i dont know why

THE OUTRO MUSIC WORKS IF I DONT PLAY THE INTRO MUSIC



Any help would be appreciated
« Last Edit: 19 Jun 2003, 01:27:12 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:second BIS Music track wont play
« Reply #1 on: 20 Jun 2003, 15:01:15 »
Terox, upon the info i got from your post i can tell you
that i've got a similar problem in real life.

I've toggled down the volume of my Stereo amplifier, and
couldn't hear anything anymore  :o


OK, back to topic:

looks like you've faded the music volume to 0 and didn't
fade back to let's say: 0.5 or 1

Code: [Select]
playmusic intromusic
(introtime + 15) fademusic 0                <<<---- look here Terox
?side player==west:goto "westview"
?side player==east:goto "eastview"

~S~ CD
« Last Edit: 20 Jun 2003, 15:02:25 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:second BIS Music track wont play
« Reply #2 on: 20 Jun 2003, 19:40:22 »
Thanks a lot for the tip.

Si i simply place the line

0 fademusic 1

just before the next music/sound file i want to play

i had sort of figured out i needed to turn the previous music file off somehow, didnt think about the volume

Great stuff, much appreciated
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123