Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Items #2

@leonarudo

Description

@leonarudo

Progress

  • Custom Items
  • Custom Sprite
  • Custom Sprite (AssetBundle)
  • Custom Prefab (AssetBundle)
  • Custom Prefab/Mesh (OBJ)

last updated: 28.09.2024

Progress Doc

Custom Items using build in possibilities!

Adding custom items to the Item Database by loading an custom Item.json additionally to the one in Obenseuer\Obenseuer_Data\StreamingAssets

The Item definition for the OS Coin from Obenseuer\Obenseuer_Data\StreamingAssets\Items.json:

{
        "ID": 0,
        "Title": "Open Sewer Coin",
        "Categories": [
            "Money"
        ],
        "Value": 1,
        "Description": "It's a local coin",
        "Stackable": 99,
        "Appearance": {
            "Material": "Coins",
            "SpritePath": "Sprites/Items/Open Sewer coin",
            "ColorValue": "",
            "PrefabPath": "Prefabs/Items/Open Sewer coin",
            "PrefabPathMany": "Prefabs/Items/Open Sewer Coin 50"
        },
        "Actions": [],
        "Attachments": {
            "Name": "",
            "Attachment1": "none",
            "Attachment2": "none"
        },
        "Meta": []
    }

Custom Item Sprite without using AssetBundles

"SpritePath": "OSML#<yourModName>/custom_sprite.png",

Would be /OSLoader/mods/<yourModName>/custom_sprite.png

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestverifiedIndicates that this issue is verified, so further triage can happen

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions