首先玩家要在手機里安裝mt管理器2.0,百度搜索下就有,然后使用mt管理器按照下面教程操作:
一.mt管理器打開儲存盤/android/obb/com.kleientertainment.doNotStarvePocket/main.19.com.kleientertainment.doNotStarvePocket.obb文件,打開方式選zip查看
打開scripts/widgets/badge.lua用XML編輯
1.找到self:SetScale(1,1,1)
替換為self:SetScale(0.9,0.9,0.9)
嫌大可以全改0.8或者更小
2.找到
local usedLanguage = TheSim:GetUsedLanguage()
if usedLanguage == "korean" or usedLanguage == "simplified_chinese" or usedLanguage == "traditional_chinese" or usedLanguage == "japanese" then
self.num = self:AddChild(Text(NUMBERFONT, 33))
else
self.num = self:AddChild(Text(BODYTEXTFONT, 33))
end
self.num:SetHAlign(ANCHOR_MIDDLE)
self.num:SetPosition(5, 0, 0)
self.num:Hide()
替換為
self.num = self:AddChild(Text(BODYTEXTFONT, 28))
self.num:SetHAlign(ANCHOR_MIDDLE)
self.num:SetScale(1,.8,1)
self.num:SetPosition(0, -40.5, 0)
self.num:Show()
以上兩步是修改字體大小,可改可不改,也可以根據(jù)自己的喜好調(diào)整。
3.找到
function Badge:OnGainFocus()
Badge._base.OnGainFocus(self)
self.num:Show()
end
function Badge:OnLoseFocus()
Badge._base.OnLoseFocus(self)
self.num:Hide()
end
替換為
--function Badge:OnGainFocus()
-- Badge._base.OnGainFocus(self)
-- self.num:Show()
--end
--function Badge:OnLoseFocus()
-- Badge._base.OnLoseFocus(self)
-- self.num:Hide()
--end
或直接刪除
4.最后的return Badge
替換為
function Badge:SetTemperature(val)
self.num:SetString("溫度:"..tostring(math.ceil(val/2)))
end
function Badge:SetNaughty(val, max)
self.num:SetString(tostring(val).."/"..tostring(max))
end
return Badge
退出保存,更新選是。
二.打開DLC0001/scripts/components/kramped.lua
1.文首插入
local naughtyness = 0
local limit = 0
改完記得換行
2.找到
self.actions = 0
self.threshold = nil
替換為
self.actions = 0
self.threshold = 30
naughtyness = self.actions --mod
limit = self.threshold --mod
有些語錄后面的--mod代表數(shù)顯mod加入的內(nèi)容,方便你們學(xué)習(xí)跟修改
3.找到
function Kramped:OnLoad(data)
self.actions = data.actions or self.actions
self.threshold = data.threshold or self.threshold
end
替換為
function Kramped:OnLoad(data)
self.actions = data.actions or self.actions
self.threshold = data.threshold or self.threshold
naughtyness = self.actions --mod
limit = self.threshold --mod
end
4.找到
function Kramped:OnUpdate(dt)
if self.actions > 0 then
self.timetodecay = self.timetodecay - dt
if self.timetodecay < 0 then
self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD
self.actions = self.actions - 1
end
end
end
替換為
function Kramped:OnUpdate(dt)
if self.actions > 0 then
self.timetodecay = self.timetodecay - dt
if self.timetodecay < 0 then
self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD
self.actions = self.actions - 1
naughtyness = self.actions --mod
self:DoDelta() --mod
end
end
end
5.找到
function Kramped:OnNaughtyAction(how_naughty)
if TUNING.KRAMPUS_INCREASE_RAMP < 1 or TUNING.KRAMPUS_THRESHOLD_VARIANCE < 1 then return end
if self.threshold == 30 then
self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)
end
self.actions = self.actions + (how_naughty or 1)
self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD
if self.actions >= self.threshold and self.threshold > 0 then
local day = GetClock().numcycles
local num_krampii = 1
self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)
self.actions = 0
if day > TUNING.KRAMPUS_INCREASE_LVL1 then
num_krampii = num_krampii + math.random(TUNING.KRAMPUS_INCREASE_RAMP)
elseif day > TUNING.KRAMPUS_INCREASE_LVL2 then
num_krampii = num_krampii + 1 + math.random(TUNING.KRAMPUS_INCREASE_RAMP)
end
for k = 1, num_krampii do
self:MakeAKrampus()
end
else
self.inst:DoTaskInTime(1 + math.random()*2, function()
local snd = CreateEntity()
snd.entity:AddTransform()
snd.entity:AddSoundEmitter()
snd.persists = false
local theta = math.random() * 2 * PI
local radius = 15
local offset = Vector3(self.inst.Transform:GetWorldPosition()) + Vector3(radius * math.cos( theta ), 0, -radius * math.sin( theta ))
snd.Transform:SetPosition(offset.x,offset.y,offset.z)
local left = self.threshold - self.actions
if left < 5 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl3")
elseif left < 15 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl2")
elseif left < 20 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl1")
end
snd:Remove()
end)
end
end
替換為
function Kramped:OnNaughtyAction(how_naughty)
if TUNING.KRAMPUS_INCREASE_RAMP < 1 or TUNING.KRAMPUS_THRESHOLD_VARIANCE < 1 then return end
if self.threshold == 30 then
self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)
end
self.actions = self.actions + (how_naughty or 1)
self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD
naughtyness = self.actions --mod
if self.actions >= self.threshold and self.threshold > 0 then
local day = GetClock().numcycles
local num_krampii = 1
self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)
self.actions = 0
limit = self.threshold --mod
naughtyness = self.actions --mod
if day > TUNING.KRAMPUS_INCREASE_LVL1 then
num_krampii = num_krampii + math.random(TUNING.KRAMPUS_INCREASE_RAMP)
elseif day > TUNING.KRAMPUS_INCREASE_LVL2 then
num_krampii = num_krampii + 1 + math.random(TUNING.KRAMPUS_INCREASE_RAMP)
end
for k = 1, num_krampii do
self:MakeAKrampus()
end
else
self.inst:DoTaskInTime(1 + math.random()*2, function()
local snd = CreateEntity()
snd.entity:AddTransform()
snd.entity:AddSoundEmitter()
snd.persists = false
local theta = math.random() * 2 * PI
local radius = 15
local offset = Vector3(self.inst.Transform:GetWorldPosition()) + Vector3(radius * math.cos( theta ), 0, -radius * math.sin( theta ))
snd.Transform:SetPosition(offset.x,offset.y,offset.z)
local left = self.threshold - self.actions
if left < 5 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl3")
elseif left < 15 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl2")
elseif left < 20 then
snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl1")
end
snd:Remove()
end)
end
self:DoDelta() --mod
end
6.文尾return Kramped前一行
插入
function Kramped:GetNaughtyness()
return naughtyness
end
function Kramped:GetLimit()
return limit
end
function Kramped:DoDelta()
self.inst:PushEvent("naughtydelta")
end
退出保存更新選是.
三.打開DLC0001/scripts/widgets/statusdisplays.lua
1.找到local MoistureMeter = require "widgets/moisturemeter"
后面插入一行
local Badge = require "widgets/badge"
local kramped = require "components/kramped"
local NaughtyBadge = Class(Badge, function(self, owner)
Badge._ctor(self, "naughty", owner)
end)
local TemperatureBadge = Class(Badge, function(self, owner)
Badge._ctor(self, "temperature", owner)
end)
2.找到self.heart:SetPercent(self.owner.components.health:GetPercent(), self.owner.components.health.maxhealth, self.owner.components.health:GetPenaltyPercent())
后面插入一行
self.naughty = self:AddChild(NaughtyBadge(owner))
self.naughty:SetPosition(-110,15,0)
self.naughty:SetNaughty(self.owner.components.kramped:GetNaughtyness(), self.owner.components.kramped:GetLimit())
self.temperature = self:AddChild(TemperatureBadge(owner))
self.temperature:SetPosition(30,15,0)
self.temperature:SetTemperature(self.owner.components.temperature:GetCurrent())
3.找到
if GetWorld() and GetWorld():IsCave() then
self.brain:SetPosition(30, -0,0)
self.stomach:SetPosition(-110, -0,0)
self.heart:SetPosition(-40, -0,0)
self.moisturemeter:SetPosition(30, -70,0)
end
替換為
if GetWorld() and GetWorld():IsCave() then
self.brain:SetPosition(30, -40,0)
self.stomach:SetPosition(-110, -40,0)
self.heart:SetPosition(-40, -70,0)
self.moisturemeter:SetPosition(-40, 0,0)
end
這里是修改進入洞穴后幾個槽的位置,同樣是可改可不改,而且我改的也不好,位置有點不對,建議自己調(diào)整
4.找到
self.inst:ListenForEvent("sanitydelta", function(inst, data) self:SanityDelta(data) end, self.owner)
后面插入一行
self.inst:ListenForEvent("temperaturedelta", function(inst, data) self.temperature:SetTemperature(self.owner.components.temperature:GetCurrent()) end, self.owner)
self.inst:ListenForEvent("naughtydelta", function(inst) self.naughty:SetNaughty(self.owner.components.kramped.GetNaughtyness(), self.owner.components.kramped.GetLimit()) end, self.owner)
退出保存更新,進入游戲數(shù)據(jù)顯示即修改完成。
ps:修改還是有風(fēng)險的,如何不成功有可能損壞數(shù)據(jù)包,當(dāng)進入游戲后,系統(tǒng)會提示玩家在重新下載數(shù)據(jù)包,所以在試之前建議先備份下數(shù)據(jù)包。
好了以上就是小編給大家?guī)淼酿嚮氖謾C版狀態(tài)顯示修改 手機版mod移植。
游戲停服改單機?外媒稱今年打響對抗廠商第一槍!
212月23日游戲早報:《幻獸帕魯》聯(lián)動《泰拉瑞亞》!
3《黑神話:悟空》獲IGN社區(qū)投票獎“年度最佳游戲”獎
4可惜了!《潛行者2》目前沒計劃移植到索尼PS5平臺
5劍星?山寨劍星?韓國新作《DISORDER》上架PS商店
6差點關(guān)門 《完美音浪》開發(fā)商Tango工作室現(xiàn)在十分樂觀
7IGN年度動作游戲公布:《波斯王子》擊敗《黑神話》
8外媒呼吁CDPR:尊重希里雙性戀身份,別讓玩家心寒
9又來擠牙膏,Switch 2模型視頻曝光:機身屏幕雙雙升級
10csgo選手Zeus深陷逆天丑聞!出軌CN女粉還拍攝視頻炫耀!
王者榮耀9周年慶直售返廠皮膚有哪些 九周年限定皮膚直售返場一覽
2王者榮耀王昭君映山客皮膚什么時候上線 9周年王昭君映皮膚上線時間一覽
3王者榮耀九周年王昭君傳說皮多少錢 9周年王昭君映山客皮膚價格一覽
4王者榮耀9周年慶桑啟皮膚多少錢 桑啟鳴野蒿傳說皮價格一覽
5王者榮耀九周年王昭君皮膚是什么品質(zhì) 王者9周年王昭君皮膚一覽
6王者榮耀艾琳史詩皮膚多少錢 艾琳陌上桑皮膚價格一覽
7王者榮耀九周年限免英雄及皮膚有哪些 9周年慶返場投票候選池英雄及皮膚
8王者榮耀九周年慶返場皮膚有哪些 9周年慶限定皮膚返場一覽
9王者榮耀薔薇珍寶閣皮膚有哪些 薔薇珍寶閣福利一覽
10王者榮耀桑啟傳說皮怎么免費領(lǐng)取 桑啟鳴野蒿傳說皮領(lǐng)取方法