![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
10-31-12, 08:15 AM
|
#1 | ||||||
|
Captain
![]() Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
|
Quote:
![]() Quote:
Quote:
If we decide to use "#" instead of "," as field seperator, I could add a query in TDWs scipt, which checks the given format in the shn-File and sets the correct separator for the further instructions. But, BUT(!) it is TDWs work and as I see, he isn't active here at the moment. Furthermore he isn't very amused, if someone is patching in his work... from his work: Quote:
1) To accept the period. 2) If someone is in contact with him outside of subsim, to get his contact-data and ask him for permission to add a change to his code. 3) To patch his work as an unofficial patch with a suitable comment and if he will be back here, to get this (only three lines of code) into the official Mod. At the moment, where if found the problem with comma or period, I decided that I use option 1 and respect TDWs disclaimer. Quote:
But I want to say, that it is not a bug by TDW or a bad design, it was simply his decision to use the comma as separator for his datastructure. Quote:
-> I wrote it to my todo-(wish-)list.
__________________
My SH5-Mods: - Pacos German Folklore SubEmblems Mod - Pacos Environment Sound Mod - Lite Campaign German Edition |
||||||
|
|
10-31-12, 09:27 AM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
I don't know in other languages, but we Italian do use the singular form (grado) only for the "1" value. Numbers bigger or lesser than 1, including decimal numbers, take the plural (gradi) i.e: 0 gradi 0,5 gradi 1 grado 1,5 gradi 2 gradi ... Quote:
I don't see how switching from a comma to an hash could be considered code stealing, especially seen that your scripts would rely anyway on script support, coded by TDW himself in his NewUIs, and you are not pretending to have invented anything new ![]() All the same, I would get anyway in touch with him for three reasons: - politeness - asking him if by any chance the changes proposed by you may be generating bugs, or breaking other's scripts - asking him to include your inprovements in the next version of New UIs, provided that they have no side effects
|
||
|
|
10-31-12, 02:10 PM
|
#3 | ||
|
Captain
![]() Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
|
Hi gap,
I added the singular and plural-forms to the scipt. Than I added a variable to setup a new delimiter for the shn-files and patched the TDW-scipt additive. For better digest, I used the "_" as delimiter and not "#". Have a look for the italian version: Quote:
Quote:
I will do so.Cheers, Paco.
__________________
My SH5-Mods: - Pacos German Folklore SubEmblems Mod - Pacos Environment Sound Mod - Lite Campaign German Edition |
||
|
|
10-31-12, 04:12 PM
|
#4 | ||||||||||||||||||||
|
Captain
![]() Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
|
Ok, now I try toexplain the outputs while passing a Masterwaypoint:
A Masterwaypoint is mostly a turning-point, we have to set a new heading, for example to circle around an island. Additional we are able to change the speed and/or the depth of the sub. 1. Speed-Changes: If using the dialog-style, the captain commands to change speed or to stop the sub: - stopping: Quote:
Quote:
- stopping: Quote:
Quote:
Quote:
If using the dialog-style, the captain commands the new heading of the sub: Quote:
a) degree - change heading: Quote:
Quote:
Quote:
Quote:
Quote:
The process of changing the subdepth is a little bit more complex. ![]() A sub is on surface while travelling above the waves or decks-awash. It is Submerged if it is on snorkel depth or below. So I have designed different prepare-commands: Dialog-style surfacing: Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
4. Routing informations: You get an information about the distance to the next MWP, the time ingame and realtime (calculated with the given TC) Quote:
Quote:
5. Arrival: At the last MWP, the comment is: TEXT['WE_ARE_THERE'] + TEXT['HERR_KALEUN'] Good luck ![]() Paco
__________________
My SH5-Mods: - Pacos German Folklore SubEmblems Mod - Pacos Environment Sound Mod - Lite Campaign German Edition Last edited by Paco; 11-01-12 at 05:09 PM. Reason: Added last changes to code |
||||||||||||||||||||
|
|
10-31-12, 07:31 PM
|
#5 | |||||||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Thank you Paco!
I've updated the italian translation at post #53 and added a new text entry: 'DEGREES' for the plural form Quote:
Quote:
![]() the correct forms should be: Quote:
Quote:
Quote:
(see post #53) Quote:
No problem here |
|||||||
|
|
11-01-12, 06:07 AM
|
#6 |
|
Captain
![]() Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
|
Issue with TDW's delimiter - No issue with TDW's delimiter
My first attemp to change the delimiter from ',' to anything other has crashed.
![]() I have to go to deep into TDW's work to change and to be compatible with others work. But I found another way to allow the using of a comma in the navigation-files. Changing the input-routines in TDW's Mod -> heavy work Make a little change to his Journal-routine -> easy work For our comments, we write them as we want with the comma. By creating the shn-file, the script replaces all positions of a comma with "_#$#_". Now, I added a line to the "Page Default Hud.py" from TDW to get back the comma by replacing the _#$#_ in the output-function. The advantages are - we get less problems with the complex process how the automations are working - less code to change (one line only) - Less side effects, we aren't crashing the UI-Mod, because we are only in an output-routine (I think, nobody uses a term like _#$#_ in his comments )- The change allows Trevally, AvM, and others to use a so hided comma in ther shn files. They only need is the code update in the "Page Default Hud.py". Paco
__________________
My SH5-Mods: - Pacos German Folklore SubEmblems Mod - Pacos Environment Sound Mod - Lite Campaign German Edition |
|
|
11-01-12, 12:35 PM
|
#7 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
11-01-12, 04:49 PM
|
#8 | |||||
|
Captain
![]() Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
|
Hi gap,
I got Your remarks into the script: Quote:
Quote:
Quote:
Quote:
Quote:
Greets, Paco.
__________________
My SH5-Mods: - Pacos German Folklore SubEmblems Mod - Pacos Environment Sound Mod - Lite Campaign German Edition |
|||||
|
|
11-01-12, 05:27 PM
|
#9 |
|
Lieutenant
![]() Join Date: Jan 2012
Posts: 252
Downloads: 66
Uploads: 0
|
I am asking, for whom is the mod intended? ONly for the lazy guy who is not able to draw 5 course lines back to Wilhelmshaafn?
Must the script be monitored in any way to avoid u-boat loss? If "no" how does the script deal with enemy attacks?
__________________
Robert Schmidt, LTJG U-43 |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
