Discovery Gaming Community
[FLHook] POB info paragraphs truncated. - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Discovery Development (https://discoverygc.com/forums/forumdisplay.php?fid=7)
+--- Forum: Discovery Mod General Discussion (https://discoverygc.com/forums/forumdisplay.php?fid=37)
+---- Forum: Discovery Mod Bug Reports (https://discoverygc.com/forums/forumdisplay.php?fid=573)
+----- Forum: Fixed or invalid (https://discoverygc.com/forums/forumdisplay.php?fid=574)
+----- Thread: [FLHook] POB info paragraphs truncated. (/showthread.php?tid=185106)



[FLHook] POB info paragraphs truncated. - Karlotta - 12-17-2020

====================
Type: FLHook pob plugin
Bug: F9 info paragraphs truncated
====================

When I enter 4 paragraphs in the POB info (/base info command) they all appeared correctly at first, including those longer than 252 characters (500 per paragraph are permitted according tot he plugin). Logging on and off and different characters doenst change this.

A day later, the paragraphs longer than 252 characters were truncated at 252 or 251. This happened 2 times so far for the POB Oceana Shipping Platform. I'm guessing its the server restart that messes them up somehow, or they arent saved properly before the restart.


RE: [FLHook] POB info paragraphs truncated. - Xenon - 12-17-2020

I think that can be fixed by staying within the max amount of characters per paragraph @Karlotta
I think also that the server reverts any "above the limit" characters on server restarts because FL-Hook is following certain specs.
A developer who understands FL-Hook settings is most welcome to correct me Smile



RE: [FLHook] POB info paragraphs truncated. - Karlotta - 12-17-2020

Then the green message you get after entering the info should probably say "x/250 characters used" and not "x/500 characters used". The paragraphs I entered were shorter than 500 characters.


RE: [FLHook] POB info paragraphs truncated. - Xenon - 12-17-2020

(12-17-2020, 08:16 PM)Karlotta Wrote: Then the green message you get after entering the info should probably say "x/250 characters used" and not "x/500 characters used". The paragraphs I entered were shorter than 500 characters.

You are correct, there is definitely something wrong then with the limits and the green message


RE: [FLHook] POB info paragraphs truncated. - Laz - 12-17-2020

This is due to an engine bug when a dialog box must show more than 4000 (or at least that's what memory serves) characters (bytes?) in a single box. I proposed a fix for this about 2 something years ago, but it would seem nothing ever came of it.


RE: [FLHook] POB info paragraphs truncated. - Aingar - 08-26-2023

Actually, the issue stemmed from the INI Reader class only being able to read the first 1024 (2^10) characters per line, which translates to 252 actual ingame characters (ingame text is converted into a 4-digit decimal number).
Fixed for next release.


RE: [FLHook] POB info paragraphs truncated. - Sally - 08-26-2023

(08-26-2023, 04:52 PM)Aingar Wrote: Actually, the issue stemmed from the INI Reader class only being able to read the first 1024 (2^10) characters per line, which translates to 252 actual ingame characters (ingame text is converted into a 4-digit decimal number).
Fixed for next release.

Considering the can of worms this seems to be, it may be wise to disable this feature altogether and instead post POB information in a forum thread, which is something that can be done already.


RE: [FLHook] POB info paragraphs truncated. - Aingar - 08-26-2023

As I already mentioned, the issue got fixed in the upcoming patch. The limitations were worked around and will not be a problem.

Also, your suggestion is already in place. If you create a thread named exactly like the POB, it gets linked to the POB in the list here


RE: [FLHook] POB info paragraphs truncated. - Sally - 08-26-2023

(08-26-2023, 05:37 PM)Aingar Wrote: As I already mentioned, the issue got fixed in the upcoming patch. The limitations were worked around and will not be a problem.

I was rather referring to the possibility of some donkey d*ck trying to parse code through these files and make FLHook behave unexpectedly, that's what I meant with the "can of worms".

Aingar Wrote:Also, your suggestion is already in place. If you create a thread named exactly like the POB, it gets linked to the POB in the list here

Yep, exactly what I was pointing out.