CheeseKingu / Loot-Modifiers

Copy this stack to start editing your FixedItems
12 stars 4 forks source link

Subpresets #2

Open zhawzid-ottj opened 1 year ago

zhawzid-ottj commented 1 year ago

While testing I tried this (exported zone "Blato" first):

{
    "Subpresets": [
        {
            "Rarity": "Uncommon",
            "Id": "MyPackage1"
        },
        {
            "Rarity": "Uncommon",
            "Id": "MyPackage2"
        }
    ]
}

like in Buildings-Armory-TV_Bunker-Examine_Weapon_Locker_Lockpick_Tier_1.json

But it doesn't work

"MyPackage1" is not a valid preset "MyPackage2" is not a valid preset

I was successful using the subpresets "Special_Packages-World_Weapons-World_Hunting_Weapons" and "Special_Packages-World_Weapons-World_Military_Basic_Weapons" as they are exported by the game within the "Blato" context.

self-created packages don't seem to work for me.

CheeseKingu commented 1 year ago

Hello there,

You can't create new packages. You can only modify existing ones, the spawner presets are assigned to meshes in-game. image

zhawzid-ottj commented 1 year ago

Thank you for your response!

I understand that the files like Buildings-Armory-TV_Bunker-Examine_Weapon_Locker_Lockpick_Tier_4.json are bound to specific spawners but I thought that I would be able to define my own packages like in

Special_Packages-Vault-Examine_Pistols_Deagle_357_Vault_Pack.json

From my logical understanding, unlike a file for a locker or a wardrobe spawner, a package should be independent from a spawner, you just reference it from a spawner.

But if you say those are bound to meshes as well and there is no way to define own subpresets for the use in actual spawner overrides - it's fine.

Thank you again for your help.

Cheers Jakob

CheeseKingu commented 1 year ago

Hello,

What you can do is modify Buildings-Armory-TV_Bunker-Examine_Weapon_Locker_Lockpick_Tier_4.json. You can only modify what it contains, you can't change the actual name. I'm pretty sure it has a number of SubPresets inside, you can change the spawner completely to whatever you want inside. You can use nodes, "items", "FixedItems" or "SubPresets". You can also use any combination you like inside, but the name of the .json has to stay as it is.

If you modify it, the next time you loot the mesh that has Buildings-Armory-TV_Bunker-Examine_Weapon_Locker_Lockpick_Tier_4.json assigned to it, you will get the loot that you specified inside.

Best regards, CheeseKingu

zhawzid-ottj commented 1 year ago

Thank you again, you helped me a lot 👍🏻

CheeseKingu commented 1 year ago

No problem, goodluck to you!