Mods / TradersTweaks

Tags:
Tweak
Author:
KenigVovan
Side:
Both
Created:
Dec 1st 2022 at 4:53 PM
Last modified:
Jan 17th at 9:47 PM
Downloads:
1364
Latest release (for Vintage Story 1.21.6, outdated):
vendorcoins_0.1.4.zip  1-click install

Change items which can be used as currecy with default traders.

COINS_VALUES in config lists items codes and it's values:
default is
{
"tradeomat:coin-gold": 256,
"tradeomat:coin-silver": 64,
"tradeomat:coin-copper": 1,
"game:gear-rusty": 0
}

RETURN_ITEM: is item code which will be used as payment item with value 1, which trader will return after buy/sell operations
default: "tradeomat:coin-copper"

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
0.1.4 vendorcoins 75 Jan 17th at 9:47 PM vendorcoins_0.1.4.zip 1-click install
  • rebuild
0.1.3 vendorcoins 573 Dec 4th 2022 at 7:39 PM vendorcoins_v0.1.3.zip 1-click install

- fix - if disableCoinCasting was disabled in config "attributes" was null, so no change of the "currency" value for item

0.1.2 vendorcoins 347 Dec 2nd 2022 at 5:25 PM vendorcoins_v0.1.2.zip 1-click install

- capi/sapi usage

0.1.1 vendorcoins 361 Dec 1st 2022 at 10:28 PM Empty vendorcoins_v0.1.1.zip 1-click install

9 Comments (oldest first | newest first) (threaded | flat)

Calvinist, Feb 8th 2025 at 6:07 PM

will this be updated to 1.20?

KenigVovan , Dec 4th 2022 at 7:40 PM

Vronizos

"attributes" for coins was null if "disableCoinCasting" was true, now it should work

Vronizos, Dec 4th 2022 at 2:52 PM

Next litle issue, if i set disableCoinCasting on true value in Tradeomat config, all vendors and players have 0 coins (I have for example 256 coins in my inventory, but mod doesnt detect it). If i set disableCoinCasting on false, all work fine.

KenigVovan , Dec 1st 2022 at 10:44 PM

0.1.1 now has 15 seconds delay when items values updated after player joins the server which should resolve problem for now.
Changed values in config on the server seems to be used now.
I'm aware that gui has now "...gears..."

Using config you can select item by it's domain:code value for it, it should be coins, they are just for example.

RuneScholar, Dec 1st 2022 at 10:02 PM

Changing item values in the config does not affect actual gameplay, which acts as though it is using the default, even if that has also been changed. This is a great mod, though, exactly what I was looking for. I suppose you used actual metal value when setting up the ratios for coins?

Theisgood, Dec 1st 2022 at 9:49 PM

So with this mod installed I can no longer use gears to purchase items but instead coins?

Can I set each coin to a different value and return the gears back to 1$ and have the coins be more valuable?

 

GaiaWitch, Dec 1st 2022 at 9:15 PM

Confirming that the values do not stick once changed in the config. It acts as though it's using default values.

Vronizos, Dec 1st 2022 at 7:19 PM

And one more think... If i set game:gear-rusty to 0 value in COIN_VALUES, all traders have no money in his wallet and i cannot sell the my items

Vronizos, Dec 1st 2022 at 7:07 PM

I think RETURN_ITEM is not working properly
This is my config, and trader always return copper coins. For example i buy something for 1 gold coin and trader give me 255 copper coins 

{
"COINS_VALUES": {
"Comment": null,
"Default": {
"tradeomat:coin-gold": 256,
"tradeomat:coin-silver": 64,
"tradeomat:coin-copper": 1,
"game:gear-rusty": 0
},
"Val": {
"tradeomat:coin-gold": 1,
"tradeomat:coin-silver": 0,
"tradeomat:coin-copper": 0,
"game:gear-rusty": 0
}
},
"RETURN_ITEM": {
"Comment": null,
"Default": "tradeomat:coin-copper",
"Val": "tradeomat:coin-gold"
}
}