模组文件免费下载和使用,谨防上当受骗!

YN349-游戏不自动保存

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三四九.游戏不自动保存 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,将inst:AddComponent("autosaver")替换为--inst:AddComponent("autosaver") 即可不让游戏自动保存

2025/04/23 · Bny

YN350-手动存档(游戏中按F5保存)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五0.手动存档(游戏中按F5保存) 用MT管理器打开游戏目录/assets/scripts/main.lua文件,在TranslateStringTable( STRINGS )的下一行插入TheInput:AddKeyUpHandler(KEY_F5, function() SaveGameIndex:SaveCurrent() end ) 即可在游戏中按F5手动存档,卡一下就保存完了

2025/04/23 · Bny

YN351-快速读档(游戏中按F6快速读取之前存档)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五一.快速读档(游戏中按F6快速读取之前存档) 用MT管理器打开游戏目录/assets/scripts/main.lua文件,在TranslateStringTable( STRINGS )的下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_F6, function() StartNextInstance({reset_action=RESET_ACTION.LOAD_SLOT, save_slot = SaveGameIndex:GetCurrentSaveSlot()}, true) end ) 即可在游戏中随时按F6快速读取之前存档,主要用在主角临死的一刻。按下F6后游戏会卡一下,是在读取中

2025/04/23 · Bny

YN352-死亡自动读档(死亡不删档)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五二.死亡自动读档(死亡不删档) 用MT管理器打开游戏目录/assets/DLC0002/scripts/gamelogic.lua文件,将下列内容: local playtime = GetTimePlaying() playtime = math.floor(playtime*1000) SetTimingStat("time", "scenario", playtime) SendTrackingStats() local days_survived, start_xp, reward_xp, new_xp, capped = CalculatePlayerRewards(wilson) ProfileStatsSet("xp_gain", reward_xp) ProfileStatsSet("xp_total", new_xp) SubmitCompletedLevel() --close off the instance wilson.components.health.invincible = true wilson.profile:Save(function() SaveGameIndex:EraseCurrent(function() scheduler:ExecuteInTime(3, function() TheFrontEnd:PushScreen(DeathScreen(days_survived, start_xp, nil, capped)) end) end) end) 替换为: StartNextInstance({reset_action=RESET_ACTION.LOAD_SLOT, save_slot = SaveGameIndex:GetCurrentSaveSlot()}, true) 即可死亡自动读档,死后游戏会卡一会儿,不要动,是在读档

2025/04/23 · Bny

YN353-彩色物品栏(每次进游戏物品栏底图呈不同颜色)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五三.彩色物品栏(每次进游戏物品栏底图呈不同颜色) 用MT管理器打开游戏目录/assets/scripts/widgets/inventorybar.lua文件,在self.bg = self.root:AddChild(Image(HUD_ATLAS, "inventory_bg.tex"))的下一行插入以下内容: local colours= { {255/255,0/255,0/255}, {0/255,255/255,0/255}, {255/255,255/255,255/255}, {79/255,153/255,68/255}, {35/255,105/255,235/255}, {109/255,50/255,163/255}, } local bgcolour = math.random(#colours) self.bg:SetTint(colours[bgcolour][1],colours[bgcolour][2],colours[bgcolour][3],1) 即可在每次进游戏时,物品栏底图呈现不同颜色,让你带着不同心情游戏

2025/04/23 · Bny

YN354-纯净的屏幕(按键盘Enter键隐藏制造栏、背包栏等标识)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五四.纯净的屏幕(按键盘Enter键隐藏制造栏、背包栏等标识) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("playercontroller")的下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_ENTER, function() GetPlayer().HUD:Toggle() end ) 即可按键盘Enter键隐藏制造栏、物品栏、表、背包栏等所有标识,让你的视野更宽阔,更加投入饥荒的世界,再次按Enter键显示标识

2025/04/23 · Bny

YN355-隐藏地图图标(按键盘M键隐藏地图图标,再按M键恢复)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五五.隐藏地图图标(按键盘M键隐藏地图图标,再按M键恢复) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("resurrectable")的下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_M, function() if not inst:HasTag("nomap") then inst:AddTag("nomap") inst.HUD.controls.mapcontrols.minimapBtn:Hide() inst.HUD.controls.mapcontrols.rotleft:Hide() inst.HUD.controls.mapcontrols.rotright:Hide() else inst:RemoveTag("nomap") inst.HUD.controls.mapcontrols.minimapBtn:Show() inst.HUD.controls.mapcontrols.rotleft:Show() inst.HUD.controls.mapcontrols.rotright:Show() end end ) 即可按键盘M键隐藏地图、左右方向图标,以免遮挡视线,再按M键恢复

2025/04/23 · Bny

YN356-地图不显示已探索区域(按键盘Ctrl+2关闭地图显示,再按一次解锁)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五六.地图不显示已探索区域(按键盘Ctrl+2关闭地图显示,再按一次解锁) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_2, function() if TheInput:IsKeyDown(KEY_CTRL) then local map = TheSim:FindFirstEntityWithTag("minimap") if not inst:HasTag("mapoff") then inst:AddTag("mapoff") map.MiniMap:ClearRevealedAreas(true) else inst:RemoveTag("mapoff") map.MiniMap:ClearRevealedAreas(false) end end end ) 即可按键盘Ctrl+2,让小地图全黑,并且不再显示已探索区域,增加探险的难度。再次按Ctrl+2,可解锁小地图显示已探索区域

2025/04/23 · Bny

YN357-定格边框(按键盘P键定格边框,主角可以跑到画面任意位置)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五七.定格边框(按键盘P键定格边框,主角可以跑到画面任意位置) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("playercontroller")的下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_P, function() if not TheCamera.cutscene == false then TheCamera:CutsceneMode(false) else TheCamera:CutsceneMode(true) end end ) 即可按键盘P键定格边框,主角可以跑到画面任意位置,包括画外,让拍照(截图)时有更好的构图,再次按P键解锁边框

2025/04/23 · Bny

YN358-冒险视角(按键盘F7键切换30度视角,再按一次返回)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三五八.冒险视角(按键盘F7键切换30度视角,再按一次返回) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("playeractionpicker")的下一行插入以下内容: TheInput:AddKeyUpHandler(KEY_F7, function() if not inst:HasTag("goodangle") then inst:AddTag("goodangle") TheCamera.maxdistpitch = 30 else inst:RemoveTag("goodangle") if not GetWorld():IsCave() then TheCamera.maxdistpitch = 60 else TheCamera.maxdistpitch = 40 end end end ) 即可在游戏中按键盘F7键,将游戏视角切换为30度冒险视角(视野更远),再次按F7键返回原本视角

2025/04/23 · Bny