thevisad / DayZ-Private-master

Reality DayZ - replaced Bliss for DayZ servers
GNU General Public License v2.0
44 stars 84 forks source link

Backpack Items not saving when backpack is in a vehicle or tents on server restarts. #88

Closed Qwk86gn closed 11 years ago

Qwk86gn commented 11 years ago

When you store a backpack in a vehicle and it has items, upon server restart the items are no longer in the backpack and sometimes the backpack will also be gone. This also happens in with tents in the same manor.

p-schneider commented 11 years ago

How do the official dayz hive servers manage this? Is it possible to store backpacks+content in vehicles and tents and get the contents back after a restart? (I do not play on official dayz servers so i don't know if this behavior is normal or not.) It was not possible to save tent contents to tents/vehicles since i started playing dayz (i only played on bliss hive servers)

This is an example content for a vehicle inventory (taken from my servers database)

[
    [
        [
            "M110_DZ",
            "M4A3_RCO_GL_EP1",
            "m16a4",
            "Sa58V_RCO_EP1",
            "M249_EP1_DZ",
            "Pecheneg_DZ",
            "M4SPR"
        ],
        [1, 1, 1, 1, 1, 1, 1]
    ],
    [
        [
            "20Rnd_762x51_B_SCAR",
            "30Rnd_762x39_SA58",
            "100Rnd_556x45_M249",
            "100Rnd_762x54_PK",
            "20Rnd_556x45_Stanag",
            "30Rnd_556x45_Stanag",
            "10Rnd_9x39_SP5_VSS",
            "PartVRotor",
            "ItemJerrycan",
            "Skin_Sniper1_DZ",
            "ItemSodaPepsi"
        ],
        [5, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1]
    ],
    [
        [
            "DZ_Backpack_EP1"
        ],
        [1]
    ]
]

So the structure of this json variable would need to be changed. I'm not sure if a server side change in the sqf files would be enough ór if this would need changes to the client files (dayz_code etc.).

A backpack entry in the survivor table looks like this:

[
    "DZ_Patrol_Pack_EP1",
    [
        [
            "Makarov"
        ],
        [1]
    ],
    [
        [
            "8Rnd_9x18_Makarov",
            "FoodCanFrankBeans"
        ],
        [2, 1]
    ]
]
Swiss-Sarge commented 11 years ago

was never possible in the official Dayz version.

GamerExit commented 11 years ago

That is not correct, I could save items in packs in 1.7.4 on Bliss and Official.

Swiss-Sarge commented 11 years ago

Well, i honestly doubt that. The items in the backpack were gone after a server restart. The db doesnt even have the structure to store that information imo.

Dayz Wiki:

Any items you store into backpacks and store inside a vehicle will only be saved until the next server restart.

GamerExit commented 11 years ago

I really though this was fixed in the original dayz mod and we had used it for extra capacity for storage. But looking around it seems it has always been this way.

should close this then, sorry!