Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
Shoutout to Teh for his wonderful modding guide (https://gist.github.com/xrandox/46bff6611a7e115b1f780928e83b40c3). Big thanks to the Palworld Modding Community discord (https://discord.com/invite/palworldmods). Special thanks to @Okaetsu on Discord for his significant contributions.
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 4.2
Refactored to rely on RakLib rather than use separate LUA interop files, hopefully reducing future clutter.
Version 4.1.0
Fixed transport pals for real! Added logic to teleport underground items in a base to above ground. Only works in bases so as not to break caves (which are technically "underground").
Added LUA checks to prevent error spam when rejoining worlds.
Version 4.0.0
Rewrote to use BOTH LUA and PAK mods to optimize logic.
Should fix stuck transport pals and further improve performance and stability.
Version 3.1.0
Added logic to prevent items that have fallen through the ground from being merged into. They can still be merged into stacks above ground.
Version 3.0.1
Restructured config options to add Mod Config Menu support.
Version 3.0
Remade the entire mod in BP, increased performance and significantly increased stability.
WARNING - Please remove previous version of the mod manually, or ensure Vortex has done so if using it.
Version 2.0.1
Bug fix - disabled unhooking logic which was not working as intended.
Version 2.0
Extensive rewrites (really extensive - dozens of hours...) to improve performance and stability.
Added "RespectBases" config option which prevents items inside a base from being merged into items outside the base, or in a different base.
Added levels to the "Verbosity" config options to let you choose your preferred level of console spam.
Version 1.6
STABLE after several hours of intensive testing.
Bugfix - fixed random crashes
Version 1.5.1
NOTE: May suffer from stackoverflow error after 1-2 hrs, testing still in progress. Last known stable version 1.4.
Further optimized drop calls deprecating LoopTime value. Merges are now tied to item drops and very fast.
Fixed filename.
Version 1.5
Updated merge trigger- called on each dropped item, but delayed until "LoopTime" seconds have passed since the last execution.
Updated merge algorithm - checks if the quantity of an item's drops has changed before processing, significantly faster.
Version 1.4.1
Rolled back change to destroying merged items that resulted in crashes
Version 1.4
Bugfix - removed item pickup sound when merging items
Modified config defaults
Added config option "Verbose" to prevent console spam
Version 1.3
Bugfix - added check for maximum stack size before merging items.
Further rewrites to significantly improve performance.
Version 1.2
Minor bugfix - disabled 'NotifyOnNewObject' trigger as this can result in crashes when a large number of items spawn in quick succession.
Version 1.1
Large rewrites that significantly improve stability. Special thanks to @Okaetsu on Discord for his significant contributions to this version.
The default behavior for resource gathering in Palworld results in piles of items rather than a stacked drop, such as when the player drops a stack from their inventory. This results in transport pals behaving very poorly - they pick up a single item each trip rather than multiple items to fill their carrying capacity. As a result, a pal's work suitability for transport is largely irrelevant as they almost never reach their carrying capacity under normal conditions.
This mod simply merges items within a configurable distance consolidating them into a single stacked drop. Pals are able to meet their carrying capacity from the stack and in many cases client FPS increases as there are fewer physics simulations between dropped items.
A merge is run on all existing drops on load, then run on each new drop.
Copy the "Pal" folder from the ZIP file into your Palworld directory.
Configuration (optional; variables are in the "RakMergeDrops.modconfig.json" file; Mod Config Menu is supported for singleplayer/co-op):
Distance - The maximum distance between two items to merge. Default: 1000
Verbose - If true, will print messages to the console on each item merge. Likely will result in spam if you have more than a couple of workers, but useful if you want to make sure the mod is working. Default: false