tModLoader

tModLoader

2,116 ratings
Shop Expander
5
3
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.3, 1.4.4
File Size
Posted
Updated
250.031 KB
Jun 30, 2022 @ 10:19am
Apr 8 @ 11:08am
20 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.8.1
- Fixed issue with some mod calls being broken. Thank you elytrafae for reporting.

v1.8.0
- Added translation for Buyback(missing Chinese localization for it). Thank you Alino4kaHvoshch

v1.7.0
- Added Chinese localization. Thank you Er1c-WYH

v1.6.0
- Added Russian localization. Thank you alinahvoshch

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 ShopExpander:
Developed By DRKV and Exterminator
183 Comments
Eldrick Tobin Jun 22 @ 12:20pm 
That missing first slot is dedicated to the Previous Page button when you move between pages. Same for the bottom row’s rightmost slot. HTH fellow user
Enfo Jun 16 @ 8:44pm 
It just makes the first inventory slot in shops empty for me for some reason
The_Zeta_Girl Jun 15 @ 10:51am 
I seem to be getting an error about "MonoMod," and that's not a mod I have installed within the list. Looking through, I find that this is connected to this mod. I'm getting a crash report talking about how "Reference cell no longer exists (Parameter 'cellRef')" (First line, Crash report).
Alucard † Jun 15 @ 9:19am 
Works properly still?
I wanted to add it to solve the issue Calamity has with the Golfer NPC's inventory overflow.
Денис сифилис May 11 @ 3:53pm 
Люблю АлиночкуХвощ(и немного ксенофила)
Exterminator  [author] Apr 3 @ 10:29am 
Thank you. I've merged your translations and released a new version.
jilijili Apr 2 @ 10:33pm 
Hi! I created a fork and added Chinese localization (zh-Hans) to this mod on Github.:steamhappy:
Bob Mar 9 @ 7:23am 
does this mod work well with shop editor mod?
Exterminator  [author] Mar 7 @ 11:10am 
Thanks for mentioning it here, somehow my notifications for Github were disabled.
Should be good from now on.
Thank you for the localization.
Alino4kaHvoshch Mar 6 @ 10:22pm 
You probably didn’t notice, but I recently created a request to add Russian localization to this mod on GitHub 🙏