饥荒
[DST]皮肤系统
RICK  [开发者] 2023 年 4 月 6 日 下午 8:26
Modded Skins Import Tutorial如何导入mod皮肤
The skins you import must be one of these categories: character base, item.
The animation file must be using zip format instead of dyn.
Assets
Put animation assets in anim/.
Put inventory item atlas and image correctly.
Put everything else correctly.
Load them yourself. Typically you load ANIM, IMAGE, ATLAS and ATLAS_BUILD.
Call RegisterInventoryItemAtlas as in DST. You may still need to hash.
Skin API
Call CreatePrefabSkin() as in DST.
You don't need to specify assets because I will not load it for you.
You don't need a init_fn as what Glassic API requires.
Skin Function
You need to write SKINFNS.xxx_init_fn and SKINFNS.xxx_clear_fn instead of putting them in global scope.
If your skin has fx, put it in SKINFXFNS. Also you may combine it into SKINFNS, but remember when a placer is spawned, SKINFXFNS will not be touched.
However, unlike DST, it is OK not to write any init_fn, it will naturally fall back to basic_init_fn.
< >
正在显示第 1 - 3 条,共 3 条留言
Astronia 2023 年 4 月 8 日 上午 4:38 
I'm sorry I'm stupid, but I still don't understand how to import the skins from DST to DS :steamsad:
RICK  [开发者] 2023 年 4 月 8 日 上午 4:50 
Are you familiar with mod development? This tutorial is written for people having basic knowledge about how to make mod skins in DST.
Astronia 2023 年 4 月 9 日 上午 12:33 
Oh, no I do not have basic knowledge about mod skins! I'm so sorry, I'm really stupid
I'll go take a look first and come back if I still do not understand! Thank you RICK :steamhappy:
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50