@jtff/miztemplate-lib 3.0.7 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,11 @@
1
1
  AirBossConfig = {
2
2
  {
3
3
  enable = false,
4
+ srs = {
5
+ useSRS = true,
6
+ path = "C:\\SRS",
7
+ port = 5002
8
+ },
4
9
  carriername = 'CSG-1 CVN-71-1',
5
10
  alias = 'roosevelt',
6
11
  coalition = coalition.side.BLUE,
@@ -50,8 +55,9 @@ AirBossConfig = {
50
55
  lso = 'LSORelay',
51
56
  },
52
57
  voices = {
53
- marshall = 'Gabriella', --Gabriella , FF or Raynor
54
- lso = 'FF' --FF or Raynor
58
+ marshall = MSRS.Voices.Microsoft.Zira,
59
+ lso = MSRS.Voices.Microsoft.David,
60
+ airboss = MSRS.Voices.Microsoft.Hazel
55
61
  },
56
62
  singlecarrier = false,
57
63
  operationsstatspath = "C:/airboss-stats",
@@ -59,6 +65,11 @@ AirBossConfig = {
59
65
  },
60
66
  {
61
67
  enable = false,
68
+ srs = {
69
+ useSRS = true,
70
+ path = "C:\\SRS",
71
+ port = 5002
72
+ },
62
73
  carriername = 'CSG-2 CVN-73',
63
74
  alias = 'washington',
64
75
  coalition = coalition.side.BLUE,
@@ -131,12 +142,12 @@ AirBossConfig = {
131
142
  lso = 'LSORelay-73',
132
143
  },
133
144
  voices = {
134
- marshall = 'FF',
135
- lso = 'Raynor'
145
+ marshall = MSRS.Voices.Microsoft.Zira,
146
+ lso = MSRS.Voices.Microsoft.David,
147
+ airboss = MSRS.Voices.Microsoft.Hazel
136
148
  },
137
149
  singlecarrier = false,
138
150
  operationsstatspath = "C:/airboss-stats",
139
151
  operationstrapsheetpath = "C:/airboss-trapsheets"
140
152
  }
141
153
  }
142
-
@@ -197,8 +197,6 @@ for index, airbossconfig in ipairs(AirBossConfig) do
197
197
  )
198
198
  objAirboss:SetTACAN(airbossconfig.tacan.channel, airbossconfig.tacan.mode, airbossconfig.tacan.morse)
199
199
  objAirboss:SetICLS(airbossconfig.icls.channel, airbossconfig.icls.morse)
200
- objAirboss:SetLSORadio(airbossconfig.freq.lso)
201
- objAirboss:SetMarshalRadio(airbossconfig.freq.marshall)
202
200
  if (airbossconfig.infinitepatrol) then
203
201
  objAirboss:SetPatrolAdInfinitum(true)
204
202
  end
@@ -248,29 +246,60 @@ for index, airbossconfig in ipairs(AirBossConfig) do
248
246
  objAirboss:SetMenuMarkZones(airbossconfig.enable_menumarkzones)
249
247
  objAirboss:SetMenuSmokeZones(airbossconfig.enable_menusmokezones)
250
248
  objAirboss:SetAirbossNiceGuy(airbossconfig.enable_niceguy)
251
- objAirboss:SetRadioRelayMarshal(airbossconfig.releayunit.marshall)
252
- objAirboss:SetRadioRelayLSO(airbossconfig.releayunit.lso)
253
- objAirboss:SetSoundfilesFolder(soundFilesPrefix .. "AIRBOSS/Airboss Soundfiles/")
254
- if airbossconfig.voices.marshall then
255
- if airbossconfig.voices.marshall == "Raynor" then
256
- objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
257
- elseif airbossconfig.voices.marshall == "Gabriella" then
249
+ if ( type(airbossconfig.srs) ~= nil ) then
250
+ if ( airbossconfig.srs.useSRS == true) then
251
+ objAirboss:EnableSRS(airbossconfig.srs.path, airbossconfig.srs.port, 'en-US')
252
+ else
253
+ objAirboss:SetSoundfilesFolder(soundFilesPrefix .. "AIRBOSS/Airboss Soundfiles/")
254
+ if airbossconfig.voices.marshall then
255
+ if airbossconfig.voices.marshall == "Raynor" then
256
+ objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
257
+ elseif airbossconfig.voices.marshall == "Gabriella" then
258
+ objAirboss:SetVoiceOversMarshalByGabriella(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Gabriella/')
259
+ elseif airbossconfig.voices.marshall == "FF" then
260
+ objAirboss:SetVoiceOversMarshalByFF(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal FF/')
261
+ end
262
+ else
263
+ objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
264
+ end
265
+ if airbossconfig.voices.lso then
266
+ if airbossconfig.voices.lso == "Raynor" then
267
+ objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
268
+ elseif airbossconfig.voices.lso == "FF" then
269
+ objAirboss:SetVoiceOversLSOByFF(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO FF/')
270
+ end
271
+ else
272
+ objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
273
+ end
274
+ end
275
+ else
276
+ objAirboss:SetSoundfilesFolder(soundFilesPrefix .. "AIRBOSS/Airboss Soundfiles/")
277
+ if airbossconfig.voices.marshall then
278
+ if airbossconfig.voices.marshall == "Raynor" then
279
+ objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
280
+ elseif airbossconfig.voices.marshall == "Gabriella" then
258
281
  objAirboss:SetVoiceOversMarshalByGabriella(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Gabriella/')
259
- elseif airbossconfig.voices.marshall == "FF" then
282
+ elseif airbossconfig.voices.marshall == "FF" then
260
283
  objAirboss:SetVoiceOversMarshalByFF(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal FF/')
284
+ end
285
+ else
286
+ objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
261
287
  end
262
- else
263
- objAirboss:SetVoiceOversMarshalByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack Marshal Raynor/')
264
- end
265
- if airbossconfig.voices.lso then
266
- if airbossconfig.voices.lso == "Raynor" then
267
- objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
268
- elseif airbossconfig.voices.lso == "FF" then
288
+ if airbossconfig.voices.lso then
289
+ if airbossconfig.voices.lso == "Raynor" then
290
+ objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
291
+ elseif airbossconfig.voices.lso == "FF" then
269
292
  objAirboss:SetVoiceOversLSOByFF(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO FF/')
293
+ end
294
+ else
295
+ objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
270
296
  end
271
- else
272
- objAirboss:SetVoiceOversLSOByRaynor(soundFilesPrefix .. 'AIRBOSS/Airboss Soundpack LSO Raynor/')
273
297
  end
298
+ objAirboss:SetLSORadio(airbossconfig.freq.lso, radio.modulation.AM, airbossconfig.voices.lso)
299
+ objAirboss:SetMarshalRadio(airbossconfig.freq.marshall, radio.modulation.AM, airbossconfig.voices.marshall)
300
+ objAirboss:SetAirbossRadio(airbossconfig.freq.base, radio.modulation.AM, airbossconfig.voices.airboss)
301
+ objAirboss:SetRadioRelayMarshal(airbossconfig.releayunit.marshall)
302
+ objAirboss:SetRadioRelayLSO(airbossconfig.releayunit.lso)
274
303
  objAirboss:SetDebugModeOFF()
275
304
  objAirboss.trapsheet = false
276
305
  if airbossconfig.singlecarrier == true then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.0.7",
3
+ "version": "3.1.0",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -1,7 +1,7 @@
1
1
  function nextversionPrepare(jtffci, configFilePath) {
2
2
  const versionObject = jtffci.getVersion();
3
- versionObject.minor += 1;
4
- versionObject.releaseSuffix = "snapshot";
3
+ versionObject.patch += 1;
4
+ versionObject.releaseSuffix = "";
5
5
 
6
6
  jtffci.setVersionfromString(jtffci.displayVersion(versionObject), configFilePath);
7
7
  }