Skip to content

Commit

Permalink
Fix voice paths in Scenarios 48 and 51 (#2108)
Browse files Browse the repository at this point in the history
* fix voice path scenario 51

* fix voice path scenario 48
  • Loading branch information
Massimo53 authored May 16, 2024
1 parent 2fa65ce commit a29c97d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion scripts/scenario_48_visitors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5828,7 +5828,7 @@ end
function handleVoiceQueue(delta)
if #voice_queue > 0 then
if voice_play_time == nil then
playSoundFile(string.format("scenario48audio/sa_48_%s.ogg",voice_queue[1]))
playSoundFile(string.format("audio/scenario/48/sa_48_%s.ogg",voice_queue[1]))
if voice_clips[voice_queue[1]] == nil then
print("In the voice clips list,",voice_queue[1],"comes up as nil. Setting play gap to 20")
voice_play_time = getScenarioTime() + 20
Expand Down
24 changes: 12 additions & 12 deletions scripts/scenario_51_deliverAmbassador.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function getAmbassador(delta) --1st Gremus mission, create planet, and set fomen
if player.play_msg_michael_button == nil then
player.play_msg_michael_button = "play_msg_michael_button"
player:addCustomButton("Relay",player.play_msg_michael_button,_("audio-buttonRelay","|> CMDMICHL012"),function()
playSoundFile("sa_51_Michael.ogg")
playSoundFile("audio/scenario/51/sa_51_Michael.ogg")
player:removeCustom(player.play_msg_michael_button)
player.play_msg_michael_button = nil
end)
Expand Down Expand Up @@ -357,7 +357,7 @@ function ambassadorAboard(delta) --Take Gremus to Ningling msg, create Ningling,
if player.play_msg_gremus_2_button == nil then
player.play_msg_gremus_2_button = "play_msg_gremus_2_button"
player:addCustomButton("Relay",player.play_msg_gremus_2_button,_("audio-buttonRelay","|> AMBGREMUS004"),function()
playSoundFile("sa_51_Gremus2.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus2.ogg")
player:removeCustom(player.play_msg_gremus_2_button)
playMsgGremus2Button = nil
end)
Expand Down Expand Up @@ -386,7 +386,7 @@ function gotoNingling(delta) --Wait for Gremus msg, set meet time
if player.play_msg_protocol_button == nil then
player.play_msg_protocol_button = "play_msg_protocol_button"
player:addCustomButton("Relay",player.play_msg_protocol_button,_("audio-buttonRelay","|> NINGPCLO002"),function()
playSoundFile("sa_51_Protocol.ogg")
playSoundFile("audio/scenario/51/sa_51_Protocol.ogg")
player:removeCustom(player.play_msg_protocol_button)
player.play_msg_protocol_button = nil
end)
Expand All @@ -408,7 +408,7 @@ function waitForAmbassador(delta) --When meeting completes, request dock for nex
if player.play_msg_gremus_3_button == nil then
player.play_msg_gremus_3_button = "play_msg_gremus_3_button"
player:addCustomButton("Relay",player.play_msg_gremus_3_button,_("audio-buttonRelay","|> AMBGREMUS007"),function()
playSoundFile("sa_51_Gremus3.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus3.ogg")
player:removeCustom(player.play_msg_gremus_3_button)
player.play_msg_gremus_3_button = nil
end)
Expand All @@ -433,7 +433,7 @@ function getFromNingling(delta) --Goltin 7 goal, create planet, start sub-plots
if player.play_msg_gremus_4_button == nil then
player.play_msg_gremus_4_button = "play_msg_gremus_4_button"
player:addCustomButton("Relay",player.play_msg_gremus_4_button,_("audio-buttonRelay","|> AMBGREMUS021"),function()
playSoundFile("sa_51_Gremus4.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus4.ogg")
player:removeCustom(player.play_msg_gremus_4_button)
end)
end
Expand All @@ -455,7 +455,7 @@ function travelGoltin(delta) --Go to Goltin, win if research complete or identif
if distance(player,goltin) < 3300 then
globalMessage(_("msgMainscreen",[[Goltin 7 welcomes ambassador Gremus]]))
goltincomms:sendCommsMessage(player, string.format(_("audio-incCall", "(Ambassador Gremus) Thanks for transporting me, %s. Tensions are high, but I think negotiations will succeed.\nIn the meantime, be careful of hostile ships."), playerCallSign))
playSoundFile("sa_51_Gremus5.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus5.ogg")
last_message_time = getScenarioTime() + 20
plot1 = finalMessage
end
Expand All @@ -466,7 +466,7 @@ function travelGoltin(delta) --Go to Goltin, win if research complete or identif
if player.play_msg_gremus_6_button == nil then
player.play_msg_gremus_6_button = "play_msg_gremus_6_button"
player:addCustomButton("Relay",player.play_msg_gremus_6_button,_("audio-buttonRelay","|> AMBGREMUS021"),function()
playSoundFile("sa_51_Gremus6.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus6.ogg")
player:removeCustom(player.play_msg_gremus_6_button)
player.play_msg_gremus_6_button = nil
end)
Expand All @@ -487,7 +487,7 @@ function goltinAndResearch(delta) --Complete mission when returning with researc
if distance(player,goltin) < 3300 then
globalMessage(_("msgMainscreen",[[Goltin 7 welcomes ambassador Gremus]]))
goltincomms:sendCommsMessage(player, string.format(_("audio-incCall", "(Ambassador Gremus) Thanks for researching the artifacts, %s. Tensions are high, but I think negotiations will succeed. In the meantime, be careful of hostile ships."), playerCallSign))
playSoundFile("sa_51_Gremus7.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus7.ogg")
last_message_time = getScenarioTime() + 20
plot1 = finalMessage
end
Expand All @@ -508,7 +508,7 @@ function revolutionFomenting(delta) --At foment time, send fomenting msg (limite
if player.play_msg_gremus_1_button == nil then
player.play_msg_gremus_1_button = "play_msg_gremus_1_button"
player:addCustomButton("Relay",player.play_msg_gremus_1_button,_("audio-buttonRelay","|> AMBGREMUS001"),function()
playSoundFile("sa_51_Gremus1.ogg")
playSoundFile("audio/scenario/51/sa_51_Gremus1.ogg")
player:removeCustom(player.play_msg_gremus_1_button)
player.play_msg_gremus_1_button = nil
end)
Expand All @@ -526,7 +526,7 @@ function revolutionOccurs(delta)
if player.play_msg_sentry_1_button == nil then
player.play_msg_sentry_1_button = "play_msg_sentry_1_button"
player:addCustomButton("Relay",player.play_msg_sentry_1_button,_("audio-buttonRelay","|> GREMUSGRD003"),function()
playSoundFile("sa_51_Sentry1.ogg")
playSoundFile("audio/scenario/51/sa_51_Sentry1.ogg")
player:removeCustom(player.play_msg_sentry_1_button)
player.play_msg_sentry_1_button = nil
end)
Expand All @@ -535,7 +535,7 @@ function revolutionOccurs(delta)
else
globalMessage(_("audio-msgMainscreen",[[Ambassador lost to hostile mob. The Kraylors are victorious]]))
bpcommnex:sendCommsMessage(player, _("audio-incCall",[[(Compound Sentry) I'm sad to report the loss of ambassador Gremus to a hostile mob.]]))
playSoundFile("sa_51_Sentry2.ogg")
playSoundFile("audio/scenario/51/sa_51_Sentry2.ogg")
defeat_message_time = getScenarioTime() + 15
plot2 = defeatMessage
end
Expand Down Expand Up @@ -736,7 +736,7 @@ function artifactResearch(delta) --Expand artifact sub-plot after player leaves
if player.play_msg_fordina_button == nil then
player.play_msg_fordina_button = "play_msg_fordina_button"
player:addCustomButton("Relay",player.play_msg_fordina_button,_("audio-buttonRelay","|> LSNFRDNA009"),function()
playSoundFile("sa_51_Fordina.ogg")
playSoundFile("audio/scenario/51/sa_51_Fordina.ogg")
player:removeCustom(player.play_msg_fordina_button)
player.play_msg_fordina_button = nil
end)
Expand Down

0 comments on commit a29c97d

Please sign in to comment.