3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 29571|回复: 11
打印 上一主题 下一主题

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

  [复制链接]

27

主题

1825

帖子

2918

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
51
金元
27135
积分
2918
精华
0
注册时间
2008-11-28
QQ
跳转到指定楼层
主题
发表于 2013-4-29 16:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 niu564776149 于 2013-4-29 16:17 编辑

找到游戏中main.lua,文件,地址在dont_starve\data\scripts,用记事本打开,拖到最后,在最后一行(即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
)

附4.24典藏版main修改后文件



main.lua

18.45 KB, 下载次数: 4776

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-24 21:53 , Processed in 0.030022 second(s), 17 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表