Jump to content
Sign in to follow this  
drgullen

cfgspawnabletypes.xml issue

Recommended Posts

Is anyone else experiencing issues with cargo attachments in 1.24?

For example, I'm using the RFWC Whaler as a boat to get around in and I have this in my cfgspawnabletypes.xml file for it which should spawn it with all of these items in its inventory:

   <type name="RFWC_Whaler">
        <cargo chance="1.00">  
            <item name="SparkPlug" chance="1.00" />  
        </cargo>
        <cargo chance="1.00">  
            <item name="TruckBattery" chance="1.00" />  
        </cargo>
        <cargo chance="1.00">  
            <item name="EngineOil" chance="1.00" />  
        </cargo>
        <cargo chance="1.00">  
            <item name="CanisterGasoline" chance="1.00" />  
        </cargo>
    </type>

It spawns with nothing though.  I also use a Land Rover Defender as a vehicle and it's the same there, it spawns like an Audi parked in the hood, it's stripped of everything!

These both spawned correctly on 1.23, so trying to figure out if it's a mod problem or a game problem.

Share this post


Link to post
Share on other sites

Never mind, the problem was between the keyboard and the chair lol.  I accidentally put an extra </type> in the file.

If you experience weirdness with some of your loot, validate any XML files you've updated as you might have made a typo.

Share this post


Link to post
Share on other sites

Hi there drGullen,

I'm sorry do you mind me asking something about this topic? I posted it numerous times, been on 10 discord channels and there's nobody that has or wants to give an answer.

Basically i want to do what you just did there with the vehicle. But i want it to spawn in like that (complete with all attachments) on the map.
So let's stick with vehicles and the RFWC_Whaler you used. 

If i want to spawn in a RFWC_Whaler on my map, with all attachments. How would i go about it???

I spawn it in using a custom json at the moment.... But the attachments are not there whatever i try these past 3 weeks already.


An example:

 

 {
            "name": "RFWC_Whaler",
            "pos": [
                5713.8408203125,
                7.6573686599731445,
                8000.42041015625
            ],
            "ypr": [
                33.81409454345703,
                -5.178645610809326,
                -4.764308929443359
            ],
            "InventoryAttachments": [
                "SparkPlug"
            ],
            "InventoryCargo": [
                "SparkPlug"
            ],
            "ConstructionPartsBuilt": [
                "SparkPlug"
            ],
            "quickBarSlot": -1,
            "simpleChildrenUseDefaultAttributes": true,
            "simpleChildrenTypes": [
                "SparkPlug"
            ],
            "scale": 1,
            "enableCEPersistency": 0
        }


As you can see, i'm just trying to force a spark plug in every slot. But nothing. 

If you could help me out or in the right direction, i'm in eternal debt. I am not going to give up.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×