異星工廠修改檔案隱藏武器解鎖方法 - 遊戲狂
廣告

異星工廠修改檔案隱藏武器解鎖方法

請拿手機掃描此QRCODE

傳到手機看

2018-02-05

廣告

異星工廠修改檔案隱藏武器解鎖方法

找到遊戲檔案位置

X:\Factorio\data\base\prototypes\technology\technology.lua

廣告

查找字元串:

name = "military-3",

找到如下字元串

{

type = "technology",

name = "military-3",

icon = "__base__/graphics/technology/military.png",

effects =

{

--[[(這行消掉

{

type = "unlock-recipe",

recipe = "railgun"

},

{

type = "unlock-recipe",

recipe = "railgun-dart"

},]]--(這行逗號之後消掉

{

type = "unlock-recipe",

被去掉的為隱藏解鎖科技的命令

如此一來尚未解鎖軍工事3科技的玩家在解鎖軍工事3後就會正常解鎖電磁炮及專屬彈藥

如果已經解鎖過軍工業3的可以使用下面的方法

將剛才的字元段中

--[[

{

type = "unlock-recipe",

recipe = "railgun"

},

{

type = "unlock-recipe",

recipe = "railgun-dart"

},]]--

這段刪除

並在檔案最後部分

{

type = "unlock-recipe",

recipe = "science-pack-3"

}

},

order = "b-c"

}(這裡右大括號後添加逗號,英文鍵盤

這裡

}

)

在標注這裡的地方插入空格,複製如下字元串,並根據提示修改,中文及左邊的左小括號為提示內容,複製的時候請自行刪去

{

type = "technology",

name = "railgun",

icon = "__base__/graphics/icons/railgun.png",

effects =

{

{

type = "unlock-recipe",

recipe = "railgun"

},

{

type = "unlock-recipe",

recipe = "railgun-dart"

},

},

prerequisites = {"steel-processing"},(這裡為前置科技,研發完前置科技即可研發本科技解鎖電磁槍,這裡為鋼科技,想直接解鎖的可以直接將本行刪去,但會減去不少解鎖深層科技的成就感

unit =

{

count = 1000,(需要科技包組數,結合下方即需要4種科技包各1000個

ingredients =

{

{"alien-science-pack", 1}, (外星科技包 紫 (這裡四行為需要的科技包類型,可以自行刪減

{"science-pack-1", 1},(科技包1 紅

{"science-pack-2", 1},(科技包2 綠

{"science-pack-3", 1}(科技包3 藍

},

time = 60(研究一輪所需時間

},

order = "k-b"

}

另外附上槍械與專屬彈藥資料,不放圖樣地址,想修改彈藥動畫效果的可以自己找

彈藥:

X:\Factorio\data\base\prototypes\item\ammo.lua

查找如下字元串

name = "railgun-dart",

找到如下段落

{

type = "ammo",

name = "railgun-dart",

icon = "__base__/graphics/icons/railgun-ammo.png",

flags = {"goes-to-main-inventory"},

ammo_type =

{

category = "railgun",

target_type = "direction",

action =

{

type = "line",(彈藥效果類型

range = 25,(距離,附圖中距離為128

width = 0.5,(寬度,為傷害實際寬度,不是效果寬度,附圖中距離為32

source_effects =

{

type = "create-entity",

entity_name = "railgun-beam"(彈藥實體

},

action_delivery =

{

type = "instant",(造成傷害的方式

target_effects =

{

type = "damage",

damage = { amount = 100, type="physical"}(傷害數值與類型

}

}

}

},

magazine_size = 5,(每發彈夾彈藥數量

subgroup = "ammo",

order = "c[railgun]",

stack_size = 200(堆疊數量

}

槍械:

X:\Factorio\data\base\prototypes\item\gun.lua

查找如下字元串

name = "railgun",

找到如下段落

{

type = "gun",

name = "railgun",

icon = "__base__/graphics/icons/railgun.png",

flags = {"goes-to-main-inventory"},

subgroup = "gun",

order = "c[railgun]",

attack_parameters =

{

ammo_category = "railgun",

cooldown = 2 * 60,(冷卻時間

movement_slow_down_factor = 0.6,(攻擊中移動速度倍率

projectile_creation_distance = 0.6,(彈藥開始攻擊的距離

range = 20,(最大攻擊範圍,與彈藥距離不衝突,彈藥中的為彈藥長度與寬度,這裡是滑鼠指示位置在距離人物多遠可以發射

sound =

{

{

filename = "__base__/sound/railgun.wav",

volume = 0.8(音量

}

}

},

stack_size = 4(堆疊數量

}

}

廣告

廣告

遊戲資訊

異星工廠 (Factorio)

類別: 策略
平台: PC
開發: slpwnd
發行: slpwnd
上市: 2020-08-14
「異星工廠」Factorio 是一款2D生產建設模擬遊戲,在這裡你需要設計並建設出不同的自動生產流水線,不斷生產出愈加複雜的工業品。盡情開動你的想像力,將傳送帶、機械臂、組裝機等簡單的設備精密結合,創造出屬於你自己的自動化流水生產建築群。同時別忘了在異星蟲子的威脅下保護好你的工業帝國。

更多 異星工廠 攻略|新聞

廣告
https://gamemad.com/upload/images/2021/04/03/6067f35bda760.jpg https://gamemad.com/guide/2488 找到遊戲檔案位置 X:\Factorio\data\base\prototypes\technology\technology.lua 查找字元串: name = "military-3", 找到如下字元串 { type = "technology", name = "military-3", icon = "__base__/graphics/technology/military.png", effects = { --[[(這行消掉 { type = "unlock-recipe", recipe = "railgun" }, { type = "unlock-recipe", recipe = "railgun-dart" },]]--(這行逗號之後消掉 { type = "unlock-recipe", 被去掉的為隱藏解鎖科技的命令 如此一來尚未解鎖軍工事3科技的玩家在解鎖軍工事3後就會正常解鎖電磁炮及專屬彈藥 如果已經解鎖過軍工業3的可以使用下面的方法 將剛才的字元段中 --[[ { type = "unlock-recipe", recipe = "railgun" }, { type = "unlock-recipe", recipe = "railgun-dart" },]]-- 這段刪除 並在檔案最後部分 { type = "unlock-recipe", recipe = "science-pack-3" } }, order = "b-c" }(這裡右大括號後添加逗號,英文鍵盤 這裡 } ) 在標注這裡的地方插入空格,複製如下字元串,並根據提示修改,中文及左邊的左小括號為提示內容,複製的時候請自行刪去 { type = "technology", name = "railgun", icon = "__base__/graphics/icons/railgun.png", effects = { { type = "unlock-recipe", recipe = "railgun" }, { type = "unlock-recipe", recipe = "railgun-dart" }, }, prerequisites = {"steel-processing"},(這裡為前置科技,研發完前置科技即可研發本科技解鎖電磁槍,這裡為鋼科技,想直接解鎖的可以直接將本行刪去,但會減去不少解鎖深層科技的成就感 unit = { count = 1000,(需要科技包組數,結合下方即需要4種科技包各1000個 ingredients = { {"alien-science-pack", 1}, (外星科技包 紫 (這裡四行為需要的科技包類型,可以自行刪減 {"science-pack-1", 1},(科技包1 紅 {"science-pack-2", 1},(科技包2 綠 {"science-pack-3", 1}(科技包3 藍 }, time = 60(研究一輪所需時間 }, order = "k-b" } 另外附上槍械與專屬彈藥資料,不放圖樣地址,想修改彈藥動畫效果的可以自己找 彈藥: X:\Factorio\data\base\prototypes\item\ammo.lua 查找如下字元串 name = "railgun-dart", 找到如下段落 { type = "ammo", name = "railgun-dart", icon = "__base__/graphics/icons/railgun-ammo.png", flags = {"goes-to-main-inventory"}, ammo_type = { category = "railgun", target_type = "direction", action = { type = "line",(彈藥效果類型 range = 25,(距離,附圖中距離為128 width = 0.5,(寬度,為傷害實際寬度,不是效果寬度,附圖中距離為32 source_effects = { type = "create-entity", entity_name = "railgun-beam"(彈藥實體 }, action_delivery = { type = "instant",(造成傷害的方式 target_effects = { type = "damage", damage = { amount = 100, type="physical"}(傷害數值與類型 } } } }, magazine_size = 5,(每發彈夾彈藥數量 subgroup = "ammo", order = "c[railgun]", stack_size = 200(堆疊數量 } 槍械: X:\Factorio\data\base\prototypes\item\gun.lua 查找如下字元串 name = "railgun", 找到如下段落 { type = "gun", name = "railgun", icon = "__base__/graphics/icons/railgun.png", flags = {"goes-to-main-inventory"}, subgroup = "gun", order = "c[railgun]", attack_parameters = { ammo_category = "railgun", cooldown = 2 * 60,(冷卻時間 movement_slow_down_factor = 0.6,(攻擊中移動速度倍率 projectile_creation_distance = 0.6,(彈藥開始攻擊的距離 range = 20,(最大攻擊範圍,與彈藥距離不衝突,彈藥中的為彈藥長度與寬度,這裡是滑鼠指示位置在距離人物多遠可以發射 sound = { { filename = "__base__/sound/railgun.wav", volume = 0.8(音量 } } }, stack_size = 4(堆疊數量 } }
https://gamemad.com/guide/2488
0