Don't Starve Together

Don't Starve Together

170 vurderinger
Glassic API
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Filstørrelse
Lagt ut
Oppdatert
89.868 KB
19. juni 2021 kl. 23.06
16. aug. kl. 21.13
147 endringslogger ( vis )

Abonner for å laste ned
Glassic API

I 1 samling av 小鸭momo
饥荒破解版
4 gjenstander
Beskrivelse
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 kommentarer
小鸭momo  [skaper] 20. okt. kl. 5.54 
@FishCakesVT Read docs in modmain.
FishCakesVT 16. okt. kl. 15.43 
how does it work?
St. Monc 17. juni 2023 kl. 11.00 
how can i make a mod?
Haruhi Kawaii (ෆ´ ˘ `ෆ) 19. mars 2023 kl. 8.11 
@Civi Thank you very much, all problem solved
小鸭momo  [skaper] 19. mars 2023 kl. 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. mars 2023 kl. 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  [skaper] 18. mars 2023 kl. 10.26 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Show me your code or video about your question. Thanks.
Haruhi Kawaii (ෆ´ ˘ `ෆ) 18. mars 2023 kl. 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  [skaper] 17. mars 2023 kl. 20.10 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) As for GlassicAPI.BasicInitFn, it shall only be used in CreatePrefabSkin, and param "skin_name" is no need anymore.
小鸭momo  [skaper] 17. mars 2023 kl. 19.55 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Fix missing "anim/glassicrarities.zip".