ZigTheHedge Posted November 2, 2020 Report Share Posted November 2, 2020 (edited) 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: Spoiler Changelogs and downloads have been moved to MODDB! https://mods.vintagestory.at/show/mod/59 Spoiler 1.5.5: - Disallow hotkeys usage when hovering mouse over an item in tradeomats (thanks, @Hexedian) 1.5.4-B: - Fixed crash when trying to buy already bought product (in trade'o'rug) - Fixed crash when leaving "price" field empty (in trade'o'rug) 1.5.2-B: - Added config options to disable various mod content. 1.5.1-B: - Fixed Admin-shop crash on dedicated server. 1.5.0-B: - 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. 1.4.9-B: - Fixed crash in multiplayer when trying to purchase something from Trade'o'mats type 1 and 2. - Fixed stacks merging in existing slots. 1.4.8-B: - Fixed prices display on various GUI scale - Fixed crash when trying to pick up Tradeomat with installed CarryCapacity - Fixed shift-click behavior 1.4.7-B: - 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 1.4.4-B: - 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. 1.3.4B: - Fixed snow layer on open crate - Fixed open crates with items rendered empty on world load. - Added Brazilian-Portuguese translation (thanks @xCoiotex) 1.31B: - Fixed claim behavior (now players can use tradeomats inside claimed areas) - Fixed Crate server sync 1.3B: - Added second variation of Trade'o'mat! This variant renders it's contents inside! (dedicated server testing needed!) 1.21B: - 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. 1.12B: - Fixed incorrect side config for the upper Trade'o'mat part. - Now owner's name displayed on top popup. 1.1B: - Completely rewrote synchronization code. Hopefully it will solve sync issues. 1.0B: - 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): tradeomat_v1.13.4-1.31B.zip 1.14.0+: tradeomat_v1.14.0-1.5.5.zip 1.15-pre.1: tradeomat_v1.15.0-1.5.7.zip Suggestions are welcome! And bug reports also of course. Edited January 12, 2022 by ZigTheHedge 9 1 1 1 Link to comment Share on other sites More sharing options...
Streetwind Posted November 3, 2020 Report Share Posted November 3, 2020 I love the model. Great work 1 Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 3, 2020 Report Share Posted November 3, 2020 (edited) Thanks for the great mod Edited November 10, 2020 by Julius van Vern Link to comment Share on other sites More sharing options...
Rhonen Posted November 3, 2020 Report Share Posted November 3, 2020 looks awesome... i would prefer a market stall... but yes... funny will try it Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 3, 2020 Report Share Posted November 3, 2020 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 More sharing options...
ZigTheHedge Posted November 3, 2020 Author Report Share Posted November 3, 2020 What've you done exactly? Link to comment Share on other sites More sharing options...
Rhonen Posted November 3, 2020 Report Share Posted November 3, 2020 It's working, looks great. good UI Like it Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 4, 2020 Report Share Posted November 4, 2020 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 More sharing options...
ZigTheHedge Posted November 4, 2020 Author Report Share Posted November 4, 2020 1 hour ago, Julius van Vern said: I dont understand what happend. I´m on the Same Server like Rhonen (see above). I cannot reproduce it Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 4, 2020 Report Share Posted November 4, 2020 hmm.. in German "KOMISCH" i will download the game in a fresh installation and try it again. Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 4, 2020 Author Report Share Posted November 4, 2020 1 hour ago, Julius van Vern said: i will download the game in a fresh installation and try it again. If you know how to reproduce it, you can do it in single player world and send it to me 1 Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 4, 2020 Report Share Posted November 4, 2020 59 minutes ago, ZigTheHedge said: If you know how to reproduce it, you can do it in single player world and send it to me With a fresh and new installation all fine. Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 4, 2020 Report Share Posted November 4, 2020 During my test, I found out that it only occurs when I press Deal on my own Trade O'Mat. It seems to work with a Trade O'Mat from another player. 1 Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 4, 2020 Author Report Share Posted November 4, 2020 Updated to 1.0B. Possibly fixed all the issues found so far 1 Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 4, 2020 Report Share Posted November 4, 2020 okay.. i try it Link to comment Share on other sites More sharing options...
Rhonen Posted November 4, 2020 Report Share Posted November 4, 2020 (edited) 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 November 4, 2020 by Rhonen 1 Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 4, 2020 Author Report Share Posted November 4, 2020 17 minutes ago, Rhonen said: Seems there is something still wrong while synchronizing the clients Argh! I'll look into it more closely 1 Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 4, 2020 Author Report Share Posted November 4, 2020 Nooow we're talking! Please give a try to 1.1B version 1 Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 5, 2020 Report Share Posted November 5, 2020 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. 1 Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 5, 2020 Author Report Share Posted November 5, 2020 Hey, Julius! I'm glad to hear that! As of title - yeah, I gotta think about it. I think, I'll remove all the text besides the name of the owner 1 Link to comment Share on other sites More sharing options...
DArkHekRoMaNT Posted November 5, 2020 Report Share Posted November 5, 2020 15 hours ago, ZigTheHedge said: As of title - yeah, I gotta think about it. I think, I'll remove all the text besides the name of the owner Maybe just transfer the owner's name to tooltip ("Waila")? Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 6, 2020 Author Report Share Posted November 6, 2020 (edited) I’ve done both already! ) But I don’t want to release the version with just these minor changes. Edited November 6, 2020 by ZigTheHedge Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 7, 2020 Author Report Share Posted November 7, 2020 1.12B update: - Fixed incorrect side config for the upper Trade'o'mat part. - Now owner's name displayed on top popup. 2 Link to comment Share on other sites More sharing options...
Julius van Vern Posted November 9, 2020 Report Share Posted November 9, 2020 Hello, is there a limit for players on how many Trade'o'mate they can set up? If not, is it possible to set a limit? Thanks a lot Link to comment Share on other sites More sharing options...
ZigTheHedge Posted November 9, 2020 Author Report Share Posted November 9, 2020 2 hours ago, Julius van Vern said: If not, is it possible to set a limit? It's not, but the request accepted 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts