文档库 最新最全的文档下载
当前位置:文档库 › 饥荒改存档,改游戏数据,包含海滩

饥荒改存档,改游戏数据,包含海滩

地图全开(游戏中按Ctrl+1)
用记事本打开游戏目录\data\DLC0002\scripts\prefabs\player_common.lua文件,在inst:AddComponent("resurrectable")下一行插入以下内容:
TheInput:AddKeyUpHandler(KEY_1, function()
if TheInput:IsKeyDown(KEY_CTRL) then
local map = TheSim:FindFirstEntityWithTag("minimap")
local x,y,z = GetPlayer().Transform:GetWorldPosition()
map.MiniMap:ShowArea(x, y, z, 10000)
end
end)
即可在游戏中按Ctrl + 1使地图全开
用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将以下内容:
STACK_SIZE_LARGEITEM = 10,
STACK_SIZE_MEDITEM = 20,
STACK_SIZE_SMALLITEM = 40,
替换为:
STACK_SIZE_LARGEITEM = 999,
STACK_SIZE_MEDITEM = 999,
STACK_SIZE_SMALLITEM = 999,
即可加大单格堆叠数量至999

农田收获更多产品
用记事本打开游戏目录\data\DLC0002\scripts\components\crop.lua 文件,将以下内容: https://www.wendangku.net/doc/185680503.html,ponents.inventory:Give Item(product) 替换为: https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product_prefab)) https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product_prefab)) https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product_prefab)) 即 可 一 次 收 获 3 个 产 品 , 想 收 获 多 少 , 就 复 制 多 少 行 https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product_prefab))即可
煮一锅收多个料理
用记事本打开游戏目录\data\DLC0002\scripts\components\stewer.lua文件,将以下内容:
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
替换为:
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
即可煮一锅收3个料理,想收多少,就复制多少行https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))即可
冰箱永久保鲜
用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将
PERISH_FRIDGE_MULT = .5,替换为PERISH_FRIDGE_MULT = 0,
即可让放入冰箱的食物永久保鲜。如果将0改为负数比如-5,则可使不新鲜的食物回复新鲜度
晾肉架一次收多块干肉
用记事本打开游戏目录\data\DLC0002\scripts\components\dryer.lua文件,将以下内容:
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
替换为:
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))
即可晾1块肉收3块干肉,想收多少,就复制多少行https://www.wendangku.net/doc/185680503.html,ponents.inventory:GiveItem(SpawnPrefab(self.product))即可
收获蜂箱不被蛰
用记事本打开游戏目录\data\D

LC0002\scripts\prefabs\beebox.lua文件,将https://www.wendangku.net/doc/185680503.html,ponents.childspawne
r:ReleaseAllChildren(picker)替换为https://www.wendangku.net/doc/185680503.html,ponents.childspawner:ReleaseAllChildren(picker)
即可在收获蜂箱不被蛰
背包可冷藏食品
1.普通背包可冷藏食品:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\backpack.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")
2.小猪包可冷藏食品:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\piggyback.lua文件,在inst:AddComponent("inspectable")的下一行插入inst:AddTag("fridge")
花瓣种花(花可移植)
用记事本打开游戏目录\data\DLC0002\scripts\prefabs\petals.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab("flower").Transform:SetPosition(pt.x, pt.y, pt.z)
https://www.wendangku.net/doc/185680503.html,ponents.stackable:Get():Remove()
end
inst:AddComponent("deployable")
https://www.wendangku.net/doc/185680503.html,ponents.deployable.ondeploy = OnDeploy
即可用花瓣种花,使花可方便移植
用蘑菇种蘑菇(蘑菇可移植)
用记事本打开游戏目录\data\DLC0002\scripts\prefabs\mushrooms.lua文件,inst.AnimState:PlayAnimation(data.animname.."_cap")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab(data.animname.."_mushroom").Transform:SetPosition(pt.x, pt.y, pt.z) https://www.wendangku.net/doc/185680503.html,ponents.stackable:Get():Remove()
end
inst:AddComponent("deployable")
https://www.wendangku.net/doc/185680503.html,ponents.deployable.ondeploy = OnDeploy
即可用红蘑菇种红蘑菇,用蓝蘑菇种蓝蘑菇,用绿蘑菇种绿蘑菇,即蘑菇可移植
同时携带多个背包(背包可库存)
1.同时携带多个普通背包:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\backpack.lua文件,将https://www.wendangku.net/doc/185680503.html,ponents.inventoryitem.cangoincontainer = false替换为https://www.wendangku.net/doc/185680503.html,ponents.inventoryitem.cangoincontainer = true
2.同时携带多个小猪包:用记事本打开游戏目录\data\DLC0002\scripts\prefabs\piggyback.lua文件,将https://www.wendangku.net/doc/185680503.html,ponents.inventoryitem.cangoincontainer = false替换为https://www.wendangku.net/doc/185680503.html,ponents.inventoryitem.cangoincontainer = true
如果游戏崩溃了,就修改回去就行。
复活石无限使用(主角永生)
用记事本打开游戏目录\data\DLC0002\scripts\prefabs\resurrectionstone.lua文件,在inst:Remove()的下一行插入以下内容:
SpawnPrefab("resurrectionstone").Transform:SetPosition(inst.Transform:GetWorldPosition())
主角复活后,再点身下的复活石,可使复活石再次完整
提高主角攻击力
用记事本打开游戏目录\data\DLC0002\scripts\tuning.lua文件,将local wilson_attack = 34替换为local wilson_attack = 500
即可将主角攻击力由34提高到500,数字可自行调整
快速制造物品
用记事本打开游戏目录\data\DLC0002\scripts\actions.lu

a文件,将BUILD = Action(),替换为BUILD = Action(0, true),
即可跳过制造物品的动画,快速制造物品
主角自动回血
用记事本打开游戏目录\data\DLC0002\scripts\prefabs\player_common.lua文件,在inst.c
omponents.health:SetMaxHealth(TUNING.WILSON_HEALTH)的下一行插入以下内容:
https://www.wendangku.net/doc/185680503.html,ponents.health:StartRegen(30, 10)
即可让主角自动回血,其中30为血量,10为10秒回血一次,可自行调整
全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用)
1.用记事本打开游戏目录\data\DLC0002\scripts\widgets\itemtile.lua文件,将下列内容:
if https://www.wendangku.net/doc/185680503.html,ponents.fueled then
self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.fueled:GetPercent())
end
if https://www.wendangku.net/doc/185680503.html,ponents.finiteuses then
self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.finiteuses:GetPercent())
end
if https://www.wendangku.net/doc/185680503.html,ponents.perishable then
if self:HasSpoilage() then
self:SetPerishPercent(https://www.wendangku.net/doc/185680503.html,ponents.perishable:GetPercent())
else
self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.perishable:GetPercent())
end
end
if https://www.wendangku.net/doc/185680503.html,ponents.armor then
self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.armor:GetPercent())
end
替换为:
--if https://www.wendangku.net/doc/185680503.html,ponents.fueled then
--self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.fueled:GetPercent())
--end
--if https://www.wendangku.net/doc/185680503.html,ponents.finiteuses then
--self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.finiteuses:GetPercent())
--end
if https://www.wendangku.net/doc/185680503.html,ponents.perishable then
if self:HasSpoilage() then
self:SetPerishPercent(https://www.wendangku.net/doc/185680503.html,ponents.perishable:GetPercent())
else
self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.perishable:GetPercent())
end
end
--if https://www.wendangku.net/doc/185680503.html,ponents.armor then
--self:SetPercent(https://www.wendangku.net/doc/185680503.html,ponents.armor:GetPercent())
--end
2.用记事本打开游戏目录\data\scripts\components\finiteuses.lua文件,将self:SetUses(self.current - (num or 1))替换为self:SetUses(self.current - 0)
3.用记事本打开游戏目录\data\DLC0002\scripts\components\fueled.lua文件,将self.consuming = true替换为self.consuming = false
4.用记事本打开游戏目录\data\scripts\components\armor.lua文件,将下列内容:
function Armor:SetCondition(amount)
self.condition = amount
替换为:
function Armor:SetCondition(amount)
self.condition = self.maxcondition
即可让全部物品无限使用。其中火堆和石头营火会无限燃烧,直到睡过


相关文档
相关文档 最新文档