Minecraft on Vulkan

October 7th, 2024

For some time I noticed some serious problems with Minecraft: It was a resource-hog, slow and depending on the modpack, on the lower end of fps, that’s like 15, on my old RTX2060 and on my newer RX7800XT. Even with the rendering distance capped to 16 or 12 to make it playable.

A few weeks ago it also started braking steam. Like, making it impossible to run Steam at the same time as Minecraft without Steam becoming a slideshow. Something was off.

I had the slight suspicion games using Vulkan did behave better, and weren’t causing the issue, so I wanted to try it with Minecraft as well. There is VulkanMod for Minecraft, and there are even a few modpacks like Vulkan Optimized and Vulkan32. I tried both of these, and ended up using Vulkan Optimized as a base for adding a few other mods, like Journeymap, Tech Reborn or AE2. No Create though, as this is incompatible with VulkanMod. And there it was. 60fps with a rendering distance of 32. While running Steam at full steam, pun intended, at the same time.

I was also now clear that my OpenGL was horribly broken, and I couldn’t find any hint of “how”, as at the same time the performance under Vulkan was marvellous. And how could I run any other Minecraft modpack, not just those using version 1.20.1 and 1.21.1 on fabric, without Create or Hephaestos mods, under Vulkan?

Turns out, there is a translation layer available, called Zink which is part of Mesa. Alright, let’s try:

$ MESA_LOADER_DRIVER_OVERRIDE=zink  glxinfo 
name of display: :0
DRI3 not available

That wasn’t quite encouraging, especially since:

$ xdpyinfo | grep DRI3  
    DRI3

It’s configured and working, of course.

Turns out this is a bug or regression on X11 (Seems to work on Wayland), and if you also give it LIBGL_KOPPER_DRI2=1, it works:

$ MESA_LOADER_DRIVER_OVERRIDE=zink LIBGL_KOPPER_DRI2=1  glxinfo | grep "OpenGL renderer" 
OpenGL renderer string: zink Vulkan 1.3(AMD Radeon RX 7800 XT (RADV NAVI32) (MESA_RADV))

And oh, boy, it works. I put these two variables into the env of the PrismLauncher settings of All The Fabric 5 and this is the result:

Screenshot showing F3-Screen. Notably 60 of 60fps, and zink/Vulkan as driver. At render distance 64(!)

And, what you can’t see here, is that the render distance is at max, which happens to be 62(!) with All The Fabric 5. It’s glorious.

I’ll now go and test this out with some modpacks that had gotten unplayably slow before: Project Architect 2, ATM10, AoF7…

Linux on the Lenovo IdeaPad Duet 3i

November 21st, 2022

While looking for mandatory small and preferably cheap notebooks, O stumbled upon the Lenovo IdeaPad Duet 3i, and the post Linux on Lenovo IdeaPad Duet 3i tablet – good enough!

I’ve got one, and to make the long story short: Yes, but not good enough for Minecraft, apparently. While people seem to manage running Minecraft on a N5030 CPU with a Intel UHD 605 with some 20-30 fps; I only get 0. Well, that’s what Minecraft says, it’s less than 1 anyway. And no, it’s not like the hardware can’t do more: there are videos out there that show Minecraft  (on lowest details) running at some 30 fps on exactly that processor/GPU.

First off, installation. I tried both Debian 11, and Ubuntu 22.04. Install is not possible from the SD-Card, only from USB. Also, the bootloader of the Windows 10 that was on it refused to run any third-party software. Useless. But you get to the BIOS with Fn-F2, or to the Boot-selector with Fn-F12, where you can choose to boot from USB.

Both distributions kinda work, and both have the same initial problems. The screen is sideways, which you can fix with fbcon=rotate:1 in grub for the Debian text-mode install, but the Ubuntu-installer will ignore (later I found out what you really have to do: video=DSI-1:panel_orientation=right_side_up This incidentally also fixes plymouth). I copied the grub-config from Matīss Treinis blogpost above, and now it reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fbcon=rotate:1 i915.enable_dpcd_backlight=1 acpi_osi=\"!Windows 2015\" acpi_backlight=video video=DSI-1:panel_orientation=right_side_up"

Also, on Ubuntu I followed his advice to copy ~/.config/monitors.xml to /var/lib/gdm3/.config which fixes the rotation for GDM3.

The second problem I haven’t solved so far. The Wifi tends to stall, without disconnecting. It may or may not come up again, but it will immediately come up again upon “nmcli radio wifi off; nmcli radio wifi on“. This may be a problem with my AP, but as a restart on the IdeaPad makes it work immediately again, I’d blame that one. There’s some advice on Disabling Ubuntu’s Broken Wi-Fi Driver out there, but so far no dice.

And finally, graphics performance. It looks and works nicely on the desktop, and you can even watch 4K movies if you start mpv as “mpv -vo vaapi” (which makes it use the VA api provided by Intel to boost encoding/decoding performance on the cpu), but for now it at least fails miserably on Minecraft.

On the Debian side, I tried using the modesetting and the intel driver for X11, which doesn’t seem to make a difference, and Mesa 20.x and 21.x. Around this point, I found the page with the official Intel-driver for Ubuntu 22.04 (jammy). As the software is one hell of ifdefs to get to work on Debian, I quit after installing whatever was possible (with zero result on Minecrafts performance) and decided to reinstall with Ubuntu 22.04. So far everything works, and Minecrafts performance remains abysmal, no matter the i915 driver dkms. The one thing that remains to be tested is obviously to go from wayland to X11. Also, I’d like to see whether and how some other games run on it.

For now, it’s good enough for watching movies.

Movies about Disease Outbreaks

May 25th, 2020

I’ve been collecting movies about disease outbreaks, since this February 2020. I already had a few of them, and I started to look for more.

The criterion was basically: I’ts about disease outbreak from a virus or a bacterium which does NOT turn the victim into a zombie and certainly does NOT induce physical transformation into some sort of monster. So all zombie-movies immediately disqualified, as did a lot of horror- and monster-movies such as: The Thing (1982, 2011), Virus (1999), Also disqualified was anything not related to viruses or bacteria, outbreaks that relied on insects, parasites, the supernatural and so on. Like The Thaw (2009), The Signal (2007), The Faculty (1998), Shivers (1975) and all vampire movies. Which actually leaves us with a pretty short list.

  • The Andromeda Strain, 1971 (USA). An alien biological lifeform crashes to earth with a satellite and nearly all residends tof a town die. Not too realistic, but a pretty good movie (and book) anyway.
  • The Crazies, 1973 (USA) This is a Virus that’s modeled after the rabies, inducing permanent insanity and most often death.
  • Virus Fukkatsu No Hi, 1980 (JPN). This is more an “apocalypse”-movie than a disaster-movie. Their “Virus” is an impossibility, as it apparently can multiply without host, even at freezing temperatures; and stay airborne for months. It also co-opts other viruses and infects and kills all vertebrae and nobody is immune. To add to the troubles, some automatic retaliation systems threaten to launch nuclear strikes because of earthquakes. It’s not a bad movie, but extremely unrealistic.
  • Warning Sign, 1985 (USA) Outbreak in a biotech-lab. The whole movie plays in and around it.
  • Outbreak, 1995 (USA) Their depiction is pretty good, it depicts a kind of Ebola-type outbreak.
  • Twelve Monkeys, 1995 (USA) A man is sent back from the future to gather intelligence on a virus that wiped out most of humanity.
  • Adrenalin: Fear the Rush, 1996 (USA) In some kind of closed up ghetto, someone kills people. Apparently it’s the first stage of a disease, and he will turn ebola-like infectious in the next stage, but that’s not in the movie. Police hunt it in underground tunnels. Basically “Alien” and not a movie about a disease outbreak.
  • Virus, 1996 (USA) aka “Spill”. Classic nineties action cinema, where every car explodes. Virus is airborne, but can survive days in water; can be fought with the common cold. I don’t think they really thought a lot about it, it’s just a ploy for action cinema.
  • Pandemic, 2007 (USA) Two-part TV movie. This depicts an Ebola-type virus which somehow only affects Los Angeles and behaves more like avian flu. Also, some escaped drug lord hijacks deliveries of anti-viral medicine, and holds the city hostage. On the whole, not terribly believable.
  • Kansen rettô, 2009 (JAP) This is rather gritty, as the heroes of the movie are medical doctors. They’ve overdone it a bit with regards of dissolution of order, and underestimated global proliferation. But all in all, nicely done. The virus depicted feels plausible.
  • Carriers, 2009 (USA) A road movie in a disease-devastated land. The diesease is probably modeled afer H1N1 or something like that. It’s mostly about the cohesion of the group, and how it falls apart.
  • The Crazies, 2010 (USA) Bascially a remake of the 1973 movie; but with a quite different plot. Enjoyable but not outstanding. The ending is pretty unconvincing.
  • Virus X, 2010 (USA) Rogue scientists in meager personal protection and overly dark labs engineer a dangerous H1N1 strain which is more like Ebola. The most ridiculous thing is that everyone still is smeared with blood after hours and days in a lab, despite there’s no lack of water and cleaning utensils. Everything is utterly unconvincing.
  • Contagion, 2011 (USA) Depiction of the virus is rather good; social dissulution is exaggerated.
  • Gamgi, 2013 (KOR) I can’t really understand why they thought anyone would try to stop the spread of a virus by concentrating the whole population of a city in a central ghetto. Otherwise it’s quite ok, but a bit kitschy.
  • The Last Ship, 2014-2018 (USA) This series is also about a world-wide pandemic of an avian-flu type virus that is extremely fatal. But there are immunes. It’s rather militaristic, and suffers from a Star-Trek-bridge-crew-goes-everywhere syndrome. The virus depiction is pretty ok; the social dissolution exaggerated. Meh.
  • The Carrier, 2015 (UK) Here, the disease is caused by a bacteria, which spreads by touch and causes leper-like symptomes, with a near 100% fatality rate due to organ failure. The movie is about an air crew that tries to fly to saftey where none can be found, and how their group disintegrates. Pretty good.
  • Epidemic, 2018 (USA) A small budget movie, and a very small outbreak of some disease, initially stolen from a lab, that produces hallucinations, vomiting, necrosis and death.

Since the description of these were not clear about the kind of a disaster they are about, I did watch them. They are not really about diseases. One was a mistake;

  • Pontypool, 2009 (CAN) This is about, well, more a semantic virus. And the movie is great. Heartily recommended.
  • Skybound, 2017 (GER) Some rich kids fly in a swiss-registered Hawker 800, on the outside at least, from NYC to LA. Or something; the plane is bigger on the inside, but don’t worry, compared to the illogical behaviour of the people in it, that’s nothing. Don’t waste your time.
  • COVID-21: Lethal Virus, 2021 (Spain?) Despite the title, this is a zombie movie. Where daytime lasts 30mins apparently. It’s bad.

Removing Adobe DRM from Books

May 10th, 2020

Digital Restrictions Management is an abomination. I try to avoid it, but ever so often you stumble upon something, and you need it in readable, unrestricted form. Turns out, the mechanisms for removing DRM are just as an unholy mess of outdated software and scripts for proprietary systems as the DRM systems themselves.

The first thing you get when stumbling upon Adobe DRM is an .acsm (Adobe Content Server Message) file. It’s an XML that tells Adobe Digital Editions (and Apps that implement it) where to download the data.

Apparently, there’s several versions of Adobe DRM, and you can enforce an earlier one with a downgrade attack, by using Adobe Digital Editions 2.01 for Windows, apparently still available from Adobe, as it’s the last version to run on Windows Vista and Windows 7.

And yes, you need to create an account at Adobe to use these.

I actually tried ot the newest one (4.5.11) as well. Installation is straightforward:

WINEPREFIX=~/.wine.ade4 winetricks corefonts dotnet40; \
WINEPREFIX=~/.wine.ade4 wine ADE_4.5_Installer.exe

According to winehq.org this should work, but upon trying to download anything with it, it returned E_ADEPT_DOCUMENT_TOO_SHORT.

ADE 2.01 is a bit trickier, it needs a 32bit wine prefix, and dotnet 3.5, servicepack 1. As 4.5.11 it needs corefonts too.

WINEARCH=win32 WINEPREFIX=~/.wine.ade2 winetricks corefonts dotnet35sp1; \
WINEPREFIX=~/.wine.ade2 wine ADE_2.0_Installer.exe

Again according to winehq.org this should work as well, but also returned E_ADEPT_DOCUMENT_TOO_SHORT, which might point to some network-problem, winbind-error, crypto-library too new or somesuch. In any case, you can’t find anything useful by searching for the error.

So I’ve been looking for other apps, some open source on github or somesuch, that could use .acsm files for download. And I found at least one: Aldiko, on Android. It’s apparently also abandoned, but it still can be found on Google Play. I got myself Aldiko Classic 3.1.3.

Upon loading a .acsm File in Aldiko (from anywhere, basically, I copied some I downloaded with the Browser on my Workstation into /sdcard/Download), you get prompted to enter your Adobe acocunt; after that it downloads the books to /sdcard/eBooks. And you can copy over these to any device that has the keys for your adobe account. Like your wine-prefix.

I initially tried to get DeDRM working standalone or with my Calibre on Linux, but it turned out this thing is a collection of dozens of scripts, which all demand python 2.7. Which is EOL, and which no sane person should use aynmore. As you can see from the pull-requests and issues, there’s some efforts of making these work on contemporary python, but these went nowhere so far (“Python tests (2.7) failed” — duh!).

Also, as it turned out, after I fixed one of the scripts to run with python 3, these things rely on the existence of ADE on your system; and you either need to somehow convert registry-entries or get files from MacOS to get the device key and the licence key. Which then are pumped through some assembler(!) to get a useful .der file. All in all, too complicated,

What I did instead was to install python-2.7.msi, pycrypto-2.6.win32-py2.7.exe and calibre-3.48.0.msi into the wine-prefix and run from there:

WINEPREFIX=~/.wine.ade2 wine msiexec /i python-2.7.msi; \
WINEPREFIX=~/.wine.ade2 wine pycrypto-2.6.win32-py2.7.exe; \
WINEPREFIX=~/.wine.ade2 wine msiexec /i calibre-3.48.0.msi

Within calibre, finally, in “preferences -> Plug-ins -> Load Plugin from file” I installed DeDRM_Plugin.zip from DeDRM_tools_6.7.0.zip.

The books downloaded with Aldiko on Android and copied over can now be added to the collection in calibre, and have their DRM removed automatically.

Making xpdf usable on HiDPI with .Xresources

May 1st, 2020

I now have a 4K-screen, and immediately some programs became unusable. Everything KDE just worked. URxvt and XTerm just needed an OpenType font specified instead of the old “fixed” one.

Like this:

xterm*faceName: Monospace
xterm*faceSize: 10

and this

URxvt.font:     xft:bitstream vera sans mono:size=14:antialias=true
URxvt.boldFont: xft:bitstream vera sans mono:bold:size=14:antialias=true

But some were more elusive, most notably, because they’re badly documented on the net, and information is difficult to find because the motif-toolkit is very ancient. One of them is xpdf. Whose UI sported tiny fonts.

But I managed to produce a somewhat decent .Xresources (either put them into .Xdefaults; or put them into .Xresources and merge in via xrdb -merge .Xresouces).

The font really needs to be specified in the old fontList way, and I couldn’t find out how to make it use a modern OpenType font.

The rest is mostly to turn off superfluous borders and heavy shadows.

Xpdf*fontList: -*-lucida-medium-r-*-*-20-*-*-*-*-*-*-*
Xpdf*XmText.background: #ffffff
Xpdf*XmTextField.background: #ffffff
Xpdf*XmList.background: #ffffff
Xpdf*GraphEdit.background: #ffffff
Xpdf*shadowThickness: 1
Xpdf*borderThickness: 0
Xpdf*?*arg*shadowThickness: 1
Xpdf*?*arg*borderThickness: 0
Xpdf*?*buttons*shadowThickness: 1
Xpdf*?*buttons*borderThickness: 0
Xpdf*XmToggleButton*shadowThickness: 0
Xpdf*XmToggleButton*borderThickness: 0
Xpdf*menubar.shadowThickness: 0
Xpdf*menubar.borderThickness: 0
Xpdf*XmMenuShell*XmTearOffButton*ShadowThickness: 2
Xpdf*main_window.?.borderThickness: 0
Xpdf*main_window.shadowThickness: 0
Xpdf*cutCopyPasteBindings: KDE
Xpdf*selectAllBindings: KDE
Xpdf*buttonColorKey: c
Xpdf*FlatButtons: on

And you especially want it to start in a decent size. You can set this in .pdfrc, but this replaces it:

Xpdf*initialZoom: 200

A Minecraft Modpack: A-Roving

January 19th, 2020

With the advent of Minecraft 1.15.1, there came modpacks. And face it, playing Minecraft without automapping (and probably veinminer/ore excavation) feels rather weird. So I started looking at them, and soon found out, there are even now a lot more mods for 1.15.1 than are included in modpacks. So I made my own:

It’s available at https://www.curseforge.com/minecraft/modpacks/a-roving.

A-Roving is focused on roving, wandering, exploration, spelunking and dungeoneering. It still features some tech and basically is a kitchen-sink pack, but the focus is on stuff that either makes exploration interesting like ruins and generated structures, or that supports it, like backpacks and diving gear.

The one thing it’s not focused on, is building. While some mods add to the block palette, I explicitly left out things like Structurize or MrCrayfish’s Furniture mod, as they add mostly a lot of blocks. But there are some things in there that add light options (including the MegaTorch, which allows you to use low light levels without having to fear spawning) and redstone controlled contraptions.

Also left out are things that change gameplay completely, like “Lycanites mobs” (which looks ugly, by the way, and wrong).

As of now it’s one of the bigger modpack for 1.15.1 with 150 mods, but there are still a lot of mods missing that are not yet on 1.15.1 or have no replacement. Some tasks like mob farms will require combinations of vanilla and modded ingenuity.

It’s also configuration-light, meaning most of the mods behave as the mod-makers intended, I intend to change the configs as I go and find “undesirable” behavior, like lootbags containing creative power sources (which should be fixed in version 1.0.0 already).

Bad Minecraft Mods

October 10th, 2018

There are some mods for minecraft out there, that are just plain bad, not because of code quality or because they contain bugs and are badly maintained, but because they’re subscribing to some kind of philosophy that’s actually hostile towards the player. In most cases, nobody would use them, but sometimes these mods get entrenched into modpacks where they become a nuisance to a lot of players. I likely did forget some things, and maybe people will tell me that this-and-this feature(!) has been fixed, but on the whole I gather I’m right, and these mods are not going to change what I’m criticising. Since I don’t want to post a worst-of-list, but detail where they fail, they’re sorted alphabetically.

Avaritia

Avaritia offers some extremely powerful weapons and armour, which it tries to counterbalance with two things:

  • Idling to wait for enough stuff to build up in some strange machine whose main purpose is to be slow (you need thus a lot of those) or for stuff to build up in you system (like hundred-thousands of blocks of something), to move into some other machine, very slowly, to convert into something. To add to the insult, if you break the machines, you loose all content; like tens of thousands of iron blocks.
  • Clicking various stuff into place in an oversized crafting table that can hold much more different ingredients than your inventory, thus making any effort of automatic filling in of the recipe useless. And if the recipe is simpler than 36 ingredients , you’re sure to need something like 58 stacks.

Sounds familiar?

Buildcraft

Buildcraft is intended to goad players into overloading servers by having things that will behave badly and produce lag, unless the player knows exactly what he’s doing.

  • Hose’d It’s not a pipe, it’s a hose, and the player needs to throttle the feed, or it will spill and kill the server. But maybe it will anyway, since it runs on random ticks and likes to spill on chunk boundaries. And you need to power pipes, and these engines produce, you guessed it, lag.
  • Not Invented Here Needs its own incompatible power system, which is basically the same, but incompatible. Oh wait, replaced the compatible one with an incompatible one.

Factory Tech

Factory Tech is for making replacement parts that constantly break for Factory Tech machines that constantly break.

  • Russian Dolls Sorry, but to craft the thing you need, you need to craft 5 more machines. Actually, a complete production line for all these machines, because you need to supply them with parts that constantly break.
  • Micro Stacks So you can’t stack up on parts and need to set up a production line. Really.

This might be an interesting mod if you really wanted to decide on it, like for a modpack that does not have RF or its equivalents at all; but if you run into it in any other context, it’s an exercise in frustration.

Forestry

It’s about beekeeping. It doesn’t care whether you only wanted to grow trees, now you’ll do beekeeping.

  • Wrong Path The main problem is, in order to pollinate trees, you need to breed bees, and you basically need to go into a rabbit-hole of bee breeding, just to get the right kind of bees.
  • Mutations There’s a huge tree of species; actually two trees, one for bees and the other for trees to mutate around. If you’re lucky. In fact, you’ll be so unlucky, there’s a mod called Gendustry out there that allows you to tone down the randomness and with some effort get the species you want.
  • Weird machines You need several machines that are basically useless for everything else. Some also need electronic parts, which are also useless everywhere else, and are made by other weird machines.

There’s actually a lot of interesting stuff in Forestry, but the mechanisms force you to do microcrafting and follow paths — for a long time — you didn’t actually intend.

Hats

Because novelty is only funny once.

  • Not Hats. Putting weird shit on your head doesn’t make it hats. Believe me, I’m the guy who has a collection of more than 100 actual hats, caps and helmets.
  • Visual Mis-cue Sometimes probably intended, you see something and think there might be something special, but it’s only some stupid thing on the head of a mob.

IndustrialCraft 2

The use of IndustrialCraft is to craft and power IndustrialCraft machines.

  • Hostile to other mods. It actively tries to do it’s own thing, to the point of sabotaging interoperability-efforts of other mods. For instance other power-systems than its own, but also stuff that tries to pick up its blocks, or stuff that feeds to/from IndustrialCraft machines.
  • Things fail Machines will explode if they get too much power. And they always used to break if somebody tried to pick them up with a pickaxe, and even sometimes if done with the proper wrench. Which is just a nightmare for new players to figure out how this mod is supposed to work.
  • Not documented Lots of weird and inexplicable behaviour, not documented. And even the textures are nondescript, which adds to the general impression of hundreds of (machine?-)blocks with no purpose (apparently it’s only 98).
  • Microcrafting You will need a lot of these machines, just to get the parts done for other machines. And then you need to craft things from things to craft things to craft things.
  • Highly Illogical It’s got a power system on it’s own. Not one that’s more realistic, but one that’s totally absurd; like needing a transformer at the plant for every thing that uses power. And did I mention everything explodes if it gets too much power?
  • Abomination What highly illegal thing is this?

    A crafting table with multiple items in the same slot need for one craft. An abomination.

    multiple items in same slot for ONE craft

Lordcraft

The real clicker game. It’s even worse than Avaritia.

  • Clicker It has its own crafting bench, which needs to get some kind of power from another block, where you need to feed in crystals; but the really bad thing about this crafting bench is that you need to click for every item that is being crafted. Wait a few seconds until its crafted, click again. Of course it ignores redstone clocks.

Magneticraft

The evil twin of Immersive Engineering

  • Powerless Magneticraft feels somehow like the modern cousin to Immersive Engineering, the logical extension to it. But it does not accept power from it. Magneticraft does have a real-world electrical system itself, but there is no reason not to just convert RF to Joules and RF per ticks to Watts. The voltage could be ignored or converted to LV/MV/HV where available. But no.
  • Interface unclear Especially for the multipart machines, it’s entirely unclear where the in- and outputs are, and why the machine doesn’t get power and so on.

Modern Industrialization

It takes 13 blocks of material to make a machine of one block size

  • Massive amounts & Microcrafting A basic pump (one block) takes 81 copper and 24 tin. And the “Forge Hammer” you need for micro-crafting the 3 different bits of each of the nine-parts of the two rotors takes 49 Iron.

Tech Reborn

Tech Reborn has gotten a lot better actually, so maybe this should even be removed. In fact, I’ve grown to like Tech Reborn in 1.19.2 and later.

  • Microcrafting Everything needs complicated things, preferably made by other machines.
  • Powerless All the generators are measly, except the end game one, and particularly egregious is the diesel generator which takes more energy for the making of diesel than it produces.

Dateinamen sind Schall & Rauch

August 28th, 2018

Vortrag zur CoSin 2018 in dem erklärt wird weshalb Dateinamen Ephemeral sind und wichtige Informationen in der Datei selber gespeichert werden sollen.

Minecraft: Zeppelin for Skyblock Worlds

February 28th, 2018

Apart from floating Islands, the other big theme that makes itself obvious for modded Minecraft Skyblock worlds, is airships.

Planetminecraft is full of these Airships; most follow some steampunk theme and feature a huge ship hanging from a ridiculously small bag. A few are actual zeppelins or blimps, but the most beautiful of them are usually replica of historical ones, like LZ127 (236m long, 30m diameter) or LZ129 Hindenburg (245m long, 41m diameter).

What I needed was a zeppelin that would look like a zeppelin regarding the dimensions, but smaller. If it’s about loaded chunks, you don’t want to get all out.

So basically the requirements where these:

  • It may have the maximum diameter of a chunk, that means 16
  • Diameter must be an odd number, so 15 it is
  • It should have a fitting length to get decent proportions relative to the diameter, something like a ratio of 1:6 (LZ129 has exactly that one; LZ127 has one of 1:7.5)
  • Easy to build with skyblock resources. But not requiring any modded blocks.
  • schematic for the use with the schematica-mod

In the end, I made two versions, one out of cobblestone, for building early in the game, but which could be a liability if your modpack doesn’t have something like a swapping wand; and a mid-game version in grey wool, completely lightened out and carpeted.

In all honesty, I didn’t try out the cobblestone-version, as I managed to get a lot of string very fast in different modpacks. Also, the models feature a very bare-bone gondola, which I never built in survival. Instead I built good-looking ones, out of aluminium. There are no motor-gondolas either.

Schematics

And here how it looks on the inside:
View from the front doorView towards the back
This is all without any modifications, straight from the schematic. It features 3 walkways, two hatches on top, a hatch to the gondola on the bottom, and a door at the front. Also, a room, lit by toggleable redstone lamps, which is something like 24 blocks from the gondola away, in other words, pre-made and suited for a small mob-farm, with still the whole bow to spare as workplace.

When I used this within “Modern Skyblock 3 Departed“, I put some windmills in place where the motor gondolas would reside, and put a decent gondola into place:

These didn’t provide enough energy, so I put some solar panels on top, behind glass:

Because the interior takes a lot of power:

Especially the cloches from “Immersive Engineering” I installed, which basically produce every resource imaginable via “Mystic Agriculture”. You can see the watermills from “Extra Utilities 2” producing GP as well.

Block usage of the woolen version, in order of importance:

  • 3089 Light Gray Wool
  • 1838 Light Gray Carpets
  • 415 Gray Wool
  • 62 Glowstone
  • 20 Redstone
  • 8 Redstone Lamps
  • 4 Levers
  • 2 Iron Doors
  • 33 Oak Wood Planks
  • 308 Stone Slab
  • 18 Ladders
  • 3 Wooden Trapdoors
  • 15 Oak Fences
  • 20 Oak Wood Slabs

In total, 4728 wool, 1644 ink and 3081 bonemeal.

Vive Linux

December 5th, 2016

I’ve got a HTC Vive, and I managed to get it to work, and – more importantly – to get several applications to work with it.

Kernel

The Vive comes with a link box that connects to USB and HDMI, so you need to have some drivers compiled in. The following might be somewhat nonstandard, or at least I haven’t had to use them before I got the Vive.
CONFIG_USB_HIDDEV=y
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_HDA_CODEC_HDMI=y

Also, you need to give your user some permissions on these devices via udev-rules. The debian-package steam-devices will actually install one, but apparently this is not enough, thus:
ACTION=="add", KERNEL=="hidraw*", ATTRS{idVendor}=="0bb4", ATTRS{idProduct}=="2c87", TAG+="uaccess"
ACTION=="add", KERNEL=="hidraw*", ATTRS{idVendor}=="28de", ATTRS{idProduct}=="2000|2101", TAG+="uaccess"

Or something thereabouts. Using TAG+="uaccess" is the modern version you should use instead of MODE="0666" or somesuch.

X11

I actually wasn’t able to tell my system it should use the DisplayPort first, if a HDMI device was plugged in. So I need to boot first, and only then plug in the HDMI cable to the link box. This also has the effect that my X11 usually has no idea about the Vive, and it needs to be activated to work. You can set the Vive display as active in nvidia-settings (for nvidia, GPUs obviously). This looks like this then:
$ xrandr --listmonitors
Monitors: 2
0: +DP-0 1920/477x1080/268+0+0 DP-0
1: +HDMI-0 2160/122x1200/68+1920+0 HDMI-0

Building Vrui

The first thing I read about anything working with the Vive on Linux, was this post: I Am Using VR on Linux with My Vive and Vrui. I actually had tried an earlier version of Vrui before, but failed. But 4.2-006 actually works. However, there are no debian-packages, it’s not even available to clone from some RCS, there seems to be only a tar-ball, and along with it even a bash-script to build it.

Since I think bash-scripts and wget to build software is 1980ies I only followed it somewhat. First, get dependencies:
apt-get install build-essential g++ libudev-dev libdbus-1-dev libusb-1.0-0-dev zlib1g-dev libpng-dev libjpeg-dev libtiff5-dev libasound2-dev libspeex-dev libopenal-dev libv4l-dev libdc1394-22-dev libtheora-dev libbluetooth-dev libxi-dev libxrandr-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libxine2-dev
Note the libxine2-dev which the script doesn’t install.

I then edited the makefile, where I changed a load of hard-coded variables around, and also set known paths like STEAMVRDIR to where I knew it would find it, because it would otherwise do find over my home-directory.

As it turned out, my build environment was also too new, it bombed on the C++ 11 ABI. I had to put
CFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0 into the makefile. And since we’re on it, put it into ExamplePrograms/makefile as well, but take care that it goes below the include-statements.

After compiling and installing, it’s ready to run. If you haven’t installed the udev-rules yet, Vrui comes with some decent ones. And you can also change directory to ExamplePrograms, and build and install these as well. And copy over the Share/RunViveTracker.sh to where its useful.

Running Vrui

First off, start RunViveTracker.sh and keep it running.

Now you first want to run EyeCalibrator -rootSection Vive, which will display a window within the Vive, that will show you to how many millimetres you set the interpupillary distance with the knob on the right of the Vive. Read Technology Transfer for more information.

The next thing is RoomSetup Vive. Note that you don’t want to set a rootSection here, as you want it to display on the desktop. Vive la Vrui! will basically walk you through this. The room setup will define the area for the Screen Protection (that is the green wireframe) which will pop up if you move too near to the room borders.

After that, you’re ready to go, to use something like ClusterJello -rootSection Vive. See I Am Using VR on Linux with My Vive and Vrui for more.

VruiXine

If libxine2-dev was already available while building the Vrui examples, VruiXine should already have been compiled. As usual, it’s started with VruiXine -rootSection Vive, if you want it to use a different audio output than pulseaudio, you can set that with -ao alsa or something like that.

For me, VruiXine always starts with the window at an angle about three metres to the left. Upon clicking on “theatre”-mode in the menu, this gets fixed and the window is in front of me. Or I can start it with -vo theater (careful: American spelling: “theater”). Also menus appear in five metres distance initially, but pulling them up again will subsequently display them near me and readable. The “Save”-button in the DVD menu, will save the streaming settings and display mode (window/theatre), but not the window size and position, and it will save it into the folder the movie is in, with the name of the movie and .cfg added. So all the settings are movie-specific.

Also, unless you’re sitting in the middle of your VR space, you might need to disable the Screen Protector lest you constantly have green wire frame in your movie. Apparently you can do this in the menu “Vrui System”->”Devices”, but I just set screenProtectorDevices ( ) in ~/.config/Vrui-4.2/Vrui.cfg.

You can see which config-files are used by starting it with the -vruiVerbose flag.

See also the “Watching Movies” section on Vrui on Oculus Rift DK2

CaveQuake

CaveQuake is a Quake3 map viewer that sets up on Vrui. See Quake III Arena Maps in VR, under Linux, with Vive+Vrui on how to set this up.

One important thing to note is that here as well, I had problems with the C++ 11 ABI. In the installed share/Vrui-4.2/make/BasicMakefile I put in EXTRACSYSFLAGS += -D_GLIBCXX_USE_CXX11_ABI=0 So everything compiled against Vrui in the future would get this flag set. For CaveQuake itself, I also did set export EXTRACSYSFLAGS += -fPIC temporarily to compile.

The controls you get with “Walk” are this green thing on the floor, which is meant to be leaned on/off to move you. Which is really made for use in a Cave, and not in a Couch. Sadly, I have not yet found any option to control movement via keyboard, or even via those Vive controllers.

Apparently, most menu items in the Vrui control menus are really not menu items, but tool bindings, things you can bind to your controllers, save with “Vrui System”->”Devices”->”Save Input Graph” and load with -loadInputGraph on the commandline. Still, I don’t quite understand how this works.

Vivecraft

Vivecraft on Linux

Vivecraft on Linux

There is a Minecraft mod for using the Vive, called Vivecraft. You can get it from https://github.com/jrbudda/Vivecraft_110 but I haven’t been able to build it myself yet. So I used this: vivecraft-1.10.2-Vivecraft-jrbudda-6r4-installer.jar.zip
There are some other versions flying around, but they may lack the native Linux libraries. Also, you need Minecraft of course.

Now, in order to get this working, I needed the 64bit versions of the SteamVR libraries driver_lighthouse.so and libaitcamlib.so. The main problem were dependencies, since my system does not usually have such outdated libraries as libudev.so.0. The first attempt was to use the Steam-environment, but that includes dozens of outdated libraries, which in turn resulted in java not working. So I symlinked only the necessary libraries to where they were needed:
cd ~/.steam/SteamApps/common/SteamVR/bin/linux64
ln -sf ~/.steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libudev.so.0.13.0 libudev.so.0

And wrote a little startup-script:

#!/bin/sh
DRIVERDIR=~/.steam/SteamApps/common/SteamVR/drivers/lighthouse/bin/linux64
COMMONDIR=~/.steam/SteamApps/common/SteamVR/bin/linux64

export MESA_GL_VERSION_OVERRIDE=4.1
export MESA_GLSL_VERSION_OVERRIDE=410
export __GL_SYNC_DISPLAY_DEVICE=DFP-5

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DRIVERDIR:$COMMONDIR
cd ~/.minecraft
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -Xms2048M -Xmx2048M -jar Minecraft.jar

You might need to change that DFP-5 there, that’s the HDMI port your Vive sits on.

With that, it starts, and as long as the Vive can not see the base stations it displays the main menu. However, when I put it on, the menu is only visible up to the far right. There’s a “Reset Origin” menu item, and if you place your mouse on that before putting on the Vive, and click on it afterwards, Vivecraft kinda works. You can walk around, destroy and place blocks and so on. All with you mouse and keyboard. What’s not working for me is the menus and inventories, as I suspect they pop up somewhere where I can’t see them.

See also the issue on github.