tModLoader

tModLoader

1,011 个评价
InnoVault
   
奖励
收藏
已收藏
取消收藏
模组功能: 模组类库
tModLoader版本: 1.4.4
文件大小
发表于
更新日期
1.207 MB
2024 年 9 月 27 日 上午 1:38
10 月 13 日 上午 9:00
86 项改动说明 ( 查看 )

订阅以下载
InnoVault

在 HoCha113 的 2 个合集中
Moder Tools
10 件物品
Overhaul Journey
17 件物品
描述
InnoVault 是一个API模组,它为开发者提供一些代码支持,如UI、Tile Processor、Particle、自定义NBT保存加载等基本API支持

如果您想了解更多,请访问 InnoVault 开源库 [github.com],在此您可以下载InnoVault的源代码

如果您想学习使用InnoVault提供的API,请浏览 InnoVault Wiki [github.com],这里有对API的基本介绍和使用演示

InnoVault Example Mod 演示了InnoVault提供的API的使用方法,开发者可以以InnoVault Example Mod的源代码为实际参考

您可以在游戏内直接提取到InnoVault Example Mod的完整项目代码,也可以前往开源库下载源代码: InnoVault Example 开源库 [github.com]

为偏向于使用英语的开发者准备的英文注释版本: InnoVault Example English Annotated Version [github.com]

您也可以选择订阅InnoVault Example Mod InnoVault Example 创意工坊主页
引用自 tModLoader InnoVault
Developed By HoCha113
热门讨论 查看全部(1)
0
10 月 4 日 下午 10:57
1
刘綦鲅玖
105 条留言
HoCha113  [作者] 10 月 7 日 下午 12:18 
@aoioiobit
yep
aoioiobit 10 月 7 日 上午 12:53 
Has this mod been updated? I saw that this mod was updated to 1.9.70 today but i might be missunderstanding cuz im not that really familiar with steam
aoioiobit 10 月 5 日 上午 3:47 
sounds good. finally, i can play tmodloader again
HoCha113  [作者] 10 月 5 日 上午 3:34 
@aoioiobit
Yes, I’ll try to fix it. Although I haven’t been able to reproduce the issue on my end, I can use a safer copy-based iteration in the API, which should prevent this kind of collection access conflict. I’ll release a patch for this soon.
aoioiobit 10 月 5 日 上午 1:57 
tell me if you are trying to fix the problem so i wont feel i get ghosted
aoioiobit 10 月 4 日 下午 11:24 
im not sure that is ai right or nah since im not a programmer at all
aoioiobit 10 月 4 日 下午 11:23 
It just crashed randomly. The Auto Heal mod, as its name implies, automatically uses a healing potion when my HP gets low enough. ai said "AutoHealMod.AutoHealCode.PostUpdateBuffs() was running. This suggests that the AutoHealMod was performing its function, likely scanning your inventory to find and use a healing potion.

At the same time, InnoVault.GameSystem.PlayerRebuildLoader.CanUseItem() was also running. This shows that the InnoVault mod was checking your items for its own purposes.

The crash occurred because AutoHealMod was likely trying to use (and thus remove) an item from your inventory while InnoVault was actively trying to look at all of the items in that same inventory."
HoCha113  [作者] 10 月 4 日 上午 7:20 
@aoioiobit
How did you trigger this error?
aoioiobit 10 月 4 日 上午 5:03 
seems like your mod is incompatible with https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2811781981 . can you fix it?
aoioiobit 10 月 4 日 上午 5:03 
Unhandled Exception
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
at InnoVault.GameSystem.PlayerRebuildLoader.CanUseItem(Item item) in InnoVault\GameSystem\PlayerRebuildLoader.cs:line 486
at Terraria.ModLoader.CombinedHooks.CanUseItem(Player player, Item item) in tModLoader\Terraria\ModLoader\CombinedHooks.cs:line 61
at Terraria.Player.QuickHeal_GetItemToUse() in tModLoader\Terraria\Player.cs:line 3915
at AutoHealMod.AutoHealCode.PostUpdateBuffs() in AutoHealMod\AutoHealCode.cs:line 23
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()