饥荒
自定义属于您自己的野外冒险!
创建并上传新模组以添加新角色、物品,和游戏机制到 Don't Starve。探索荒野生存新方式,或者向自己或他人发起挑战。单击此处以了解更多信息,并着手开始!
Oliarco 2020 年 5 月 4 日 上午 8:01
[Request Mod] Insulated Pack 8 Slots
It would be cool to craft this item without thinking that it cost a lot and that for most of the time probably is just worse than the backpack.
Add to this that for be acquired at least 1 year need to pass, and you can easily understand why i would like it to be just a direct upgrade of the backpack.
< >
正在显示第 1 - 4 条,共 4 条留言
Oliarco 2020 年 5 月 7 日 上午 10:36 
I edited this file:
C:\Program Files (x86)\Steam\steamapps\common\dont_starve\data\DLC0002\scripts\prefabs\icepack.lua

Here the code before and after:

Before:
inst.components.container.widgetanimbank = "ui_icepack_2x3"
inst.components.container.widgetanimbuild = "ui_icepack_2x3"

After:
inst.components.container.widgetanimbank = "ui_backpack_2x4"
inst.components.container.widgetanimbuild = "ui_backpack_2x4"

Will this makes the Insulated Pack have 8 slots?
I ask it because unfortunately i have no clue what i'm doing :(
Oliarco 2020 年 5 月 23 日 下午 9:00 
i found out myself my change doesn't works alone and that it works only in combination with another change.



On the same directory;
C:\Program Files (x86)\Steam\steamapps\common\dont_starve\data\DLC0002\scripts\prefabs\icepack.lua



Before
for y = 0, 2 do
table.insert(slotpos, Vector3(-162, -y*75 + 75 ,0))
table.insert(slotpos, Vector3(-162 +75, -y*75 + 75 ,0))
end


After
for y = 0, 3 do
table.insert(slotpos, Vector3(-162, -y*75 + 114 ,0))
table.insert(slotpos, Vector3(-162 +75, -y*75 + 114 ,0))
end



You'll need to change too the other code or else the insulated pack slots will looks glitchy.



same directory;
C:\Program Files (x86)\Steam\steamapps\common\dont_starve\data\DLC0002\scripts\prefabs\icepack.lua



Before:
inst.components.container.widgetanimbank = "ui_icepack_2x3"
inst.components.container.widgetanimbuild = "ui_icepack_2x3"


After:
inst.components.container.widgetanimbank = "ui_backpack_2x4"
inst.components.container.widgetanimbuild = "ui_backpack_2x4"



I leave here my discoveries so that if someonelse want to do the same changes and see this post he'll know how.
最后由 Oliarco 编辑于; 2020 年 7 月 5 日 上午 11:20
Astroneer 2021 年 7 月 30 日 下午 8:15 
yes
Oliarco 2021 年 7 月 31 日 上午 12:59 
Yes what?

THIS?
最后由 Oliarco 编辑于; 2021 年 7 月 31 日 上午 1:02
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50