tModLoader

tModLoader

The Shop Market
157 Comments
flamedance58 Aug 2 @ 3:20pm 
Oh great idea for a mod!
Jake  [author] Jul 7 @ 11:08am 
@bada1 check your client.log file and post it in the discord
bada1 Jul 7 @ 7:20am 
Hello! If i try to click on the unmet items, my game will freeze. Is this a bug?
Jake  [author] May 3 @ 10:06pm 
@Qwazer join the discord and post your client.log file after replicating the freeze again
Qwazer May 3 @ 4:39pm 
Hello! I tried using the mod with a bunch of others and whenever I try to click on the items being sold, my screen freezes and I can't do anything except force close the game. Do you happen to know what I could do to solve this??
Ganpan140 May 3 @ 12:59pm 
@Wyneus Jacklz made the shop editor, or at least a shop editor, so if you are having a hard time with it you should probably comment there or join our discord and ask there
Wyneus May 1 @ 3:11am 
Hello, there is such a mod as NPC Shop Editor, but it is too difficult to understand how to set up NPCs, remove and add what they sell, as well as setting up the currency, is it possible to do this in your mod, but easier to understand?
Jake  [author] Oct 22, 2024 @ 11:17pm 
@Tyler glad it worked, but you dont need to use my mod as a reference, just use the same process for the other items
Tyler Oct 22, 2024 @ 9:13pm 
@Jake Yes | are you trying to use my mod as a reference in your mod?|
I don't know why but adding(ItemDropRule.Common(ModContent.ItemType) Portable Shop Market & Shop Market Wall Mount shows Error. Shop Market all right does not occur error and with any items added from other mods

Thank you so much, that helped. | your last line should just be itemLoot.Add(ItemDropRule.Common(tableid)); |
Jake  [author] Oct 22, 2024 @ 11:23am 
@Tyler your last line should just be itemLoot.Add(ItemDropRule.Common(tableid));

are you trying to use my mod as a reference in your mod?
Tyler Oct 22, 2024 @ 8:34am 
@Jake same error | CS0122 is inaccessible due to its protection level |

code:
ModLoader.TryGetMod("OneStopNPCShop", out Mod shop);
int tableid = shop.Find<ModItem>("ShopMarketPortable").Type; itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<ShopMarketPortable>()));
Jake  [author] Oct 22, 2024 @ 7:19am 
@Tyler it sounds like you're trying to add it the wrong way. try this:

Modloader.TryGetMod("OneStopNPCShop", out Mod shop);
int tableid = shop.Find<ModItem>("ShopMarketPortable").Type;

from there you should be able to create an itemdroprule to register to your item bag.
Tyler Oct 22, 2024 @ 7:03am 
I wanted to add a Portable Shop Market item to my mod bag(ItemLoot.Add). But build gives the error CS0122 is inaccessible due to its protection level the same error gives Shop Market Wall Mount and with Shop Market Everything is normal.
AntiTau Neutrino Jul 26, 2024 @ 8:36am 
nvm it worked i just placed it somewere else so i would't interact with anything else
AntiTau Neutrino Jul 26, 2024 @ 8:33am 
I can't open shop market menu when it is placed at the ground
jmr Jun 29, 2024 @ 12:52am 
life changing
AridRaider Jan 25, 2024 @ 12:35pm 
@Jake Thank you. :) ill go post on the fargo's mod to see if there's anything they can do.
Jake  [author] Jan 25, 2024 @ 12:35pm 
@AridRaider unfortunately theres nothing you can do to fix this. ill see if i can make a compatibility patch with it but no guarantees. you could also post about it to the fargos mod developer and see if they have anything to say.

as for the cheapest vendor thing, i wont change it to hide the same item from different vendors, but i will add the ability to sort by price in the next update so its easy to find the cheapest vendor
AridRaider Jan 25, 2024 @ 12:15pm 
@Jake So there's nothing I can do on my end to 'fix' this? Another thing with added mods sometimes the same item is sold by different merchants... is there a way I can just have it sell my the item from the cheapest vendor and not include the others? Thank you for the response :)
Jake  [author] Jan 23, 2024 @ 1:39pm 
@AridRaider to be a bit more technical, the shop market finds shop items at mod reload. the squirrel npc edits the shop items when in the world. so there will be some items that the market cannot display.

it might be possible to fix this on my end, but could also be fixable on fargos end if they declare shop items at mod reload rather than in game.
Ganpan140 Jan 23, 2024 @ 12:55pm 
@AridRaider the squirrel's items are determined by your inventory, which means it doesn't work with this mod.
AridRaider Jan 22, 2024 @ 11:56am 
Shop Market isn't detecting items sold by Squirrel in Fargo's mod.
Jake  [author] Dec 22, 2023 @ 11:47pm 
@ModdedNostalgia interesting. ill make a note and see what i can do
ModdedNostalgia Dec 22, 2023 @ 5:13pm 
Interesting bug with "Bosses as NPCs" with the Torch God setting enabled (to reduce the number of npcs for performance): you can buy all of the items from the Torch God that he can possibly ever offer regardless of progression. An option to blacklist certain NPCs in the settings might be helpful for this as a compatibility fix and for any other NPC that may come up that has issues like this that break balance.
Jake  [author] Dec 15, 2023 @ 8:09pm 
@L115 next update should fix this issue
Jake  [author] Dec 15, 2023 @ 8:09pm 
@billyjrbultman check your client.log file. if theres any errors in there, join the discord and post it in the appropriate channel
billyjrbultman Dec 15, 2023 @ 5:24pm 
does any one know my game freezes everytime i try to buy something?
Willy Wanker Oct 12, 2023 @ 2:36am 
On further testing, looks like if you buy more than one item from the Market, it only costs you the money for one item. So you could buy a whole stack of potions for the price of one. Very exploitable
Willy Wanker Oct 11, 2023 @ 6:09pm 
I noticed that when using the "Potions Price Multiplier" for the AlchemistLite NPCs, it doesn't apply to the prices in the Shop Market. My modpack is rebalanced around this, so a fix or generally more control over prices would be really appreciated
Futhorka🏳️‍🌈 Sep 25, 2023 @ 10:12am 
Would be nice to have portable version
calvinosinclair Sep 6, 2023 @ 11:44am 
the problem was no housing, thank you!
Jake  [author] Sep 6, 2023 @ 8:52am 
@calvinosinclair what version are you running? check your filters and make sure your npcs have homes
calvinosinclair Sep 6, 2023 @ 8:31am 
hello, the shop stopped working recently. it shows nothing when opened
Envixity Jul 31, 2023 @ 6:55am 
@CaLiS I had the same problem but I *think* I know why. If you change the shops of the npc (for example the brewer npc from alchamist has 5 shops and you can change between them) and the shop is empty, it doesnt show in the shop market
CaLiS Jun 5, 2023 @ 2:59pm 
Ah a shame but good to know then, thanks for your responses
Jake  [author] Jun 5, 2023 @ 1:53pm 
@CaLiS looks like it might a be bug then. in the 1.4.4.9 preview version, the shop system has changed a bit so this issue will likely be automatically fixed
CaLiS Jun 5, 2023 @ 1:22pm 
I have double checked my filters and it seems that the only thing on is all items, however it is not showing everything still, I scrolled down to check other filters to make sure and that is indeed the only filter on
https://steamcommunity.com/sharedfiles/filedetails/?id=2985455948
Jake  [author] Jun 5, 2023 @ 1:07pm 
@CaLiS double check your filters
CaLiS Jun 5, 2023 @ 12:47pm 
We are playing on stable version
Jake  [author] Jun 5, 2023 @ 9:27am 
@CaLiS are you on preview or stable
CaLiS Jun 5, 2023 @ 1:49am 
Hi, this mod has always worked great on previous playthroughs but on our current one for some reason it tells me its only showing 27/35 npc's shop items? Is this intended or a bug?
Jake  [author] May 15, 2023 @ 7:47pm 
@4k1n0m this issue will likely be automatically fixed when stable updates to 1.4.4.9
4k1n0m May 15, 2023 @ 7:40pm 
when https://steamcommunity.com/sharedfiles/filedetails/?id=2563082541 this mod is enabled the shop market block doesn't show the items from the added shop
NovaKatt😽💚 Apr 26, 2023 @ 2:55am 
Oh wait never mind.. I missed your second reply about 1.4.4.9 stable... My bad! ^^;
NovaKatt😽💚 Apr 26, 2023 @ 2:55am 
Just noticed that the not-yet-researched filter meant for "added for the next update" wasn't added in the 27th march update.
Jake  [author] Apr 23, 2023 @ 1:00pm 
@EasyCo there is a basic filter to sort by item types, but ill add in a way to sort by name and stuff for the next update
EasyCo Apr 23, 2023 @ 11:43am 
Seriously enjoying this so far, is there anyway you could add a sorting feature? So you could sort by item value, damage, alphabetical, etc.? I've got a bunch of mods many of which add NPCs or add more items to vanilla NPCs, and having a sorting feature would really help with going through those massive lists lol.

Thank you again for the mod!
Spectrus Mar 23, 2023 @ 12:18pm 
Hey! This mod is very cool! But when I go to the market, the cost of goods is not displayed. Everything works except for displaying the price
Jake  [author] Mar 14, 2023 @ 7:14pm 
@NovaKatt😽💚 itll be when tmodloader stable updates to 1.4.4.9
NovaKatt😽💚 Mar 14, 2023 @ 8:30am 
So when is the next update coming? :)