SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Multiple UIs for SH5 with TDC (https://www.subsim.com/radioroom/showthread.php?t=166093)

radcapricorn 06-26-12 08:07 AM

Quote:

Originally Posted by TheDarkWraith (Post 1901587)
The only thing that could be overriding it is if you have the same key, U, defined in commands.cfg for something. The keys in commands.cfg will not 'pass' the keypress onto anything else thus I cannot intercept it.

:hmmm:
Can't you set Handled property to True in PageDefaultHud's key press handler? I've been playing with edit boxes lately and whenever I typed in some numbers my speed telegraph reacted. But once I changed the event's Handled property to True, it stopped passing through.

Tonci87 06-26-12 08:12 AM

Quote:

Originally Posted by TheDarkWraith (Post 1901904)
That's interesting :hmmm: What OS are you using?

Win7 x64 Pro (german Localisation)

Mikemike47 06-26-12 03:57 PM

Quote:

Originally Posted by Tonci87 (Post 1901469)
I have a little Problem with your Options file Editor 1.0.25.0 (run as admin)

If I try to change the Hull number of the Boat (I want it to be U-35) I get this Error as soon as it tries to update the save games with the new number

Code:

************** Ausnahmetext **************
System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\Tonci\My Documents\SH5\data\cfg\SaveGames" konnte nicht gefunden werden.
  bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
  bei System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption)
  bei System.IO.Directory.GetDirectories(String path)
  bei TheDarkWraith.SilentHunter5.OptionsFileEditorViewer.SetUboatHullNumber(String hullnumber)
  bei TheDarkWraith.SilentHunter5.OptionsFileEditorViewer.TreeNodeOption_MouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e)
  bei System.Windows.Forms.TreeView.WndProc(Message& m)
  bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
OptionsFileEditorViewer
    Assembly-Version: 1.0.25.0.
    Win32-Version: 1.0.25.0.
    CodeBase: file:///C:/Spiele/Silent%20Hunter%205/MODS/NewUIs_TDC_6_9_0_ByTheDarkWraith/data/Applications/OptionsFileEditorViewer/OptionsFileEditorViewer.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5462 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Xml
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Core
    Assembly-Version: 3.5.0.0.
    Win32-Version: 3.5.30729.5420 built by: Win7SP1.
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

and I get this Error when it tries to update the campaign files

Code:

************** Ausnahmetext **************
System.IO.DirectoryNotFoundException: Ein Teil des Pfades "C:\Users\Tonci\My Documents\SH5\data\Users" konnte nicht gefunden werden.
  bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
  bei System.IO.Directory.GetDirectories(String path, String searchPattern, SearchOption searchOption)
  bei System.IO.Directory.GetDirectories(String path)
  bei TheDarkWraith.SilentHunter5.OptionsFileEditorViewer.SetUboatHullNumber(String hullnumber)
  bei TheDarkWraith.SilentHunter5.OptionsFileEditorViewer.TreeNodeOption_MouseDoubleClick(Object sender, TreeNodeMouseClickEventArgs e)
  bei System.Windows.Forms.TreeView.WndProc(Message& m)
  bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
OptionsFileEditorViewer
    Assembly-Version: 1.0.25.0.
    Win32-Version: 1.0.25.0.
    CodeBase: file:///C:/Spiele/Silent%20Hunter%205/MODS/NewUIs_TDC_6_9_0_ByTheDarkWraith/data/Applications/OptionsFileEditorViewer/OptionsFileEditorViewer.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5462 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Xml
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Core
    Assembly-Version: 3.5.0.0.
    Win32-Version: 3.5.30729.5420 built by: Win7SP1.
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Same thing happens if I change the captains name

Do I just type in the word Code:, then add the text?
Does that single word, code:, and then all the written text create the scrolling information ability at the bottom and right sides of text area? What other steps are needed? I would like to use that feature for future posts if someone can help me with the steps.

ALOTEF 06-27-12 05:09 AM

Quote:

Originally Posted by TheDarkWraith (Post 1901536)
Are you patched to v1.2 of the game? Does it say v1.2 in the upper right corner of the main game menu?

Run the DbgView app found in \data\Applications before starting the game. Start the game and try letting it sit there and loop for some time. It might still be loading items into memory. If this goes on for > 10mins then there is a problem somewhere. I'll need to see the full DbgView output.

I left it for some time and nothing was happening. I pressed Ctrl-Alt-Delete and went back into the program... it loaded and the mod works.
This seems to be a repeating pattern, an annoying one considering I must go through it each time I run the game. :/
From what I saw of the mod, it looks brilliant though.

TheDarkWraith 06-27-12 03:57 PM

Quote:

Originally Posted by Tonci87 (Post 1901469)
I have a little Problem with your Options file Editor 1.0.25.0 (run as admin)

If I try to change the Hull number of the Boat (I want it to be U-35) I get this Error as soon as it tries to update the save games with the new number

Same thing happens if I change the captains name

I checked my code and I had hard-coded the "My Documents" folder instead of getting the string value from the Environment class. I sent Tonci87 an updated version of the app. Once he verifies it works correctly I'll release a new version of the app so others won't have this problem.

finchOU 06-27-12 09:12 PM

Quote:

Originally Posted by TheDarkWraith (Post 1901587)
The only thing that could be overriding it is if you have the same key, U, defined in commands.cfg for something. The keys in commands.cfg will not 'pass' the keypress onto anything else thus I cannot intercept it.


went with alt S...works 4.0! :up:

TheDarkWraith 06-27-12 09:17 PM

Quote:

Originally Posted by radcapricorn (Post 1901908)
:hmmm:
Can't you set Handled property to True in PageDefaultHud's key press handler? I've been playing with edit boxes lately and whenever I typed in some numbers my speed telegraph reacted. But once I changed the event's Handled property to True, it stopped passing through.

Don't understand what you're asking :06:

TheDarkWraith 06-28-12 09:15 AM

Quote:

Originally Posted by Tonci87 (Post 1901469)
I have a little Problem with your Options file Editor 1.0.25.0 (run as admin)

If I try to change the Hull number of the Boat (I want it to be U-35) I get this Error as soon as it tries to update the save games with the new number

Same thing happens if I change the captains name

v1.0.28.0 of the Options file editor/viewer has been released to fix this problem. The problem was I had hard-coded 'My Documents' instead of getting the string for it from the Environment class. Can be found at post #1

radcapricorn 06-28-12 10:18 AM

Quote:

Originally Posted by TheDarkWraith (Post 1902477)
Don't understand what you're asking :06:

You said earlier that you cannot "intercept" keys defined in commands.cfg. I.e. if such key is pressed, it reaches the game and executes its command no matter what. I think this can be overridden in PageDefaultHud_KeyPressed(args) function. If I understand it correctly, if you handle the key press there and set args.Handled to True, the key press event won't go any further.

TheDarkWraith 06-28-12 12:13 PM

Quote:

Originally Posted by radcapricorn (Post 1902674)
You said earlier that you cannot "intercept" keys defined in commands.cfg. I.e. if such key is pressed, it reaches the game and executes its command no matter what. I think this can be overridden in PageDefaultHud_KeyPressed(args) function. If I understand it correctly, if you handle the key press there and set args.Handled to True, the key press event won't go any further.

You are correct, it won't go any further. Problem is commands.cfg gets checked first for keypresses and then control passes onto the scriptmanager. If the commands.cfg recognizes a keypress it gets handled and it must be setting args.Handled to true because it never gets passed onto the scriptmanager.

radcapricorn 06-28-12 12:28 PM

Quote:

Originally Posted by TheDarkWraith (Post 1902714)
You are correct, it won't go any further. Problem is commands.cfg gets checked first for keypresses and then control passes onto the scriptmanager. If the commands.cfg recognizes a keypress it gets handled and it must be setting args.Handled to true because it never gets passed onto the scriptmanager.

Hmmm... That is peculiar. I recently created the Edit Box in menu editor (I didn't clone it from existing one, just created a brand new control). When I left it as it was, with no event handlers attached, then whenever I "typed in" some characters that corresponded to commands.cfg keys (i.e. digits), they both appeared in edit box and were handled by the game. But as soon as I set args.Handled to true, the game stopped responding to those keys, thus allowing me to type in whatever I wanted. But then I noticed that for some keys, it was KeyReleased event that mattered (Enter, Backspace, Home, Del, etc.)... Anyway, I was under the impression that this would hold true for the whole PageDefaultHud, since this page is always active (at least in-game). :hmmm: I wish I could investigate a bit more, but I haven't the time ATM. Maybe in a day or two...

habib911 07-01-12 04:01 AM

Help
 
What type of mod should i download 1st

McHub532 07-01-12 07:15 PM

Quote:

Originally Posted by habib911 (Post 1903638)
What type of mod should i download 1st

DarkWraith's TDC

All the way... no question about it.

THE_MASK 07-01-12 07:44 PM

Quote:

Originally Posted by habib911 (Post 1903638)
What type of mod should i download 1st

One that changes your nickname would be good :timeout:

habib911 07-03-12 01:26 AM

Notepad?
 
What should I do after opening the file with notepad?

THE_MASK 07-03-12 02:36 AM

Quote:

Originally Posted by habib911 (Post 1904382)
What should I do after opening the file with notepad?

you need 7Zip to extract the mods .

Likloklord232 07-03-12 09:24 AM

Were stays it?
 
HI, The mod NewUI+TDC 3.0.0 looks verry good :D

but were can i download it :S i looked everywere but i can not find the file it self :S

can you pzz tell where its stays?

THANKS !!!

gap 07-03-12 09:58 AM

Quote:

Originally Posted by Likloklord232 (Post 1904481)
HI, The mod NewUI+TDC 3.0.0 looks verry good :D

but were can i download it :S i looked everywere but i can not find the file it self :S

can you pzz tell where its stays?

THANKS !!!

here: http://www.subsim.com/radioroom/show...69&postcount=1

links at the page's bottom. Read instructions carefully before downloading and installing. :03:

habib911 07-03-12 03:42 PM

Quote:

Originally Posted by sober (Post 1904391)
you need 7Zip to extract the mods .

7zip says it can not open the file as archive. Is it because when I downloaded it i opened it with notepad? If not, then what?:hmm2:

volodya61 07-03-12 03:49 PM

Quote:

Originally Posted by habib911 (Post 1904382)
What should I do after opening the file with notepad?

Quote:

Originally Posted by habib911 (Post 1904637)
7zip says it can not open the file as archive. Is it because when I downloaded it i opened it with notepad? If not, then what?:hmm2:

Which file?
What file you want to open via notepad and 7zip?


All times are GMT -5. The time now is 10: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.