Original Post — Direct link

Hello there, I got some problems with mixed assets setup. I'm truing to create an unturnov server with crafting blacklist and modified skill tab (for example upgraded exercise to lvl 3 from the start) which will be closed for a players on the server. The problem is that I can only make blacklist OR skills, I can't make both in a one asset file. Somebody has a solution for this problem?

External link →
over 2 years ago - /u/MoltonMontro - Direct link

You can do both in the same file. Both are their own, separate arrays.

over 2 years ago - /u/MoltonMontro - Direct link

I think you've misunderstood how to set up the files. Link to the LevelAsset.asset from your Config.json, and then link to CraftingBlacklistAsset.asset from your LevelAsset.asset.

Here are three code blocks, as examples for your three files:

Config.json

{
    "Asset":
    {
        "GUID": "0d05249e95ee4385874f2482d33192af"
    }
}

LevelAsset.asset

"Metadata"
{
    "GUID" "0d05249e95ee4385874f2482d33192af" 
    "Type" "SDG.Unturned.LevelAsset, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
}
"Asset"
{
    "Skills"
    [
        {
            "Id" "Sharpshooter"
            "Default_Level" "0"
            "Max_Unlockable_Level" "0"
        }
    ]
    "Crafting_Blacklists"
    [
        {
            "GUID" "c0d3f2a6-860b-45e0-be8e-333593ada2d5"
        }
    ]
}

CraftingBlacklistAsset.asset

"Metadata"
{
    "GUID" "c0d3f2a6-860b-45e0-be8e-333593ada2d5"
    "Type" "SDG.Unturned.CraftingBlacklistAsset, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"
}
"Asset"
{
    "Input_Items"
    [
        "a6099002318e4d58b8e59d431bcf1b8a"
        {
            "NoteToSelf" "eaglefire"
            "GUID" "b03d581a5c1a490f995f8deba57b0f17"
        }
    ]
}
about 2 years ago - /u/MoltonMontro - Direct link

Originally posted by Rozkurczozaur

Where should I create file LevelAsset.asset ?

In your Bundles folder. For example, ...\Bundles\Assets\Levels\PEI.asset