Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)
The 'Respec' command gives you way more skill points than you should have. Does it still work off the old progression?
package org.lazywizard.console.commands;import com.fs.starfarer.api.Global;import com.fs.starfarer.api.characters.MutableCharacterStatsAPI;import org.lazywizard.console.BaseCommand;import org.lazywizard.console.CommonStrings;import org.lazywizard.console.Console;public class Respec implements BaseCommand{ @Override public CommandResult runCommand(String args, CommandContext context) { if (!context.isInCampaign()) { Console.showMessage(CommonStrings.ERROR_CAMPAIGN_ONLY); return CommandResult.WRONG_CONTEXT; } Console.showMessage("Performing respec..."); // Refund aptitudes int total; final MutableCharacterStatsAPI player = Global.getSector().getPlayerFleet().getCommanderStats(); for (String currId : Global.getSettings().getSortedAbilityIds()) { total = (int) player.getAptitudeLevel(currId); if (total > 0) { Console.showMessage(" - removed " + total + " points from aptitude " + currId); player.setAptitudeLevel(currId, 0f); player.addAptitudePoints(total); } } // Refund skills for (String currId : Global.getSettings().getSortedSkillIds()) { total = (int) player.getSkillLevel(currId); if (total > 0) { Console.showMessage(" - removed " + total + " points from skill " + currId); player.setSkillLevel(currId, 0f); player.addSkillPoints(total); } } Console.showMessage("Respec complete."); return CommandResult.SUCCESS; }}
If possible you might want to update the spawn fleet command to include officers
HiIs there a command to reset/set relation of all factions to amount x ( 0 for me )I only could find the one to change it for one faction a time and only +/- x amountSince i started using the savetransfer I thought it would be nice to reset my relations to 0 after "restarting" the game.Chronosfear
2.6 (December XX, 2015)=========================New features: - Command tab completion. Press tab to cycle through all matches for the current command from the cursor onwards (campaign input dialog only)New commands: - AddOfficer, adds a skilled officer to the player fleet - Hide, makes the player fleet invisible to other fleets - ListStorage, lists everything you've left in a storage tab and its locationChanges to existing commands: - AddShip uses list of all variants added to the API in 0.7a, doesn't care about miscapitalizations in variant IDs (requires 0.7a-RC10 hotfix) - Jump positions the player fleet a safe distance away from the system's star - Jumps to hyperspace in systems without a hyperspace anchor will work, teleport you to the center of hyperspace - List accepts arguments "planets" and "variants" (VERY spammy), "markets" now shows the location, owning faction, and their relationship with the player - Respec properly refunds aptitude points again - Reveal works on the campaign map, maximizes sensor range and strength (both have a hard cap, so revealing the entire map isn't feasible) - AdjustRelationship/SetRelationship changes: - Renamed to AdjustRelation/SetRelation - If only one faction is entered, use player faction as the target - If "all" is entered as argument, changes relation with all other factions - RepLevels are allowed as an argument ("friendly", "hostile", etc) - SpawnFleet adds officers to the created fleet, levels based on quality factor (note: SpawnFleet no longer matches vanilla fleet compositions post-0.7a)New aliases: - ar -> AdjustRelation - sr -> SetRelation
Is it possible to add a Respec for officers?
It would also be helpful if a blank Adjust- or SetRelationship command listed all targets for the command. I had to dig around in the Starsector folder last time for the faction names, because the auto-complete mechanic didn't want to pick up on 'Sindrian' or 'Diktat' for some reason.
Anyway, thanks for the update. I love the console.