![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
|
|
Thread Tools | Display Modes |
06-23-21, 09:34 AM
|
#11 | ||
|
CTD - it's not just a job
|
Quote:
@ MM: I was just in a hurry, and KM had the file name... Quote:
Initially, I had 36 lines in a text file, but I had little typed text and more numbers on lines with carraige returns to show the lines. The orders page scrolled fine, and had a "gutter" to scroll the page back and forth. As I added text to the file though, I had to keep cutting down on the number of lines. Notice that the first line starts with a <Tab> character, and has 55 other characters on the line. A "normal" line of text is 60 characters. However, you cannot always fill a line, since it is most likely a "total character" count that determines the limit. I still can't decide whether a new line is worth 2 characters (the two pipe characters), or four characters (carraige return and new line character). I am almost certain though that CR/NL is a Windows type of character, whereas the game just uses CR only... maybe... ?? It seems that the "character" limit is actually about 954, but I am not 100% certain of that. In the image below, I have 951 characters, but that includes 2 "pipe" characters to start each paragraph. Notice also that the last sentence is not complete. Each of the double pipes I added for the paragraphs required that I delete other characters. Orders test file image The text of course, is non-sensical, and I never did get close to the intended 1024 stated in that text, or even 1000... I arrived at 952 as the number, since it is divisible by 8, of which 8 bytes is the "standard" character size, and I crashed the game at 960. I am certain that EOF and carraige returns influence the character count, but notice that even with removing the double pipes for the carraige returns to start a new paragraph does NOT allow for very many more typed characters... As of this time then, I would say that anything over 950 characters is suspect, depending upon how many CR there are in the file... sigh. Edit: btw, I will do more testing, with more Objectives, which would add more lines to the bottom of the file. The question of course being "will that influence the total character count of the orders themselves?"... more late. New List:
__________________
"...and bollocks to the naysayers" - Jimbuna Last edited by propbeanie; 06-23-21 at 12:50 PM. Reason: Deep Thoughts... lol & New List |
||
|
|
|
|
