From ec0d1646193787930e3176adee7ff08ab20db23c Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sun, 25 Sep 2022 14:14:52 +0200 Subject: [PATCH] #MSRS - put "" around frequencies and modulations --- Moose Development/Moose/Sound/SRS.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Moose Development/Moose/Sound/SRS.lua b/Moose Development/Moose/Sound/SRS.lua index 4cc2b5176..9ed2258bf 100644 --- a/Moose Development/Moose/Sound/SRS.lua +++ b/Moose Development/Moose/Sound/SRS.lua @@ -806,16 +806,8 @@ function MSRS:_GetCommand(freqs, modus, coal, gender, voice, culture, volume, sp modus=modus:gsub("0", "AM") modus=modus:gsub("1", "FM") - -- This did not work well. Stopped if the transmission was a bit longer with no apparent error. - --local command=string.format("%s --freqs=%s --modulations=%s --coalition=%d --port=%d --volume=%.2f --speed=%d", exe, freqs, modus, coal, port, volume, speed) - - -- Command from orig STTS script. Works better for some unknown reason! - --local command=string.format("start /min \"\" /d \"%s\" /b \"%s\" -f %s -m %s -c %s -p %s -n \"%s\" -h", path, exe, freqs, modus, coal, port, "ROBOT") - - --local command=string.format('start /b "" /d "%s" "%s" -f %s -m %s -c %s -p %s -n "%s" > bla.txt', path, exe, freqs, modus, coal, port, "ROBOT") - -- Command. - local command=string.format('"%s\\%s" -f %s -m %s -c %s -p %s -n "%s" -v "%.1f"', path, exe, freqs, modus, coal, port, label,volume) + local command=string.format('"%s\\%s" -f "%s" -m "%s" -c %s -p %s -n "%s" -v "%.1f"', path, exe, freqs, modus, coal, port, label,volume) -- Set voice or gender/culture. if voice then