Jump to content

Upper cupboards in trailers have no loot table


Recommended Posts

The bug is present for a while already, even before the loot rebalancing happened. Currently the upper cupboards in trailers, at least the ones in Muldraugh's trailer park, drop mostly nails – I think they use generic loot table instead of the one regular cupboards do.


Link to comment
Share on other sites

  • 6 months later...
  • 2 weeks later...
Just now, TurtleShroom said:

I have discovered the problem, and solving it is incredibly easy.


It applies to any Map at any time. Loot Tables have two settings: the Room Class and what furniture they spawn in.


In all of the Vanilla rendition Loot Tables, they are set to spawn in one, and only one, class of furniture. Say, for example, the "SHELVES" class. There are multiple different kinds of shelves, and "SHELVES" is only one. Any Map that does not put that exact shelf in a designated Room Class gets screwed. PZ does not have an overarching group of furniture classes. Rather, each item that spawns must be tied either to one piece of furniture or every piece of furniture. Furthermore, there is no way to exclude ("all but X") any piece of furniture.


The solution is simple. Indie Stone would need to change it so that ALL furniture works for ALL Room Classes. This would lead to weird issues, like pickaxes in vending machines, but it's better than every Custom Map being royally screwed over.


Ideally, Indie Stone should write a way to exclude certain classes of furniture, so that we don't have to choose all or one.


To fix the issue, go into the (DRIVE WITH STEAM LAUNCHER PROGRAM)\(STEAM LAUNCHER PROGRAM PATH)\(ROOT PZ)\MEDIA\LUA\SERVER\ITEMS and open the LUA file. Scroll down the lines and use Notepad's replacing tool (or manual editing) to change the second entry (governing furniture) to "all", in full lowercase.


This will instantly rectify the issue. Hopefully, PZ will get on this in the future.


I have solved this bug. Please refer to this quoted post.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...