Jump to content
Faalagorn

Upper cupboards in trailers have no loot table

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...