There’s not much going on with NihAV but it’s still something to write about, especially if you consider induced rants.
Archive for November, 2026
Random NihAV news and rants
Thursday, November 26th, 2026Trouble with terminals
Friday, November 20th, 2026Recently I was forced to upgrade OS (mostly because of the browser which required newer libstdc++ and upgrade is less painful than keeping another set of system libraries or building a browser yourself) and of course it got shittier in all aspects. Since the whole list would be too long and pointless, let’s talk about just terminal emulators this time.
On the liberal and traditional values
Wednesday, November 11th, 2026Yes, this is yet another rant nobody has asked for. Sorry about that.
You often hear about traditional and liberal values from the politicians yet hardly anybody defines except in the broadest terms (essentially “for all good and against all bad; if you’re not fully supporting us that means you’re an enemy of good”). So here’s my attempt to make sense of them and which one should be preferred.
Surprisingly, liberal values have been formalised by the prominent expert on chaos and decay C.N. Parkinson. Here I quote three recognisable characteristics of liberal values as formulated by him about half a century ago:
- The first is that their views are based upon a sense of highly moral but unstated and unproven assumptions.
- The second is that they are savagely intolerant of any views that differ from theirs.
- The third is that they are always remote from the arena to which their high-minded principles are meant to apply.
I’ve not ever encountered any more or less formal definition of traditional values. A lazy attempt on that would be to take traditional values as the direct opposite and define them as practical, tolerant and down to earth. In reality though you also hear a lot about high moral principles, the tolerance to different views is questionable at best, and they feel equally remote—but mostly in time instead of space. I believe the last bit is the most important here and that traditional values are those that are defined by three main features:
- protest against the current state of things;
- relating to some past state as the ideal one to which people should return;
- and not actually specifying what state that would be (or at least heavily idealising it, effectively detaching it from reality).
For the distilled examples of both (not to the point of civil war but it feels dangerously close) you can look at the USA. Though I’m not sure if those are real values and not a religion in itself, often chosen not because of philosophical or (nominal) religious beliefs but rather—not unlike party allegiance—either forced on you by your close environment or picked to spite the others (like in an old parable about one man who was offered anything on the condition his neighbour would get twice as much—and he asked to rip his eye out).
So which set appeals to me more? Neither, really. I don’t like to stick to the unproven ideas just because they sound moral but neither I want old proven ideas when all they were proven is to be stupid and/or bad. As an occasional Discordianist I prefer the principle of thinking for yourself; whatever values are out there, they should be evaluated on both moral and practical aspects before accepting—and re-evaluated after some time because tempora mutantur, nos et mutamur in illis. To give an example, hating all foreigners because they’re different is stupid—but switching to the opposite is claiming that all foreigners are good (and better than you) is equally unsubstantiated; the proper attitude IMO is to treat them as equals and adjust attitude depending on their typical behaviour (while not forgetting they’re all individuals, so judge concrete people based on their actions).
Of course it’s not for most people because maintaining such set of values requires a non-trivial effort and denies you instant gratification of belonging to a large group. At least I’m fine with thinking and not feeling happy.
A bit about CWC and CDV
Monday, November 9th, 2026I could’ve written this post much earlier if not for the pressing need to upgrade OS on my main machine. It took time and it will take even more time to configure it to a more useable state; but I’ve made enough rants about software updates already so back to the original topic.
I’ve finally reverse engineered CDV format. While the format itself is quite remarkable, the fact that I had to deal with CauseWay DOS extender packed executable is more important as it offers possibilities to explore even more games. So I’ll document how to deal with it here so I can refer to it later (or maybe somebody else will find it useful but that’s highly unlikely).
So (in case you forgot) CauseWay DOS extender is a special loader allowing to run 32-bit code in DOS environment. Some loaders are standardised around Linear Executable format and can be freely interchanged, Phar Lap P3 format apparently was used on FM TOWNS as well, but this one uses a non-standard format and packed to boot.
There are actually two compressed formats associated with it, both starting with “CWC” signature, window bits for the LZ compression that follows and 32-bit unpacked and packed sizes. The main difference is that one of them is used for compressing user data and employs 16-bit flags packing and another is used by the loader itself to pack code and employs 32-bit flags packing. Good news is that it got open-sources at some point and you can refer to the original assembly code for writing an unpacker (which I did). There’s even a handy utility called CWC.EXE which can compress and decompress user data format which may help you validate the results.
An executable in this format contains several compressed segments, one right after another. First segment contains the compressed code for the extender itself, others seem to contain some data (and I could not properly unpack them), the last segment will contain actual executable code. Just locate it (in my experience first segment always starts at offset 0x4B0 and you can follow them from there), unpack and load as raw 32-bit x86 code. It’s relocatable so addresses start from zero by default. That’s it!
Now about CDV format. It’s been used in some games by Synthetic Dimensions PLC (along with CWC-compressed image data) and its video compression leaves an impression of FLI mixed with PNG. There is an old frame compression format where each line starts with a compression method (0 – no changes, 1 – RLE, 2 – skips and updates, 3 – skips and RLE-compressed updates and so on) and there’s a new frame compression format which employs LZ77-based compression. But unlike many other formats, in CDV most compression schemes can be viewed on high-level as skip and updates lengths with update blocks being coded using several opcodes. To elaborate a bit, traditionally RLE with skips would be coded as “skip N1 pixels, run of M1 pixels, skip N2 pixels, copy M2 pixels, …” with skip codes either being mandatory before single run/copy opcode or each of three possibilities occurring arbitrarily. Here e.g. method 3 codes data as “skip N pixels, decode 8 compressed pixels (run of 4, copy 1, run of 3)”. Similarly in CDV LZ compression you have “skip or decode N pixels” on the higher level and if pixels are compressed, it can be a mix of literals, LZ77 match pairs, or runs (signalled by offset being zero). Of course it’s not something groundbreaking but I like this kind of small deviations from the mainstream implementations.
That’s it for now. I intend to re-visit ART format and figure out its algorithms but no promises on actually accomplishing that.