For the sake of testing. I have copy the Sample.cat from TFTD sound folder to UFO Sound folder of and renamed it as Sample4.cat
Here are my var.rul
startingTime:
second: 0
minute: 0
hour: 12
weekday: 6
day: 1
month: 1
year: 1999
costEngineer: 25000
costScientist: 30000
timePersonnel: 72
initialFunding: 6000
disableUnderwaterSounds: true
alienFuel: [STR_ELERIUM_115, 50]
fontName: Font.dat
#soundDefs:
# - type: BATTLE2.CAT
# file: SAMPLE4.CAT
# soundRanges:
# - [0, 47]
# - [99, 117]
# sounds: [48]
#constants: #done
# - doorSound: 47
# - slidingDoorSound: 46
# - slidingDoorClose: -1
# - smallExplosion: 30
# - largeExplosion: 29
# - itemDrop: 44
# - itemThrow: 42
# - itemReload: 45
# - walkOffset: 0
# - flyingSound: 66
# - buttonPress: 0
# - windowPopup: [1, 1, 1]
# - ufoFire: 5
# - ufoHit: 4
# - ufoExplode: 3
# - ufoCrash: 2
# - interceptorHit: 2
# - interceptorExplode: 2
# - explosionOffset: 8
# - smokeOffset: 56
# - underwaterSmokeOffset: 8
# - basescapeCursor: 42
# - graphsCursor: 144
# - goodDebriefingMusic: GMDEBGOO
# - badDebriefingMusic: GMDEBPOR
transparencyLUTs: #done
- colors:
- [ 8, 8, 12, 2 ] # "white"
- [ 16, 8, 0, 2 ] # orange
- [ 0, 12, 12, 2 ] # cyan
- [ 4, 16, 4, 2 ] # green
For my item.rul I have
- type: STR_BLASTA_CANNON
size: 0.3
costBuy: 1
costSell: 171600
weight: 8
bigSprite: 570
floorSprite: 570
handSprite: 381
bulletSprite: 8
hitAnimation: 150
fireSound: 111
hitSound: 112
power: 130
damageType: 0
accuracySnap: 80
accuracyAimed: 120
tuAimed: 70
tuSnap: 50
clipSize: -1
battleType: 1
twoHanded: true
invWidth: 2
invHeight: 3
recoveryPoints: 5
armor: 50
vaporColor: 3
vaporDensity: 30
vaporProbability: 100
extraSounds:
- type: BATTLE.CAT
files:
111: Resources/Sounds/Fire.wav
112: Resources/Sounds/sonichit.wav
- type: BATTLE2.CAT
files:
111: Resources/Sounds/Fire.wav
112: Resources/Sounds/sonichit.wav
It still crash. So, I must be missing something.
The game crash exactly when the bubble was about to be drawn. I can hear the hit sound, but not the fireSound in the underwater map.