求饥荒巨人的统治地图全开和瞬移,怎么改文件,或是其他办法

如题所述

地图全开(游戏中按Ctrl+1)

用记事本打开游戏目录\data\DLC0001\scripts\prefabs\player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容:

TheInput:AddKeyUpHandler(KEY_1, function()
if TheInput:IsKeyDown(KEY_CTRL) then
local map = TheSim:FindFirstEntityWithTag("minimap")
local x,y,z = GetPlayer().Transform:GetWorldPosition()
map.MiniMap:ShowArea(x, y, z, 10000)
end
end)

即可在游戏中按Ctrl + 1使地图全开

瑞士手杖(砍树、凿石、锤墙、挖草、祛暑、取暖、防雨、补脑、瞬移、10倍攻击力、2倍速度、照明)

用记事本打开游戏目录\data\scripts\prefabs\cane.lua文件,

1.在local function onequip(inst, owner)的下一行插入以下内容:

inst.Light:Enable(true)
GetPlayer().components.temperature:SetTemp(20)
GetPlayer():PushEvent("stopfreezing")
GetPlayer():PushEvent("stopoverheating")
GetPlayer().components.moisture:SetMoistureLevel(0)

2.在local function onunequip(inst, owner)的下一行插入以下内容:

inst.Light:Enable(false)
GetPlayer().components.temperature:SetTemp(nil)

3.在anim:PlayAnimation("idle")的下一行插入以下内容:

inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.CHOP, 15)
inst.components.tool:SetAction(ACTIONS.MINE, 15)
inst.components.tool:SetAction(ACTIONS.HAMMER,15)
inst.components.tool:SetAction(ACTIONS.DIG)
inst:AddComponent("waterproofer")
inst.components.waterproofer:SetEffectiveness(TUNING.WATERPROOFNESS_ABSOLUTE)
inst:AddComponent("blinkstaff")
local light = inst.entity:AddLight()
light:SetFalloff(0.4)
light:SetIntensity(.7)
light:SetRadius(2.5)
light:SetColour(180/255, 195/255, 150/255)
light:Enable(true)

4.将inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE*10)

5.将inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT替换为以下内容:

inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT*2
inst.components.equippable.dapperness = TUNING.DAPPERNESS_HUGE

即可让手杖拥有瑞士军刀般的多功能。装备手杖时,在空地上点鼠标右键可瞬移,借此可跳过较窄沟壑,少走冤枉路
温馨提示:答案为网友推荐,仅供参考
第1个回答  2023-03-07
对于饥荒巨人的统治地图全开和瞬移,一般是需要通过修改游戏文件来实现。

首先,打开游戏目录中的save文件夹,找到对应存档的saveindex文件,用记事本或文本编辑器打开。

然后,找到 enable_account_manager 和 game_mode 字段进行修改,改为如下内容:enable_account_manager = false,game_mode = endless,修改后保存并关闭。

最后,重新启动游戏即可。

至于瞬移,可以使用游戏mod或者修改游戏文件,具体方法可以在相关游戏社区或者网站上搜索相关资料。

注意修改游戏文件可能会导致游戏无法正常运作或者丢失存档,操作前最好备份游戏文件和存档。
相似回答