FastQuit
关于此模组
此模组允许你在世界仍在后台保存时提前返回主菜单。
不用担心,模组会在必要时等待世界完成保存,不会丢失任何数据!
世界会显示在世界列表中,即使它仍在保存,你甚至还可以编辑、删除或重建它。 这是通过复用正在保存的世界的信息来实现的。
在其当前状态下,这样做应该是安全的,因为已经采取了线程安全措施。 如果你仍然遇到任何问题,最坏的情况是操作失败,Minecraft 会弹出一个提示通知你。
如果发生这种情况,请附上你的 .minecraft/logs/latest.log 文件 提交问题!
加入 Discord!
如果你对模组感兴趣或有任何问题,可以加入我的 Discord!
配置
要配置模组,请从 ModMenu 打开配置界面,或者前往 .minecraft/config/fastquit-config.txt。
目前有三个可配置的选项:
显示提示 (Toasts):
决定在世界完成保存时是否显示提示。
后台线程优先级:
设置后台保存世界时服务器的线程优先级。 这样做是为了在保存期间提高客户端性能,但会使整体保存时间变长。 值必须在 0 到 10 之间,设置为 0 将禁用更改线程优先级。
渲染“保存中”屏幕:
在高渲染距离下游玩时,退出世界可能仍需要一些时间,因为需要清除客户端的区块存储。 启用此设置后,将渲染“保存中”屏幕。
显示保存时间
决定是否在提示和世界列表中显示保存世界所花费的时间。 值必须在 0 到 2 之间,0 表示从不显示时间,1 表示仅在提示中显示,2 表示同时在提示和世界列表中显示。在 ModMenu 中,这些选项有相应的标签。
此模组的工作原理
其核心非常简单:
通常,在退出单人游戏世界时,客户端会等待服务器线程完成世界保存后再进入主菜单。 此模组跳过了这段等待时间,让服务器继续在后台保存。
请注意,这并不总是意味着退出世界是瞬间完成的,因为客户端卸载渲染区块等操作仍可能需要一些时间。不过,即便如此,你也会看到速度提升,因为客户端卸载和服务器保存现在是同时进行的,而不是一个接一个地执行。
当然,在实际操作中并没有那么简单:
当像这样使用多个线程时,会出现许多问题。 例如,当进入世界列表时,Minecraft 会尝试读取其关卡数据,但由于后台保存仍锁定世界文件而失败。
因此,我们现在通过正在保存的服务器访问信息。 类似地,当尝试编辑、删除或重建世界时,我们必须使用现有的会话。
为了保持这些过程的线程安全,必须进行大量的同步操作,以确保保存服务器和客户端互不干扰。
对于某些操作,如重新加入正在保存的世界或创建备份,我们只需等待服务器完全完成保存。 在退出游戏时,我们也会等待世界完成保存,以确保没有数据丢失。
致谢...
翻译人员:
- Felix14-v2 (俄语)
- Cccc-owo (简体中文)
- JustAlittleWolf (德语)
- YakisikliBaran (土耳其语)
- Skidamek (波兰语)
- Oondanomala (意大利语)
- Madis0 (爱沙尼亚语)
- notlin4 (繁体中文)
- BurrConnie (乌克兰语)
- GodGun968 (简体中文)
- ImVietnam (越南语)
- ishi-sama (法语)
- KAGUYA-1137 (日语)
- demorogabrtz (葡萄牙语)
- ReallySuperOtter (瑞典语)
- asabhi6776 (印地语)
兼容性
借助 MixinExtras 和自定义 Mixin Config Plugin,Mixin 的设计既非常非侵入性又非常有效。
Fast Backups:
- (已在 FastQuit v3.1.0+ 修复) 当“允许多个运行中的世界”开启时,退出世界的崩溃
- (已在 Fast Backups v0.17+ 修复) 在世界退出后立即退出 Minecraft 时的崩溃,在 Fast Backup 的新版本中已修复
Wakes:
- (已在 Wakes v0.4.0+ 修复) 使用 Wakes 0.3.0 时退出世界的崩溃
如果你怀疑与其他模组存在不兼容问题,请 提交问题!
遇到问题?
如果你遇到任何问题,请在 问题追踪器 上提交问题!
请确保附上重要信息,如你使用的其他模组、日志或崩溃文件,以及可能的复现步骤。
上传任何文件之前,请确保去除个人数据!(例如登录目录中的计算机用户名)
FastQuit
About this mod
This mod lets you return to the title screen early while your world is still saving in the background.
Don't worry, the mod will wait for the world to finish saving when necessary, no data will be lost!
The world will show up on the world list, and you can even edit, delete or recreate it while it is still saving. This is done by reusing the info from the still saving world.
In its current state this should be safe to do as measures for thread safety have been taken. If you do somehow still encounter an issue, the worst thing to happen will be the action failing and Minecraft showing you a toast informing you of it.
If that happens, please open an issue with your .minecraft/logs/latest.log file attached!
Join the Discord!
If you are interested in my mods or have any questions, you can join my Discord!
Configure
To configure the mod, open the config screen from ModMenu or go to .minecraft/config/fastquit-config.txt.
There is currently three options to configure:
Show Toasts:
Determines whether a toast gets shown when a world finishes saving.
Background Thread Priority:
Sets the thread priority of the server when saving worlds in the background. This is done to improve client performance while saving, but will make the saving take longer over all. Value has to be between 0 and 10, setting it to 0 will disable changing thread priority.
Render "Saving world" Screen:
When playing on high render distance, quitting the world can still take a bit because the client-side chunk storage has to be cleared. By enabling this setting the "Saving world" screen will be rendered.
Show Saving Time
Determines whether the time it took to save the world gets displayed on toasts and the world list. Value has to be between 0 and 2, with 0 never showing the time, 1 only on the toast and 2 also on the world list. In ModMenu these are accordingly labelled.
How does this mod work?
At it's core, this mod is quite simple:
Normally, when quitting a singleplayer world, the client will wait until the server thread has finished saving the world before going to the Title Screen. This mod skips this waiting period and lets the server continue saving in the background.
PLEASE NOTE this does not always make quitting a world instant, as the client can still take a bit of time to unload rendered chunks etc. However, even in that case you will see a speedup as clientside unloading and serverside saving now perform simultaneously instead of one after the other.
Of course in practice this is not quite that easy:
When working with multiple threads like this, many problems arise. For example, when going to the world list, Minecraft will try to read its level data but fails because the background saving still locks the world file.
Instead, we now access the information through the still saving server. Similarly, when trying to edit, delete or recreate the world, we have to use the existing session.
To keep these processes thread safe, a lot of synchronization has to be done to ensure the saving server and the client don't get in each other's way.
For some things, like rejoining the still saving world or making a backup, we just wait for the server to finish saving completely. We also wait for the worlds to finish saving when quitting the game to ensure no data is lost.
Thanks to...
Translators:
- Felix14-v2 (Russian)
- Cccc-owo (Simplified Chinese)
- JustAlittleWolf (German)
- YakisikliBaran (Turkish)
- Skidamek (Polish)
- Oondanomala (Italian)
- Madis0 (Estonian)
- notlin4 (Traditional Chinese)
- BurrConnie (Ukrainian)
- GodGun968 (Simplified Chinese)
- ImVietnam (Vietnamese)
- ishi-sama (French)
- KAGUYA-1137 (Japanese)
- demorogabrtz (Portuguese)
- ReallySuperOtter (Swedish)
- asabhi6776 (Hindi)
Compatibility
With the help of MixinExtras and a custom Mixin Config Plugin, the mixins have been designed to be very non-intrusive while also being very effective.
Fast Backups:
- (FIXED in FastQuit v3.1.0+) crash on world exit when "Allow multiple running Worlds" is ON
- (FIXED in Fast Backups v0.17+) crash when quitting Minecraft immediately after world exit, fixed in newer versions of Fast Backup
Wakes:
- (FIXED in Wakes v0.4.0+) crash on world exit with Wakes 0.3.0
If you suspect an incompatibility with another mod, please open an issue!
Problems?
If you are experiencing any problems, please open an issue on the issue tracker!
Make sure to attach important info like other mods you were using, log- or crash-files and if possible steps to reproduce.
Before uploading any files make sure to get rid of personal data! (For example your computers username in logged directories)
下载 FastQuit
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FastQuit
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
感谢 koboshchan 完成此次 26.2 移植!:)
- 移植至 26.2
- 新增韩语翻译(感谢 good7777865)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧