tModLoader

tModLoader

1,722 ratings
Shop Expander
5
3
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.3, 1.4.4
Language: English
File Size
Posted
Updated
250.818 KB
30 Jun, 2022 @ 10:19am
24 Feb @ 3:18pm
16 Change Notes ( view )

Subscribe to download
Shop Expander

Description
Shop expander aims to solve a problem encountered by many players using multiple large mods.
Town NPCs have a limited amount of free shop inventory space.
When multiple different mods add items to a single vanilla NPC's shop, it can overflow, causing any additional items to not show up.
The issue is further compounded by the fact that some items might be added to the same shop by multiple different mods, resulting in wasted slots.

This mod solves the problem, by modifying tModLoader's shop setup process.
It provides each mod with a new empty inventory to put items in, then combines the inventories.
This new Expanded shop is then divided into pages for displaying.
As a bonus, you also get a full 28 slot empty page for the buyback buffer.

For more game-play info visit the mod's home page.

Changelog:

v1.5.0
- Add config option to disable paging for specific NPCs

v1.4.1:
- Fix empty shops

v1.4.0:
- Add `AddNpcTypeToIgnoreList` Call api that tells ShopExpander to ignore ALL shops from a specific npc
- `Mod.Call("AddNpcTypeToIgnoreList", int npcType)`
- Add `AddNpcShopToIgnoreList` Call api that tells ShopExpander to ignore ONE shop from a specific npc
- `Mod.Call("AddNpcShopToIgnoreList", int npcType, string shopName)`

v1.3.0:
- Fix for 1.4.4
- Remove following Call apis
- SetProvisionSize - You can add as many items as you want if the mod is enabled
- SetModifier - Not needed anymore. Now mod order dependent(just like vanilla)
- SetNoDistinct - Duplicate cleanup is not done anymore
- SetVanillaNoCopy - Unused
- AddLegacyMultipageSetupMethods - switch to 'AddPageFromArray' Call

v1.2.6:
- Fix buyback buffer

v1.2.5:
- Revert to v1.2.0

v1.2.4:
- Maybe fix issues caused by previous version.

v1.2.3:
- Fix attempt #2 for vanilla painter shop overflow bug.
- Increase default allowed shop size to 80.

v1.2.2:
- Increased default allowed shop size to 60(vanilla is 40) in an attempt to fix vanilla painter shop issues.
Also allows mods to be more liberal with adding items without needing mod calls.

v1.2.0
- Bug fixes
- Internal refactor
- New cross mod api
- Allow mods to add custom shop pages
- Switch from Harmony to MonoMod

v1.1.2
- Fixed multiplayer issues

v1.1.1
- Better error handling and other bug fixes
- Fixed overzealous duplicate remover
Originally posted by tModLoader:
Developed By DRKV and Exterminator
165 Comments
El Tecato De La Conundrocity 15 Dec @ 11:10am 
Back, and I must say, mod's pretty handy for the vanilla NPCs who get 149 new items from Quality Of Life mods. Only thing I'd say is work on a better button system, cus the one just now leaves a gap in their first shop slot (even if their items don't overflow). Other than that, this mod's the most handy one I've seen.
Exterminator  [author] 15 Dec @ 8:14am 
Tested alone and it does work. Try disabling other mods until you find the one at fault.
Jay 14 Dec @ 7:33pm 
doesnt work
Exterminator  [author] 23 Nov @ 9:18am 
Sweet. That is most welcome.
I'm gonna test this, and report back to you two about any bugs I find. D's that sound aight?
Exterminator  [author] 4 Oct @ 6:58am 
The empty shops issue has been fixed.

If you encounter any more empty shop issues while using this mod, please verify that the issue also happens without any other mods enabled. If it doesn't happen with only Shop Expander enabled, that means another mod is causing the issue.
Grasson...? 1 Oct @ 12:08pm 
have the empty shops been fixed?
aubri 30 Sep @ 8:29am 
thank you!
semorina 12 Sep @ 11:27am 
zamn
Exterminator  [author] 5 Aug @ 2:30pm 
Does this happen with only the Shop Expander mod enabled?