Don't Starve Together

Don't Starve Together

168 ratings
Glassic API
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
89.868 KB
19 Jun, 2021 @ 11:06pm
16 Aug @ 9:13pm
147 Change Notes ( view )

Subscribe to download
Glassic API

In 1 collection by 忧郁小鸭鸭
饥荒破解版
4 items
Description
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 Comments
St. Monc 17 Jun, 2023 @ 11:00am 
how can i make a mod?
Haruhi Kawaii (ෆ´ ˘ `ෆ) 19 Mar, 2023 @ 8:11am 
@Civi Thank you very much, all problem solved
忧郁小鸭鸭  [author] 19 Mar, 2023 @ 6:07am 
@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 @ 10:41pm 
@Civi https://pastebin.com/GbgPyeZu
Video here https://gofile.io/d/LIWlvk , I have attached my mod in if you want to check more
忧郁小鸭鸭  [author] 18 Mar, 2023 @ 10:26am 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Show me your code or video about your question. Thanks.
Haruhi Kawaii (ෆ´ ˘ `ෆ) 18 Mar, 2023 @ 12:35am 
@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
忧郁小鸭鸭  [author] 17 Mar, 2023 @ 8:10pm 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) As for GlassicAPI.BasicInitFn, it shall only be used in CreatePrefabSkin, and param "skin_name" is no need anymore.
忧郁小鸭鸭  [author] 17 Mar, 2023 @ 7:55pm 
@Haruhi Kawaii (*ෆ´ ˘ `ෆ*) Fix missing "anim/glassicrarities.zip".
Haruhi Kawaii (ෆ´ ˘ `ෆ) 17 Mar, 2023 @ 7:41pm 
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 @ 7:37pm 
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