饥荒地图全开MOD方法 地图MOD怎么使用

如题所述

饥荒全开地图
  饥荒地图全开的方法:
  找到游戏中main.lua,文件,地址在dont_starve\data\scripts,用记事本打开,拖到最后,在最后一行(即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);
  修改文件的时候可能会遇到版本冲突问题,但是对于广大的玩家用户都是可以通过这种方式解决。
温馨提示:答案为网友推荐,仅供参考
相似回答