Spyke

Posts

dull_mens_club·Dull Men's Clubbyusername_1

120 Ohm lampstand

Because of some sad reasons I do need a 12V electric circuit at home. I use it mostly for a light. So I have a UPS with battery and 12V DC output. To make things not extremely ugly I got 12V led lamp with E27 base, so overall structure looked rather civil.
But at some moment the lamp started to illuminate too dim. It took a year or something I suppose, so it wasn't noticeable until some day I thought "Hey, I can't read anymore under this lamp".
So I took a multimeter and start investigation (I know nothing about electrics besides those cramps they told me in school 30 years ago). I have DC12V 10W 900 lumen lamp which is supposed to "eat" around 800mA. Measurement showed 90mA. Then I started to experiment and measure UPS, battery, different combinations of different modes...

And yes, the last thing I checked (out of frustration, really) was the resistance of the lampstand. 120 fucking Ohm. Oh...

Just disassemble, clean and assemble it back? Nah, cords were wielded in sockets and half-burned and screws are made of cheese. Completely unrepairable garbage.

And I am poor as fuck. The last problem I needed in my life is a new lampstand.

The dullest adventure ever...

View original on discuss.tchncs.de
32

Font adventures

Font fallback mechanisms have more counterintuitive quirks than one might think. For example: I needed a few pictograms to mark land and sea access for some UI element. The obvious solution — using Unicode mountain and anchor glyphs — led to an interesting adventure. The font I use (DIN1451 for Latin), of course, lacked the needed glyphs. Not a problem, you might say: just add them to the font file and be done with it. Turns out it's not that straightforward. While the mountain "letter" (U+26F0) worked fine, the font engine stubbornly refused to use my anchor (U+2693) glyph. The eventual solution was to move both glyphs from their standard codepoints (26F0 and 2693) to the so-called Private Use Area (U+Exxx). After that, the font engine started using whatever the font actually has.

Still not sure whether this is a Godot quirk, a system font engine quirk, or a Unicode nuance.

View original on discuss.tchncs.de
12

reWinWar 0.0.6 is ready

This is a very important update. Version 0.0.6 now has everything a proper game should have. Yes, some modules are still in "stub" mode, but they already exist — and that matters.

Changelog:

  • Main menu.
  • Basic sound system (mostly used in the menu for now).
  • Complete refactoring of the graphical subsystem (with shaders!). Many glitches are gone and performance has improved tremendously.
  • Initial experiments with a save mechanism are done. No game state saving yet, but the Options menu already uses this mechanism.
  • Fonts look great on Linux. Windows version... has fonts. Better than nothing.
  • Basic experiments with music. The code is already in place, but the music isn't yet.

Next version will focus on AI—GUI interaction.

Downloads are here: https://rewinwar.itch.io/rewinwar

The game is written with Godot if anyone is curious.

View original on discuss.tchncs.de
28

You reached the end