Kenshi
491 ratings
Shop Bug Fix (Your sold items will disappear)
5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
220.998 KB
10 Sep, 2019 @ 12:52am
6 Mar, 2021 @ 6:27am
3 Change Notes ( view )

Subscribe to download
Shop Bug Fix (Your sold items will disappear)

Description
Fixed two bugs of shops:
- Goods in some bars will not be refreshed.
- When selling a large number of weapons to a store, the weapons remain in the store even after the item is refreshed.

This mod only fixes vanilla stores.
Import or new game required.


--------
-- for modder or interesting one

- Why aren't the goods in some bars refreshed?
In a store that has Housemates set up, for some reason those Housemates may become the owners of the store.
For this reason, shop is trying to update the products by the Housemates' VenderList and failing.
After a while, the Squad leader will become the owner of the store again and the update will resume, but the bug will eventually reappear again.
The basic solution is to either not use Housemates or to add a same VenderList to Housemates.
How I fixed, check 'Faction->Squads->Adventurer Waystation Bar' in my mod.


- Why is the weapon still in the store after refreshing the item?
When a store product is updated, only the storage that can contain the products sold at that store is updated.
For example, if there is storage for weapons in a store that does not sell weapons, items in that storage will remain unupdated.
Therefore, by adding items with dedicated storage to all vendors and reducing the number of arrivals to 0, all storage is updated.


You are allowed to use, include, modify all resources in this mod. No need to contact me.


--------

店の商品が更新されない2つのバグを修正します。
- 一部の酒場の商品が更新されない
- 店に大量の武器などを売った時に、商品が更新されても売った武器などが残り続ける

バニラの店のみ対応しています。
インポート、もしくははニューゲームが必要です。


-- MOD製作者や興味のある方へ

- バーの商品が更新されない
Housematesが設定されている店では、何らかの理由によりそのHousematesが店のオーナーとなってしまうことがあります。
そのため、HousematesのVenderListで商品を更新しようとして失敗しています。
しばらくすると、また店主が店のオーナーとなって更新が再開しますが、いつ戻るかは不明ですしいずれバグが再発します。
基本的な対処方法はHousematesを使用しないか、HousematesにVenderListを追加することです。
このModでの修正方法は 'Faction->Squads->Adventurer Waystation Bar' を参照してください。

- 売った武器などが店に残り続ける
店の商品が更新される時、その店で売っている商品が入れられるストレージのみが更新されます。
例えば武器を売っていない店に武器用のストレージがあると、その中のアイテムは更新されずに残り続けます。
特に資材店は汎用チェストが少なく、売っている物も場所を取るので汎用チェストの空きが少なく、すぐに武器ストレージに売った武器が入ってしまうのでこの現象が起きやすいようです。
そこで、専用ストレージがあるアイテムを全てのベンダーに追加し、その入荷数を0にすることで、全てのストレージが更新されるようにしています。


なお、このModに含まれるリソースは自由に使用して構いません。

9 Comments
NotFresh 1 Feb @ 10:12pm 
this does not work unless at bottom load order. and need import save file everytime you add new mod. its a piece of work!!
rusty sandusky 1 Dec, 2024 @ 1:11pm 
me getting mad at a comment from 4 years ago
rusty sandusky 1 Dec, 2024 @ 1:10pm 
Just gonna say this your sold items don't already disappear, the NPC AI does not always buy your stuff from the vendor you sold to and it does not always disappear. With NPC enjoys more shopping or simliar mods more NPCs will buy from everyone and your stuff will disappear but who fucking asked lmao
Kruys 5 Nov, 2024 @ 1:29pm 
I get infinite plunder. Leave a building and a minute later it's fully restocked whilst the vendor is still unconscious. In Black Dessert city this is what happened to me anyway.
NoirC 22 Jun, 2021 @ 10:55am 
I wish you can revert the AI changes. Like in the mourn, the housemates stuck in the loop of static guard and patrol the town and make them running in the bar. Instead of inherit from 2nd AI package, you can use Squad2 AI Goals. Let the first to guard and second to patrol.
REF6882 14 Mar, 2021 @ 2:00pm 
this is not a bug, pops are actualy buy things and move them, but it is ok - u did a good job
Cectut 21 Apr, 2020 @ 3:02pm 
Just gonna say this your sold items already disappear, the NPC AI buys your stuff from the vendor you sold to and it disappears. With NPC enjoys more shopping or simliar mods more NPCs will buy from everyone and your stuff will disappear.
toBee 10 Sep, 2019 @ 5:18am 
何とか理解しましたが、まさかこんなことができるなんて思ってもみませんでした。その上仕組みも丁寧に説明してくれるなんて、貴方はまさしくmod製作者の鑑です。尊敬します!
Gentle601 10 Sep, 2019 @ 3:57am 
Very nice