So I wanted to tweak some values for player skills and went into [starfarer.api.zip\com\fs\starfarer\api\impl\campaign\skills] but changing the values listed in the skill files here (such as: [public static float NUM_OFFICERS_BONUS]) didn't effect anything in game. What am I missing?
Report to moderator Logged
to clarify,
starfarer.api.zip is the uncompiled version (source code) of
starfarer.api.jar, and the game only loads the
.jar.
if you want to change something in the
.jar, the best way to to that is to make a mod like this:
I have a small personal mod that modifies this skills this way
package tweaks;
import com.fs.starfarer.api.BaseModPlugin;
import com.fs.starfarer.api.impl.campaign.skills.*;
public class TweaksMod extends BaseModPlugin {
@Override
public void onApplicationLoad() {
// Modify skills for less immediate impact but same long-term value.
BulkTransport.CARGO_CAPACITY_THRESHOLD = 4000;
BulkTransport.FUEL_CAPACITY_THRESHOLD = 4000;
BulkTransport.PERSONNEL_CAPACITY_THRESHOLD = 10000;
BulkTransport.CARGO_CAPACITY_MAX_PERCENT = 20;
BulkTransport.FUEL_CAPACITY_MAX_PERCENT = 20;
BulkTransport.PERSONNEL_CAPACITY_MAX_PERCENT = 20;
MakeshiftEquipment.SUPPLY_USE_REDUCTION_MAX_PERCENT = 25;
ContainmentProcedures.FUEL_USE_REDUCTION_MAX_PERCENT = 25;
Sensors.SENSOR_BONUS = 100.0F;
OfficerManagement.NUM_OFFICERS_BONUS = 3.0F;
}
}
decompiling
.class files from the
.jar directly, editing them, and recompiling them back is also possible, but it's pretty advanced.
EDIT:turned starman13's code into a mod.
download it
hereand add/change what you want.