余晖被打没了,小白求教控制台指令。
安装了ConsoleCommands的控制台。在输入:spawnrespawnfleet remnant
可刷出来的余晖重建舰队,都是冲着有势力的星系去的,那不是肉包子打狗吗?
我想找个犄角旮旯,有没有办法让余晖中枢能刷到当前星域的?
求教!感谢!
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantOfficerGeneratorPlugin;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantThemeGenerator;
import com.fs.starfarer.api.util.DelayedActionScript;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantStationFleetManager;
String type = "remnant_station2_Standard";
? ?? ?? ?? ?? ? Random random = new Random();
? ?? ?? ?? ?? ? final CampaignFleetAPI fleet = FleetFactoryV3.createEmptyFleet(Factions.REMNANTS, FleetTypes.BATTLESTATION, null);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?
? ?? ?? ?? ?? ? FleetMemberAPI member = Global.getFactory().createFleetMember(FleetMemberType.SHIP, type);
? ?? ?? ?? ?? ? fleet.getFleetData().addFleetMember(member);
? ?? ?? ?? ?? ? fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_MAKE_AGGRESSIVE, true);
? ?? ?? ?? ?? ? fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_NO_JUMP, true);
? ?? ?? ?? ?? ? fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_MAKE_ALLOW_DISENGAGE, true);
? ?? ?? ?? ?? ? fleet.addTag(Tags.NEUTRINO_HIGH);
? ?? ?? ?? ?? ? fleet.setStationMode(true);
? ?? ?? ?? ?? ? RemnantThemeGenerator.addRemnantStationInteractionConfig(fleet);
? ?? ?? ?? ?? ? fleet.clearAbilities();
? ?? ?? ?? ?? ? fleet.addAbility(Abilities.TRANSPONDER);
? ?? ?? ?? ?? ? fleet.getAbility(Abilities.TRANSPONDER).activate();
? ?? ?? ?? ?? ? fleet.getDetectedRangeMod().modifyFlat("gen", 1000f);
? ?? ?? ?? ?? ? fleet.setAI(null);
? ?? ?? ?? ?? ? /*RemnantThemeGenerator.setEntityLocation(fleet, loc, null);
? ?? ?? ?? ?? ? RemnantThemeGenerator.convertOrbitWithSpin(fleet, 5f);*/
? ?? ?? ?? ?? ? final LocationAPI loc = Global.getSector().getCurrentLocation();
? ?? ?? ?? ?? ? loc.addEntity(fleet);
? ?? ?? ?? ?? ? CampaignFleetAPI player = Global.getSector().getPlayerFleet();
? ?? ?? ?? ?? ? fleet.setLocation(player.getLocation().x, player.getLocation().y);
? ?? ?? ?? ?? ? boolean damaged = type.toLowerCase().contains("damaged");
? ?? ?? ?? ?? ? String coreId = Commodities.ALPHA_CORE;
? ?? ?? ?? ?? ? if (damaged) {
? ?? ?? ?? ?? ?? ?? ?? ?fleet.getMemoryWithoutUpdate().set("$damagedStation", true);
? ?? ?? ?? ?? ?? ?? ?? ?fleet.setName(fleet.getName() + " (Damaged)");
? ?? ?? ?? ?? ? }
? ?? ?? ?? ?? ? AICoreOfficerPlugin plugin = Misc.getAICoreOfficerPlugin(coreId);
? ?? ?? ?? ?? ? PersonAPI commander = plugin.createPerson(coreId, fleet.getFaction().getId(), random);
? ?? ?? ?? ?? ? fleet.setCommander(commander);
? ?? ?? ?? ?? ? fleet.getFlagship().setCaptain(commander);
? ?? ?? ?? ?? ? if (!damaged) {
? ?? ?? ?? ?? ?? ?? ?? ?RemnantOfficerGeneratorPlugin.integrateAndAdaptCoreForAIFleet(fleet.getFlagship());
? ?? ?? ?? ?? ?? ?? ?? ?RemnantOfficerGeneratorPlugin.addCommanderSkills(commander, fleet, null, 3, random);
? ?? ?? ?? ?? ? }
? ?? ?? ?? ?? ? member.getRepairTracker().setCR(member.getRepairTracker().getMaxCR());
? ?? ?? ?? ?? ?
? ?? ?? ?? ?? ? loc.addScript(new DelayedActionScript(1) {
? ?? ?? ?? ?? ?? ?? ?? ?@Override
? ?? ?? ?? ?? ?? ?? ?? ?public void doAction() {
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???int maxFleets = 10;? ?? ???/* close enough */
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???RemnantStationFleetManager activeFleets = new RemnantStationFleetManager(
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? fleet, 1f, 0, maxFleets, 15f, 8, 24);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???loc.addScript(activeFleets);
? ?? ?? ?? ?? ?? ?? ?? ?}
? ?? ?? ?? ?? ? }); chunyiyouxi 发表于 2026-8-30 18:29
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.api ...
不是byd怎么成这样了 这堆??是哪来的 chunyiyouxi 发表于 2026-8-30 18:29
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.api ...
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in primary
我粘贴到游戏里,就跳出这个提示。
是不是我那里没有做对? 一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...
不好意思 这我发的不知道为啥成这样了 你加我好友 我私信试下 一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...
我再发下 算了我直接发个文档试试 一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.api.impl.campaign.procgen.themes.BaseThemeGenerator;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantOfficerGeneratorPlugin;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantThemeGenerator;
import com.fs.starfarer.api.util.DelayedActionScript;
import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantStationFleetManager;
String type = "remnant_station2_Standard";
Random random = new Random();
final CampaignFleetAPI fleet = FleetFactoryV3.createEmptyFleet(Factions.REMNANTS, FleetTypes.BATTLESTATION, null);
FleetMemberAPI member = Global.getFactory().createFleetMember(FleetMemberType.SHIP, type);
fleet.getFleetData().addFleetMember(member);
fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_MAKE_AGGRESSIVE, true);
fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_NO_JUMP, true);
fleet.getMemoryWithoutUpdate().set(MemFlags.MEMORY_KEY_MAKE_ALLOW_DISENGAGE, true);
fleet.addTag(Tags.NEUTRINO_HIGH);
fleet.setStationMode(true);
RemnantThemeGenerator.addRemnantStationInteractionConfig(fleet);
fleet.clearAbilities();
fleet.addAbility(Abilities.TRANSPONDER);
fleet.getAbility(Abilities.TRANSPONDER).activate();
fleet.getDetectedRangeMod().modifyFlat("gen", 1000f);
fleet.setAI(null);
/*RemnantThemeGenerator.setEntityLocation(fleet, loc, null);
RemnantThemeGenerator.convertOrbitWithSpin(fleet, 5f);*/
final LocationAPI loc = Global.getSector().getCurrentLocation();
loc.addEntity(fleet);
CampaignFleetAPI player = Global.getSector().getPlayerFleet();
fleet.setLocation(player.getLocation().x, player.getLocation().y);
boolean damaged = type.toLowerCase().contains("damaged");
String coreId = Commodities.ALPHA_CORE;
if (damaged) {
fleet.getMemoryWithoutUpdate().set("$damagedStation", true);
fleet.setName(fleet.getName() + " (Damaged)");
}
AICoreOfficerPlugin plugin = Misc.getAICoreOfficerPlugin(coreId);
PersonAPI commander = plugin.createPerson(coreId, fleet.getFaction().getId(), random);
fleet.setCommander(commander);
fleet.getFlagship().setCaptain(commander);
if (!damaged) {
RemnantOfficerGeneratorPlugin.integrateAndAdaptCoreForAIFleet(fleet.getFlagship());
RemnantOfficerGeneratorPlugin.addCommanderSkills(commander, fleet, null, 3, random);
}
member.getRepairTracker().setCR(member.getRepairTracker().getMaxCR());
loc.addScript(new DelayedActionScript(1) {
@Override
public void doAction() {
int maxFleets = 10; /* close enough */
RemnantStationFleetManager activeFleets = new RemnantStationFleetManager(
fleet, 1f, 0, maxFleets, 15f, 8, 24);
loc.addScript(activeFleets);
}
});
一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...
你试试这个 chunyiyouxi 发表于 2026-8-30 18:37
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.a ...
我的天,真的会在船下面生成一个余晖中枢。
大佬太牛了,666 一船幽梦 发表于 2026-8-30 18:42
我的天,真的会在船下面生成一个余晖中枢。
大佬太牛了,666
能用就行 没出bug就是胜利 chunyiyouxi 发表于 2026-8-30 18:38
你试试这个
非常感谢{:tieba_26:} chunyiyouxi 发表于 2026-8-30 18:38
你试试这个
大佬,小卖部那个余烬中枢也能做出来吗?
{:tieba_01:}万分期待 一船幽梦 发表于 2026-9-10 04:45
大佬,小卖部那个余烬中枢也能做出来吗?
万分期待
这个我不知道 但是你可以试试在装了小卖部之后再试一遍这个指令 有可能它是给原版中枢加了一种{:5_124:} chunyiyouxi 发表于 2026-9-12 09:16
这个我不知道 但是你可以试试在装了小卖部之后再试一遍这个指令 有可能它是给原版中枢加了一种 ...
大佬 第一次用控制台 下载了 但是不会用我只想弄点故事点之前升级的故事点不会玩 全给用来捞主力舰了导致后面星球贸易还有内插故事点根本不够用怎么用控制台弄故事点呀 可口可糯丶 发表于 2026-9-12 10:22
大佬 第一次用控制台 下载了 但是不会用我只想弄点故事点之前升级的故事点不会玩 全给用来捞主力舰了 ...
按ctrl+删除键打开控制台输入 Addstorypoints+想要的数量即可 chunyiyouxi 发表于 2026-9-12 11:43
按ctrl+删除键打开控制台输入 Addstorypoints+想要的数量即可
感谢佬 会了!! chunyiyouxi 发表于 2026-9-12 09:16
这个我不知道 但是你可以试试在装了小卖部之后再试一遍这个指令 有可能它是给原版中枢加了一种 ...
试了好多次,都是余晖中枢。 一船幽梦 发表于 2026-9-14 08:08
试了好多次,都是余晖中枢。
啊 这 你可以看看mod文件里那个小卖部空间站叫什么
页:
[1]