Skip to content

Commit

Permalink
Update scenario: Fermi 500 (#2285)
Browse files Browse the repository at this point in the history
## scenario_58_race.lua:
Added sound selection configuration.
Switch to using the place station utility.
Update to newer goods processing in comms.
Add translation information around goods names.
Name the zones around waypoints to facilitate color changing.
Change default ship names to match what will be used in MAGFest 2025.
Add a GM button to reset and randomize the player ship control codes.
Simplify discovery of upgrade stations by curtailing the stellar cartography information.
Add more enemy stations as potential sources of reputation points and mini-missions.
Simplify presentation of upgrade information in comms.
Add ad hoc missions for players to get goods for upgrades.
Add station service information to status report in comms.
Switch from double dot concatenation to string.format.
Better sorting to determine race standing.
Flexible presentation of race start time rather than assuming it's always 10 minutes.
Add countdown and start sounds.
Add detail to context tags for race start messages.
Add context tags for race position names.
## place_station_scenario_utility.lua:
Include more details in diagnostic print line.
Add stations Carradine, Grup and Grap which are used in Fermi 500.
Spell Ganalda correctly.
## sound files
- sa_58_beep.ogg: played 3 times prior to race start.
- sa_58_start.ogg: colossus start sound used for MAGFest 2025.
- sa_58_goBeep.ogg: other start sound more consistent with other beep sounds.

Co-authored-by: Xansta <>
  • Loading branch information
Xansta authored Jan 17, 2025
1 parent 10aa3d3 commit 6a943c4
Show file tree
Hide file tree
Showing 5 changed files with 975 additions and 784 deletions.
Binary file added resources/audio/scenario/58/sa_58_beep.ogg
Binary file not shown.
Binary file added resources/audio/scenario/58/sa_58_goBeep.ogg
Binary file not shown.
Binary file added resources/audio/scenario/58/sa_58_start.ogg
Binary file not shown.
121 changes: 119 additions & 2 deletions scripts/place_station_scenario_utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function placeStation(x,y,name,faction,size,diagnostic)
end
local group, station = pickStation(name)
if group == nil then
print("place station error: Sub function pick station did not return a group name. Nil is not valid")
print("place station error: Sub function pick station did not return a group name. Nil is not valid. Parameter name passed:",name)
return nil
end
station:setPosition(x,y)
Expand Down Expand Up @@ -2480,6 +2480,43 @@ function populateStationPool()
general = "",
history = "",
},
["Carradine"] = {
weapon_available = {
Homing = random(1,13)<=(8-difficulty),
HVLI = random(1,13)<=(9-difficulty),
Mine = random(1,13)<=(7-difficulty),
Nuke = random(1,13)<=(5-difficulty),
EMP = random(1,13)<=(6-difficulty),
},
services = {
supplydrop = "friend",
reinforcements = "friend",
jumpsupplydrop = "friend",
},
service_cost = {
supplydrop = math.random(80,120),
reinforcements = math.random(125,175),
jumpsupplydrop = math.random(110,140),
},
reputation_cost_multipliers = {
friend = 1.0,
neutral = 2.0,
},
goods = {
impulse = {
quantity = 5,
cost = 100,
},
},
trade = {
food = random(1,100) <= 42,
medicine = false,
luxury = true,
},
description = _("scienceDescription-station", "Impulse engine components"),
general = _("stationGeneralInfo-comms", "We research and manufacture impulse engine components and systems"),
history = _("stationStory-comms", "Named after one of the station commander's favorite actors from the 20th century"),
},
["Impala"] = {
weapon_available = {
Homing = random(1,13)<=(8-difficulty),
Expand Down Expand Up @@ -2520,6 +2557,86 @@ function populateStationPool()
general = _("stationGeneralInfo-comms", "We mine nearby asteroids for precious minerals"),
history = "",
},
["Grup"] = {
weapon_available = {
Homing = random(1,13)<=(8-difficulty),
HVLI = random(1,13)<=(9-difficulty),
Mine = true,
Nuke = random(1,13)<=(5-difficulty),
EMP = random(1,13)<=(6-difficulty),
},
services = {
supplydrop = "friend",
reinforcements = "friend",
jumpsupplydrop = "friend",
},
service_cost = {
supplydrop = math.random(80,120),
reinforcements = math.random(125,175),
jumpsupplydrop = math.random(110,140),
},
reputation_cost_multipliers = {
friend = 1.0,
neutral = 3.0,
},
goods = {
nickel = {
quantity = 5,
cost = 20,
},
},
trade = {
food = random(1,100) < 50,
medicine = true,
luxury = random(1,100) < 50,
},
buy = {
[randomComponent()] = math.random(40,200),
},
description = _("scienceDescription-station", "Mining station"),
general = "",
history = "",
},
["Grap"] = {
weapon_available = {
Homing = true,
HVLI = random(1,13)<=(9-difficulty),
Mine = random(1,13)<=(7-difficulty),
Nuke = random(1,13)<=(5-difficulty),
EMP = random(1,13)<=(6-difficulty),
},
services = {
supplydrop = "friend",
reinforcements = "friend",
jumpsupplydrop = "friend",
},
service_cost = {
supplydrop = math.random(80,120),
reinforcements = math.random(125,175),
jumpsupplydrop = math.random(110,140),
},
reputation_cost_multipliers = {
friend = 1.0,
neutral = 3.0,
},
goods = {
nickel = {
quantity = 5,
cost = 20,
},
},
trade = {
food = random(1,100) < 50,
medicine = true,
luxury = random(1,100) < 50,
},
buy = {
[randomComponent()] = math.random(40,200),
},
description = _("scienceDescription-station", "Mining station"),
general = "",
history = "",
},
["Krak"] = {
weapon_available = {
Homing = random(1,13)<=(8-difficulty),
Expand Down Expand Up @@ -3241,7 +3358,7 @@ function populateStationPool()
["Sinister"] = {
["Aramanth"] = {goods = {}, description = "", general = "", history = ""},
["Empok Nor"] = {goods = {}, description = "", general = "", history = ""},
["Gandala"] = {goods = {}, description = "", general = "", history = ""},
["Ganalda"] = {goods = {}, description = "", general = "", history = ""},
["Hassenstadt"] = {goods = {}, description = "", general = "", history = ""},
["Kaldor"] = {goods = {}, description = "", general = "", history = ""},
["Magenta Mesra"] = {goods = {}, description = "", general = "", history = ""},
Expand Down
Loading

0 comments on commit 6a943c4

Please sign in to comment.