SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-23-21, 09:34 AM   #1
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by AviatorMan View Post
Sounds like musical chairs, but with boats and the loser was the Philippines...
Very much so. They had them running ragged, and with a defective weapon to boot! Imagine driving all that distance, infiltrating a Task Force, only to have over 3/4 of your torpedoes fail for one reason, or a dozen...

@ MM: I was just in a hurry, and KM had the file name...


Quote:
Originally Posted by KaleunMarco View Post
PB & S7rikeback,

there is a Philippines mission, Insertion Spy Philippines 06, which fails when you click on the orders-map.

it is failing because there are too many words/characters in the Mission Briefing. i could swear that i posted about the CTD previously but i cannot find the post(s). Grrr.

anyway, if this mission in not on your change list then please add it to the list.

i edited the verbiage down to 117 words and 503 chars and it seems to work.
well, i got to the orders-map, which is a step in the right direction.
Back to this... I have done untold tests, crashing the game more than not, while trying to find a definitive answer. The result? I still don't know anything definitive, but I am a bit closer.

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:
 
DavaoGulfEarly04
Extract Philippines 01
Extract Philippines 02
Extract Philippines 05
Gar2Mariannas
Insert Palau Island 02
Insert Palau Island 04
Insertion Commando Philippines 04
Insertion Corregidor Supplies
Insertion Spy BismarckSea 03
Insertion Spy Philippines 03
Insertion Spy Philippines 04
Insertion Spy Philippines 05
Insertion Spy Philippines 06
Lifeguard Corregidor VIP
Patrol Marshalls Early 02
Photo Leyte Invasion 01
SeaTrialHP_04
These are the files with greater than 950 characters after "MissionBriefing=" in the tsr file. I do know that at least half of these do indeed work properly from testing. However, they will still be edited for that just-in-case scenario. Also, four other files had already been edited today, as well as others over the last few weeks. Those would include SOJ missions in 1943 out of Pearl, which were previously tested and functional, but have been edited to comply with being less than 951 characters.
__________________

"...and bollocks to the naysayers" - Jimbuna

Last edited by propbeanie; 06-23-21 at 12:50 PM. Reason: Deep Thoughts... lol & New List
propbeanie is offline   Reply With Quote
Old 06-23-21, 11:38 AM   #2
Mad Mardigan
Admiral
 
Mad Mardigan's Avatar
 
Join Date: Sep 2016
Location: Grand Rapids, Mi.
Posts: 2,326
Downloads: 492
Uploads: 0


SHO

Quote:
Originally Posted by propbeanie View Post
@ MM: I was just in a hurry, and KM had the file name...
Ahoy, propbeanie...

I kinda figured you might have rushed it... or else had a momento of ol'manitis struck.

My post, was My quirky sense of humor cropping up... & was just joshin' with ya...

Humor, is 1 of those things that doesn't translate well in text talk... among other things...

As Saavik (kirstie alley) said it in ST II, Humor, it's a difficult concept. It is not logical.

M. M.

__________________
Mad Mardigan is offline   Reply With Quote
Old 06-23-21, 01:11 PM   #3
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by propbeanie View Post

These are the files with greater than 950 characters after "MissionBriefing=" in the tsr file. I do know that at least half of these do indeed work properly from testing. However, they will still be edited for that just-in-case scenario. Also, four other files had already been edited today, as well as others over the last few weeks. Those would include SOJ missions in 1943 out of Pearl, which were previously tested and functional, but have been edited to comply with being less than 951 characters.[/spoiler]
yes, i concur.
i was assigned another mission that died at the start and when i checked the mission briefing it was over 1k. so i edited to less than 1024 characters and reloaded the mission and it still bombed. so i edited it down under 900 (IIRC) and only then did the mission start.

__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10

Last edited by KaleunMarco; 06-23-21 at 03:24 PM.
KaleunMarco is offline   Reply With Quote
Old 12-15-21, 11:21 PM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

I don't know if you remember this, KM, but Bubblehead1980 might also be interested:
Quote:
Originally Posted by propbeanie View Post
...
Back to this... I have done untold tests, crashing the game more than not, while trying to find a definitive answer. The result? I still don't know anything definitive, but I am a bit closer.

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:
 
DavaoGulfEarly04
Extract Philippines 01
Extract Philippines 02
Extract Philippines 05
Gar2Mariannas
Insert Palau Island 02
Insert Palau Island 04
Insertion Commando Philippines 04
Insertion Corregidor Supplies
Insertion Spy BismarckSea 03
Insertion Spy Philippines 03
Insertion Spy Philippines 04
Insertion Spy Philippines 05
Insertion Spy Philippines 06
Lifeguard Corregidor VIP
Patrol Marshalls Early 02
Photo Leyte Invasion 01
SeaTrialHP_04
These are the files with greater than 950 characters after "MissionBriefing=" in the tsr file. I do know that at least half of these do indeed work properly from testing. However, they will still be edited for that just-in-case scenario. Also, four other files had already been edited today, as well as others over the last few weeks. Those would include SOJ missions in 1943 out of Pearl, which were previously tested and functional, but have been edited to comply with being less than 951 characters.
Quote:
Originally Posted by KaleunMarco View Post
yes, i concur.
i was assigned another mission that died at the start and when i checked the mission briefing it was over 1k. so i edited to less than 1024 characters and reloaded the mission and it still bombed. so i edited it down under 900 (IIRC) and only then did the mission start.
I am not sure how to 'calculate' this anymore. I have found a 2nd mission in the next release that fails due to "verbosity", although both missions are under 950 characters... I thought I had it yesterday with it being due to the size of the words and where they land in the line of 50 characters across the page. The game will not hyphenate words, so if you use a word of say 16 characters but only have 15 left on the line, then if falls to the next line, and you basically "lose" those 15 blank characters on the line. OK, got that... We had also figured that there was a maximum of 20 lines on the page, and if you look at the "Spoiler" image above, that's what it has, not counting the Objective synopsis at the end. There apparently must also be a blank line between the body of text and that closing Objective Synopsis... so 18 lines to be "safe"... but wait, if the synopsis isn't much of a synopsis and takes two lines, then you are now hitting 17 lines for the body... I had an "order set" of 842 characters taking up 16 lines fail a few minutes ago... made it 840, and it ran fine... Now I am leaving extra space, figuring 17 lines x 50 characters equals 850, which is a figure we had some up with before... but that "Tab" to start the orders text, which we thought that was one character, is apparently five "space" characters... so 845 characters - plus the wasted white space... Do you know how difficult it is to describe a SpecOp mission with three Objectives in 840 characters or less, not using very big words so as to not waste line space?... especially for ~me~?... needless to say, we're going back through some of the suspect files and trying to do test "layouts" in a text editor to be able to accurately count lines, until I can figure-out a 010 script to do my character, word, and line counting for me recursively...

Quote:
Originally Posted by Bubblehead1980 View Post
Hey guys, I want to make sure not duplicating any work here.

I am working on making the ability to conduct night surface attacks in a realistic and historically accurate manner, as I did in TMO, a possibility in FOTRS. Wanted to check with the team and make sure not already working on that lol.
No, we do not have plans for that as part of the mod at this time. All previous attempts that have been successful for the player to do night surface attacks result in a failure of surface battles at distance, and or planes' failure to attack. On the back burner for the time being, so have at it. Another thing to fix would be the shadows not cast by the moon... lol - I have a really pretty screen grab of the west coast of Negros Island in the Philippines, coming east toward shore in the sub, with the moon clipping the horizon beyond a hill, yet the moonlight is reflecting all the way from the shore, lighting my way to the landing zone...
__________________

"...and bollocks to the naysayers" - Jimbuna

Last edited by propbeanie; 12-15-21 at 11:31 PM.
propbeanie is offline   Reply With Quote
Old 12-16-21, 11:28 AM   #5
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by propbeanie View Post
I don't know if you remember this, KM, but Bubblehead1980 might also be interested:
Yes, i do remember the long descriptions issue. It caused some interesting by-products.

you know, i never did offer to help with this issue. if you want, i can help you craft some of the long TSR messages/files.

if you want some help, send me a PM and we can collaborate.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-16-21, 03:14 PM   #6
Rock Storm
Watch
 
Join Date: Jan 2017
Posts: 27
Downloads: 39
Uploads: 0
Default

Picturesk: https://ibb.co/sVq5zJQ


Sorry, i was kinda busy.
This must be this:
"That happens when you play with the big guys"
(Ise Battleship)

1st Patrol of new Campaign. After a fourth attempt yesterday. Played it really nice and cool. On search course never always between 256 and 512.
Around 80.000 BRT and three Torps left. And then in the morning, cause i wanted to finish the patrol, electric breakdown in tha hood.

But i had a save after the first four sunken ships.
And then: Huge Task Force, i mean huuuge:
-A Kongo BB, The allready mensioned Ise, An escort Carrier, Two heavy Cruisers, and some Light Cruiser and...

Ok, we have trained for this...
I was from the point of detection in front of the japs. Then we started to dance South, 195, 185. Ninty degrees, tourned with Back Slow with the first Destroyer to give him no...silhouette.
Torps prepared 8-9 feet below keel for the big girls, sea was caaaalm 0 Meter Wind per second light fog and full darkness has just set in. Everything is perfect.

First the escort carrier first torp 1 degree against the running direction and the second 1 degree in front. They (Mark 14 never dud on influence setting) hitted front and rear. Cause the carrier cant speed up very fast, now that i think bout it.

Second the Kongo BB first torp on zero degrees, second plus 2, third plus 4.
All three went up midship from the middle to the start of the first third of the ship. Huge explosions...
We hit it, she is taking water. Thank you Officer Obvious.

Periscope always "swimmy", but know it didnt need a rocket scientist to know where the yankees are camping. And shots from all around.
Then we and the destroyers played our little games.

And now: Flank ahead around through the night. Again in Front. When they were kinda resorting themselves in the middle of nowhere. The Carrier was dripping deep in the front and was just standing, as all the others were dancing around him. Head on, 1.400 Meters another one to the keel. And as they were firering me down. I gave him another one, since i expected him to blow up instantly but there was nothing to hear. Another one with the big boom. And as i tryed to evade me out of ****. There was this Ise BB at my rear. Last three hecktorps. 0, +2, +4, but the Captain didnt accelerate, so the first hitted midships, the last in the very front, and the second between.

Another dance with the DDs and they let the Ise sail on its own.
Ok, lets try 6.500 Meters. Sea still 0 Meter per Second. But allready daytime. The shots where hitting below waterline, and the next one up to the middle of the tower. And another one over the ship, calm seas?
So i hardly hitted with half of my around 105 AP Shells, and then with my ca. 65 remaining explosive shells. Good, why not try to scratch them with the .50Cal. AP at least. Following up to 5.200 Meters had im on 23 degrees, no way to turn the flak further. Since i had no glue where my shots are landing, i shot, and switched to the uzo and as my bullets rained in, they were out of sight, no glue where they were landing. But first it seemed exectly when the disappeared there was simultanious fire starting all over the ship. And i thought: How epic is that all the fires which were allready burning inside now have got air. Like a very ripe grape.
Then i realised that those bastards are firing back.
Not even making 4 Konts but whistling "La Paloma".

Back in port i insisted in keeping the holes, cause then we seem really badass. But that wouldnt work because of insurance issues.
THIS IS WAR, he has said!

P.S. 77% Hull damage, i ve made it home.

Last edited by Rock Storm; 12-16-21 at 03:30 PM.
Rock Storm is offline   Reply With Quote
Old 12-16-21, 04:05 PM   #7
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

Just looking at Stock tsr files I'm not seeing line breaks and such.
So my thought is something in the menu_1024_768.ini is limiting lines?
Since the text is placed over an image, there's probably a control line to say how many letters can be on a line. It would go by width settings of course is my guess.
Jeff-Groves is offline   Reply With Quote
Old 12-16-21, 07:22 PM   #8
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

@ Rock Storm: Sounds like you are having fun! Continue skipper!

@ Jeff-Groves: Yes, menu_1024_768.ini, and I am tempted to attempt to add a scroll gutter, but... there is probably a reason they left that off. Only one way to find out though! lol - The Stock game uses very generic mission orders, that might be four lines long. With the copies of RL orders I have, a person would need a notepad, legal-sized, to hold the orders and charts they carried, sometimes in sealed envelopes "Not to be opened until on-site", initially with only a "lat/long" location to go to. The Narwhal and Nautilus were often tasked with 3 and 4 objectives, half of which might be cancelled enroute, and replaced with other objective locations, due to countering Japanese movements, or the capture of guerrilla groups. We're trying to get as much "authenticity" in to that roughly 850 characters the game allows. But the limit on characters does not appear to be set in stone, and is a function, as you say, of the "window" size for the "paper", and is a combination of lines, words, characters & line breaks (my opinion). As in an earlier post, if I put one character and a carriage return (using the keyboard) on each of 20 lines, they all display fine. I can add more characters to each line, but when I hit roughly 742 characters, I have to drop a line. That trend continues all of the way up the page. The more characters, the fewer lines allowed. It seems the more you fill a line with up to 60 characters, the fewer lines allowed, but as I mentioned, I did have a "short" orders text that bombed, most likely due to my use of double "pipes" for a forced carriage return to separate sections of text for Objectives A, B & C. The game did not like that. Removed 2 characters, and it was fine. When I removed the double "pipes" and went with singles separating the sections, it was fine. My guess is that the "pipe" character is worth the whole line of 60 characters. There is no other explanation - in my mind. anyway... strange stuff, this game...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 12-16-21, 02:18 PM   #9
Bubblehead1980
Navy Seal
 
Join Date: Apr 2009
Location: USA
Posts: 8,645
Downloads: 697
Uploads: 61


Default

Quote:
Originally Posted by propbeanie View Post
I don't know if you remember this, KM, but Bubblehead1980 might also be interested:


I am not sure how to 'calculate' this anymore. I have found a 2nd mission in the next release that fails due to "verbosity", although both missions are under 950 characters... I thought I had it yesterday with it being due to the size of the words and where they land in the line of 50 characters across the page. The game will not hyphenate words, so if you use a word of say 16 characters but only have 15 left on the line, then if falls to the next line, and you basically "lose" those 15 blank characters on the line. OK, got that... We had also figured that there was a maximum of 20 lines on the page, and if you look at the "Spoiler" image above, that's what it has, not counting the Objective synopsis at the end. There apparently must also be a blank line between the body of text and that closing Objective Synopsis... so 18 lines to be "safe"... but wait, if the synopsis isn't much of a synopsis and takes two lines, then you are now hitting 17 lines for the body... I had an "order set" of 842 characters taking up 16 lines fail a few minutes ago... made it 840, and it ran fine... Now I am leaving extra space, figuring 17 lines x 50 characters equals 850, which is a figure we had some up with before... but that "Tab" to start the orders text, which we thought that was one character, is apparently five "space" characters... so 845 characters - plus the wasted white space... Do you know how difficult it is to describe a SpecOp mission with three Objectives in 840 characters or less, not using very big words so as to not waste line space?... especially for ~me~?... needless to say, we're going back through some of the suspect files and trying to do test "layouts" in a text editor to be able to accurately count lines, until I can figure-out a 010 script to do my character, word, and line counting for me recursively...


No, we do not have plans for that as part of the mod at this time. All previous attempts that have been successful for the player to do night surface attacks result in a failure of surface battles at distance, and or planes' failure to attack. On the back burner for the time being, so have at it. Another thing to fix would be the shadows not cast by the moon... lol - I have a really pretty screen grab of the west coast of Negros Island in the Philippines, coming east toward shore in the sub, with the moon clipping the horizon beyond a hill, yet the moonlight is reflecting all the way from the shore, lighting my way to the landing zone...

Does the character limit in missions include all sections such as objectives, messages triggered etc or just the mission briefing? as in say 1000 characters for all of them combined or ?
Bubblehead1980 is offline   Reply With Quote
Old 12-16-21, 02:41 PM   #10
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

"until I can figure-out a 010 script to do my character, word, and line counting for me recursively"


Do you mean to have 010 scan and check all the files and report or 1 file at time not auto changing folders?
Jeff-Groves is offline   Reply With Quote
Old 12-16-21, 03:11 PM   #11
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by Bubblehead1980 View Post
Does the character limit in missions include all sections such as objectives, messages triggered etc or just the mission briefing? as in say 1000 characters for all of them combined or ?
Mostly... The Objective synopsis seem to be limited to two lines each, but thus far, I have not hit a limit on the number of Objectives. That page scrolls. The same with the photo missions "Photos" page. It scrolls fine and can hold at least twelve pictures. I try to keep all "labels" as one word, maybe using an underscore for separation. I don't trust the game to misinterpret a "space" in a name. But near as I can tell, you are only limited in the mission orders, and only as they display when you are in the Captain's Office at home port, getting ready to go on patrol, since that page does NOT have a scroll gutter. It makes it a bit tough on the Narwhal / Nautilus missions that often had three initial objectives on their orders, oftentimes rather complex in nature. What I have done with several missions is break the orders into two parts, with an overview in the office orders, and then use the Timer with a few minutes or couple of hours max set to display some details via a radio message. The radio message page can scroll, and is better for that.


Quote:
Originally Posted by Jeff-Groves View Post
"until I can figure-out a 010 script to do my character, word, and line counting for me recursively"


Do you mean to have 010 scan and check all the files and report or 1 file at time not auto changing folders?
Yes, exactly. I also have a time of it doing "calculations" with what I have found... the logic of trying to figure-out which words will be on the next line is giving me a headache. It's been entirely too long since my C days... sorry, bad pun... Anyway, it might be easier if I used VB to build a small app, since I do know how to recursively open files there, and I am more familiar with string functions and RegEx there... I just need a running character counter per line, a running line count and something to throw an error with flashing lights and sirens when several set conditions are hit, such as 20 lines of text, or over 848 characters. I also want it to throw a "Danger Will Robinson" warning when 17 lines of text are hit, or 840 characters used. Nothin' to it. It sure would have been nice of Ubisoft to supply some documentation on this type of stuff...
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.