hi there,
after circling the universe several times in search for an Odyssey or an Eagle i decided that there are not enough ships on the market and startet to look into the code.
goal is to roughly double the amount of ships that are sold, so that there is a greater chance to find what your searching for and not waste your precious hours of gametime.
my search lead me to starfarer.api.zip\com\fs\starfarer\api\impl\campaign\submarkets and for testing i took the blackmarketplugin and tryed a few things:
private void addShips() {
int marketSize = market.getSize();
pruneShips(0.75f);
WeightedRandomPicker<String> rolePicker = new WeightedRandomPicker<String>();
rolePicker.add(ShipRoles.CIV_RANDOM, 5f);
rolePicker.add(ShipRoles.FREIGHTER_SMALL, 3f);
rolePicker.add(ShipRoles.TANKER_SMALL, 1f);
rolePicker.add(ShipRoles.COMBAT_FREIGHTER_SMALL, 15f);
rolePicker.add(ShipRoles.COMBAT_SMALL, 15f);
rolePicker.add(ShipRoles.COMBAT_MEDIUM, 15f);
rolePicker.add(ShipRoles.INTERCEPTOR, 5f);
rolePicker.add(ShipRoles.FIGHTER, 5f);
rolePicker.add(ShipRoles.BOMBER, 5f);
i added these 5 lines -> rolePicker.add(ShipRoles.FREIGHTER_MEDIUM, 5f);
rolePicker.add(ShipRoles.TANKER_MEDIUM, 1f);
rolePicker.add(ShipRoles.COMBAT_FREIGHTER_MEDIUM, 10f);
rolePicker.add(ShipRoles.COMBAT_MEDIUM, 10f);
rolePicker.add(ShipRoles.CARRIER_SMALL, 10f);
if (marketSize >= 4) {
rolePicker.add(ShipRoles.FREIGHTER_MEDIUM, 5f);
rolePicker.add(ShipRoles.TANKER_MEDIUM, 1f);
rolePicker.add(ShipRoles.COMBAT_FREIGHTER_MEDIUM, 10f);
rolePicker.add(ShipRoles.COMBAT_MEDIUM, 10f);
rolePicker.add(ShipRoles.CARRIER_SMALL, 10f);
}
if (marketSize >= 6) {
rolePicker.add(ShipRoles.FREIGHTER_LARGE, 3f);
rolePicker.add(ShipRoles.TANKER_LARGE, 1f);
rolePicker.add(ShipRoles.COMBAT_FREIGHTER_LARGE, 5f);
rolePicker.add(ShipRoles.COMBAT_LARGE, 5f);
rolePicker.add(ShipRoles.CARRIER_MEDIUM, 10f);
}
WeightedRandomPicker<FactionAPI> factionPicker = new WeightedRandomPicker<FactionAPI>();
float stability = market.getStabilityValue();
factionPicker.add(market.getFaction(), 10f - stability);
factionPicker.add(submarket.getFaction(), 10f);
i changed marketsize *2 to *5 addShipsForRoles(marketSize * 5, rolePicker, factionPicker);
}
all seamingly without effect, i am stuck at the moment, i need someone elses brain for a second.
anyone have an idea to what to change where? im also looking into making ai fleets bigger, as to mitigate the roflstomping in the endgame, but all i found there so far is a way to change the starting logistic points for myself from 20 to 5, which should help a bit.
any input is welcome!
thnks!