Factorio

Factorio

114 betyg
控制台命令
Av LearnFly
异星工厂自带控制台(按`就能打开),这里为广大中国玩家分享下一些控制台命令,内容来自维基
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
控制台命令
解锁所有科技:/c for name,technology in pairs(game.local_player.force.technologies) do technology.researched=technology.enabled end
缩写为/c for n,t in pairs(game.player.force.technologies) do t.researched=true end也可
(用完视加载MOD数量可能会卡一段时间,属正常现象)

获得100块铁板: /c game.player.character.insert{name="iron-plate",count=100}
格式相同的话想要什么都可以,我会在后面附上一些名称

从地图上移除所有的敌人: /c local surface = game.local_player.surface for c in surface.get_chunks() do for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force= "enemy"})) do entity.destroy() end end

实用计算器(括号里是算式): /c game.local_player.print(1234 * 5678)

检测虫子进化几率: /c game.local_player.print(game.evolution_factor)

总是白天(锁定时间为12点,把true改为false关闭):/c game.always_day=true

最大视野(正常滚轮无法达到的大小):/c game.local_player.zoom = 0.1


杀死所有虫子(虫巢无效且不算击杀):/c game.forces["enemy"].kill_all_units()

Mine faster(不清楚加快了什么。。): /c game.local_player.force.manual_mining_speed_modifier=1000

生产加快:/c game.local_player.force.manual_crafting_speed_modifier=1000

研究加快/c game.local_player.force.laboratory_speed_modifier = 1
1是正常的速度,2是双速3是三等,到100没问题。

把岩石变为可开采(应该是这个意思):/c for _,entity in pairs(game.local_player.surface.find_entities_filtered{ area={{game.local_player.position.x-32, game.local_player.position.y-32}, {game.local_player.position.x+32, game.local_player.position.y+32}}, name="stone-rock"}) do entity.destroy() end
一些常见物品名称,用于获得物品
name = "stone-brick",(石砖)
name = "raw-wood",(原木)
name = "coal",(煤)
name = "stone",(石头)
name = "iron-ore",(铁矿)
name = "copper-ore",(铜矿)
name = "wood",(木材)
name = "iron-plate",(铁板)
name = "copper-plate",(铜板)
name = "iron-stick",(铁棍)
name = "iron-gear-wheel",(铁齿轮)
name = "copper-cable",(铜线)
name = "electronic-circuit",(电路板)
name = "wooden-chest",(木箱)
name = "stone-furnace",(石炉)
name = "burner-mining-drill",(热能采掘机)
name = "basic-mining-drill",(电能采掘机)
name = "basic-transport-belt",(基础传送带)
name = "burner-inserter",(热能机械臂)
name = "basic-inserter",(电能机械臂)
name = "offshore-pump",(抽水泵)
name = "pipe",(管子)
name = "boiler",(锅炉)
name = "steam-engine",(蒸汽机)
name = "small-electric-pole",(小电线杆)
name = "radar",(雷达)
name = "biter-spawner",(虫族产卵者)
name = "computer",(电脑)
name = "small-plane",(小型飞机)
name = "small-lamp",(小灯)
name = "alien-artifact",(外星造物)
name = "pipe-to-ground",(地下管道)
name = "assembling-machine-1",(组装机1型)
name = "red-wire",(红色铜线)
name = "green-wire",(绿色铜线)
name = "raw-fish",(鱼)
name = "repair-pack",(修理包)
11 kommentarer
qiuuuu0122 31 aug, 2021 @ 23:41 
"automation-science-pack",“自动化科学包装”红瓶
"logistic-science-pack",“物流科学包装”绿瓶
"chemical-science-pack",“化学科学包装”蓝瓶
"military-science-pack",“军事科学包装”灰瓶
"production-science-pack",“生产科学包装”紫瓶
"utility-science-pack",“实用科学包装”黄瓶
"space-science-pack","太空科学包装"白瓶
sched_yield 8 aug, 2021 @ 3:21 
Mine faster(不清楚加快了什么。。): /c game.local_player.force.manual_mining_speed_modifier=1000

从字面上看,应该是加快手工采矿的速度
Jack Yu 20 jul, 2021 @ 4:10 
3dm说别人抄袭是否有点,,,
San Venturas 24 jun, 2021 @ 22:17 
反转了,3dm的攻略2019年,这篇是2016年,并且人家3dm的文章旁边都写了来源steam:steamthumbsup:你承包了我2分钟的笑点,前边那个出警的
Sunai 30 jan, 2018 @ 3:00 
谢谢
Mseven 16 mar, 2017 @ 4:44 
怎么联机啊?
⎛⎝ Young forever⎠⎞ 13 mar, 2017 @ 22:20 
感谢分享,有的网站上用的还是老版本的代码,终于可以激情的造基地了
SilentJames 15 apr, 2016 @ 20:28 
感谢分享控制台指令,搜到的factorio中文wiki的控制台指令有误,如果不是你这里提醒,我还真忘了看英文wiki了
人形自走ATM 14 apr, 2016 @ 4:53 
谢谢这篇指南 作为新手 漫长的研究过程 真的让我没有耐性
包包包包包在我身上 5 apr, 2016 @ 19:18 
打开异星工厂文件夹下...\doc-html\Classes.html
这里有每个类下的成员函数,包含了在控制台中几乎所有可以用的命令
其他千奇百怪的物品名称在...\data\base\prototypes文件下
在玩家脚下刷一铁矿点:
/c game.local_player.surface.create_entity{name = "iron-ore", position = {game.local_player.position.x, game.local_player.position.y},amount=998}
清除玩家附近的铁矿点:
/c for _,entity in pairs(game.local_player.surface.find_entities_filtered{ area={{game.local_player.position.x-3, game.local_player.position.y-3}, {game.local_player.position.x+3, game.local_player.position.y+3}}, name="iron-ore"}) do entity.destroy() end