故障现象
《饥荒》背包格子增大至39格
解决方法
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\backpack.lua文件,
1.将下列内容:
for y = 0, 3 do
table.insert(slotpos, Vector3(-162, -y*75 + 114 ,0))
table.insert(slotpos, Vector3(-162 +75, -y*75 + 114 ,0))
替换为:
for y = 0, 12 do
table.insert(slotpos, Vector3(-162, -y*75 + 435 ,0))
table.insert(slotpos, Vector3(-162 +75, -y*75 + 435 ,0))
table.insert(slotpos, Vector3(-162 +150, -y*75 + 435 ,0))
2.将下列内容:
inst.components.container.widgetanimbank = "ui_backpack_2x4"
inst.components.container.widgetanimbuild = "ui_backpack_2x4"
inst.components.container.widgetpos = Vector3(-5,-70,0)
替换为:
--inst.components.container.widgetanimbank = "ui_backpack_2x4"
--inst.components.container.widgetanimbuild = "ui_backpack_2x4"
inst.components.container.widgetpos = Vector3(-25,-50,0)
即可让普通背包格子增大至39格