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

《异星工厂》秘籍大全(lua控制台/代码修改)1、如何输入

所属游戏: 异星工厂
英文名称:
相关操作: 收藏 下载地址 扩展
模组作者:suwei0206
标签:
最后更新:2018-01-03

如何输入

+

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

秘籍列表

+
秘籍作用
/c game.local_player.force.manual_mining_speed_modifier = 2设置采矿速度(默认是1)
/c game.local_player.force.manual_crafting_speed_modifier = 2设置制造速度(默认是1)
/c game.local_player.force.laboratory_speed_modifier = 2设置实验室研发速度(默认是1)
/c game.local_player.force.research_all_technologies()完成所有研发
/c game.local_player.zoom = 0.1设置缩放比例
(小于0.07会影响性能)
/c game.local_player.insert{name='物品代码', count=100}制造物品
/c game.local_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.local_player.force.reset()将所有自定义数值恢复为游戏默认值

制造物品

+

在聊天窗口输入

物品代码
100铁板/c game.local_player.insert{name='iron-plate', count=100}
100铜板/c game.local_player.insert{name='copper-plate', count=100}
100煤炭矿石/c game.local_player.insert{name='coal', count=100}
100运输皮带/c game.local_player.insert{name='basic-transport-belt', count=100}
100快速容器/c game.local_player.insert{name='fast-inserter', count=100}

Debug模式

+

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

添加开采资源

BY fsxvm_blaze +

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

图片资源代码
石头/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="stone", amount=25000000,            position={game.local_player.position.x+x,            game.local_player.position.y+y}})
end
end
铜矿/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="copper-ore", amount=25000000,            position={game.local_player.position.x+x,            game.local_player.position.y+y}})
end
end
铁矿/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="iron-ore", amount=25000000,            position={game.local_player.position.x+x,            game.local_player.position.y+y}})
end
end
煤炭/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="coal", amount=25000000,            position={game.local_player.position.x+x,            game.local_player.position.y+y}})
end
end
原油/c local surface = game.local_player.surface;
for y=-2,2 do
for x=-2,2 do
surface.create_entity({name="crude-oil", amount=25000000,            position={game.local_player.position.x+x,            game.local_player.position.y+y}})
end
end

机器人

+
图片物品代码
机器人控制塔/c game.player.insert{name="roboport", count=1000}
物流机器人/c game.player.insert{name="logistic-robot", count=10}
建设机器人/c game.player.insert{name="construction-robot", count=10}
蓝图/c game.player.insert{name="blueprint", count=10}
拆解模拟器/c game.player.insert{name="deconstruction-planner", count=10}

资源

+
图片资源代码
原木/c game.local_player.insert{name="raw-wood", count=1000}
煤炭/c game.local_player.insert{name="coal", count=1000}
铁矿/c game.local_player.insert{name="iron-ore", count=1000}
铜矿/c game.local_player.insert{name="copper-ore", count=1000}
石头/c game.local_player.insert{name="stone", count=1000}
生鱼片/c game.local_player.insert{name="raw-fish", count=1000}
外星神器/c game.local_player.insert{name="alien-artifact", count=1000}

半成品

+
图片资源代码
木头/c game.local_player.insert{name="wood", count=1000}
铁板/c game.local_player.insert{name="iron-plate", count=1000}
铜板/c game.local_player.insert{name="copper-plate", count=1000}
钢板/c game.local_player.insert{name="steel-plate", count=1000}
砖石/c game.local_player.insert{name="stone-brick", count=1000}
/c game.local_player.insert{name="sulfur", count=1000}
塑料/c game.local_player.insert{name="plastic-bar", count=1000}
电池/c game.local_player.insert{name="battery", count=1000}
铁棍/c game.local_player.insert{name="iron-stick", count=1000}
齿轮/c game.local_player.insert{name="iron-gear-wheel", count=1000}
铜线/c game.local_player.insert{name="copper-wire", count=1000}
电子电路/c game.local_player.insert{name="electronic-circuit", count=1000}
高级电路/c game.local_player.insert{name="advanced-circuit", count=1000}
处理单元/c game.local_player.insert{name="processing-unit", count=1000}
引擎单元/c game.local_player.insert{name="engine-unit", count=1000}
电动引擎单元/c game.local_player.insert{name="electric-engine-unit", count=1000}
飞行机器人框架/c game.local_player.insert{name="flying-robot-frame", count=1000}
科技包 1/c game.local_player.insert{name="science-pack-1", count=1000}
科技包 2/c game.local_player.insert{name="science-pack-2", count=1000}
科技包 3/c game.local_player.insert{name="science-pack-3", count=1000}
外星人科技包/c game.local_player.insert{name="alien-science-pack", count=1000}
空桶/c game.local_player.insert{name="empty-barrel", count=1000}
炸药/c game.local_player.insert{name="explosives", count=1000}

工具

+
图片物品代码
铁斧/c game.local_player.insert{name="iron-axe", count=5}
钢斧/c game.local_player.insert{name="steel-axe", count=5}

弹药

+
图片物品代码
普通弹夹/c game.local_player.insert{name="basic-bullet-magazine", count=1000}
穿甲弹夹/c game.local_player.insert{name="piercing-bullet-magazine", count=1000}
散弹枪弹/c game.local_player.insert{name="shotgun-shell", count=1000}
穿透散弹枪弹/c game.local_player.insert{name="piercing-shotgun-shell", count=1000}
火箭/c game.local_player.insert{name="rocket", count=1000}
爆炸火箭/c game.local_player.insert{name="explosive-rocket", count=1000}
火焰喷射器弹药/c game.local_player.insert{name="flame-thrower-ammo", count=1000}
加农弹/c game.local_player.insert{name="cannon-shell", count=1000}
爆破加农弹/c game.local_player.insert{name="explosive-cannon-shell", count=1000}

武器

+
图片物品代码
霰弹枪/c game.local_player.insert{name="combat-shotgun", count=1}
喷火器/c game.local_player.insert{name="flame-thrower", count=1}
手枪/c game.local_player.insert{name="pistol", count=1}
电磁炮/c game.local_player.insert{name="railgun", count=1}
火箭筒/c game.local_player.insert{name="rocker-launcher", count=1}
猎枪/c game.local_player.insert{name="shotgun", count=1}
冲锋枪/c game.local_player.insert{name="submachine-gun", count=1}

模块

+
图片物品代码
速度模块/c game.local_player.insert{name="speed-module", count=50}
速度模块2/c game.local_player.insert{name="speed-module-2", count=50}
速度模块3/c game.local_player.insert{name="speed-module-3", count=50}
生产率模块/c game.local_player.insert{name="productivity-module", count=50}
生产率模块 2/c game.local_player.insert{name="productivity-module-2", count=50}
生产率模块 3/c game.local_player.insert{name="productivity-module-3", count=50}
效率模块/c game.local_player.insert{name="efficiency-module", count=50}
效率模块2/c game.local_player.insert{name="efficiency-module-2", count=50}
效率模块3/c game.local_player.insert{name="efficiency-module-3", count=50}

护甲

+
图片物品代码
普通护甲/c game.local_player.insert{name="basic-armor", count=1}
重甲/c game.local_player.insert{name="heavy-armor", count=1}
模块护甲/c game.local_player.insert{name="basic-modular-armor", count=1}
能量护甲/c game.local_player.insert{name="power-armor", count=1}
能量护甲 MK2/c game.local_player.insert{name="power-armor-mk2", count=1}

输送带

+
图片物品代码
普通输送带/c game.local_player.insert{name="basic-transport-belt", count=1000}
地下输送带/c game.local_player.insert{name="basic-transport-belt-to-ground", count=1000}
分离器/c game.local_player.insert{name="basic-splitter", count=1000}
高速输送带/c game.local_player.insert{name="fast-transport-belt", count=1000}
高速地下输送带/c game.local_player.insert{name="fast-transport-belt-to-ground", count=1000}
高速分离器/c game.local_player.insert{name="fast-splitter", count=1000}
超高速输送带/c game.local_player.insert{name="express-transport-belt", count=1000}
超高速地下输送带/c game.local_player.insert{name="express-transport-belt-to-ground", count=1000}
超高速分离器/c game.local_player.insert{name="express-splitter", count=1000}

运输工具

+
图片物品代码
汽车/c game.local_player.insert{name="car", count=1}
坦克/c game.local_player.insert{name="tank", count=1}
内燃机车/c game.local_player.insert{name="diesel-locomotive", count=1}
货车/c game.local_player.insert{name="cargo-wagon", count=1}
铁路(钩状)/c game.local_player.insert{name="curved-rail", count=50}
铁路(直线)/c game.local_player.insert{name="straight-rail", count=50}
铁路链信号/c game.local_player.insert{name="rail-chain-signal", count=10}
铁路信号/c game.local_player.insert{name="rail-signal", count=10}
火车站/c game.local_player.insert{name="train-stop", count=10}

存储工具

+
图片物品代码
木盒子/c game.local_player.insert{name="wooden-chest", count=1}
铁盒子/c game.local_player.insert{name="iron-chest", count=1}
钢盒子/c game.local_player.insert{name="steel-chest", count=1}
物流主动供货箱/c game.local_player.insert{name="logistic-chest-active-provider", count=50}
物流被动供货箱/c game.local_player.insert{name="logistic-chest-passive-provider", count=50}
物流集货箱/c game.local_player.insert{name="logistic-chest-requester", count=50}
物流物流存储箱/c game.local_player.insert{name="logistic-chest-storage", count=50}
储存罐/c game.local_player.insert{name="storage-tank", count=50}

机械手

+
图片物品代码
加热机械手
/c game.local_player.insert{name="burner-inserter", count=1000}
机械手/c game.local_player.insert{name="basic-inserter", count=1000}
超长机械手/c game.local_player.insert{name="long-handed-inserter", count=1000}
高速机械手/c game.local_player.insert{name="fast-inserter", count=1000}
灵活机械手
/c game.local_player.insert{name="smart-inserter", count=1000}

基础防御设施

+
图片物品代码
基础激光防御设施/c game.local_player.insert{name="basic-laser-defense-equipment", count=10}
炮塔/c game.local_player.insert{name="gun-turret", count=10}
激光炮塔/c game.local_player.insert{name="laser-turret", count=10}
基本防雷设施/c game.local_player.insert{name="basic-electric-discharge-defense-equipment", count=10}

动力

+
图片物品代码
锅炉/c game.local_player.insert{name="boiler", count=10}
蒸汽机/c game.local_player.insert{name="steam-engine", count=10}
太阳能板/c game.local_player.insert{name="solar-panel", count=10}
蓄能器/c game.local_player.insert{name="basic-accumulator", count=10}
/c game.local_player.insert{name="pipe", count=10}
/c game.local_player.insert{name="pipe-to-ground", count=10}
离岸泵/c game.local_player.insert{name="offshore-pump", count=10}
小照明灯/c game.local_player.insert{name="small-lamp", count=10}
普通电线杆/c game.local_player.insert{name="small-electric-pole", count=10}
中等电线杆/c game.local_player.insert{name="medium-electric-pole", count=10}
大电线杆/c game.local_player.insert{name="big-electric-pole", count=10}