View Full Version : [TEC] KzS Notepad
Youtube (https://youtu.be/JMYmYJh2emI)
http://oi59.tinypic.com/2rf4t8n_th.jpg (http://oi59.tinypic.com/2rf4t8n.jpg)
KzS_Notepad.7z (https://www.dropbox.com/s/ijt1q6f3v537cfh/KzS_Notepad.7z)
As mod it is very simple, just a bunch of edit boxes.
Like these when we type our player name or name the save.
Do not hurry to be happy, because this have flaws.
I use it successfully, but only because of my playing style and my installation is specific.
Most users would have problems.
Because of this, I release it as [TEC]Thread, not as a mod.
Will give you my files, but to install it, to deal with some problems and learn to use it is your job.
And I will try to explain, for who wants to use it.
First drawback: It will not go in your save.
The text will stay there only in your current game session. That's why I named it notepad, not a logbook.
When start SH3 again, the notepad will be clean.
Solution: To save it, before exiting the game just make screenshot with it.
Second drawback: While writing in this notepad, the keyboard commands of the game continue to work.
In the beginning I didn't realize it. My playing style is to play only with mouse.
Some time ago, I cleaned my Commands_en.cfg from key commands. Leave only few for time compression and for camera control.
Now, by default I don't have problem with this issue, my letter keys are free from game commands.
Solution: One way is to be like me: if your GUI allows you access to almost everything via menu commands.
Another way that I can think of is: to write in notepad only when the game is paused.
Most commands in Commands_en.cfg don't work in pause.
If there have any that possibly are obstacle, to make them to not work in pause is easy: just delete the digit 2 from Ctxt=
Another way is to edit your Commands_en.cfg: every key command that will be a problem, to be through Shift or Ctrl, and then write in notepad only lowercase.
Third drawback: it is not a problem to make one big edit box. But it have problems. The cursor didn't go, visually, to the second line. Will stay on the end of the first line. The text will go, but without cursor it is hard to do editings.
And it is not possible to go in new line when you want. You need to fill current line or pumps on key Space, to go for next one.
My solution: is to make what i made. Bunch of separate edit boxes.
Fourth drawback: The notepad in this form is composed of 21 lines, each line has three boxes with limited space for writing.
For me it is enough. This is a notepad for quick and short notes. But, what if this is not enough for you?
Solution: It's not a problem to have two notepads or three. Or to have them on different screens, one on map screen, another on mission order page or radio messages page...
And one bug that I found:
You click on edit box, the cursor is active, now you click keyboard key command that send you to different screen, when you go back to the screen with the notepad, the edit box is broken and writing in it is not possible.
Not a big problem, because of many edit boxes that the notepad have, you will just skip this one.
Solution: Just always click again to close the edit box, before you go anywhere.
At last an in game notebook!!!
Fahnenbohn
09-19-15, 06:57 PM
Very nice and convenient addition ! I love it ! :yeah:
PS : KzS = Kampf zur See ?
Technically, would it be possible to make the notepad closing by clicking on it ? (I mean as in R/L, the two parts on each other). And then, move the closed notebook on the right to hide it ?
Ufff I was thinking on adding something like that some time ago !
Great work !:rock::salute:
WOW!
Very impressive.
I'm guessing this involved a good bit of work?
:up:
Sailor Steve
09-19-15, 08:28 PM
Fantastic!
I do have one question though. Can it be copied externally? I usually hand-write my notes, then type them up when the patrol is over, then transfer them to Subsim. Can these notes be copied outside of the game?
sublynx
09-19-15, 10:55 PM
Incredible. This is something we have dreamed of ever since the game came out. I just can't fathom how that was possible.
Just a fantastic addition to thw game, though! Tycho should get a an honorary Minimod Master title with this mod and the Analogue Clock, Gridxxxx mod etc.
Fahnenbohn
09-20-15, 03:00 AM
And would it be possible to add several pages in the notebook ? :hmm2:
The answers to various questions are now in the second post.
PS : KzS = Kampf zur See ?
I think of Kapitän zur See.
Curious to look at mod files. Wondering how you were able to put in edit boxes in the game. Could open alot of possibilities here.
Finding the memory location of the written text is a way to save it. Use cheat engine to find the pointer then save the string data.
Looking forward to see how this was done though. Good work!
Show us an example of your menu.ini file. Please.
sublynx
09-20-15, 06:32 AM
Sounds like I might be able to make a maneuvering board with a possibility of short written notes. I do like to use keyboard shortcuts though.
The files are in first post!
Wondering how you were able to put in edit boxes in the game. Could open alot of possibilities here.
As already mentioned:
As mod it is very simple, just a bunch of edit boxes.
Like these when we type our player name or name the save.
They were just there, Type=1035 in menu_.ini.
Nice work, Tycho :up:
It would be a nice addition to the radio message screen in combination with the enigma. One could then write down the decrypted letters in-game.
Regards, LGN1
Nice work, Tycho :up:
It would be a nice addition to the radio message screen in combination with the enigma. One could then write down the decrypted letters in-game.
Regards, LGN1
I like where this is going.... :yep:
Excellent mod! :yeah: :salute: Even if does have a high learning curve it's well worth it.
Hi Tycho,
is it possible to have a default message in the textbox (via menu.txt) which can be replaced by your own message? This might offer a way to save the text.
Regards, LGN1
Hi,
I think I have a solution to save the text:
- Use Autohotkey to log your key strokes during game-play
- Evaluate and process this log file with a script
- Use, e.g., SH3Commander to add the text back into SH3 via *_menu.txt for a chosen save-game (if necessary change the text box parameters, too).
For convenience this could be put into a single script.
This should all be straight-forward, however, it would require quite some coding...
Regards, LGN1
sublynx
09-24-15, 09:15 AM
With a proper Autohotkey script one could type something like this:
#BE1742 1414 A 3000 GRT merchant spotted 174°##
# meaning Start text
## meaning End text
??
So I could write and save a war diary many pages long with the help of an Autohotkey script and the KzS Notebook?
Would it be possible to also have the script to save the text as a Word file?
is it possible to have a default message in the textbox (via menu.txt) which can be replaced by your own message? This might offer a way to save the text.
Yes! Add in menu_1024_768.ini for the edit box "Text=any number" which leads to en_menu.txt. There write what you want, and the text will be in that edit box when start the game. In the game you can edit this text, but in en_menu.txt will stay original text.
It would be a nice addition to the radio message screen in combination with the enigma. One could then write down the decrypted letters in-game.
Yes, I was thinking of adding one edit box for radio message screen. And if manipulated the font files, it is possible to type letter on keyboard and to appear different letter in the box. I'm going to do it, but when have time.
As for the script, it is too occupation for me. I continue to write log book on paper after patrol, I just want opportunity for quick notes in game.
Yes! Add in menu_1024_768.ini for the edit box "Text=any number" which leads to en_menu.txt. There write what you want, and the text will be in that edit box when start the game. In the game you can edit this text, but in en_menu.txt will stay original text.
But game must be completely restarted to see changes of en_menu.txt file. This isn't that ideal.
Best solution would be to write to memory address. Look into CheatEngine and find the pointer to the text edit box and then put in the saved log string there. Do you guys have experience with reading and writing to memory locations of a running executable?
Do you guys have experience with reading and writing to memory locations of a running executable?
No! And don't want to. I achieved what I wanted - possibility for quick and short notes in game. I make screenshot with these notes and then, after patrol I write logbook on paper, with help from these notes.
The rest, I'll leave it in the hands of who has experience with what you are talking about.
No! And don't want to. I achieved what I wanted - possibility for quick and short notes in game. I make screenshot with these notes and then, after patrol I write logbook on paper, with help from these notes.
The rest, I'll leave it in the hands of who has experience with what you are talking about.
Understood.
However, your idea opens up the door to many other possibilities. If we can get a method to save the notes. Screenshots aren't ideal for everyone. We can expand this to other things like captain diaries and such. I know a bit about it but am occupied with my two jobs and I'm a fulltime student.
I'd be willing to guide anyone who wants to take on this memory method. I know how you can learn it fast and help put it together.
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 :wah:) !
Regards, LGN1
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.
@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 :wah:) !
Yes, exactly! Will do it the next week.
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.
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.
ExFishermanBob
09-26-15, 05:06 PM
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).
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.
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.
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.
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?
Yes, I know!
No need to yell budd.
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?
Anvar1061
09-27-15, 05:20 AM
SSS
How to disable the keyboard shortcuts ?
No need to yell budd.
Did I yell? :) I just try to answer your questions.
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.
SSS
How to disable the keyboard shortcuts ?
You need to edit "Commands_en.cfg".
One example:
[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"
[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"
[Cmd67]
Name=Toggle_hydrophone_view
Ctxt=1
Key0=0x48,s,"H"
Yes, exactly! Will do it the next week.
Great news, Tycho!
Looking forward to seeing your work!
Regards, LGN1
Hi Tycho,
any update on adding the notepad to the radio screen? Did you succeed with the new font?
Regards, LGN1
The life problems are kidnapped me. But I'll be home after tuesday, and will make it quick.
hauangua
11-16-18, 09:18 AM
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.
ArnoldR
11-16-18, 09:21 AM
Hi Tycho
i have this mod in LSH V15 work very good in Nav Map, i ask you:
it is possible to have "Notepad kzs" in periscope attack station?
Thanks for all Tycho.
+1
good idea!!! :yep:
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.
You can have many notepads, on whatever screen you want.
Probably you did something wrong, ParentID for example.
Send me your menu_.ini file, I'll do it for you.
hauangua
11-17-18, 09:11 AM
You can have many notepads, on whatever screen you want.
Probably you did something wrong, ParentID for example.
Send me your menu_.ini file, I'll do it for you.
Very very thanks Tycho
http://www.mediafire.com/file/2mv63bv5b81cz52/menu_1024_768.ini/file
This is "original" with just your Notepad in Nav.Map
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.