Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据库无法保存 NBT 过长的物品 #983

Closed
StarWishsama opened this issue Dec 22, 2024 · 3 comments
Closed

数据库无法保存 NBT 过长的物品 #983

StarWishsama opened this issue Dec 22, 2024 · 3 comments
Labels
❌ 无法修复 咱也不敢修咱也不会修 🐞 Bug 抓虫子

Comments

@StarWishsama
Copy link
Member

StarWishsama commented Dec 22, 2024

公告

处于对一般服主数据库性能的考虑,我们不决定更改数据库表结构,并添加了对数据过大的物品的检测。
这类问题通常出现于某些拿物品当数据库存数据的附属 (例如网络蓝图)。

这个问题目前只影响 MySQL 作为数据库软件的用户。

我们建议附属作者不要滥用 PDC 存储大容量数据。

如果你有意处理,请自行修改以下表:

  • block_inventory
  • backpack_inventory
  • universal_inventory
    以上表中的 i_item 数据类型改为存储量比 TEXT 大的类型 (MEDIUMTEXT/LONGTEXT)

我们建议你仅在了解 MySQL 如何使用时进行这项操作,否则可能会导致数据丢失。

修改完后可以在设置中启用 bypass-item-length-check 选项以跳过物品大小检查。

@m1919810
Copy link

为什么是nbt长度,这种大小的物品很常见么

@JWJUN233233
Copy link

为什么是nbt长度,这种大小的物品很常见么

有 例如我sfae中的物品存储单元

@balugaq
Copy link

balugaq commented Jan 12, 2025

套娃存储单元

@StarWishsama StarWishsama added ❌ 无法修复 咱也不敢修咱也不会修 and removed 🔎 已复现 真的有这问题 H 🔨 进行中 在做了 咕咕咕 labels Jan 14, 2025
@StarWishsama StarWishsama pinned this issue Jan 14, 2025
@StarWishsama StarWishsama closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@SlimefunGuguProject SlimefunGuguProject locked as resolved and limited conversation to collaborators Jan 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❌ 无法修复 咱也不敢修咱也不会修 🐞 Bug 抓虫子
Projects
None yet
Development

No branches or pull requests

4 participants