Jump to content


Recommended Posts

Hey, fellow players!

Here's the mod which adds machines and coins for server offline trading!


Vending machine variant:


Market stall variant:


Trade'o'rug (allows to sale five different items "as-is" for a difference prices - so it's possible to sell food for example):



These blocks are used for trading of course! The owner (player who has placed the block down) is able to set the trade (sneak-click):



Here Trade'o'mat expects to exchange 4 cattail roots for 1 sack of carrot seeds. And stock is filled for 12 deals. When the potential buyer opens interface, he sees the following:


Just place required price to the left slot and push "Deal!" button to make a trade.

And here are the coins to use with my Trade'o'mats and just for exchange between players.



Video Tutorials (English and Deutsch) courtesy of Julius van Vern:



Changelogs and downloads have been moved to MODDB!





- Disallow hotkeys usage when hovering mouse over an item in tradeomats (thanks, @Hexedian)


- Fixed crash when trying to buy already bought product (in trade'o'rug)

- Fixed crash when leaving "price" field empty (in trade'o'rug)


- Added config options to disable various mod content.


- Fixed Admin-shop crash on dedicated server.


- Added "creative" variant for tradeomats (not trade'o'rug!). To set tradeomat to "creative mode", player with "gamemode" privilege have to check "Creative shop" tick in Owner GUI.


- Fixed crash in multiplayer when trying to purchase something from Trade'o'mats type 1 and 2.

- Fixed stacks merging in existing slots.


- Fixed prices display on various GUI scale

- Fixed crash when trying to pick up Tradeomat with installed CarryCapacity

- Fixed shift-click behavior


- Added third Trade'o'mat version (named Trade'o'Rug), which allows to sell exact items (or the whole stack) for the defined price. First of all it can be used to sell such items as weapons, tools and food

- Added "Deal!" check-out sound :)


- Fixed ability to trade items with temperature (wow, that was hard to catch)

- Fixed memory leak

- Added three coin variants: Copper, Silver, Gold. Coins are smelted from corresponding metals using clay mold (4 coins per 100 units of metal). They also reverse-smeltable. Coins can also be placed on solid ground.


- Fixed snow layer on open crate

- Fixed open crates with items rendered empty on world load.

- Added Brazilian-Portuguese translation (thanks @xCoiotex)


- Fixed claim behavior (now players can use tradeomats inside claimed areas)

- Fixed Crate server sync


- Added second variation of Trade'o'mat! This variant renders it's contents inside! (dedicated server testing needed!)


- Added configurable limit of allowed Trade'o'mats per player. (You can find the TradeomatConfig.json file on ModConfig folder of your VintagestoryData).

- Now players can use Trade'o'mats inside claims.


- Fixed incorrect side config for the upper Trade'o'mat part.

- Now owner's name displayed on top popup.


- Completely rewrote synchronization code. Hopefully it will solve sync issues.


- Fixed client crash when trying to make a deal without configuring the Trade'o'mat first.

- Fixed client crash when performing the last deal possible before selling out.

- Fixed wrong attributes in purchased item.

- Added "Block Help" tooltip for Trade'o'mat.

Older versions:

1.13.4 (no longer maintained):






Suggestions are welcome! And bug reports also of course.

Edited by ZigTheHedge
  • Like 9
  • Cookie time 1
  • Amazing! 1
  • Thanks 1
Link to comment
Share on other sites

Hey.. i tryd to test your mod, but i get this Servermessage. 

14:15:49 [Server Event] Player Juliusvanvern got removed. Reason: Threw an exception at the server
14:15:49 [Server Error] System.NullReferenceException: Object reference not set to an instance of an object.
   at Vintagestory.API.Common.CollectibleObject.Equals(ItemStack thisStack, ItemStack otherStack, String[] ignoreAttributeSubTrees)
   at tradeomat.src.TradeomatBlock.BETradeBlock.OnReceivedClientPacket(IPlayer fromPlayer, Int32 packetid, Byte[] data)
   at Vintagestory.Server.ServerSystemBlockSimulation.HandleBlockEntityPacket(_G9je56dJHtKJvFSBsXkB7nErImG packet, ConnectedClient client)
   at Vintagestory.Server.ServerMain.ProcessNetMessage(NetIncomingMessage msg, NetServer mainSocket)
14:15:50 [Server Notification] All clients disconnected, pausing game calendar.

do you have any idea, what goes wrong? 🙂

Thank you

Link to comment
Share on other sites

15 hours ago, ZigTheHedge said:

What've you done exactly? ;)

I placed the TradeO´Mat Block, fill it with Root and Carrots and click on Deal. 

I tryd to run the game without other Mods, clean the Cache in %Appdata/VitnageStoryData%

I dont understand what happend. I´m on the Same Server like Rhonen (see above). 

Link to comment
Share on other sites

Server side crashes gone with the 1.0b :)
but seems it's not synchronized from server to clients.

Setting up a Trade-o-Mat

Both players can see it


Julius input the 3 gears and pressed "Deal!"

I can see the correct ouput

But Julius can not see his bought item.

Seems there is something still wrong while synchronizing the clients :(

Edited by Rhonen
  • Mind=blown 1
Link to comment
Share on other sites

Hello Zig, I have tried the new version. There seem to be no problems with the synchronization at the moment. Rohnen will do another one tonight against check. But so far it looks good. Could you perhaps shorten the title in the field? It seems a bit too long for the display field.okay.. i try it :)


Thank you. I think your Mod will replace the ShopMod on our Server. 🤩

  • Amazing! 1
Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.