[kovarex] [1.1.3] Blueprint description gets cut off by 8 characters

This subforum contains all the issues which we already resolved.
superstalkerX
Inserter
Inserter
Posts: 20
Joined: Mon Mar 04, 2019 7:53 pm
Contact:

[kovarex] [1.1.3] Blueprint description gets cut off by 8 characters

Post by superstalkerX »

Blueprint description gets cut off by 8 characters when saving after reaching max character limit.

Image

kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [1.1.3] Blueprint description gets cut off by 8 characters

Post by kovarex »

Not really a bug as maximum description size is currently 500 characters.
But, the textbox should be also limited to this number so it would be obvious why editing, not only after confirmation.
User avatar
Nexarius
Filter Inserter
Filter Inserter
Posts: 275
Joined: Sat May 09, 2015 7:34 pm
Contact:

Re: [1.1.3] Blueprint description gets cut off by 8 characters

Post by Nexarius »

There isn't really a technicall limit for 500 is there? You might want to increase it to 1000 or 5000.


Also while watching this I saw:
Unbenannt.png
Unbenannt.png (67.31 KiB) Viewed 3315 times
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [1.1.3] Blueprint description gets cut off by 8 characters

Post by kovarex »

Nexarius wrote: Tue Dec 01, 2020 2:03 pm There isn't really a technicall limit for 500 is there? You might want to increase it to 1000 or 5000.


Also while watching this I saw:
Unbenannt.png
The technical limit is to keep the blueprints reasonably small, especially when it comes to multiplayer and internal transfer of blueprint library contents into the game state.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [1.1.3] Blueprint description gets cut off by 8 characters

Post by kovarex »

I fixed the button position, but I can't reproduce the discrepancy between the limit of the textbox and the real limit, could you post the text that you used here, so I can reproduce it?
superstalkerX
Inserter
Inserter
Posts: 20
Joined: Mon Mar 04, 2019 7:53 pm
Contact:

Re: [kovarex] [1.1.3] Blueprint description gets cut off by 8 characters

Post by superstalkerX »

kovarex wrote: Tue Dec 01, 2020 2:28 pm I fixed the button position, but I can't reproduce the discrepancy between the limit of the textbox and the real limit, could you post the text that you used here, so I can reproduce it?
I put the BP string in the first post so you could copy the text easily. Are you saying that you still could not recreate it even with the BP?

I'm confused about how you do not consider this a bug. I understand that there is a limit but I'm saying the limit on typing does not match what is truly saved in the print. There is an 8 character discrepancy. I am unable to type any more than those 8 characters
edit: I misunderstood your message, my bad.

anyways, this is the string i used:

Code: Select all

[item=iron-ore][item=copper-ore][item=coal][item=stone] Extraction:
• Direct [item=electric-mining-drill]-to-[item=cargo-wagon] for Mid-Late Game
• These blueprints are for mid-late game when your "Mining Productivity" technology is upgrading with space science.

FEATURES:
• Miner & Beacon auto power down.
• Lane shutdown when out of ore.

Original mining design by darklich14, Blooper, and BobAAAces
Modifications and rich text by [color=255, 255, 20]SuperstalkerX[/color]
[color=red]12345
I agree with your judgment that there should be a limit to BP descriptions although it is highly inconvenient when using rich text such as change font, icons, or color costing up 10 or 20 characters just for a simple change.

for a quality of life improvement, could you make a footer stating how many characters out of the max have been used? It's not critical it would just be nice to have.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [1.1.3] Blueprint description gets cut off by 8 characters

Post by kovarex »

Ok, so the inconsistency were the UTF8 charaters (the "•" in your case).
The limit in the GUI was the amount of UTF8 characters, while the internal limit was the amount of bytes in the string, and since • is worth 3 bytes, it didn't match up.
I fixed it in the way, that the limit always refers to the amount of bytes, so it is consistent.
Post Reply

Return to “Resolved Problems and Bugs”