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

Reply
 
Thread Tools Display Modes
Old 09-26-15, 02:36 PM   #1
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Hi Tycho & Areo16,

I agree my solution would not be the ideal solution, however, it would work (at least for my style of playing because I always play only one career during a gaming session/loading).

Anyway, I don't have time and I'm too lazy to write the script. The same applies to implementing anything involving writing to memory...

@Tycho: Concerning your remark about the font: Do you mean to make a new font for the notepad at the radio screen so that if you press the letter of the encrypted message you see the decrypted letter on the notepad? That's a very nice idea and would speed up the process of decryption quite a bit (but avoiding your nice enigma machine ) !

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 09-26-15, 03:17 PM   #2
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by LGN1 View Post
Hi Tycho & Areo16,

I agree my solution would not be the ideal solution, however, it would work (at least for my style of playing because I always play only one career during a gaming session/loading).

Anyway, I don't have time and I'm too lazy to write the script. The same applies to implementing anything involving writing to memory...
I hear ya. I guess I'll just have to put it on my ever expanding to-do list.

How about the other problem of one line text edits? Now you have to click on the next line to type on the next line.

Is there anywhere in the game that has a multi-line text edit area? Not just a one line text edit line. If exists, we could use that menu item id.
areo16 is offline   Reply With Quote
Old 09-26-15, 03:54 PM   #3
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by LGN1 View Post
@Tycho: Concerning your remark about the font: Do you mean to make a new font for the notepad at the radio screen so that if you press the letter of the encrypted message you see the decrypted letter on the notepad? That's a very nice idea and would speed up the process of decryption quite a bit (but avoiding your nice enigma machine ) !
Yes, exactly! Will do it the next week.

Quote:
Originally Posted by areo16 View Post
How about the other problem of one line text edits? Now you have to click on the next line to type on the next line.

Is there anywhere in the game that has a multi-line text edit area? Not just a one line text edit line. If exists, we could use that menu item id.
It is possible to edit on every line. But the cursor is not visible after first line, and this makes the editings more tricky. And the impossibility to go for new line, when you want, makes the multi-line edit box even more tricky for use.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 09-26-15, 04:18 PM   #4
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by Tycho View Post
It is possible to edit on every line. But the cursor is not visible after first line, and this makes the editings more tricky. And the impossibility to go for new line, when you want, makes the multi-line edit box even more tricky for use.
What is the menu id number for multi-line edit box?
Not seeing cursor makes it difficult but not impossible. Finding cursor location can be done by deleting or adding one character. If you click on the second line on the right side of the text and it has text on the second line, wont the cursor go to the end of the text? Even though it is invisible.

Last edited by areo16; 09-26-15 at 04:24 PM.
areo16 is offline   Reply With Quote
Old 09-27-15, 08:29 AM   #5
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Quote:
Originally Posted by Tycho View Post
Yes, exactly! Will do it the next week.

Great news, Tycho!

Looking forward to seeing your work!

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 10-13-15, 03:15 PM   #6
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Hi Tycho,

any update on adding the notepad to the radio screen? Did you succeed with the new font?

Regards, LGN1
LGN1 is offline   Reply With Quote
Old 10-18-15, 09:09 AM   #7
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

The life problems are kidnapped me. But I'll be home after tuesday, and will make it quick.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 11-16-18, 09:18 AM   #8
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 927
Downloads: 1435
Uploads: 0
Default

Hi Tycho
i have this mod in LSH V15 work very good in Nav Map, (beautiful!! )
Now i ask you:
it is possible to have "Notepad kzs" in periscope attack station?
I tried to copy and paste 1024.ini of kzs in periscope attack section, for last and renumbered everything, but it gives me errorl("not found file 0xff...etc"surely surely I'm wrong!!, but what?

Thanks for all Tycho.
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup

Last edited by hauangua; 11-16-18 at 11:57 AM.
hauangua is offline   Reply With Quote
Old 09-26-15, 05:06 PM   #9
ExFishermanBob
Difficulties Numbing
 
Join Date: Aug 2013
Location: AN19
Posts: 470
Downloads: 43
Uploads: 0


Default

Quote:
Originally Posted by areo16 View Post
I hear ya. I guess I'll just have to put it on my ever expanding to-do list.

How about the other problem of one line text edits? Now you have to click on the next line to type on the next line.

Is there anywhere in the game that has a multi-line text edit area? Not just a one line text edit line. If exists, we could use that menu item id.
Are you thinking - "enter some known text" then scan the memory (of the running program) to find out where it lies? If the notepad was started with some fixed (known) text (like "KzS Notepad") it might be easy enough even at run-time. I suspect the problem might be detecting the end of the text (unless you had a fixed-size allocation for any notepad text with an end-marker as well).
ExFishermanBob is offline   Reply With Quote
Old 09-26-15, 05:12 PM   #10
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by areo16 View Post
What is the menu id number for multi-line edit box?
The same, there has only the one edit box in the game and it is Type=1035.
Make it bigger and give it more TextMaxLen=xxxx, and you will have multi-line edit box.

Quote:
Originally Posted by areo16 View Post
Not seeing cursor makes it difficult but not impossible. Finding cursor location can be done by deleting or adding one character.
Yes, I know! I experimented a lot with these things. And because of that, I reached to the decision to divide it into separated lines with numerous edit boxes.

Quote:
Originally Posted by areo16 View Post
If you click on the second line on the right side of the text and it has text on the second line, wont the cursor go to the end of the text? Even though it is invisible.
Not possible:
One click with the mouse over - opens edit box.
Second click with the mouse - closes edit box.
But, works with Home, End and Arrow keys.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 09-27-15, 02:48 AM   #11
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by Tycho View Post

Yes, I know!
No need to yell budd.

Quote:
Originally Posted by Tycho View Post
Not possible:
One click with the mouse over - opens edit box.
Second click with the mouse - closes edit box.
But, works with Home, End and Arrow keys.
When it opens the edit box with one click where does the cursor go if there is multiple lines of text in the text edit box? on first click?
areo16 is offline   Reply With Quote
Old 09-27-15, 05:20 AM   #12
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,489
Downloads: 882
Uploads: 0
Default keyboard shortcuts

SSS
How to disable the keyboard shortcuts ?
Anvar1061 is offline   Reply With Quote
Old 09-27-15, 07:09 AM   #13
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by areo16 View Post
No need to yell budd.
Did I yell? I just try to answer your questions.

Quote:
Originally Posted by areo16 View Post
When it opens the edit box with one click where does the cursor go if there is multiple lines of text in the text edit box? on first click?
The cursor always goes in the end of the text.


Quote:
Originally Posted by Anvar1061 View Post
SSS
How to disable the keyboard shortcuts ?
You need to edit "Commands_en.cfg".
One example:

Code:
[Cmd67]
Name=Toggle_hydrophone_view
Ctxt=1
Key0=0x48,,"H"
Now, you added ; before Key0=, and there will not be key command "H".
;Key0=0x48,,"H"
Code:
[Cmd67]
Name=Toggle_hydrophone_view
Ctxt=1
;Key0=0x48,,"H"
Or, you want this key command, but to be with Shift or Ctrl.
Then add "s" for Shift, or "c" for Ctrl here, between commas:
Key0=0x48,s,"H"
Code:
[Cmd67]
Name=Toggle_hydrophone_view
Ctxt=1
Key0=0x48,s,"H"
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 09-27-15, 02:46 AM   #14
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by ExFishermanBob View Post
Are you thinking - "enter some known text" then scan the memory (of the running program) to find out where it lies? If the notepad was started with some fixed (known) text (like "KzS Notepad") it might be easy enough even at run-time. I suspect the problem might be detecting the end of the text (unless you had a fixed-size allocation for any notepad text with an end-marker as well).
Well if its a multiline text edit box then wont there be a pointer somewhere to an allocated space big enough to hold enough characters to fill that whole multiline text edit box?
areo16 is offline   Reply With Quote
Reply


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 11:24 PM.


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