Nukkit icon indicating copy to clipboard operation
Nukkit copied to clipboard

Long text will fail

Open chicuong2412 opened this issue 5 years ago • 12 comments

Some plugins will generate lore for the item, or create a GUI with long lines (with color code) that will cause an error. It will not display the entire text. It will appear ___________ For example: Inside the config: '§eCup §o§l§6C§aà§by §4c§kh§ea§ay §bc§ự§ac §6m§bạ§an§kh' It only shows: 'Cúp cày___________________________'


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

chicuong2412 avatar Dec 08 '19 02:12 chicuong2412

This is probably a limitation of the plugin, and not caused by Nukkit itself. Which plugin are you trying to use this config.yml in?

Sleepybear avatar Dec 08 '19 04:12 Sleepybear

This is probably a limitation of the plugin, and not caused by Nukkit itself. Which plugin are you trying to use this config.yml in?

In version 1.12, it did not happen. Plugins that I use are MyHero Items and Elementary

chicuong2412 avatar Dec 08 '19 05:12 chicuong2412

Which plugin are you putting that string into the Config.yml?

Sleepybear avatar Dec 08 '19 05:12 Sleepybear

Which plugin are you putting that string into the Config.yml?

Is it at those plugins. I think not because I use it from version 1.11 until now an error occurs

chicuong2412 avatar Dec 08 '19 05:12 chicuong2412

Doesn't look like either are open source, so can't confirm how they are processing the text from the config file. The Util.TextFormat class didn't change from 1.12 to 1.13, so without knowing what they are using to process the text it will be hard to track down.

Does all the text show up if you don't use any color?

Sleepybear avatar Dec 08 '19 05:12 Sleepybear

Doesn't look like either are open source, so can't confirm how they are processing the text from the config file. The Util.TextFormat class didn't change from 1.12 to 1.13, so without knowing what they are using to process the text it will be hard to track down.

Does all the text show up if you don't use any color?

I will try it when I return home, thanks a lot.

chicuong2412 avatar Dec 08 '19 05:12 chicuong2412

Doesn't look like either are open source, so can't confirm how they are processing the text from the config file. The Util.TextFormat class didn't change from 1.12 to 1.13, so without knowing what they are using to process the text it will be hard to track down.

Does all the text show up if you don't use any color?

But I have the open source of MyHero Items. Here

chicuong2412 avatar Dec 08 '19 05:12 chicuong2412

Doesn't look like either are open source, so can't confirm how they are processing the text from the config file. The Util.TextFormat class didn't change from 1.12 to 1.13, so without knowing what they are using to process the text it will be hard to track down.

Does all the text show up if you don't use any color?

All the text didn't do that when I didn't use color coding many times. I find that using color codes 2 or 3 times or more will cause an error.

chicuong2412 avatar Dec 09 '19 05:12 chicuong2412

@SupremeMortal Is there any way to fix it? It did not happen until I upgraded to version 1.13

chicuong2412 avatar Dec 09 '19 05:12 chicuong2412

Nothing changed with lore in 1.13 so it could possibly be a client bug.

SupremeMortal avatar Dec 09 '19 11:12 SupremeMortal

Nothing changed with lore in 1.13 so it could possibly be a client bug.

I don't think so, I tried on 3 machines including 2 machines running Android and 1 version of Windows 10

chicuong2412 avatar Dec 09 '19 12:12 chicuong2412