==================== 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.
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
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.
(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
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.
Posts: 998
Threads: 63
Joined: May 2011
Staff roles: Coding Developer King of FLServer
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.
(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.
(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