{"id":96,"date":"2013-06-11T08:17:28","date_gmt":"2013-06-11T08:17:28","guid":{"rendered":"http:\/\/www.kamremake.com\/devblog\/?p=96"},"modified":"2015-04-09T13:21:30","modified_gmt":"2015-04-09T13:21:30","slug":"how-do-we-know-market-prices-are-right","status":"publish","type":"post","link":"https:\/\/www.kamremake.com\/devblog\/how-do-we-know-market-prices-are-right\/","title":{"rendered":"How do we know market prices are right?"},"content":{"rendered":"<p>Once in a while someone asks us about market prices, claiming that they are unfair and we should adjust specific trades. But each time when we inspect the report we find something is overlooked. So how come we are so sure about market prices now?<\/p>\n<p><!--more--><\/p>\n<p>Market was added to KaM Remake only 1.5 years ago and immediately caused a stir. We set the wares prices basing on wares cost relative to raw wares (stone, trunks, corn, wine, arguably the cheapest resource in KaM). It looked like a good approach, but practice proved us wrong. There were many unfair trades back then, with Trunks for Coal being the most profitable and abused. Since then we have changed our approach, let me quote:<\/p>\n<blockquote><p>The new formula is based on the time it takes to produce 1 of that ware, plus the cost of the components as before (so flour_value = corn_value + time_to_make_flour). There are some additional tweaks:<br \/>\n1. Trees take a large area to produce so they get +0.15 to their value<br \/>\n2. The non-renewable resources are worth additional +25%.<br \/>\n3. Wine takes some extra wood to build so +0.1<br \/>\n4. You can only build a few iron\/gold mines so +0.2<\/p>\n<p>Market tradeoff is 2.2, meaning that for every trade you need x2.2 more wares sold to get the equivalent wares bought.<\/p><\/blockquote>\n<p>But let&#8217;s not waste time on figures and move on to a recent &#8220;market abuse&#8221; example. We were reported that trading Axes to Horses is an unfair trade, that players can dump the economy and easily arm dozens of Knights by using the market. The winning setup is just some 12 woodcutters and 5-6 workshops.<\/p>\n<p>It looks plausible, but let&#8217;s prove it with an experiment! Let&#8217;s take the trusted Map Editor and built such a village, alongside we make roughly equivalent village that is focused on producing Horses in a traditional way. To avoid external factors each Store is stocked with 1000 of food and houses are placed next to each others supply:<\/p>\n<p><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_1.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-97\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_1-300x169.png\" alt=\"market_explained_1\" width=\"300\" height=\"169\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_1-300x169.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_1.png 793w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u00c2\u00a0<a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_2.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-98\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_2-300x150.png\" alt=\"market_explained_2\" width=\"300\" height=\"150\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_2-300x150.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_2.png 600w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Are they going to be equivalent in Horses produced? Let&#8217;s wait for the numbers.\u00c2\u00a0When mission starts it takes some clicking to rig the first village (set axes order to 1000 and set up market trade for horses). Both villages take some time to start producing Horses at a steady rate (trees need to be planted, corn needs to grow). Once that time passes everyone is at work.\u00c2\u00a0Let&#8217;s wait for 2 hours and then compare figures. Debug x300 speedup is a great time-saver \ud83d\ude09<\/p>\n<p><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_3.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-100\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_3-300x231.png\" alt=\"market_explained_3\" width=\"300\" height=\"231\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_3-300x231.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_3-1024x788.png 1024w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_3.png 1032w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_4.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-101\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_4-300x231.png\" alt=\"market_explained_4\" width=\"300\" height=\"231\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_4-300x231.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_4-1024x788.png 1024w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_4.png 1032w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After 2 hours inspecting the villages there are some minor adjustments, but they are quite minor compared to overall picture, so we won&#8217;t restart the experiment (second village could have had fewer serfs). There are few idle serfs, every house is stocked with input materials, there are little to no overhead.<\/p>\n<p>First village is quite impressive: 12 woodcutters, 5 sawmills, 5 workshops, 1 market. 20 serfs, 22 citizens and roughly 260 tiles of roads. Food eaten: 140 bread + 140 sausages.<br \/>\nSecond village is a lot more humble: 6 farms, 3 stables. 15 serfs and 9 citizens. ~90 roads. Food eaten: 80 bread + 80 sausages (could be fewer if we fired idle serfs).<\/p>\n<p>But when we look at Horses produced we see that villages performance is next to identical:<\/p>\n<p><a href=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_5.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-99\" src=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_5-300x231.png\" alt=\"market_explained_5\" width=\"300\" height=\"231\" srcset=\"https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_5-300x231.png 300w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_5-1024x788.png 1024w, https:\/\/www.kamremake.com\/devblog\/wp-content\/uploads\/2013\/06\/market_explained_5.png 1032w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>How could it be? The trick is inside the wares prices and market tradeoff factor. Each ware is priced according to its production rate (see above). True, first village has a lot more GDP, it stomps out axes at a huge rate, but when they are traded GDP is lost. Each time market does an exchange it takes 2.2 units, to give out only 1 unit.<\/p>\n<p>Where does that leads us to? It seems going market is a good idea if you agree to spend twice as many of everything to get the same result from trading \ud83d\ude09 Other times specialized production beats the market and that&#8217;s the point of it.<\/p>\n<p>Outcome: Next time when you hear about unfair market prices, do the same experiment and see how it compares.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once in a while someone asks us about market prices, claiming that they are unfair and we should adjust specific trades. But each time when we inspect the report we find something is overlooked. So how come we are so &hellip; <a href=\"https:\/\/www.kamremake.com\/devblog\/how-do-we-know-market-prices-are-right\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":7,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":359,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/posts\/96\/revisions\/359"}],"wp:attachment":[{"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kamremake.com\/devblog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}