For easy configs formatting you can use Google Sheets JSON Helper. It was created for this mod to help editing configs. More info in the spreadsheet itself.
Now you can edit all your trader files at once and your items as a list without need to think about JSON format at all. All you need is to copy/paste content from/to files.
Credits for the idea, first implementation, testing and documentation for @MeowingInsanely!
There is Item discovery section. Sell only discovered items is set to true by default, making items only appear at trader after you touched them. And Undiscovered items list to sell makes item an exception from discovery rules. You can add DvergrNeedle to Undiscovered items list to sell config to make it appear at any stage. And then you can set your needle like this
BUY, not SELL. the json is supposed to be "shudnal.TradersExtended.haldor.buy.json", not "shudnal.TradersExtended.haldor.sell.json"
i went a little mad when nothing seemed to work and saw a little down below you recommended downloading a config someone else made, and i did that, and realized that buy and sell was reversed
might have also been me using notepad to write the config file, but in my defense, i did also try the json website you linked and that didnt work either, but that was because i was unknowingly listing it as an item i can sell to haldor.
anyway, after using the original code, in the json maker website, and saving it as a .buy.json, haldor now sells dvergr extractors. cheers.
Hey, is there a way to just unlock purchase of any item without needing to individually add them to the config lists? I'm coming from the BetterTrader mod for ability to buy and sell to Haldor, but when I load this mod, even though I can see the altered UI that let's me sell, it still only lets me sell the treasure items, and Haldor still only has the regular items to buy even after I set item discovery to false.
If it makes a difference, this is installed on a preexisting world after I got to Haldor and realized the BetterTrader mod no longer worked.
Easiest manual way to add all items to trade list is to use Google Sheets JSON Helper. You already have all vanilla items added on trader specific pages. If you have no need in trader specific configs you can use Common.Buy and Common.Sell sheets. All you need is to set stack size and price to every item for it to appear.
How do I get it so that I can sell trophies to a merchant? I'd like to be able to sell greydwarf, skeleton, and other monster trophies for coins so they're not clogging up my storage, but every time I use the JSON helper, it refuses to set a price for Haldor to buy them, so I can't sell them to him in game.
"Auto" means there is some formula which actually is not. Game does not have any economics outside of vanilla pieces balanced in its own way. So there is no formula and no basis for calculation presented in game. You can make economic model based on some rules and then apply that model to prices but again you have to do it all by yourself. "Auto" prices from BetterTrader is merely random values applied to item groups. At least as I see it. It's far from balanced and while it's reachable to make somewhat balance model I bet no one will be interested in making one.
This mod is a framework and does not come with any predefined item lists. You have to set item lists yourself or use one of existing lists made by other people like:
Не могу разобраться почему не прогружается список предметов. Я не вносил никаких изменений в настройки, часть с деньгами, скидками и тд прогрузилась, а вот предметы на покупку после их нахождения у продавца - нет. Или нужно отдельным списком еще куда-то загрузить весь потенциальный список предметов после установки мода?
Да, нужно подготовить файл в формате JSON, назвать его правильно и положить в папку "\BepInEx\config". Формат файла есть в описании, там же примеры имен файлов. Можно воспользоваться Google Sheets JSON Helper, там есть пошаговый гайд и автоматическое формирование файла.
How can I enable logging to see what is happening when purchasing a treasure map? I am currently trying to buy an ashlands map and it can not get a location for it
Is it possible to get a gold decay system? So for example if the trader has 16000 gold due to me buying lots of stuff, that amount will decay at a rate of x per day. Similar to the refill system. This would be very nice.
Hi! It seems there might be a confliction with this mod and your Extra Slots mod. Whenever I have both enabled, it seems this mod loads properly as the menu is different than vanilla and nothing shows up in the console. But I only see the vanilla items and can't sell anything.
It works fine for me. I have all my mods installed and check for compatibility. More so both mods don't have intersecting functions. I guess the issue could be in different mod manager profiles where your json files are at only one profile.
294 comments
More info in the spreadsheet itself.
Now you can edit all your trader files at once and your items as a list without need to think about JSON format at all. All you need is to copy/paste content from/to files.
Credits for the idea, first implementation, testing and documentation for @MeowingInsanely!
is it different if i installed the mod manually and added the .dll file directly into the plugins folder?
the mod still works, it shows up in the config manager ingame, and the trader window is different now, but he just doesnt sell those new items
Sell only discovered items is set to true by default, making items only appear at trader after you touched them.
And Undiscovered items list to sell makes item an exception from discovery rules.
You can add DvergrNeedle to Undiscovered items list to sell config to make it appear at any stage.
And then you can set your needle like this
i went a little mad when nothing seemed to work and saw a little down below you recommended downloading a config someone else made, and i did that, and realized that buy and sell was reversed
might have also been me using notepad to write the config file, but in my defense, i did also try the json website you linked and that didnt work either, but that was because i was unknowingly listing it as an item i can sell to haldor.
anyway, after using the original code, in the json maker website, and saving it as a .buy.json, haldor now sells dvergr extractors. cheers.
If it makes a difference, this is installed on a preexisting world after I got to Haldor and realized the BetterTrader mod no longer worked.
But you can easily migrate you current lists from BetterTrader using LLM. I took Default config file from BetterTrader and made ChatGPT transform it to shudnal.TradersExtended.common.buy.json and shudnal.TradersExtended.common.sell.json.
"Auto" prices from BetterTrader is merely random values applied to item groups. At least as I see it. It's far from balanced and while it's reachable to make somewhat balance model I bet no one will be interested in making one.
Im used name like this: shudnal.TradersExtended.bogwitch.sell (for sell)
UPD: i found my mistake in config file, sorry.