米米的博客

做了一点微小的工作

Minecraft 在不同的平台上发行了多个版本,如经典的 Java 版、曾经的 Minecraft PE 版和微软接手后重制的 Bedrock 版。在过去的数年中,Mojang 和 Microsoft 对 Minecraft 存档的结构进行了多次改动,这就导致不同版本的 Minecraft 存档可能完全不兼容。因此,如何在多个平台上同步游戏进度成为了一个令人头痛的问题。若是在各大论坛搜索相关内容,往往会找到一个名为 MCEdit 的程序。可惜这个由 Python 编写的程序已经长期没有更新了,它对新格式的存档无能为力。难道真的就没有办法了吗?莫非需要自己造出这个转换 Minecraft 存档格式的轮子?要知道,这需要极大的学习成本,例如 leveldb 的数据结构。
幸运的是,笔者偶然发现了这个工具:MCC Toolchest。它可以在 Java 版和 Bedrock 版之间转换存档。考虑到同一平台上的 Minecraft 是可以兼容旧存档的(以 Java 版为例,1.14 可以转换、读取 1.13 的存档),为了最大限度的减少兼容性问题,可以先将 Minecraft 升级到最新版,然后打开游戏,自动更新存档。随后,就可以通过 MCC Toolchest 来进行转换了。

选择存档

运行程序后,依次选择「File」「Open」,然后在文件浏览器中选择要打开的存档文件夹。

如果存档是完好的,其目录结构会在左侧被展示出来。

进行转换

随后,依次选择「Tools」「Convert」,根据需要转换到 Java 版或 Bedrock 版。

在新弹出的窗口中可以选择存档的具体参数。最上面需要选择存档文件夹,创建一个空目录即可。

最后,点击「Convert」按钮,耐心等待转换完成就行啦!

Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.

But, in a larger sense, we can not dedicate—we can not consecrate—we can not hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us—that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion—that we here highly resolve that these dead shall not have died in vain—that this nation, under God, shall have a new birth of freedom—and that government of the people, by the people, for the people, shall not perish from the earth.

Invincible

图片来源:1. Justice and Fresh Vegetables - Europe Comics

这样巧妙的设计,不禁让人联想起《哆啦 A 梦》中的类似剧情:大雄为了追回失窃的藏品,乘坐时光机回到案发现场,结果发现小偷正是自己……

这本漫画书中还有很多像这样脑洞大开的漫画,可以通过多个渠道购买、下载。

首先安装桌面环境,以 Xfce 为例

1
apt install xfce4 xfce4-goodies

Xfce 比 Ubuntu 默认的 GNOME 轻量级一些。

然后安装 LightDM,这是一个显示管理器,可以渲染登陆页面

1
apt install lightdm

还需要安装一个配套的 greeter

1
apt install lightdm-gtk-greeter

可选项还有很多,例如:

  • Unity Greeter (unity-greeter)
  • GTK+ Greeter (lightdm-gtk-greeter)
  • KDE Greeter (lightdm-kde-greeter)
  • WebKit Greeter (lightdm-webkit-greeter)
  • RazorQt Greeter (razorqt-lightdm-greeter)

下一步,是配置 LightDM

1
2
3
echo "[Seat:*]
allow-guest=false
user-session=xfce" >> /etc/lightdm/lightdm.conf

接下来安装字体,避免系统语言为中文时遇到显示问题

1
sudo apt install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core

完成后,就可以下载 TeamViewer 了

1
wget https://download.teamviewer.com/download/linux/teamviewer-host_amd64.deb

TeamViewer 通过 deb 安装包进行安装

1
apt install ./teamviewer-host_amd64.deb

安装完成就可以进行初始化设置,需要先到 TeamViewer 官网注册账号

1
teamviewer setup

设置成功后,重启系统即可

1
reboot

此外,还需要检查防火墙设置。TeamViewer 会使用 5938 端口,确保它没有被拦截。一切正常的话,就可以登录了。

通过TeamViewer登录

如果需要卸载,执行以下命令即可

1
apt purge teamviewer-host

嘉峪关的花朵

月牙泉的骆驼

日出前的敦煌

日出前的沙漠

翡翠湖

茶卡盐湖

青海湖

0%