找回密码
 初始化身份识别芯片
搜索
查看: 33|回复: 10

余晖被打没了,小白求教控制台指令。

[复制链接]

驱逐技师

发表于 2 小时前 | 显示全部楼层 |阅读模式
安装了ConsoleCommands的控制台。
在输入:spawnrespawnfleet remnant
可刷出来的余晖重建舰队,都是冲着有势力的星系去的,那不是肉包子打狗吗?
我想找个犄角旮旯,有没有办法让余晖中枢能刷到当前星域的?
求教!感谢!

战列舰长

发表于 1 小时前 | 显示全部楼层
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);
? ?? ?? ?? ?? ?? ?? ?? ?}
? ?? ?? ?? ?? ? });
编译失败: org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in primary 我粘贴到游戏里,就跳出这个提示。 是不是我那里没有做对?  详情 回复 发表于 1 小时前
不是byd怎么成这样了 这堆??是哪来的  详情 回复 发表于 1 小时前

战列舰长

发表于 1 小时前 | 显示全部楼层
chunyiyouxi 发表于 2026-8-30 18:29
runcode import com.fs.starfarer.api.impl.campaign.fleets.FleetFactoryV3;
import com.fs.starfarer.api ...

不是byd怎么成这样了 这堆??是哪来的

驱逐技师

 楼主| 发表于 1 小时前 | 显示全部楼层
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

我粘贴到游戏里,就跳出这个提示。
是不是我那里没有做对?
你试试这个  详情 回复 发表于 1 小时前
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.  详情 回复 发表于 1 小时前
我再发下 算了我直接发个文档试试  详情 回复 发表于 1 小时前
不好意思 这我发的不知道为啥成这样了 你加我好友 我私信试下  详情 回复 发表于 1 小时前

战列舰长

发表于 1 小时前 | 显示全部楼层
一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...

不好意思 这我发的不知道为啥成这样了 你加我好友 我私信试下

战列舰长

发表于 1 小时前 | 显示全部楼层
一船幽梦 发表于 2026-8-30 18:34
编译失败:
org.codehaus.commons.compiler.CompileException:Line 9,Column 2:Unexpected token"?"in pr ...

我再发下 算了我直接发个文档试试

战列舰长

发表于 1 小时前 | 显示全部楼层
一船幽梦 发表于 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);
                        }
                });
我的天,真的会在船下面生成一个余晖中枢。 大佬太牛了,666  详情 回复 发表于 半小时前

战列舰长

发表于 1 小时前 | 显示全部楼层
一船幽梦 发表于 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
能用就行 没出bug就是胜利  详情 回复 发表于 半小时前

战列舰长

发表于 半小时前 | 显示全部楼层
一船幽梦 发表于 2026-8-30 18:42
我的天,真的会在船下面生成一个余晖中枢。
大佬太牛了,666

能用就行 没出bug就是胜利

驱逐技师

 楼主| 发表于 半小时前 | 显示全部楼层

非常感谢

本版积分规则

Archiver|手机版|小黑屋|远行星号中文论坛

GMT+8, 2026-8-30 19:39

Powered by Discuz! X3.5

© 2001-2077 Tencent Cloud | Durian Software Studio

快速回复 返回顶部 返回列表