我爱秘籍 > 秘籍 > Y > 文章内容
异星工厂

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

英文名称:Factorio
相关操作:评论(5) 收藏 扩展
秘籍数量:270+
更新次数:3 次
最后更新:2017-06-09

如何输入

+

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

秘籍列表

+
秘籍作用
/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.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="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="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="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}

相关下载

异星工厂
《异星工厂》v0.94资源PK增强版
英文名:Factorio
作者:suwei0206
日期:2014.04.17

近期推荐

近期热门