# So, I was abusing vehicleDef.py for fun and profit and I think I hit some limits

**URL:** <https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525>\
**Category:** The Toolbox\
**Created:** [December 19, 2020, 11:08am UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525 "2020-12-19T11:08:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)\
**Post date:** [December 19, 2020, 11:08am UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525/1 "2020-12-19T11:08:49Z")

</div>

Basically, I wanted to cheat my luxury RV and all its contents from an old save game into a new game. I _sort of_ got it to work (use vehicleDef.py to generate vehicles.json, put that into a new ‘mod’ then used debug menu to add the vehicle by name from the list).

It looks like something like 50% of the items that were in the old game didn’t make it across, though?

They are there in the vehicles.json file, though, so should I just take it that the game does not gracefully cope with spawning in vehicles stuffed far too full of items?

To give a specific example, the original vehicle had one particular trunk that contained around 78 different items when looked at. When spawned in, it had around 35 different items and the scuba-tanks had lost all of their compressed air. Elsewhere guns seem to have lost their magazines and ammo, all the vehicle tanks had lost their liquid content, etc.

---

<div class="post-metadata">

**Author:** ![Dekker3D](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/dekker3d/32/10605_2.png) [@Dekker3D](https://discourse.cataclysmdda.org/u/Dekker3D)\
**Post date:** [December 19, 2020, 11:13am UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525/2 "2020-12-19T11:13:29Z")

</div>

This may be due to the inventory changes from earlier this year. Many types of container were made more flexible in terms of what you can put into them, but it also added a notion of an item’s length so you can’t put a 2 meter stick into your backpack anymore. This has caused some bugs early on, and this may be breaking whatever you’re doing right now.

---

<div class="post-metadata">

**Author:** ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)\
**Post date:** [December 19, 2020, 11:31am UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525/3 "2020-12-19T11:31:59Z")

</div>

Could be. The whole ‘pocket’ system, right?

/tools is sort of the bastard step-sibling of CDDA, should I scrape up the energy to do a proper test case for a bug report?

Edit: P.S. Likes for the new poster. 🙂

---

<div class="post-metadata">

**Author:** ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)\
**Post date:** [December 19, 2020, 2:01pm UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525/4 "2020-12-19T14:01:16Z")

</div>

You can file a bug report, but vehicleDef.py is not a primary use tool (unlike compose.py, for instance) so I don’t know how much attention it will get.

---

<div class="post-metadata">

**Author:** ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)\
**Post date:** [December 19, 2020, 2:43pm UTC](https://discourse.cataclysmdda.org/t/so-i-was-abusing-vehicledef-py-for-fun-and-profit-and-i-think-i-hit-some-limits/25525/5 "2020-12-19T14:43:32Z")

</div>

Yeah, I think I’ll leave it. At least till 0.F comes out.
