Is there a way to notify the user that they are attempting to add a blacklisted item to backpack (which should fail loudly - not silently)? In the past I had modified the plugin to do this myself but recent version have made this more complex due to changes that appear to be related to performance. Ideally this would be a native function of the plugin so I don't have to keep hacking every release.
The developer hook for CanBackpackAcceptItem() doesn't offer much utility in the case where we're dealing with blacklists. If I'm missing something here please set me straight. Thanks!
Notify player when attempting to add blacklisted item to backpackSolved
Yes, there were performance related changes nearly a year ago which changed the implementation of the blacklist/whitelist feature.
I will try to add your requested feature in the next release. Do you prefer a chat message (which might not be immediately seen), a sound effect, a UI message, or something else? A sound effect would be the most feasible, and you would be able to configure the precise effect prefab.
I'm currently working on a new version of the plugin. I expect to have a beta release available in a few weeks.
Perfect thank you. I think a sound effect + chat message would be great. Much appreciated.
Yeah that would be great, thank you.
I've pushed a commit to the edge branch of my fork. You can download and test it now, but caution is advised with using pre-releases on your main server because I might decide to rename config options and such by the time I put out an official release. Planning to incorporate this into v3.10, for which a beta will be available when v3.9 exits beta.
Testing it now. This is excellent.
By the way, I forgot to mention that the v3.10 beta release is now available.
https://umod.org/community/backpacks/46426-backpacks-beta-3100
I was originally planning to wait until the v3.9 release was out of beta, but since v3.9 has a lot of fundamental changes under the hood, I would like to give it more time before releasing to the broader audience. Currently there have been about 50 downloads of the v3.9 beta, compared to 1200 downloads of v3.8.1 which was released at the same.