14.xhtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. h t t :: / / t /
  4. h t t :: // // t //
  5. h ttttt ttttt ppppp sssss // // y y sssss ttttt //
  6. hhhh t t p p s // // y y s t //
  7. h hh t t ppppp sssss // // yyyyy sssss t //
  8. h h t t p s :: / / y .. s t .. /
  9. h h t t p sssss :: / / yyyyy .. sssss t .. /
  10. <https://y.st./>
  11. Copyright © 2017 Alex Yst <mailto:copyright@y.st>
  12. This program is free software: you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation, either version 3 of the License, or
  15. (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program. If not, see <https://www.gnu.org./licenses/>.
  22. -->
  23. <!DOCTYPE html>
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <base href="https://y.st./en/weblog/2017/06-June/14.xhtml" />
  27. <title>Gotta&apos; go into work tomorrow &lt;https://y.st./en/weblog/2017/06-June/14.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <link rel="stylesheet" type="text/css" href="/link/basic.css" />
  30. <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
  31. <script type="text/javascript" src="/script/javascript.js" />
  32. <meta name="viewport" content="width=device-width" />
  33. </head>
  34. <body>
  35. <nav>
  36. <p>
  37. <a href="/en/">Home</a> |
  38. <a href="/en/a/about.xhtml">About</a> |
  39. <a href="/en/a/contact.xhtml">Contact</a> |
  40. <a href="/a/canary.txt">Canary</a> |
  41. <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
  42. <a href="/en/opinion/">Opinions</a> |
  43. <a href="/en/coursework/">Coursework</a> |
  44. <a href="/en/law/">Law</a> |
  45. <a href="/en/a/links.xhtml">Links</a> |
  46. <a href="/en/weblog/2017/06-June/14.xhtml.asc">{this page}.asc</a>
  47. </p>
  48. <hr/>
  49. <p>
  50. Weblog index:
  51. <a href="/en/weblog/"><abbr title="American Standard Code for Information Interchange">ASCII</abbr> calendars</a> |
  52. <a href="/en/weblog/index_ol_ascending.xhtml">Ascending list</a> |
  53. <a href="/en/weblog/index_ol_descending.xhtml">Descending list</a>
  54. </p>
  55. <hr/>
  56. <p>
  57. Jump to entry:
  58. <a href="/en/weblog/2015/03-March/07.xhtml">&lt;&lt;First</a>
  59. <a rel="prev" href="/en/weblog/2017/06-June/13.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2017/06-June/15.xhtml">Next&gt;</a>
  61. <a href="/en/weblog/latest.xhtml">Latest&gt;&gt;</a>
  62. </p>
  63. <hr/>
  64. </nav>
  65. <header>
  66. <h1>Gotta&apos; go into work tomorrow</h1>
  67. <p>Day 00830: Wednesday, 2017 June 14</p>
  68. </header>
  69. <section id="general">
  70. <h2>General news</h2>
  71. <p>
  72. I spent the morning and into the afternoon walking and biking.
  73. While I was out, I thought about the barter system I&apos;d like to get set up on my Minetest server.
  74. It&apos;d be nice to have some sort of cash system, but how would that even work?
  75. I&apos;ve come up with various options in the past, but I never like how they work.
  76. One option is to have players start out with a set amount of money when they join the server for the first time.
  77. More money can be acquired by selling goods to other players.
  78. However, this encourages users to create several accounts and pipe the money all into their main account&apos;s wallet.
  79. Another option is to give players a set amount of money every so often.
  80. However, this encourages players to create several accounts, logging into them every once in a while to transfer cash to the main account.
  81. Again, artificially encouraging the creation of multiple accounts is something I&apos;d like to avoid.
  82. With this second plan comes another problem though: inflation.
  83. The longer you&apos;ve played, the more money you&apos;ll have, even if you don&apos;t work for it.
  84. The longer the world&apos;s been in use, the less the economy is even good for anything.
  85. For this reason, the only feasible way I&apos;ve been able to figure out how to get an economy running is through barter.
  86. However, while I was out, I came up with another plan.
  87. When mining certain nodes, they can have a one in one hundred (or some other probability) chance of dropping some sort of currency instead of themself.
  88. To give the currency value, it&apos;d actually be backed; any amount of money placed in the crafting grid in any formation will result in some otherwise-finite resource being crafted.
  89. This&apos;d fix the problem of lack of renewability in Minetest!
  90. I think many players will still use barter instead, as the cash will be better used for generating materials from.
  91. Some players are ... strange, though.
  92. For example, I knew a player that thought mese shards were great currency.
  93. They didn&apos;t like that I removed them from my world.
  94. The problem?
  95. Mese shards in Minetest at the time were completely worthless.
  96. You could break a mese crystal into nine shards, but once you did, the shards could never be crafted back into a crystal.
  97. (This problem has since been fixed, thankfully.)
  98. Furthermore, there was nothing you could craft out of mese crystal fragments; unless you had a full crystal, all you had was trash.
  99. </p>
  100. <p>
  101. I&apos;m putting <code>minequest</code> away for now to work on this new idea.
  102. <del>I may or may not pick <code>minequest</code> back up in the future.
  103. It&apos;s a nice concept, but I think it fills a need I no longer have.
  104. My goal in the past when modding Minetest has been to use a subtle touch, affecting the state of the game world as little as possible.
  105. I no longer feel boxed in like that though.
  106. Minequest is a lot of code that boils down to just being able to customise a character, changing game play without touching the actual world much.
  107. Honestly, I think I&apos;d like to come back to it at some point, but if and when I do, coming up with all the bonuses is going to take a while.
  108. It might never be finished.</del>
  109. <ins>Never mind.
  110. I just realised that this mod <strong>*has to*</strong> be completed.
  111. Its completion proves the <code>minestats</code> <abbr title="application programming interface">API</abbr> is complete enough to build off of, and in building <code>minequest</code>, I&apos;ll come across the holes in the <abbr title="application programming interface">API</abbr> that need to be patched.</ins>
  112. </p>
  113. <p>
  114. I wrote up some code to have Minetest tally up the number of possible recipes involving only my new currency.
  115. There are four hundred!
  116. There are only three hundred seventy-eight items in Minetest Game, and that doesn&apos;t even remove the items I don&apos;t want to provide recipes for, such as undug minerals, still in their node form.
  117. Clearly, the initial idea needed refinement.
  118. I decided to randomise the recipes and support as many items as possible.
  119. In an otherwise-vanilla copy of Minetest Game, that&apos;d be all of them, but if mods were added, there could be more items than available recipes.
  120. Next, I needed a way to rule out items that should never be crafted.
  121. After thinking a while, I decided against the randomisation plan, and instead make two hundred items craftable, each via one of two recipes.
  122. I&apos;d have some fallbacks for in case some Minetest Game mods weren&apos;t installed, and if too few of the mods were installed, I&apos;d drop the item count to one hundred and provide four recipes each.
  123. <code>default</code> alone has over one hundred items I&apos;d feel fine making recipes for, and I have to depend on that mod anyway to turn some of the nodes into ores to sometimes dig strange coins from.
  124. </p>
  125. <p>
  126. I came up with an even better idea later though.
  127. <code>strangecoins</code>, my new money mod, can depend on <code>minestats</code>!
  128. The dependency will more than likely be soft, but if both are installed, which items you can purchase from the server will depend on your mining/farming stats.
  129. Nine strange coins can be crafted into a shop node.
  130. Each purchasable item will have a price, a mineral, and a stat requirement.
  131. Depending on which stats you increase, you&apos;ll have access to different items to buy.
  132. Unless you get <strong>*all*</strong> your default stats and all the stats added by <code>strangecoins</code> up to a certain level, there will be some things you just can&apos;t buy.
  133. I&apos;ll also add an <abbr title="application programming interface">API</abbr> to allow the adding of more stats and more items for purchase to the shop node.
  134. While sorting purchasable items into what mineral/crop they&apos;d belong to, I found that coal cannot be, even in minute traces, in yellow or white dye.
  135. Interesting.
  136. </p>
  137. <p>
  138. I did my laundry early this time, getting it done when I only had one load to do instead of two.
  139. Strangely, the dryer I used gave me twelve minutes per quarter I fed it, as opposed to the usual ten.
  140. I wonder if the other dryers are doing this now too.
  141. </p>
  142. <p>
  143. I was planning to stay up and start my coursework tonight; the term begins at 22:00.
  144. However, I received an email from a coworker.
  145. They need me to cover a morning shift, which means I need sleep.
  146. I&apos;ll take a look at the first week&apos;s work before I head out tomorrow so I can think about what I need to submit when I get back.
  147. </p>
  148. <p>
  149. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  150. </p>
  151. </section>
  152. <section id="dreams">
  153. <h2>Dream journal</h2>
  154. <p>
  155. I dreamed my mother had encountered a &quot;rock fish&quot;.
  156. No explanation was given as to what a rock fish actually was, but my mother was confused to have encountered it in the house.
  157. Apparently, they live inside crumbly rocks.
  158. I was a bit confused.
  159. They couldn&apos;t actually be a type of fish that lives on land inside these crumbly rocks, could they?
  160. Alyssa admitted they&apos;d been crumbling a crumbly rock onto the floor for the past while, so the rock fish had probably come out of that.
  161. Our mother was annoyed by this, and told Alyssa to clean up the mess.
  162. I actually encountered the thing later.
  163. I turns out these rock fish were a type of persistent, flying, biting insect.
  164. I found it when it bit my shin, and I knocked it off.
  165. It kept flying at me, and I kept batting it away with whatever I was holding at the time; I forget what that was.
  166. The insect was mildly annoying at worst though.
  167. </p>
  168. <p>
  169. It&apos;s worth noting that real <a href="https://en.wikipedia.org./wiki/Rockfish">rockfish</a> live in water, <strong>*amongst*</strong> rocks, not in them.
  170. </p>
  171. </section>
  172. <hr/>
  173. <p>
  174. Copyright © 2017 Alex Yst;
  175. You may modify and/or redistribute this document under the terms of the <a rel="license" href="/license/gpl-3.0-standalone.xhtml"><abbr title="GNU&apos;s Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
  176. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  177. My address is in the source comments near the top of this document.
  178. This license also applies to embedded content such as images.
  179. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  180. </p>
  181. <p>
  182. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  183. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F06-June%2F14.xhtml"><abbr title="Extensible Hypertext Markup Language">XHTML</abbr> 5.1</a> specification and uses style sheets that conform to the <a href="http://jigsaw.w3.org./css-validator/validator?uri=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F06-June%2F14.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  184. </p>
  185. </body>
  186. </html>