Don't Starve Together

Don't Starve Together

182 ratings
Glassic API
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
85.340 KB
19 Jun, 2021 @ 11:06pm
13 Jun @ 8:53pm
149 Change Notes ( view )

Subscribe to download
Glassic API

In 1 collection by 小鸭momo
饥荒破解版
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:
25 Comments
小鸭momo  [author] 5 Dec, 2024 @ 5:03am 
@Applejack 本模组只保证与官方兼容,不保证与第三方模组的兼容性,有需求可以联系对方。
Applejack 3 Dec, 2024 @ 12:45am 
在两者都启用的情况下这个mod提供的皮肤会透明并制作就会报错
Applejack 3 Dec, 2024 @ 12:44am 
@小鸭momo 它只是和Modded Skins冲突,关掉后者之后就不会闪退了
小鸭momo  [author] 30 Nov, 2024 @ 8:58pm 
@Applejack Please describe what's happening before game crashed.
Applejack 29 Nov, 2024 @ 11:22pm 
[05:01:57]: [string "../mods/workshop-2521851770/utils/skinhandl..."]:128: attempt to index field '?' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-2521851770/utils/skinhandler.lua:148 in (method) ReskinEntity (Lua) <142-151>
scripts/prefabs/reskin_tool.lua:181 in (field) fn (Lua) <131-201>
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415>
scripts/update.lua:240 in () ? (Lua) <224-298>

[05:01:57]: Could not find anim build ms_spear_obsidian_spinner
小鸭momo  [author] 20 Oct, 2024 @ 5:54am 
@FishCakesVT Read docs in modmain.
FishcakesVT 16 Oct, 2024 @ 3:43pm 
how does it work?
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
小鸭momo  [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.