123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?xml version="1.0" encoding="utf-8"?>
- <!--
-
- h t t :: / / t /
- h t t :: // // t //
- h ttttt ttttt ppppp sssss // // y y sssss ttttt //
- hhhh t t p p s // // y y s t //
- h hh t t ppppp sssss // // yyyyy sssss t //
- h h t t p s :: / / y .. s t .. /
- h h t t p sssss :: / / yyyyy .. sssss t .. /
-
- <https://y.st./>
- Copyright © 2017 Alex Yst <mailto:copyright@y.st>
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org./licenses/>.
- -->
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <base href="https://y.st./en/weblog/2017/04-April/23.xhtml" />
- <title>Arm issues <https://y.st./en/weblog/2017/04-April/23.xhtml></title>
- <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
- <link rel="stylesheet" type="text/css" href="/link/basic.css" />
- <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
- <script type="text/javascript" src="/script/javascript.js" />
- <meta name="viewport" content="width=device-width" />
- </head>
- <body>
- <nav>
- <p>
- <a href="/en/">Home</a> |
- <a href="/en/a/about.xhtml">About</a> |
- <a href="/en/a/contact.xhtml">Contact</a> |
- <a href="/a/canary.txt">Canary</a> |
- <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
- <a href="/en/opinion/">Opinions</a> |
- <a href="/en/coursework/">Coursework</a> |
- <a href="/en/law/">Law</a> |
- <a href="/en/a/links.xhtml">Links</a> |
- <a href="/en/weblog/2017/04-April/23.xhtml.asc">{this page}.asc</a>
- </p>
- <hr/>
- <p>
- Weblog index:
- <a href="/en/weblog/"><abbr title="American Standard Code for Information Interchange">ASCII</abbr> calendars</a> |
- <a href="/en/weblog/index_ol_ascending.xhtml">Ascending list</a> |
- <a href="/en/weblog/index_ol_descending.xhtml">Descending list</a>
- </p>
- <hr/>
- <p>
- Jump to entry:
- <a href="/en/weblog/2015/03-March/07.xhtml"><<First</a>
- <a rel="prev" href="/en/weblog/2017/04-April/22.xhtml"><Previous</a>
- <a rel="next" href="/en/weblog/2017/04-April/24.xhtml">Next></a>
- <a href="/en/weblog/latest.xhtml">Latest>></a>
- </p>
- <hr/>
- </nav>
- <header>
- <h1>Arm issues</h1>
- <p>Day 00778: Sunday, 2017 April 23</p>
- </header>
- <section id="general">
- <h2>General news</h2>
- <p>
- When I woke up this morning, my left arm and hand were painfully, painfully asleep.
- Both my arms and hands've been falling asleep a lot lately, especially right when I wake up, but this was the most severe case yet.
- It felt like several minutes before it cleared up, and even then, it didn't quite go away entirely.
- </p>
- <p>
- I'm loving this debug mode in <code>minequest</code>.
- It's really helping as I flesh out the user interface and work out the kinks.
- I can't really finish the user interface until I figure out what all the bonuses are, but by getting started, I've been able to figure out some design issues and have made a bit of progress.
- Coal and mese are the two minerals I'm focusing on as far as planning at the moment.
- Coral's done, gold's done, and flint's done, and diamond's done.
- Iron has the most potential.
- Copper's the most difficult to come up with ideas for.
- Once I'm done with mese and coal, I'll probably focus most on copper.
- </p>
- <p>
- Sadly, it looks like the bonus that slows or reverses tool wear is unfeasible.
- In my initial tests, I didn't even bother looking to see if I could reverse tool wear in a player-specific manner.
- I simply mirrored tool wear, so that which damages heals and that which heals damages.
- The plan had been to do it in a player-specific way later and use positive and negative fractions of the initial tool wear to determine the actual tool wear or healing that was to be done.
- However, the function I hooked into for tool wear knows only how much wear is to be added and what the item stack contains (that is to say, what the tool is).
- It doesn't know or have a way to find out who's wielding the tool.
- There might be another function I can hook, but if I can even get it working, the result won't be as good as I'd originally planned.
- Actually ... maybe I can pull this off well after all.
- If I hook <code>minetest.node_dig()</code>, I can calculate the tool as it'd be had the <abbr title="application programming interface">API</abbr> worked the way I wanted it to, call the initial <code>minetest.node_dig()</code>, then replace the user's wielded item with the one I calculated in my own mod.
- It'll be less computationally efficient than what I was aiming for, but it might at least have the same end result if I'm careful.
- </p>
- <p>
- I planned to look for a broom and a bike pump before work today, but I totally forgot about the bike pump until it was too late and instead looked for a vegetable chopper.
- I didn't find a broom at Saint Vincent's, but I found an onion chopper.
- I'm not sure how well it'll work on potatoes, which is what I want it for.
- I also picked up a pair of scissors and some pens.
- While there, I saw a mug that talked about how another day'd gone by without the owner needing to use the algebra they'd learned in school.
- Ha!
- I think I use algebra today.
- I often use algebra in my free time.
- Any time I put an equation into a program and that equation contains variables, that's algebra.
- Sure, I'm making the machine solve the equation, but i have to solve it myself first.
- I often have to reverse-engineer the algebraic expression out of the answer I want it to achieve.
- I have no doubt that this is a common task for programmers, either.
- Those poor people that don't often use algebra are those that don't know the joys of programming.
- </p>
- <p>
- I also stopped at the grocery store and picked up beans.
- They're technically on sale right now.
- They're not as inexpensive as the corn and mixed vegetables are, but if I wait, the price'll go up, not down.
- I might as well get them now.
- </p>
- <p>
- At work, I made some progress in the planning of <code>minequest</code>.
- I'd almost call it a breakthrough.
- My first idea is to add a bonus that allows players to compress their items.
- While the anti-tool-wear bonus'll fill one of the roles of the now-defunct <code>diamese</code> and <code>storage</code> mods, this bonus'll fill the other role.
- You'll need to mine a lot of mese before this bonus will be good for anything and it'll never compress your stored items as well as <code>storage</code> could, but it'll be a big help to mineral-hoarders such as myself.
- And due to the implementation of Minetest Game, the only level-up points I can really offer come from mining, so miners'll be the ones most able to use the bonuses anyway.
- My second idea is a bonus that allows a player to salvage materials by deconstructing items.
- It'll work like reverse crafting, returning what was lost in the initial crafting process and taking away what was gained.
- There will be some limitations though, such as the fact that cooking-based crafts and group-using crafts won't be reversible, as there's no way to determine which items when into their creation.
- Both of these abilities would be incredibly helpful to me, yet they can't be considered overly game-breaking.
- They're perfect!
- </p>
- <p>
- The third idea wasn't one for a bonus to give players but instead one for the user interface.
- I'm pouring a lot of effort into the planning and implementation of this mod.
- It's not in any way a quick hack.
- However, it's not going to look overly professional.
- Or rather, it <strong>*wasn't*</strong> going to.
- The initial plan'd been to reuse the item images as the bonus images.
- You put a mese block in the mese mineral slot?
- Alright, the button/inventory slot/whatever that just opened up looks like a mese block.
- You'll have to try it out to see if you can figure out what the "mese block button" does.
- That'll look poorly done though.
- I have a better idea.
- Every bonus'll have a custom icon representing it.
- I'll draw whatever I thin fits the bonus best.
- It might still be a challenge to figure out exactly what each does (which is an intentional feature), but the interface'll look much nicer and the icon can hint as to what to look for.
- </p>
- <p>
- I just discovered that my lower cupboard, now well-stocked with cans, has a lovely spot just out of view where the cans can fall off the shelf and into a hidden hole.
- In fact, while retrieving the two cans I heard fall, I found an empty olive jar that a previous tenant lost there.
- The cupboard on the opposing side of the kitchen has the same problem.
- I can either store my cans in the smaller cupboards up top or I can be careful about the hole.
- I'll be careful for now, but I'll add this to the list of strange things here.
- A light switch that seemingly does nothing (it doesn't even control any electrical outlets for lamps), the reversed water knob in the bathroom, and now this.
- Don't get me wrong, I love living here, but the place is a bit quirky.
- </p>
- <p>
- My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
- </p>
- </section>
- <section id="university">
- <h2>University life</h2>
- <p>
- I wrote up my <a href="/en/coursework/HIST1421/#Unit3">learning journal entry</a> and my initial discussion post for the week:
- </p>
- <blockquote>
- <p>
- Measuring the success of the Delian League requires defining what we view as success.
- Its stated intended purpose was to allow a specific group of allies to become a unified force for defending themselves from Persia.
- In beating back Persia, they were successful.
- However, their league came to be dominated by one member nation, Athens.
- They failed to be a group of allies working together and became mere subjects of Athenian rule.
- The "communal" treasury of the league, meant for use for all, became the property of Athens with everyone else having to pay tribute into it.
- </p>
- <p>
- The Delian League also lost the Peloponnesian War against the Peloponnesian League.
- No longer allied with Sparta, the Delian League had gained an enemy more powerful than they could handle.
- This wasn't a majority decision, either.
- One city-state, the one in charge of ruling over the league as an empire, made this call.
- What this says is that the Delian League was ineffectively managed.
- Athens allowed their pride to get the better of them, to their own and the league's detriment.
- </p>
- <p>
- Overall, I'd say the Delian League was successful at first, but quickly became unsuccessful.
- They beat back Persia, but they lost their power to Athens and they lost the war against Sparta and Sparta's allies.
- Athens was surprisingly the weak link in the league.
- </p>
- </blockquote>
- </section>
- <hr/>
- <p>
- Copyright © 2017 Alex Yst;
- 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's Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
- If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
- My address is in the source comments near the top of this document.
- This license also applies to embedded content such as images.
- For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
- </p>
- <p>
- <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
- This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F04-April%2F23.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%2F04-April%2F23.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
- </p>
- </body>
- </html>
|