DayZ
BBPItemPack
Item Pack Flag Protection from Despawn
Is the Vanilla Flag Pole (requiring stone and sledgehammer to build) not protecting the BBP Item Pack Items from despawn? Doesnt show a flag Icon next to the name on hover?

Check your types file. did you paste the types into an existing types file? or did you create a standalone types file strictly for BBP Item Pack.


SERVER OWNERS (but also players) I corrected the Item Pack not having persistence / protection from despawn by the vanilla flag pole which requires stone and a sledgehammer to build.

The issue is simple, and escaped my eyes for several months. The Provided Types file in the mod comes as a "paste in" copy, intended to be pasted into an existing types file. It is not a stand alone types file.

If you intend to run it as a standalone types file, It is missing the <types> </types> nodes which get placed at top and bottom of file, and is also missing the XML statement on line 1:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>


Further to these, youll likely have to point the cfgeconomycore.xml file to look for the types file, something like this

<ce folder="db">
<file name="types.xml" type="types" />

<file name="bbp_types.xml" type="types" />
<file name="bbp_item_types.xml" type="types" />

</ce>
< >
Showing 1-2 of 2 comments
Trollheimsgrott Jun 28, 2023 @ 3:52pm 
Further to this:

I had a recent issue with the file validating, and certain items being protected by the flag , and some not. I did a lot of testing, and found that the lifetime needs to be higher than 5 days.

I posted a detailed description in the BBP Discord. Ill copy it here too
Trollheimsgrott Jun 28, 2023 @ 3:54pm 
I have completed my testing, I have a successful result. I have got all the letters and magnets to be protected by the vanilla flagpole, and I can tell you what the exact rule in the code is - set by B.I. For direct answer, read #4. For Troubleshooting, read in order.

In order for the item to have a lifetime, you need to check the basic boxes to make sure your types are fine. IE,

> 1. The Types file where the item is contained, needs to be validated by something like https://xmllint.com and be a valid file. Remember to add <types> </types> at the top / bottom of the file, and <?xml version="1.0" encoding="UTF-8" standalone="yes"?> on line 1.
> 2. If the file validates, check which map you are running - Namalsk uses a different system to Chernarus and most of the other maps, meaning that category, tag, usage etc are a bit different
>
> Here is a Namalsk Types file for reference :
> https://github.com/SumrakDZN/Namalsk-Server/blob/main/Mission%20Files/regular.namalsk/db/types.xml
>
> Here is a Chernarus Types file for reference:
> https://github.com/BohemiaInteractive/DayZ-Central-Economy/blob/master/dayzOffline.chernarusplus/db/types.xml
>
> Pay close attention to the nodes after <flags>, as I said, these are likely category, tag, usage, value, etc.
>
> 3. ONCE you can confirm your types file is valid, and you are using the correct nodes for the map you run, ensure that you are pointing the cfgeconomycore.xml to the correct path and file or files where your types are stored, IE
>
> Further to these, youll likely have to point the cfgeconomycore.xml file to look for the types file, something like this
>
> <ce folder="db">
> <file name="types.xml" type="types" />
>
> <file name="bbp_types.xml" type="types" />
> <file name="bbp_item_types.xml" type="types" />
>
> </ce>
>
> 4. Lastly, in globals.xml there is a paramater called FlagRefreshFrequency. In order for your item in types to have protection from the flag, the lifetime of that item needs to be greater than or equal to the entry here. So I have been told, it is recommended to have higher lifetime than FlagRefreshFrequency.
Last edited by Trollheimsgrott; Jun 29, 2023 @ 3:57am
< >
Showing 1-2 of 2 comments
Per page: 1530 50