jessinthecloud / ValheimJsonExporter

Read Unity object data for items and recipes, and write it to a JSON file
Do What The F*ck You Want To Public License
1 stars 0 forks source link

get unity icons/images #14

Open jessinthecloud opened 3 years ago

jessinthecloud commented 3 years ago

could it be in m_itemData.m_shared.m_icons?

// ItemDrop.cs
public Sprite GetIcon()
{
    return m_shared.m_icons[m_variant];
}
jessinthecloud commented 3 years ago

Probably easier to rip the assets: https://github.com/mafaca/UtinyRipper

jessinthecloud commented 3 years ago

Could take a look at this code

https://github.com/atravotum/rpgheim/blob/a4877c69098c5edcafb94dd6d275c65e4030bba6/RPGHeim/Managers/AssetManager.cs#L459

jessinthecloud commented 3 years ago

TinyRipper cannot read the assets :(

jessinthecloud commented 3 years ago

Try loading them? https://github.com/Valheim-Modding/Jotunn/blob/aa2f3d4e1e0e89d97fc260c64f227948190f5bec/JotunnLib/Documentation/home/tutorials/asset-loading.md