Page MenuHomeFeedback Tracker

Spawning Gear Configuration Examples & custom folder subdirectories.
Closed, ResolvedPublic

Description

Hey guys!
We were checking out the Spawning Gear Configuration and noticed that there is a syntax error within the "Use Case" section, where 2 main objects within the same file are defined. I assume this should be in separate files.

{
    "spawnWeight": 1,
    "name": "Military - AKM",
    "characterTypes": [
        "SurvivorF_Judy",
        "SurvivorM_Lewis"
    ],
    "attachmentSlotItemSets": [
        {
            "slotName": "shoulderL",
            "discreteItemSets": [
                {
                    "itemType": "AKM",
                    "spawnWeight": 3,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1,
                    "complexChildrenTypes": [
                        {
                            "itemType": "AK_PlasticBttstck",
                            "attributes": {
                                "healthMin": 0.4,
                                "healthMax": 0.6,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        },
                        {
                            "itemType": "PSO1Optic",
                            "attributes": {
                                "healthMin": 0.1,
                                "healthMax": 0.2,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1,
                            "simpleChildrenUseDefaultAttributes": true,
                            "simpleChildrenTypes": [
                                "Battery9V"
                            ]
                        },
                        {
                            "itemType": "Mag_AKM_30Rnd",
                            "attributes": {
                                "healthMin": 0.5,
                                "healthMax": 0.5,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        }
                    ],
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "AK_PlasticHndgrd",
                        "AK_Bayonet"
                    ]
                },
                {
                    "itemType": "AKM",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1,
                    "complexChildrenTypes": [
                        {
                            "itemType": "AK_WoodBttstck",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        },
                        {
                            "itemType": "PSO11Optic",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1,
                            "simpleChildrenUseDefaultAttributes": true,
                            "simpleChildrenTypes": [
                                "Battery9V"
                            ]
                        },
                        {
                            "itemType": "Mag_AKM_30Rnd",
                            "attributes": {
                                "healthMin": 1.0,
                                "healthMax": 1.0,
                                "quantityMin": 1.0,
                                "quantityMax": 1.0
                            },
                            "quickBarSlot": -1
                        }
                    ],
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "AK_WoodHndgrd",
                        "AK_Bayonet"
                    ]
                }
            ]
        },
        {
            "slotName": "shoulderR",
            "discreteItemSets": [
                {
                    "itemType": "BaseballBat",
                    "spawnWeight": 2,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 2
                },
                {
                    "itemType": "Shovel",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8
                    },
                    "quickBarSlot": 2
                }
            ]
        },
        {
            "slotName": "Vest",
            "discreteItemSets": [
                {
                    "itemType": "PlateCarrierVest",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "PlateCarrierHolster"
                    ]
                }
            ]
        },
        {
            "slotName": "Back",
            "discreteItemSets": [
                {
                    "itemType": "TaloonBag_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "Mag_AKM_Drum75Rnd"
                    ]
                },
                {
                    "itemType": "TaloonBag_Orange",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": true,
                    "simpleChildrenTypes": [
                        "Mag_AKM_30Rnd",
                        "Mag_AKM_30Rnd"
                    ]
                }
            ]
        },
        {
            "slotName": "Eyewear",
            "discreteItemSets": [
                {
                    "itemType": "AviatorGlasses",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "",
                    "spawnWeight": 1
                }
            ]
        },
        {
            "slotName": "Body",
            "discreteItemSets": [
                {
                    "itemType": "GorkaEJacket_Flat",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Legs",
            "discreteItemSets": [
                {
                    "itemType": "GorkaPants_Flat",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Feet",
            "discreteItemSets": [
                {
                    "itemType": "MilitaryBoots_Bluerock",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        }
    ],
    "discreteUnsortedItemSets": [
        {
            "name": "Obelix",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "Pot",
                    "attributes": {
                        "healthMin": 0.1,
                        "healthMax": 0.8,
                        "quantityMin": 0.1,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": -1,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "BoarSteakMeat",
                        "BoarSteakMeat"
                    ]
                },
                {
                    "itemType": "Mag_AKM_30Rnd",
                    "attributes": {
                        "healthMin": 0.1,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Rag",
                "BoarSteakMeat",
                "BoarSteakMeat",
                "BoarSteakMeat",
                "FNX45",
                "Mag_FNX45_15Rnd",
                "AmmoBox_45ACP_25rnd"
            ]
        },
        {
            "name": "Asterix",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Canteen",
                "Rag",
                "Apple",
                "AmmoBox_762x39_20Rnd",
                "CZ75",
                "Mag_CZ75_15Rnd",
                "AmmoBox_9x19_25rnd"
            ]
        }
    ]
}, // <------------------------------------ Error Here
{
    "spawnWeight": 1,
    "name": "medic",
    "attachmentSlotItemSets": [
        {
            "slotName": "shoulderR",
            "discreteItemSets": [
                {
                    "itemType": "PipeWrench",
                    "spawnWeight": 2,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 2
                },
                {
                    "itemType": "Crowbar",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8
                    },
                    "quickBarSlot": 2
                }
            ]
        },
        {
            "slotName": "Vest",
            "discreteItemSets": [
                {
                    "itemType": "PressVest_LightBlue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Back",
            "discreteItemSets": [
                {
                    "itemType": "TortillaBag",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1
                },
                {
                    "itemType": "CoyoteBag_Green",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 0.5,
                        "healthMax": 0.8,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": 1
                }
            ]
        },
        {
            "slotName": "Eyewear",
            "discreteItemSets": [
                {
                    "itemType": "ThinFramesGlasses",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                },
                {
                    "itemType": "",
                    "spawnWeight": 1
                }
            ]
        },
        {
            "slotName": "Body",
            "discreteItemSets": [
                {
                    "itemType": "MedicalScrubsShirt_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Legs",
            "discreteItemSets": [
                {
                    "itemType": "MedicalScrubsPants_Blue",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        },
        {
            "slotName": "Feet",
            "discreteItemSets": [
                {
                    "itemType": "WorkingBoots_Yellow",
                    "spawnWeight": 1,
                    "attributes": {
                        "healthMin": 1.0,
                        "healthMax": 1.0,
                        "quantityMin": 1.0,
                        "quantityMax": 1.0
                    },
                    "quickBarSlot": -1
                }
            ]
        }
    ],
    "discreteUnsortedItemSets": [
        {
            "name": "Medic Cargo 1",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "FirstAidKit",
                    "attributes": {
                        "healthMin": 0.7,
                        "healthMax": 0.8,
                        "quantityMin": 0.05,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "BloodBagIV",
                        "BandageDressing"
                    ]
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Rag",
                "SheepSteakMeat"
            ]
        },
        {
            "name": "Medic Cargo 2",
            "spawnWeight": 1,
            "attributes": {
                "healthMin": 0.5,
                "healthMax": 1.0,
                "quantityMin": 0.6,
                "quantityMax": 0.8
            },
            "complexChildrenTypes": [
                {
                    "itemType": "FirstAidKit",
                    "attributes": {
                        "healthMin": 0.7,
                        "healthMax": 0.8,
                        "quantityMin": 0.05,
                        "quantityMax": 0.1
                    },
                    "quickBarSlot": 3,
                    "simpleChildrenUseDefaultAttributes": false,
                    "simpleChildrenTypes": [
                        "TetracyclineAntibiotics",
                        "BandageDressing"
                    ]
                }
            ],
            "simpleChildrenUseDefaultAttributes": false,
            "simpleChildrenTypes": [
                "Canteen",
                "Rag",
                "Apple"
            ]
        }
    ]
}

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

In addition to this, the cfgGameplay example provides this

"spawnGearPresetFiles": ["survivalist.json", "casual.json", "military.json"],

As in my previous post Nitrado follows a specific files whitelist, which more often than not confuses server owners on where they have to place their files.
The example above would would work as in

"spawnGearPresetFiles": ["custom/survivalist.json", "custom/casual.json", "custom/military.json"],

Even more, it doesn't allow any subfolders to be placed inside the custom folder, which the more customizations are being added, it is cluttering quite a lot.

As a request, would be possible for you to ask Nitrado to allow subfolders to be created inside the custom folder, so that server owners can organise their files in a more logical manner?

Geez closed this task as Resolved.Oct 30 2023, 3:56 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Should be fixed now.

Should be fixed now.

Should I open a different feedback for the two messages following the wiki error?

Geez added a comment.Oct 30 2023, 4:18 PM

No need. They have been forwarded with the main ticket.

Geez added a comment.Oct 30 2023, 4:31 PM

Should be resolved as well.

Should be resolved as well.

I'll test right away.

Should be resolved as well.

As a request, would be possible for you to ask Nitrado to allow subfolders to be created inside the custom folder, so that server owners can organise their files in a more logical manner?

Regarding this, would be possible to ask you to to please request to Nitrado whitelist for custom folder subfolders?
Between Object Spawner files, CE configs and soon SpawnGear files, having everything within the same folder becomes quite chaotic for us.