[分享]饥荒联机版,支持局域网联机。

YN012-主角可渡海(没有什么可以阻挡,你对自由的向往)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十二.主角可渡海(没有什么可以阻挡,你对自由的向往) 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/components/playeractionpicker.lua文件,将共2句passable = tile ~= GROUND.IMPASSABLE均替换为passable = tile >= GROUND.IMPASSABLE 5 6 即可让主角能通过橙色魔杖、瑞士手杖(见本修改技巧)传送到海上(装备橙色魔杖、瑞士手杖后鼠标右键点海面),并能够行在水上,连地下的沟壑也无法阻挡。注意要替换的语句有2句,千万别只替换了1句哦

2025/04/23 · Bny

YN013-主角跑得更快

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十三.主角跑得更快 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将以下内容: 5 6 WILSON_WALK_SPEED = 4, 7 WILSON_RUN_SPEED = 6, 8 9 替换为: 10 11 WILSON_WALK_SPEED = 8, 12 WILSON_RUN_SPEED = 12, 13 14 即可让主角跑步速度增加1倍

2025/04/23 · Bny

YN014-背猪皮包、穿大理石盔甲行走速度不减慢

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十四.背猪皮包、穿大理石盔甲行走速度不减慢 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件, 5 6 1.将PIGGYBACK_SPEED_MULT = 0.9,替换为PIGGYBACK_SPEED_MULT = 1, 7 8 2.将ARMORMARBLE_SLOW = 0.7,替换为ARMORMARBLE_SLOW = 1, 9 10 即可背猪皮包、穿大理石盔甲行走速度不减慢

2025/04/23 · Bny

YN015-提高拿手杖行走速度

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十五.提高拿手杖行走速度 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将CANE_SPEED_MULT = 1.25,替换为CANE_SPEED_MULT = 2.5, 5 6 即可将拿手杖行走速度提高1倍

2025/04/23 · Bny

YN016-解锁全科技(全人物不用机器就可造全部物品)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十六.解锁全科技(全人物不用机器就可造全部物品) 3 4 1.用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("builder")下一行插入以下内容: 5 6 inst.components.builder.science_bonus = 3 7 inst.components.builder.magic_bonus = 3 8 inst.components.builder.ancient_bonus = 4 9 10 2.用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/wickerbottom.lua文件,将inst.components.builder.science_bonus = 1替换为--inst.components.builder.science_bonus = 1 11 12 即可让全人物不用机器就可造全部物品,远古物品也不用靠近祭坛就可制造

2025/04/23 · Bny

YN017-快速制造物品

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十七.快速制造物品 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/actions.lua文件,将BUILD = Action(),替换为BUILD = Action(0, true), 5 6 即可跳过制造物品的动画,快速制造物品

2025/04/23 · Bny

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

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十八.地图全开(游戏中按Ctrl+1) 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容: 5 6TheInput:AddKeyUpHandler(KEY_1, function() 7 if TheInput:IsKeyDown(KEY_CTRL) then 8 local map = TheSim:FindFirstEntityWithTag("minimap") 9 local x,y,z = GetPlayer().Transform:GetWorldPosition() 10 map.MiniMap:ShowArea(x, y, z, 10000) 11 end 12end) 13 14 即可在游戏中按Ctrl + 1使地图全开

2025/04/23 · Bny

YN019-加大单格堆叠数量

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2十九.加大单格堆叠数量 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将以下内容: 5 STACK_SIZE_LARGEITEM = 10, 6 STACK_SIZE_MEDITEM = 20, 7 STACK_SIZE_SMALLITEM = 40, 8 9 替换为: 10 11 STACK_SIZE_LARGEITEM = 999, 12 STACK_SIZE_MEDITEM = 999, 13 STACK_SIZE_SMALLITEM = 999, 14 15 即可加大单格堆叠数量至999

2025/04/23 · Bny

YN020-增加主角物品条的格子

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2二十.增加主角物品条的格子 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/components/inventory.lua文件,将local MAXSLOTS = 15替换为local MAXSLOTS = 25 5 6 即可将主角物品条的格子由15个增加到25个

2025/04/23 · Bny

YN021-双层主角物品条(60格)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2二十一.双层主角物品条(60格) 3 4 1.用MT管理器打开游戏目录/assets/DLC0002/scripts/components/inventory.lua文件,将local MAXSLOTS = 15替换为local MAXSLOTS = 60 5 6 2.用MT管理器打开游戏目录/assets/scripts/widgets/inventorybar.lua文件,将self.bg:SetScale(1.15,1,1)替换为self.bg:SetScale(1.86,1.85,1) 7 8 3.将下列内容: 9 10 local num_intersep = math.floor(num_slots / 5) + 1 11 local total_w = (num_slots + num_equip)*(W) + (num_slots + num_equip - 2 - num_intersep) *(SEP) + INTERSEP*num_intersep 12 13 for k, v in ipairs(self.equipslotinfo) do 14 local slot = EquipSlot(v.slot, v.atlas, v.image, self.owner) 15 self.equip[v.slot] = self.toprow:AddChild(slot) 16 local x = -total_w/2 + (num_slots)*(W)+num_intersep*(INTERSEP - SEP) + (num_slots-1)*SEP + INTERSEP + W*(k-1) + SEP*(k-1) 17 slot:SetPosition(x,0,0) 18 table.insert(eslot_order, slot) 19 20 local item = self.owner.components.inventory:GetEquippedItem(v.slot) 21 if item then 22 slot:SetTile(ItemTile(item)) 23 end 24 25 end 26 27 for k = 1,num_slots do 28 local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory) 29 self.inv[k] = self.toprow:AddChild(slot) 30 local interseps = math.floor((k-1) / 5) 31 local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1)*W + (k-1)*SEP 32 slot:SetPosition(x,0,0) 33 34 slot.top_align_tip = W*0.5 + YSEP 35 36 local item = self.owner.components.inventory:GetItemInSlot(k) 37 if item then 38 slot:SetTile(ItemTile(item)) 39 end 40 41 end 42 43 替换为: 44 45 local num_intersep = math.floor(num_slots / 10) + 1 46 local total_w = (num_slots -30.85)*(W) + (num_slots -30.85 - 2 - num_intersep) *(SEP) + INTERSEP*num_intersep 47 48 for k, v in ipairs(self.equipslotinfo) do 49 local slot = EquipSlot(v.slot, v.atlas, v.image, self.owner) 50 self.equip[v.slot] = self.toprow:AddChild(slot) 51 local x = -total_w/2 + (num_slots*0+14.07)*(W)+num_intersep*(INTERSEP - SEP) + (num_slots-1)*SEP + INTERSEP + W*(k-1) + SEP*(k-1) 52 slot:SetPosition(x+341,190,0) 53 table.insert(eslot_order, slot) 54 55 local item = self.owner.components.inventory:GetEquippedItem(v.slot) 56 if item then 57 slot:SetTile(ItemTile(item)) 58 end 59 60 end 61 62 for k = 1,30 do 63 local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory) 64 self.inv[k] = self.toprow:AddChild(slot) 65 local interseps = math.floor((k-1) / 10) 66 local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1)*W + (k-1)*SEP 67 slot:SetPosition(x,0,0) 68 69 local item = self.owner.components.inventory:GetItemInSlot(k) 70 if item then 71 slot:SetTile(ItemTile(item)) 72 end 73 74 end 75 76 for k = 31,60 do 77 local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory) 78 self.inv[k] = self.toprow:AddChild(slot) 79 local interseps = math.floor((k-1-30) / 10) 80 local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1-30)*W + (k-1-30)*SEP 81 slot:SetPosition(x,80,0) 82 83 local item = self.owner.components.inventory:GetItemInSlot(k) 84 if item then 85 slot:SetTile(ItemTile(item)) 86 end 87 88 end 89 90 即可获得双层主角物品条(60格),注意必须将游戏设置(options) - (Settings) - HUD size项设为0,即显示最小物品条,才可完整显示60格哦

2025/04/23 · Bny