When playing online every player got some sectors wich always be kept alive. The order wich sectors will be alive is hardcoded. It would be awesome for modders to be able to change the order.
The reason is simple: When you got many stations in different sectors you do not need all the secors to be up because the production will be calculated when the sector gets restored from disk. But your salvage ship in another sector does not keep the sector alive, you have to calculate how many ships you need there to make its score bigger then the stations in other sectors. This is only one example, there are many situations where I wished I could modify it.
Some examples what Im thinking of.
Manually define the sector score.
function getSectorUpkeepScore(Entities, Player) local score = 0
for _,entity in pairs(Entities)
if entity.factionIndex == Player.index then
if entity.hasScript("salvage.lua") then
score = score + 5
end
-- do some more stuff
end
end
end
Manually define the entities score
function getEntityUpkeepScore(Entity, Player)
-- Calculate entity score
end
Also it would be great to see wich sectors are alive.
Player():getAliveSectors()
-- or
Server():getAliveSectors(playerIndex)