Shop Bug Fix (Your sold items will disappear)

If you liked this item, please rate it up on Steam Workshop page.

Author: kapaer

Last revision: 6 Mar, 2021 at 13:27 UTC (2)

File size: 216.06 KB

On Steam Workshop

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に含まれるリソースは自由に使用して構いません。

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.