State of Decay
0 of 0

File information

Last updated

Original upload

Created by

Tronko

Uploaded by

Tronko

Virus scan

Safe to use

Tags for this mod

About this mod

Fixes resources backpacks physics allowing the use of any pickup truck to transport multiple backpacks easily. Includes an addon that allows to jump over any vehicle in the game.

Permissions and credits
Backpacks & Pick-up's fix V1.1
Now with climbable pickups.

By Tronko.


As almost everyone knows, there is a trick that allows to transport multiple resource backpacks in the back of a pickup truck. As you can't climb on the back of the pickup directly, you need to park the pickup next to something you can climb on, for example, a wooden fence, and jump in the back of the truck. Then, drop the backpack there. Repeat with another backpack and so on.

But then we have to deal with two issues:

Once the truck is loaded with the backpacks, if you drive forward, the backpacks stay in mid air. Seems like the physics engine is ignoring completely the backpacks. Actually what is happening is, when the backpack is loaded in the pickup it only interacts with the tires of the pickup, and nothing else.

The second issue is, if you are lucky and the backpack touches a rear tire, things seems to go fine until you start to drive a little faster. Then you will notice that the backpacks have the bad habit to slide off thru the walls of the pickup truck. If you stop the pickup to recover a dropped backpack, and no backpack is touching a rear tire, the backpacks will stay in mid air again like the first issue.

This little mod fixes both issues. The backpacks are now correctly physicalized.

Now you can carry up to 7 to 9 backpacks (in my play testings) at full speed in your prefered pickup (old & new). However, if you put a lot of backpacks in your pickup some will stack one in another. Bear in mind that the back of the pickup is not deep enough to hold stacked backpacks, so if you drive aggressively you will lose some eventually (like in real life)

It works with vanilla and Breakdown DLC, and there is no need to start a new game. Does not affects savegames.

Known issues:

Sometimes, if you leave a game with a pickup loaded with backpacks, after entering the game again, the backpacks will appear in the terrain, just under the pickup. This seems to be noticeable when you load a game and the pickup is nearby the player and/or in the player's field of view. The engine seems to spawn in the game world the backpacks before the vehicles, so the backpacks doesn't collide with anything, and fall down freely.

Sometimes, If you leave your pickup parked and loaded with some backpacks for too long, the physics engine can put the backpacks in a "sleep state mode", with their physics disabled to gain performance. If you drive forward the backpacks will float in mid air. A work around for this would be jumping over the truck, pickup a backpack, and drop the backpack again. The dropped backpack should collide with the rest of them and activate their physics again.

UPDATE

I found it quite annoying the fact that i can't climb by myself to the back of my pickup, being able to climb taller obstacles, like a wooden fence, so I've added a little patch to solve this. There is no need to use the "wall trick" to climb on a pickup anymore. This little "addon" raises the height the player can walk (and jump) over certain things, allowing to jump over almost every vehicle available in game, including, of course, both pickups (old & new). The new pickup is the most taller vehicle in the game, so is advised to jump over the front hood instead the back.

As a side effect, with this addon, you will notice that the player is able to walk over certain things (a bed or a chair for example) without jumping over. Be specially careful when on top of tall buildings, specially observation towers like antennas and so on, because if the protection fence is too low you can now walk over the fence and fall down. However, this may fix an occasional bug that occurs when the player character can't get into certain sidewalks but keep running in place.

Another very interesting secondary effect is the fact that the zeds don't attack when the player is over the roof or the hood of a vehicle, giving to the player a small tactical option.





How to install:

If you install the complete package (includes both fixes, recommended)

Extract directly into game folder:
../State of Decay

After extracting you must have this files installed:
../State of Decay/Game/scripts/entities/actor/player.lua
../State of Decay/Game/scripts/entities/items/ul_rucksack.lua

Unistall:

Simply delete the files:
../State of Decay/Game/scripts/entities/actor/player.lua
../State of Decay/Game/scripts/entities/items/ul_rucksack.lua





If you install ONLY the rucksacks fix:

Extract directly into game folder:
../State of Decay

After extracting you must have this file installed:
../State of Decay/Game/scripts/entities/items/ul_rucksack.lua

Unistall:

Simply delete the file:
../State of Decay/Game/scripts/entities/items/ul_rucksack.lua





Incompatibilities:
It is not compatible with any mod that changes ul_rucksack.lua or player.lua files.





Frequently asked questions:

Q: Do I need to start a new game to use this? Would corrupt all my save games?

A: No and no. You can install / uninstall this mod anytime. Does not affects save games at all.



Q: Is it compatible with Breakdown dlc?

A: Yes, it's compatible with vanilla, Breakdown dlc and possibly any dlc that gets released in the future.



Q: The mod does not work for me. The rucksacks are still sliding thru the truck.

A: It's likely you installed the mod in the wrong folder. Just open the mod in your zip archiver of choice (winzip, winrar etc), and drag the folder "Game" into your ../State of decay/ folder. It is usually located at C:/Program Files/Steam/steamapps/common/State of Decay/

If asked for overwriting files, say yes. After unzipping you must have those files AND those folders installed (It's assumed that you are installing the complete package):

../State of Decay/Game/scripts/entities/actor/player.lua
../State of Decay/Game/scripts/entities/items/ul_rucksack.lua



Q: I can't jump over the new pickup truck, but works fine with the old pickup.

A: Try to jump 1 meter before reaching the truck, and in the FRONT hood of the truck. Do not jump over the back of the pickup. Note that It can be difficult some times if you are in sloped terrain.



Q: Sometimes, when I'm driving fast and loaded with some rucksacks, some of them gets skyrocketed at the speed of light and it's really hard to find them again. Is there any way to stop that behavior?

A: The only reasonable and realistic solution would be to "glue" rucksacks to the back of the truck, but it can be somewhat difficult to implement correctly. A more "flat" terrain and a better vehicle physics setup could help also.



Q: The truck is much slower when I drive loaded with some rucksacks. Can you make the rucksacks more heavier/ lightweight?

A: You can do it yourself. Just open file ../State of Decay/Game/scripts/entities/items/ul_rucksack.lua with a text editor (ex Notepad++) and edit line 20:

Mass = 10,

The value is in kilograms, so the default rucksack weight is 10 kilograms.

I haven't noticed any change in physics behavior after altering the mass value, but some people has reported some changes. As my game is unmodded this may be due use of other mods, so if you're feeling adventurous try to change that value and see if it works.



Change log:
28-12-2013 V1.0 released
02-01-2014 V1.1 released (added Jump addon)
26-01-2014 Added FAQ to description.