valheim-modding / valheimlib Goto Github PK
View Code? Open in Web Editor NEWA library to facilitate valheim modding
License: MIT License
A library to facilitate valheim modding
License: MIT License
using Mocks for Piece is allready a good way. but i also think they deserve a own Custom Piece Helper like Custom Items/Recipes and would be a great addition to all the modders using ValheimLib to add their Custom buildingpieces/structures/craftingstations/seed etc :D
This conflicts with JotunLib. Could you please try to find a fix? Thanks
(leaving a note at @JotunLib too)
There seems to be a timing problem when adding pieces at ObjectDBHelper.OnAfterInit
. When you use the InstantiateClone()
extension method, it is added to the NetworkedModdedPrefabs
list. But On.ZNetScene.Awake
is called before that, so it is never added to the m_namedPrefabs
Dictionary.
If you then load a world with a builded piece everything works, until you use a portal. If you get back the console prints "Destroyed invalid prefab ZDO:-918684522:6199830" (not always the same number) and the piece is gone.
I made a hotfix to my pressure plate mod where the item is added right bevore ZNetScene.Awake
is called. I have not much time at the moment, so maybe you can take a deeper look at this bug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.