1
Work In Progress / Mini-terrors - debugging help needed
« on: December 23, 2015, 12:47:28 am »
Hey everyone - I was wondering if I could pick the brains of more knowledgeable folks to help me figure this out.
Short version, I want to have mini-terrors about once a week, with the premise of "an alien force wades out of the ocean". Gameplay-wise, a hybrid of ocean liners {no UFOs} and regular terrors.
But, the game crashes whenever it {presumably} tries to spawn. Having it as a new battle loads the battlescape normally, so presumably it's the missionsite spawning that makes things go bonk. Also, this is just proof-of-concept, I'll do actual gameplay balancing once things actually work.
So, without further ado, the code.
Short version, I want to have mini-terrors about once a week, with the premise of "an alien force wades out of the ocean". Gameplay-wise, a hybrid of ocean liners {no UFOs} and regular terrors.
But, the game crashes whenever it {presumably} tries to spawn. Having it as a new battle loads the battlescape normally, so presumably it's the missionsite spawning that makes things go bonk. Also, this is just proof-of-concept, I'll do actual gameplay balancing once things actually work.
So, without further ado, the code.
Code: [Select]
missionScripts:
- type: coastalRaid
conditionals: [-1]
label: 8
missionWeights:
0:
STR_ALIEN_COASTAL_RAID: 100
regionWeights:
0:
ALIEN_COASTAL_RAIDS: 100
avoidRepeats: 5
varName: coastalRaids
useTable: true
firstMonth: 1
executionOdds: 100
startDelay: 0
regions:
- type: ALIEN_COASTAL_RAIDS
missionZones:
-
- [285.067, -36.592, 285.067, -36.592, -5, STR_A]
- [303.819, -46.465, 303.819, -46.465, -5, STR_B]
alienMissions:
- type: STR_ALIEN_COASTAL_RAID
points: 0
objective: 3
spawnZone: 3 #Mission zone for terror missions
raceWeights:
0:
STR_AQUATOID: 20
STR_GILLMAN: 20
STR_MIXED_CREW: 20
STR_LOBSTERMAN: 20
STR_TASOTH: 20
waves:
- ufo: dummy #don't spawn a ufo, we only want the site
count: 4
trajectory: P10
timer: 43200
objective: true
alienDeployments:
- type: ALIEN_COASTAL_RAIDS
data:
- alienRank: 5
lowQty: 4
highQty: 6
dQty: 1
percentageOutsideUfo: 70
itemSets:
-
- STR_SONIC_PISTOL
- STR_PISTOL_POWER_CLIP
- STR_PISTOL_POWER_CLIP
-
- STR_SONIC_BLASTA_RIFLE
- STR_BLASTA_POWER_CLIP
- STR_BLASTA_POWER_CLIP
- STR_SONIC_PULSER
-
- STR_SONIC_CANNON
- STR_CANNON_POWER_CLIP
- STR_CANNON_POWER_CLIP
- STR_CANNON_POWER_CLIP
- STR_SONIC_PULSER
- alienRank: 4
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_SONIC_PISTOL
- STR_PISTOL_POWER_CLIP
- STR_PISTOL_POWER_CLIP
- STR_SONIC_PULSER
-
- STR_THERMAL_SHOK_LAUNCHER
- STR_THERMAL_SHOK_BOMB
- STR_THERMAL_SHOK_BOMB
- STR_THERMAL_SHOK_BOMB
- STR_THERMAL_SHOK_BOMB
-
- STR_SONIC_CANNON
- STR_CANNON_POWER_CLIP
- STR_CANNON_POWER_CLIP
- STR_SONIC_PULSER
- STR_MC_READER
width: 50
length: 50
height: 4
civilians: 16
terrains:
- PORT
script: PORT_TERROR
briefing:
palette: 4
music: GMISPOSH
alert: STR_ALIENS_LAUNCH_PORT_TERROR
alertBackground: BACK03.SCR
markerName: STR_TERROR_SITE
duration: [4, 10]
despawnPenalty: 1000
globe:
textures:
- id: -5
deployments:
STR_ALIEN_COASTAL_RAID: 100