Don't Starve Together

Don't Starve Together

168 oy
Glassic API
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Dosya Boyutu
Gönderilme
Güncellenme
89.868 KB
19 Haz 2021 @ 23:06
16 Ağu @ 21:13
147 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Glassic API

忧郁小鸭鸭 tarafından 1 koleksiyonda
饥荒破解版
4 öğe
Açıklama
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:
18 Yorum
St. Monc 17 Haz 2023 @ 11:00 
how can i make a mod?
Haruhi Kawaii (ෆ´ ˘ `ෆ) 19 Mar 2023 @ 8:11 
@Civi Thank you very much, all problem solved
忧郁小鸭鸭  [yaratıcı] 19 Mar 2023 @ 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 (ෆ´ ˘ `ෆ) 18 Mar 2023 @ 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
忧郁小鸭鸭  [yaratıcı] 18 Mar 2023 @ 10:26 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Show me your code or video about your question. Thanks.
Haruhi Kawaii (ෆ´ ˘ `ෆ) 18 Mar 2023 @ 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
忧郁小鸭鸭  [yaratıcı] 17 Mar 2023 @ 20:10 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) As for GlassicAPI.BasicInitFn, it shall only be used in CreatePrefabSkin, and param "skin_name" is no need anymore.
忧郁小鸭鸭  [yaratıcı] 17 Mar 2023 @ 19:55 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Fix missing "anim/glassicrarities.zip".
Haruhi Kawaii (ෆ´ ˘ `ෆ) 17 Mar 2023 @ 19:41 
I tried creating item skins and character skins, everything works fine except for inventory image I tried GlassicAPI.BasicInitFn(inst, "skin_name") if in modmain it gives an error
2521851770/modmain.lua"]:195: attempt to index local 'inst' (a nil value)
if using mod import it gives variable error 'inst' is not declared
Haruhi Kawaii (ෆ´ ˘ `ෆ) 17 Mar 2023 @ 19:37 
version:4.0.1 Could not find an asset matching anim/glassicrarities.zip in any of the search paths
After the update it seems that the avatar background color when choosing a character is not normal, normally it is green