您目前所在位置: 首页 > 游戏周边 > 游戏攻略

饥荒 地图全开+传送 修改文件无需MOD

时间:2022-08-20 08:45:06 | 访问:269 次 | 责任编辑:访客 | 来源:本站
全文目录:

1、饥荒 地图全开MOD方法

2、饥荒 地图全开+传送 修改文件无需MOD

一、饥荒 地图全开MOD方法

饥荒 地图全开MOD方法

看到不少人求地图全开MOD,分享个方法,理论全版本通用,至少从4.10开始之后的中英文版本适用。

找到游戏中main.lua文件,地址在dont_starvedatascripts,用记事本打开,拖到最后,在最后一行(即ModManager:LoadMods()——这一行前面)添加以下代码,保存,进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。建议修改前保存原文件!!!

--地图全开

TheInput:AddKeyUpHandler(KEY_1, function()

  if TheInput:IsKeyDown(KEY_CTRL) then

    local MainCharacter=TheSim:FindFirstEntityWithTag("player")

    local map=TheSim:FindFirstEntityWithTag("minimap")

    if MainCharacter and map then

      local x, y, z=MainCharacter.Transform:GetWorldPosition()

      map.MiniMap:ShowArea(x, y, z, 10000)

    end

  end

end

);

--传送

TheInput:AddKeyUpHandler(KEY_2, function()

   if TheInput:IsKeyDown(KEY_CTRL) then

     local player=TheSim:FindFirstEntityWithTag("player");

     player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())

   end

end

)

附4.24典藏版main修改后文件:点击进入

二、饥荒 地图全开+传送 修改文件无需MOD

饥荒 地图全开+传送 修改文件无需MOD

看到不少人求地图全开MOD,分享个方法,理论全版本通用,至少从4.10开始之后的中英文版本适用。

找到游戏中main.lua,文件,地址在dont_starvedatascripts,用记事本打开,拖到最后,在最后一行(即ModManageroadMods()——这一行前面)添加以下代码,保存,进游戏后ctrl+1地图全开,ctrl+2瞬移到鼠标所在位置。建议修改前保存原文件!!!

--地图全开

TheInput:AddKeyUpHandler(KEY_1, function()

 if TheInput:IsKeyDown(KEY_CTRL) then

local MainCharacter=TheSim:FindFirstEntityWithTag("player")

local map=TheSim:FindFirstEntityWithTag("minimap")

if MainCharacter and map then

local x, y, z=MainCharacter.Transform:GetWorldPosition()

map.MiniMap:ShowArea(x, y, z, 10000)

end

end

end

);

--传送

TheInput:AddKeyUpHandler(KEY_2, function()

if TheInput:IsKeyDown(KEY_CTRL) then

local player=TheSim:FindFirstEntityWithTag("player");

player.Transform:SetPosition(TheInput:GetMouseWorldPos():Get())

end

end

)

 如果你不愿意去弄,可以在游戏dont_starvedatascripts这个里面把下面的main.lua覆盖!!!

下载地址:main.lua

本类TOP10
最新内容
金融习题 考研百科