[Solved] SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

xabileug
記事: 20
登録日時: 2020年4月20日(月) 00:29

[Solved] SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by xabileug » 2020年4月21日(火) 00:40

こんにちは、日本語は私の主な言語ではありません.

Suppon Shop Stockは、buyコマンドでTMItemcategoryを使用すると正しく機能しません。
新しいアイテムを販売する場合、新しいカテゴリはサポートされません。
どうやって回避するのですか? ありがとうございました

Suppon Shop Stock is not working right with TMItemcategory when uising the buy command.
New category is not supported when selling new items.
How to work around? Thank you
最後に編集したユーザー xabileug on 2020年4月22日(水) 08:07 [ 編集 1 回目 ]

アバター
Plasma Dark
記事: 669
登録日時: 2020年2月08日(土) 02:29
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by Plasma Dark » 2020年4月21日(火) 09:25

Hi, xabileug

If you want to use SupponShopStock.js and TMItemCategoryEx.js,
and to separate shop buy window by item category (including new category added by TMItemCategoryEx.js),
you can use following patch plugin.

https://github.com/elleonard/RPGtkoolMV-Plugins/blob/master/plugins/DarkPlasma_SupponShopStockPatch.js

But, this plugin usage is a bit difficult, so I recommend that you use DarkPlasma_ShopStock.js and DarkPlasma_ShopBuyByCategory.js instead of SupponShopStock.js.

https://github.com/elleonard/RPGtkoolMV-Plugins/blob/master/plugins/DarkPlasma_ShopStock.js

https://github.com/elleonard/RPGtkoolMV-Plugins/blob/master/plugins/DarkPlasma_ShopBuyByCategory.js
xabileug
記事: 20
登録日時: 2020年4月20日(月) 00:29

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by xabileug » 2020年4月21日(火) 16:42

hello. thank you for making the patch. but i cannot get it to work. i do not understand the instruction #2
Add following code in anonymous function of SupponShopStock.js.
window[Scene_supponSSshop.name] = Scene_supponSSshop;

I am using supponstock because of the feature items sold can becomes stock of the shop.i will also try your script. thank you very much.

i am using rpg maker mv 1.5.1 i tried your script but i cannot make the stock appear. what do you put in the stock setting and what is ther variable stock ID for? thank you
アバター
にゃたま
記事: 837
登録日時: 2016年1月13日(水) 23:53
お住まい: 床下の猫王国-すみませんが体調悪いのでサポートはお休みさせていただきます
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by にゃたま » 2020年4月21日(火) 18:57

質問の趣旨と異なる記事でしたので削除しました
最後に編集したユーザー にゃたま on 2020年4月21日(火) 22:07 [ 編集 4 回目 ]
アバター
Plasma Dark
記事: 669
登録日時: 2020年2月08日(土) 02:29
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by Plasma Dark » 2020年4月21日(火) 21:07

Hi, xabileug.
Thank you for your trying to use my patch plugin.

but i cannot get it to work. i do not understand the instruction #2
Add following code in anonymous function of SupponShopStock.js.
window[Scene_supponSSshop.name] = Scene_supponSSshop;


This means you open SupponShopStock.js with any text editor (e.g. VSCode, atom, anything you like) and write code in the plugin.
In the following, I excerpt from the plugin after you write my MAGIC CODE.

コード: 全て選択

...
    function Scene_supponSSshop() {
        this.initialize.apply(this, arguments);
    };

    window[Scene_supponSSshop.name] = Scene_supponSSshop;
...


I think you can find 3 lines code starts with `function Scene_supponSSshop() {` at line 256 of SupponShopStock.js.
The instruction #2 means you only have to add MAGIC CODE `window[Scene_supponSSshop.name] = Scene_supponSSshop;` after the code.

i am using rpg maker mv 1.5.1 i tried your script but i cannot make the stock appear.


Thank you for your trying and very sorry.
Almost all of my plugins only work with RMMV 1.6.x or later.
I recommend that you upgrade RMMV, but if you should not (because of your project only works with 1.5.x) then you can use my patch plugin for rmmv 1.5.x.

https://github.com/elleonard/RPGtkoolMV-Plugins/blob/master/plugins-for-rmmv1.5/DarkPlasma_SupponShopStockPatchForRMMV1-5.js
アバター
Plasma Dark
記事: 669
登録日時: 2020年2月08日(土) 02:29
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by Plasma Dark » 2020年4月21日(火) 21:23

にゃたまさん

プラグインのご利用、不具合報告ありがとうございます。
トピックで話されている話の焦点と直接的に関係しない事項については、別にトピックを立てていただくほうが質問者を混乱させずに済みます。

私のプラグインについてご質問がある際にはトピックを立てていただいても構いませんし、あるいは可能であればgithubにissueを立てていただく手もあります。
https://github.com/elleonard/RPGtkoolMV-Plugins/issues
アバター
にゃたま
記事: 837
登録日時: 2016年1月13日(水) 23:53
お住まい: 床下の猫王国-すみませんが体調悪いのでサポートはお休みさせていただきます
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by にゃたま » 2020年4月21日(火) 21:46

Plasma Dark様

了解いたしました。
それから失礼いたしました。
確かにここでの報告はまずかったと思います。
それも相手が外国人さんのようですし…
勢いで投稿してしまいました(汗)

githubでissueを立てたことがなく
少し勉強してから立てることにします。

追記
少し調べた結果githubにこんな機能あったのか…って感じでした
これはバグ報告便利だわって今更ですかね(汗)
無知でスミマセン…
xabileug
記事: 20
登録日時: 2020年4月20日(月) 00:29

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by xabileug » 2020年4月21日(火) 22:27

i tried in a blank project the patch does not work for me.. all my items with category <potions> <herbs> still appear in same default category "item" in the buy window. I found SupponStockShop has a bug with TMItemCategoryEx when category is less than 4, there is error.
アバター
Plasma Dark
記事: 669
登録日時: 2020年2月08日(土) 02:29
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by Plasma Dark » 2020年4月21日(火) 22:59

i tried in a blank project the patch does not work for me.. all my items with category <potions> <herbs> still appear in same default category "item" in the buy window.


hmm.... I tried with patch, then they work well.
It works with following settings.
添付ファイル
supponShopStockCodeChange.png
MAGIC CODE in SupponShopStock
itemNote.png
itemCategory note
itemNote.png (8.57 KiB) 閲覧数: 4393 回
TMItemCategoryEx.png
Setting of TMItemCategoryEx
pluginOrder.png
Plugin Order
アバター
Plasma Dark
記事: 669
登録日時: 2020年2月08日(土) 02:29
連絡を取る:

Re: SupponさんのSupponShopStockとtomoakyさんの TMItemCategoryExの併用について。

投稿記事by Plasma Dark » 2020年4月21日(火) 23:00

I found SupponStockShop has a bug with TMItemCategoryEx when category is less than 4, there is error.


I updated patch plugin for fix it.

https://github.com/elleonard/RPGtkoolMV-Plugins/blob/master/plugins-for-rmmv1.5/DarkPlasma_SupponShopStockPatchForRMMV1-5.js

“MV:質問” へ戻る