Don't Starve Together

Don't Starve Together

170 értékelés
Glassic API
   
Díjazás
Kedvenc
Kedvenc
Törlés
Fájlméret:
Közzétéve:
Frissítve:
89.868 KB
2021. jún. 19., 23:06
aug. 16., 21:13
147 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
Glassic API

1 小鸭momo készítette gyűjteményben
饥荒破解版
4 elem
Leírás
PROHIBIT REPRODUCE TO WeGame

-> Github[github.com]

Glaasic API is a utility that helps you create a mod easier, or create an official-like skin.

Try it now!

Credits:
20 megjegyzés
小鸭momo  [készítő] okt. 20., 5:54 
@FishCakesVT Read docs in modmain.
FishCakesVT okt. 16., 15:43 
how does it work?
St. Monc 2023. jún. 17., 11:00 
how can i make a mod?
Haruhi Kawaii (ෆ´ ˘ `ෆ) 2023. márc. 19., 8:11 
@Civi Thank you very much, all problem solved
小鸭momo  [készítő] 2023. márc. 19., 6:07 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) I've seen that. Here's my suggestion.
1. Move "prefabskin.lua" from "scripts" to "main" to avoid compatibility issues.
2. Add a line "init_fn = GlassicAPI.BasicInitFn " in "CreatePrefabSkin(...)". e.g.
table.insert(prefabs, CreatePrefabSkin("kochosei_hat2", {
...
init_fn = GlassicAPI.BasicInitFn,
...
3. Comment line 9 in "prefabskin.lua".
-- GlassicAPI.SetOnequipSkinItem("kochosei_hat1", {"swap_object", "swap_hat", "swap_hat"})
* Because you have written "owner.AnimState:OverrideItemSkinSymbol" in OnEquip fn in "kochosei_hat1.lua", so you don't need to set onequipskinitem for it anymore. "GlassicAPI.SetOnequipSkinItem" is somehow a way to hack in items that are missing "owner.AnimState:OverrideItemSkinSymbol" in their OnEquip function.
Haruhi Kawaii (ෆ´ ˘ `ෆ) 2023. márc. 18., 22:41 
@Civi https://pastebin.com/GbgPyeZu
Video here https://gofile.io/d/LIWlvk , I have attached my mod in if you want to check more
小鸭momo  [készítő] 2023. márc. 18., 10:26 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Show me your code or video about your question. Thanks.
Haruhi Kawaii (ෆ´ ˘ `ෆ) 2023. márc. 18., 0:35 
@Civi How to add inventory image for item with skin? I tried quite a few ways but still the image basic prefab, also I found that Clean Sweeper seems to have an error when sweaping on skinned and equipable items will cause Clean Sweeper to use the anim of the item with the skin, weird
小鸭momo  [készítő] 2023. márc. 17., 20:10 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) As for GlassicAPI.BasicInitFn, it shall only be used in CreatePrefabSkin, and param "skin_name" is no need anymore.
小鸭momo  [készítő] 2023. márc. 17., 19:55 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Fix missing "anim/glassicrarities.zip".