jonrainier / DayZ-Private-Server

DayZ Private Server by Pwnoz0r
98 stars 131 forks source link

All spawned vehicles contain no stuff in inventory although object_data shows it #114

Closed bittedanke closed 11 years ago

bittedanke commented 11 years ago

Hello,

please let me at first thank you for your server pack: Thank you wery much! I have a lot of fun with it.

Now to my problem: When I take a look into the table object_data, I can see that some vehicles contain stuff (column: Inventory). But each of these vehicles do not contain any stuff when I look into them ingame. No matter what I try, once the vehicle is saved back to the DB after I took a look into the inventory or even if I only took a seat in it, the stuff is no longer in the column "Inventory".

This happens to vehicles I visit the first time. After I put stuff into the vehicle then the inventory of the vehicle is saved to the DB, and is available after a server restart.

Thanks for your attention.

bittedanke commented 11 years ago

Hello again.

While further investigating the problem on my own, and comparing the entries of the column "Inventory" in the table "object_data" I noticed a difference between vehicles that SHOULD contain stuff, and the vehicles that DO contain stuff (after I put it in there ingame):

Original entry: [[["MP5A5"],[]],[[],[]],[[],[]]] Working entry: [[["MP5A5"],[1]],[[],[]],[[],[]]]

Original entry: [[["M1014"],[]],[["HandRoadFlare", "PartWoodPile", "ItemWire", "30Rnd_556x45_Stanag"],[]],[[],[]]]Working entry: [[["M1014"],[1]],[["HandRoadFlare", "PartWoodPile", "ItemWire", "30Rnd_556x45_Stanag"],[1,1,1,1]],[[],[]]]

Adding quantities (1) made these particular vehicle inventorys appear ingame.

If one take a look into the table object_spawn it can easily be seen that no vehicle inventory item has a quantity. Changing this to at least 1 for each item solved the problem for me.

bittedanke commented 11 years ago

Hello one more time.

While searchin for the correct quatities for the inventory items in the table object_spawn, I noticed that the official 1.7.7.1 table object_spawn contains a lot of differences to the table you deliver. Seems you still deliver 1.7.7 spwans. Is this intended?

This explains the error, as official table "obejct_data" for 1.7.7 did not contain qwuatities. Official table "object_data" for 1.7.7.1 does contain quatities.