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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-30-12, 06:47 PM   #1
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default



Now it looks like:

Quote:
Per favore verificate la rotta. Ufficiale di navigazione. Viriamo 1 decine di gradi a sinistra. Comandante.
Per favore verificate la rotta. Ufficiale di navigazione. Rimaniamo in rotta. Comandante.
Per favore verificate la rotta. Ufficiale di navigazione. Viriamo 1 decine di gradi a dritta. Comandante.

or


Viriamo 1 gradi di barra a dritta. Comandante.
Rimaniamo in rotta. Comandante.
Viriamo 2 gradi di barra a sinistra. Comandante.
The Value for the comma has to be a point, because I am not able to hide it from the automation-function. And there it is the field-separator...


decimal marks: You mean something like: 1.000 or 1,000 instead of 1000? No, not at the moment, sorry.
Paco is offline   Reply With Quote
Old 10-30-12, 07:30 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Paco View Post


Now it looks like:

Quote:
Per favore verificate la rotta. Ufficiale di navigazione. Viriamo 1 decine di gradi a sinistra. Comandante.
Per favore verificate la rotta. Ufficiale di navigazione. Rimaniamo in rotta. Comandante.
Per favore verificate la rotta. Ufficiale di navigazione. Viriamo 1 decine di gradi a dritta. Comandante.

or

Viriamo 1 gradi di barra a dritta. Comandante.
Rimaniamo in rotta. Comandante.
Viriamo 2 gradi di barra a sinistra. Comandante.
I have made some corrections in the meanwhile. Among them, 'Ufficiale di navigazione' was replaced with 'Ufficiale di rotta'.

Also notice that, likewise its French correspective, the Italian phrase:

Quote:
Viriamo 1 decine di gradi a sinistra
sounds a bit akward.

I have translated the 'DEC_TO' entry just in case, but if you look closely at my previous post, I have also set 'BIGREGBLANK' to '' (Null). If I understood your explanations, it should result in the following phrase being used instead:

Quote:
Viriamo 10 gradi di barra a sinistra
Finally, the italian word 'gradi' is case sensitive (singular: grado). I could replace it with the degree symbol '°', but then, it should be linked with the respective value (es. '1°' instead of '1 °'). Can you remove the space separator between degree values and their unit of measure?

Quote:
Originally Posted by Paco View Post
The Value for the comma has to be a point, because I am not able to hide it from the automation-function. And there it is the field-separator...
So this entry:

'KOMMATA' : ',',

has to be:

'KOMMATA' : '.',?

Using periods instead of commas makes dialogs lesser intellegible, imo...

maybe we can add a comma and a space at the end of text entries that are always followed by a recipient, or a comma and a space to the entries used for recipients, thus making the use of other separators dispensable

Quote:
Originally Posted by Paco View Post
marks: You mean something like: 1.000 or 1,000 instead of 1000? No, not at the moment, sorry.
no, I was especially concerned about the separator used in Imperial/Intenational system for decimal numbers:

1.5 instead of 1,5

Last edited by gap; 10-30-12 at 07:48 PM.
gap is offline   Reply With Quote
Old 10-31-12, 08:15 AM   #3
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
...I have also set 'BIGREGBLANK' to '' (Null). If I understood your explanations, it should result in the following phrase being used instead:
You understood it in the right way.

Quote:
Originally Posted by gap View Post
'gradi' is case sensitive (singular: grado) .... Can you remove the space separator between degree values and their unit of measure?
Hm, I could implement the singular and plural form. It looks better than the degree symbol, imho?



Quote:
Originally Posted by gap View Post
Using periods instead of commas makes dialogs lesser intellegible, imo...
I know, but TDW has assigned the comma as a field-seperator in his automation.py-Script. I have looked into it and found the function which is reading and processing the shn-file. I'm able to change it there, but we have to be compatible to the other automation-scripts from Trevally, AvM, etc.

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:
NewUIs with TDC for SH5 by TheDarkWraith
version 7.1.0

YOU HAVE TO BE PATCHED TO v1.2 OF THE GAME!!!


COPYRIGHT NOTICE:
The code changes made to the .py files are the intellectual property of TheDarkWraith and may not be used, modified, or duplicated in whole, or in part, without the express written permission of TheDarkWraith. The code changes made to these files may not be used in any commercial application of any form without the express written permission of TheDarkWraith.
So we need a decision:
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:
Originally Posted by gap View Post
maybe we can add a comma and a space at the end of text entries that are always followed by a recipient, or a comma and a space to the entries used for recipients, thus making the use of other separators dispensable
Sorry, no. As soon as a comma is in use in a comment, the automation.py gives an exception and I can't mask it (\,)

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:
Originally Posted by gap View Post
no, I was especially concerned about the separator used in Imperial/Intenational system for decimal numbers:

1.5 instead of 1,5
Not impossible -> I wrote it to my todo-(wish-)list.
Paco is offline   Reply With Quote
Old 10-31-12, 09:27 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Paco View Post
You understood it in the right way.


Quote:
Originally Posted by Paco View Post
Hm, I could implement the singular and plural form. It looks better than the degree symbol, imho?
yes, nice
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:
Originally Posted by Paco View Post
I know, but TDW has assigned the comma as a field-seperator in his automation.py-Script. I have looked into it and found the function which is reading and processing the shn-file. I'm able to change it there, but we have to be compatible to the other automation-scripts from Trevally, AvM, etc.

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:

So we need a decision:
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.
I may be wrong, but I think TDW is only concerned about people using part of his code in their own mods for any other reason than ensuring compatibility with them. On the other hand, he has always been extremely open to suggestions meant to improve his work and to stimulate other's creativity.

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
gap is offline   Reply With Quote
Old 10-31-12, 02:10 PM   #5
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default singular/plural; TDW Scripts

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:
Giving changes as an exact value:
512328_7225438_-1_9999,0_7_-1_Viriamo 1 grado di barra a dritta, Comandante.
521982_7199124_-1_9999,0_7_-1_Rimaniamo in rotta, Comandante.
530193_7172250_-1_9999,0_7_-1_Viriamo 3 gradi di barra a dritta, Comandante.
539876_7146954_-1_9999,0_7_-1_Viriamo 4 gradi di barra a sinistra, Comandante.

Giving changes as dec-value:
1343910_8146509_-1_9999,0_7_-1_Viriamo 1 decine di gradi a dritta, Comandante.
1318821_8132517_-1_9999,0_7_-1_Viriamo 1 decine di gradi a sinistra, Comandante.

Using the BIGREG/gap-style ;-)
1294086_8119799_-1_9999,0_7_-1_Viriamo 10 di gradi a dritta, Comandante.
1270297_8105174_-1_9999,0_7_-1_Viriamo 10 di gradi a sinistra, Comandante.
Quote:
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
I will do so.

Cheers,
Paco.
Paco is offline   Reply With Quote
Old 10-31-12, 04:12 PM   #6
Paco
Captain
 
Join Date: May 2005
Location: Kassel, Germany
Posts: 538
Downloads: 345
Uploads: 0
Default Comments at a given Waypoint (MWP)

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:
TEXT['ALL_STOP'] + TEXT['XO']
-changing speed:
Quote:
TEXT['NEW_SPEED'] + speed + TEXT['KN'] +TEXT['XO']
Than, the crew confirms this command - this part is the same as the no dialog-style:

- stopping:
Quote:
TEXT['STOPPING'] + TEXT['HERR_KALEUN']
-changing speed:
Quote:
TEXT['NEW_SPEED_IS'] + speed + TEXT['KN'] +TEXT['HERR_KALEUN']
Examples:
Quote:
New Speed 7 knots, XO. Going to 7 knots, Herr Kaleun.
Neue Fahrt 7 Knoten, LI. Gehen auf 7 Knoten, Herr Kaleun.

All stop, XO. Stopping, Herr Kaleun.
Maschinen stop, LI. Maschinen stop, Herr Kaleun.
2. Headings:

If using the dialog-style, the captain commands the new heading of the sub:

Quote:
TEXT['NEW_HEADING'] + TEXT['NAVIGATOR'])
Than, the crew confirms this command - this part is the same as the no dialog-style. It is divided to write the heading in degree or as a compass:

a) degree - change heading:

Quote:
TEXT['NEW_HEADING_IS'] + heading + TEXT['DEGREE'] + TEXT['HERR_KALEUN']
b) degree - heading is not changing:

Quote:
TEXT['HEADING_IS_FINE'] + heading + TEXT['DEGREE'] + TEXT['HERR_KALEUN']
c) compass-style - change heading:

Quote:
TEXT['NEW_HEADING_IS'] + SSO + TEXT['HERR_KALEUN']
d) compass-style - heading is not changing:

Quote:
TEXT['HEADING_IS_FINE'] + SSO + TEXT['HERR_KALEUN']
Examples:

Quote:
a)
We need to change the heading, Navigator. New heading is 75 degree, Herr Kaleun.
Zeit den Kurs zu wechseln, ObStrMn. Gehen auf Kurs 0 Grad, Herr Kaleun.

b)
We need to change the heading, Navigator. Heading is fine 90 degree, Herr Kaleun.
Zeit den Kurs zu wechseln, ObStrMn. Bleiben auf Kurs 0 Grad, Herr Kaleun.

c)
We need to change the heading, Navigator. New heading is WNW, Herr Kaleun.
Zeit den Kurs zu wechseln, ObStrMn. Gehen auf Kurs WSW, Herr Kaleun.

d)
We need to change the heading, Navigator. Heading is fine N, Herr Kaleun.
Zeit den Kurs zu wechseln, ObStrMn. Bleiben auf Kurs N, Herr Kaleun.
3. Changing Sub-depth:

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:
TEXT['PREPARE'] + TEXT['FOR'] + TEXT['TO_SURFACE'] + TEXT['XO']
TEXT['READY'] + TEXT['FOR'] + TEXT['TO_SURFACE'] + TEXT['HERR_KALEUN']
Dialog-style from surface -> diving:
Quote:
TEXT['PREPARE'] + TEXT['FOR'] + TEXT['TO_DIVE'] + TEXT['XO']
TEXT['READY'] + TEXT['FOR'] + TEXT['TO_DIVE'] + TEXT['HERR_KALEUN']
Dialog-style from surface -> diving to the testdepth of the sub:
Quote:
TEXT['PREPARE'] + TEXT['FOR'] +TEXT['TO_TESTDIVE'] + TEXT['XO']
TEXT['READY'] + TEXT['FOR'] +TEXT['TO_TESTDIVE'] + TEXT['HERR_KALEUN']
Dialog-style all other depth-changes:
Quote:
TEXT['PREPARE'] + TEXT['FOR'] +TEXT['TO_CHANGE_DEPTH'] + TEXT['XO']
TEXT['READY'] + TEXT['FOR'] +TEXT['TO_CHANGE_DEPTH'] + TEXT['HERR_KALEUN']
Than follows the command with the exact depth:

Quote:
TEXT['GO_TO_FIXED_DEPTH'] + TEXT['SURFACE'] + TEXT['XO']
TEXT['GO_TO_FIXED_DEPTH'] + TEXT['SNORKEL_DEPTH'] + TEXT['XO']
TEXT['GO_TO_FIXED_DEPTH'] + TEXT['PERISCOPE_DEPTH'] + TEXT['XO']
TEXT['GO_TO_FIXED_DEPTH'] + TEXT['DECKSAWASH_DEPTH'] + TEXT['XO']
or
TEXT['GO_TO_DEPTH'] + TEXT['DEPTH'] + subdepth + TEXT['METRES'] + TEXT['XO']
The last part is used from dialog or non-dialog-style:
Quote:
TEXT['SURFACEING']
TEXT['GOING_TO'] + TEXT['SNORKEL_DEPTH'] + TEXT['HERR_KALEUN']
TEXT['GOING_TO'] + TEXT['PERISCOPE_DEPTH'] + TEXT['HERR_KALEUN']
TEXT['GOING_TO'] + TEXT['DECKSAWASH_DEPTH'] + TEXT['HERR_KALEUN']
or
TEXT['GOING_TO'] + TEXT['DEPTH'] + subdepth + TEXT['METRES'] + TEXT['HERR_KALEUN']
Examples:

Quote:
Prepare for Surfacing, XO. Ready for Surfacing, Herr Kaleun. Surfaceing, XO. Surfacing, Herr Kaleun.
Klar für Überwasserfahrt, LI. Boot klar für Überwasserfahrt, Herr Kaleun. Auftauchen, LI. Tauchen auf, Herr Kaleun.

Prepare for Depthchanging, XO. Ready for Depthchanging, Herr Kaleun. Decks awash, XO. Going to Decks awash, Herr Kaleun.
Klar für Tiefenänderung, LI. Boot klar für Tiefenänderung, Herr Kaleun. Vorfluttiefe, LI. Gehen auf Vorfluttiefe, Herr Kaleun.

Prepare for Diving, XO. Ready for Diving, Herr Kaleun. Snorkeldepth, XO. Going to Snorkeldepth, Herr Kaleun.
Klar für Unterwasserfahrt, LI. Boot klar für Unterwasserfahrt, Herr Kaleun. Schnorcheltiefe, LI. Gehen auf Schnorcheltiefe, Herr Kaleun.

Prepare for Depthchanging, XO. Ready for Depthchanging, Herr Kaleun. Persicopedepth, XO. Going to Persicopedepth, Herr Kaleun.
Klar für Tiefenänderung, LI. Boot klar für Tiefenänderung, Herr Kaleun. Sehrohrtiefe, LI. Gehen auf Sehrohrtiefe, Herr Kaleun.

Prepare for Depthchanging, XO. Ready for Depthchanging, Herr Kaleun. Go to 130 metres, XO. Going to 130 metres, Herr Kaleun.
Klar für Tiefenänderung, LI. Boot klar für Tiefenänderung, Herr Kaleun. Neue Tiefe 130 Meter, LI. Gehen auf 130 Meter, Herr Kaleun.

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:
TEXT['REACHING_NEXT_WP'] + distance + TEXT['SM'] + TEXT['THAT_TAKES'] + Gametime + TEXT['HOURS'] + TEXT['LEFT_BRACKET'] + Realtime + TEXT['MINUTES'] + TEXT['RIGHT_BRACKET'] + TEXT['HERR_KALEUN']
Example:

Quote:
Reaching next Waypoint in 1100 nm. That takes 20 hours (4 minutes), Herr Kaleun.
Nächster Kurswechsel in 1100 sm. Marschzeit dahin 20 Stunden (4 Minuten), Herr Kaleun.

5. Arrival:


At the last MWP, the comment is:

TEXT['WE_ARE_THERE'] + TEXT['HERR_KALEUN']

Good luck
Paco

Last edited by Paco; 11-01-12 at 05:09 PM. Reason: Added last changes to code
Paco is offline   Reply With Quote
Old 10-31-12, 07:31 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Paco View Post
Hi gap,

I added the singular and plural-forms to the scipt.
Thank you Paco!
I've updated the italian translation at post #53 and added a new text entry: 'DEGREES' for the plural form

Quote:
Originally Posted by Paco View Post
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 "#".


Quote:
Originally Posted by Paco View Post
Have a look for the italian version:

Quote:
Using the BIGREG/gap-style ;-)
1294086_8119799_-1_9999,0_7_-1_Viriamo 10 di gradi a dritta, Comandante.
1270297_8105174_-1_9999,0_7_-1_Viriamo 10 di gradi a sinistra, Comandante.
That's not correct

the correct forms should be:

Quote:
Viriamo 10 gradi di barra a dritta, Comandante.
Viriamo 10 gradi di barra a sinistra, Comandante.
or even:

Quote:
Viriamo 10 gradi a dritta, Comandante.
Viriamo 10 gradi a sinistra, Comandante.

Quote:
Originally Posted by Paco View Post
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:

...

2. Headings:

...
translation done without problems
(see post #53)


Quote:
Originally Posted by Paco View Post
3. Changing Sub-depth:

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:

....
Okay, translation done, but with some remarks:
  • the entry ['FOR'] should be translated with the italian preposition "a" combined with the definite article, wich may vary depending on the noun that follows it. In our case we would have "al" or "all'" (with the apostrophe). My workaround was leaving the 'FOR' entry blanc, and including the preposition in the ['TO_SURFACE'], ['TO_DIVE'], ['TO_TESTDIVE'] and ['TO_CHANGE_DEPTH'] entries. Are they used in any other combination that the one you have illustrated?

  • In italian we make a broad use of the apostrophe. Nevertheless I see that your code uses straight apostrophes as string markers. I've used the curly apostrophe instead (hoping that it is not going to be confused with the straight one), but this forum doesn't recognize it: it gets replaced with a ***8217; code. In your code, you should replace that text with the correct character. If you are going to do it, please remember that there is no space between words separeted by postrophes (for example: "all'immersione" not "all' immersione".

  • Are the strings ['TO_SNORKEL_DEPTH'], ['TO_PERISCOPE_DEPTH'] and ['TO_DECKSAWASH_DEPTH'] used likewise the remaining ['TO_*'] entries. I didn't translate them yet, because I couldn't find any mention to them among your examples.

  • As far as depth commands are concerned, could you put the ['GO_TO'] string to before these phrases:

    TEXT['SNORKEL_DEPTH'] + TEXT['XO']
    TEXT['PERISCOPE_DEPTH'] + TEXT['XO']
    TEXT['DECKSAWASH_DEPTH'] + TEXT['XO']

    it would make more obvious that they are orders, and it would also make them symmetrical with their respective answers (order carried out), thus easing their translation.

  • In this dialog:

    TEXT['GO_TO'] + subdepth + TEXT['METRES'] + TEXT['XO']
    TEXT['GOING_TO'] + subdepth + TEXT['METRES'] + TEXT['HERR_KALEUN']

    can you insert a ['DEPTH'] string between ['GO_TO'] / ['GOING_TO'] and the subdepth value: it is not indispensable, but in italian in would make it more straightforward from the beginning that we are talking about meters of depth. For other languages that don't require it, the entry could be left blank

Quote:
Originally Posted by Paco View Post

4. Routing informations:


...

5. Arrival:


...
No problem here
gap 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:27 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.