《异星工厂》秘籍大全(lua控制台/代码修改)

《异星工厂》秘籍大全(lua控制台/代码修改)_cgame

https://www.sohu.com/a/252275827_100204787

如何输入 +

打开聊天窗口(默认是按 ~ 或 /),输入以下秘籍指令回车确认可获得对应效果。

添加开采资源 +

以玩家角色为中心生成一个5X5的资源

图片

资源

代码

 

铁矿

/c local surface = game.player.surface;

for y=0,17 do

for x=0,17 do

surface.create_entity({name="iron-ore", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

 

煤炭

/c local surface = game.player.surface;

for y=0,9 do

for x=0,9 do

surface.create_entity({name="coal", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

 

铜矿

/c local surface = game.player.surface;

for y=0,17 do

for x=0,17 do

surface.create_entity({name="copper-ore", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

 

石头

/c local surface = game.player.surface;

for y=0,5 do

for x=0,5 do

surface.create_entity({name="stone", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

 

原油

/c local surface = game.player.surface;

for y=0,1 do

for x=0,1 do

surface.create_entity({name="crude-oil", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

 

铀矿石

/c local surface = game.player.surface;

for y=0,5 do

for x=0,5 do

surface.create_entity({name="uranium-ore", amount=25000000, position={game.player.position.x+x, game.player.position.y+y}})

end

end

秘籍列表 +

秘籍

作用

/c game.player.force.manual_mining_speed_modifier = 2

设置采矿速度(默认是1)

/c game.player.force.manual_crafting_speed_modifier = 2

设置制造速度(默认是1)

/c game.player.force.laboratory_speed_modifier = 20

设置实验室研发速度(默认是1)

/c game.player.force.research_all_technologies()

完成所有研发

/c game.player.zoom = 0.1

设置缩放比例

(小于0.07会影响性能)

/c game.player.insert{name='物品代码', count=100}

制造物品

/c game.player.color={g=255,b=100,r=255,a=1.0}

设置玩家颜色(RGB)

/c game.always_day = true

总是白天(true为开启,fasle为关闭)

/c game.freeze_daytime = true

时间停止(true为开启,fasle为关闭)

/c game.peaceful_mode = true

和平模式(只对新增敌人有效)(true为开启,fasle为关闭)

/c game.forces["enemy"].kill_all_units()

杀死所有biter单位

/c game.speed = 2

设置游戏/行走速度(默认是1),

高速度可能会影响帧率

/c game.player.force.reset()

将所有自定义数值恢复为游戏默认值

制造物品 +

在聊天窗口输入

物品

代码

绿导线 /c game.player.insert{name="green-wire", count=200}

 

科技包 1

/c game.player.insert{name="science-pack-1", count=500}

 

科技包 2

/c game.player.insert{name="science-pack-2", count=500}

 

科技包 3

/c game.player.insert{name="science-pack-3", count=500}

100铁板

/c game.player.insert{name='iron-plate', count=500}

100铜板

/c game.player.insert{name='copper-plate', count=300}

100煤炭矿石

/c game.player.insert{name='coal', count=200}

100运输皮带

/c game.player.insert{name='basic-transport-belt', count=200}

100快速容器

/c game.player.insert{name='fast-inserter', count=100}

Debug模式 +

游戏中按 [F4] 可呼出 Debug 菜单,如下:

机器人 +

图片

物品

代码

 

机器人控制塔

/c game.player.insert{name="roboport", count=50}

 

物流机器人

/c game.player.insert{name="logistic-robot", count=200}

 

建设机器人

/c game.player.insert{name="construction-robot", count=50}

 

蓝图

/c game.player.insert{name="blueprint", count=10}

 

拆解模拟器

/c game.player.insert{name="deconstruction-planner", count=10}

 

物流主动供货箱

/c game.player.insert{name="logistic-chest-active-provider", count=50}

 

物流被动供货箱

/c game.player.insert{name="logistic-chest-passive-provider", count=50}

 

物流集货箱

/c game.player.insert{name="logistic-chest-requester", count=1}

 

物流物流存储箱

/c game.player.insert{name="logistic-chest-storage", count=2}

资源 +

图片

资源

代码

 

原木

/c game.player.insert{name="raw-wood", count=1000}

 

煤炭

/c game.player.insert{name="coal", count=1000}

 

铁矿

/c game.player.insert{name="iron-ore", count=1000}

 

铜矿

/c game.player.insert{name="copper-ore", count=1000}

 

石头

/c game.player.insert{name="stone", count=1000}

 

生鱼片

/c game.player.insert{name="raw-fish", count=1000}

 

外星神器

/c game.player.insert{name="alien-artifact", count=1000}

半成品 +

图片

资源

代码

 

木头

/c game.player.insert{name="wood", count=1000}

 

铁板

/c game.player.insert{name="iron-plate", count=1000}

 

铜板

/c game.player.insert{name="copper-plate", count=1000}

 

钢板

/c game.player.insert{name="steel-plate", count=1000}

 

砖石

/c game.player.insert{name="stone-brick", count=1000}

 

/c game.player.insert{name="sulfur", count=1000}

 

塑料

/c game.player.insert{name="plastic-bar", count=1000}

 

电池

/c game.player.insert{name="battery", count=1000}

 

铁棍

/c game.player.insert{name="iron-stick", count=1000}

 

齿轮

/c game.player.insert{name="iron-gear-wheel", count=1000}

 

铜线

/c game.player.insert{name="copper-wire", count=1000}

 

电子电路

/c game.player.insert{name="electronic-circuit", count=1000}

 

高级电路

/c game.player.insert{name="advanced-circuit", count=1000}

 

处理单元

/c game.player.insert{name="processing-unit", count=1000}

 

引擎单元

/c game.player.insert{name="engine-unit", count=1000}

 

电动引擎单元

/c game.player.insert{name="electric-engine-unit", count=1000}

 

飞行机器人框架

/c game.player.insert{name="flying-robot-frame", count=1000}

 

外星人科技包

/c game.player.insert{name="alien-science-pack", count=1000}

 

空桶

/c game.player.insert{name="empty-barrel", count=1000}

 

炸药

/c game.player.insert{name="explosives", count=1000}

工具 +

图片

物品

代码

 

铁斧

/c game.player.insert{name="iron-axe", count=5}

 

钢斧

/c game.player.insert{name="steel-axe", count=5}

弹药 +

图片

物品

代码

 

普通弹夹

/c game.player.insert{name="basic-bullet-magazine", count=1000}

 

穿甲弹夹

/c game.player.insert{name="piercing-bullet-magazine", count=1000}

 

散弹枪弹

/c game.player.insert{name="shotgun-shell", count=1000}

 

穿透散弹枪弹

/c game.player.insert{name="piercing-shotgun-shell", count=1000}

 

火箭

/c game.player.insert{name="rocket", count=1000}

 

爆炸火箭

/c game.player.insert{name="explosive-rocket", count=1000}

 

火焰喷射器弹药

/c game.player.insert{name="flame-thrower-ammo", count=1000}

 

加农弹

/c game.player.insert{name="cannon-shell", count=1000}

 

爆破加农弹

/c game.player.insert{name="explosive-cannon-shell", count=1000}

武器 +

图片

物品

代码

 

霰弹枪

/c game.player.insert{name="combat-shotgun", count=1}

 

喷火器

/c game.player.insert{name="flame-thrower", count=1}

 

手枪

/c game.player.insert{name="pistol", count=1}

 

电磁炮

/c game.player.insert{name="railgun", count=1}

 

火箭筒

/c game.player.insert{name="rocker-launcher", count=1}

 

猎枪

/c game.player.insert{name="shotgun", count=1}

 

冲锋枪

/c game.player.insert{name="submachine-gun", count=1}

模块 +

图片

物品

代码

 

速度模块

/c game.player.insert{name="speed-module", count=50}

 

速度模块2

/c game.player.insert{name="speed-module-2", count=50}

 

速度模块3

/c game.player.insert{name="speed-module-3", count=50}

 

生产率模块

/c game.player.insert{name="productivity-module", count=50}

 

生产率模块 2

/c game.player.insert{name="productivity-module-2", count=50}

 

生产率模块 3

/c game.player.insert{name="productivity-module-3", count=50}

 

效率模块

/c game.player.insert{name="efficiency-module", count=50}

 

效率模块2

/c game.player.insert{name="efficiency-module-2", count=50}

 

效率模块3

/c game.player.insert{name="efficiency-module-3", count=50}

护甲 +

图片

物品

代码

 

普通护甲

/c game.player.insert{name="basic-armor", count=1}

 

重甲

/c game.player.insert{name="heavy-armor", count=1}

 

模块护甲

/c game.player.insert{name="basic-modular-armor", count=1}

 

能量护甲

/c game.player.insert{name="power-armor", count=1}

 

能量护甲 MK2

/c game.player.insert{name="power-armor-mk2", count=1}

输送带 +

图片

物品

代码

 

普通输送带

/c game.player.insert{name="basic-transport-belt", count=1000}

 

地下输送带

/c game.player.insert{name="basic-transport-belt-to-ground", count=1000}

 

分离器

/c game.player.insert{name="basic-splitter", count=1000}

 

高速输送带

/c game.player.insert{name="fast-transport-belt", count=1000}

 

高速地下输送带

/c game.player.insert{name="fast-transport-belt-to-ground", count=1000}

 

高速分离器

/c game.player.insert{name="fast-splitter", count=1000}

 

超高速输送带

/c game.player.insert{name="express-transport-belt", count=1000}

 

超高速地下输送带

/c game.player.insert{name="express-transport-belt-to-ground", count=1000}

 

超高速分离器

/c game.player.insert{name="express-splitter", count=1000}

运输工具 +

图片

物品

代码

 

汽车

/c game.player.insert{name="car", count=1}

 

坦克

/c game.player.insert{name="tank", count=1}

 

内燃机车

/c game.player.insert{name="diesel-locomotive", count=1}

 

货车

/c game.player.insert{name="cargo-wagon", count=1}

 

铁路(钩状)

/c game.player.insert{name="curved-rail", count=50}

 

铁路(直线)

/c game.player.insert{name="straight-rail", count=50}

 

铁路链信号

/c game.player.insert{name="rail-chain-signal", count=10}

 

铁路信号

/c game.player.insert{name="rail-signal", count=10}

 

火车站

/c game.player.insert{name="train-stop", count=10}

存储工具 +

图片

物品

代码

 

木盒子

/c game.player.insert{name="wooden-chest", count=1}

 

铁盒子

/c game.player.insert{name="iron-chest", count=1}

 

钢盒子

/c game.player.insert{name="steel-chest", count=1}

 

物流主动供货箱

/c game.player.insert{name="logistic-chest-active-provider", count=50}

 

物流被动供货箱

/c game.player.insert{name="logistic-chest-passive-provider", count=50}

 

物流集货箱

/c game.player.insert{name="logistic-chest-requester", count=50}

 

物流物流存储箱

/c game.player.insert{name="logistic-chest-storage", count=50}

 

储存罐

/c game.player.insert{name="storage-tank", count=50}

机械手 +

图片

物品

代码

 

加热机械手

/c game.player.insert{name="burner-inserter", count=1000}

 

机械手

/c game.player.insert{name="basic-inserter", count=1000}

 

超长机械手

/c game.player.insert{name="long-handed-inserter", count=1000}

 

高速机械手

/c game.player.insert{name="fast-inserter", count=1000}

 

灵活机械手

/c game.player.insert{name="smart-inserter", count=1000}

基础防御设施 +

图片

物品

代码

 

基础激光防御设施

/c game.player.insert{name="basic-laser-defense-equipment", count=10}

 

炮塔

/c game.player.insert{name="gun-turret", count=10}

 

激光炮塔

/c game.player.insert{name="laser-turret", count=10}

 

基本防雷设施

/c game.player.insert{name="basic-electric-discharge-defense-equipment", count=10}

动力 +

图片

物品

代码

 

锅炉

/c game.player.insert{name="boiler", count=10}

 

蒸汽机

/c game.player.insert{name="steam-engine", count=10}

 

太阳能板

/c game.player.insert{name="solar-panel", count=10}

 

蓄能器

/c game.player.insert{name="basic-accumulator", count=10}

 

/c game.player.insert{name="pipe", count=10}

 

/c game.player.insert{name="pipe-to-ground", count=10}

 

离岸泵

/c game.player.insert{name="offshore-pump", count=10}

 

小照明灯

/c game.player.insert{name="small-lamp", count=10}

 

普通电线杆

/c game.player.insert{name="small-electric-pole", count=10}

 

中等电线杆

/c game.player.insert{name="medium-electric-pole", count=10}

 

大电线杆

/c game.player.insert{name="big-electric-pole", count=10}

 

你可能感兴趣的:(笔记)