Chuckleberry-Finn / pz-shops

GNU Affero General Public License v3.0
1 stars 4 forks source link

Items with No Category can't be bought or sold #25

Closed jonathanjacobs closed 1 year ago

jonathanjacobs commented 1 year ago

Our server uses a variety of mods that create new items. Many of these can be bought/sold in the stores without issue - but one thing we have noticed is that items where there is no Category set can't be sold. They can be added to the list of "Sellable" items after going into the Manage Store menu, but when you set prices or minimum store quantities, the values don't save after clicking the [+] button. I think this is a bug, ye?

Chuckleberry-Finn commented 1 year ago

What kinds of items don't have a category? I'm not sure that should cause a problem - but under normal circumstances all items should have categories.

jonathanjacobs commented 1 year ago

I actually found a work around - I'll post some screen shots here so you can see what I'm talking about.

jonathanjacobs commented 1 year ago

For some items - like MP5 with a folded stock (i know - not vanilla, but from the Expanded Vanille Firearms mod) - in order to create a way to have the store buy the item, you have to switch from "name" to item Category or something - then click the Folded Stock Mp5 - which will autofill the category box, and then set prices on that. It then works. But if I try to set the prices on the folded stock Mp5 using the "Name" option, the box never turns white and I can't set prices/etc. Hope that makes sense ... i can provide screen caps if you want.

Chuckleberry-Finn commented 1 year ago

This is a known issue - the regex does not like special characters. Setting that option to type or category will get around the issues with names.

Chuckleberry-Finn commented 1 year ago

See: #17