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 06-27-12, 03:57 PM   #8986
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Tonci87 View Post
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.
TheDarkWraith is offline   Reply With Quote
Old 06-27-12, 09:12 PM   #8987
finchOU
Samurai Navy
 
Join Date: Jan 2004
Posts: 571
Downloads: 77
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
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!
__________________
Intel i7-2700K-3.50GHz, 16 GB RAM, 2 xGTX 560,2GB,SLI,2 TB HD
The Wolves of Steel 1.06
The Wolves of Steel 1.06 Update 05c
finchOU is offline   Reply With Quote
Old 06-27-12, 09:17 PM   #8988
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by radcapricorn View Post

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
TheDarkWraith is offline   Reply With Quote
Old 06-28-12, 09:15 AM   #8989
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Tonci87 View Post
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
TheDarkWraith is offline   Reply With Quote
Old 06-28-12, 10:18 AM   #8990
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
Don't understand what you're asking
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.
radcapricorn is offline   Reply With Quote
Old 06-28-12, 12:13 PM   #8991
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by radcapricorn View Post
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.
TheDarkWraith is offline   Reply With Quote
Old 06-28-12, 12:28 PM   #8992
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
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). I wish I could investigate a bit more, but I haven't the time ATM. Maybe in a day or two...
radcapricorn is offline   Reply With Quote
Old 07-01-12, 04:01 AM   #8993
habib911
Swabbie
 
Join Date: Jul 2012
Posts: 9
Downloads: 33
Uploads: 0
Default Help

What type of mod should i download 1st
habib911 is offline   Reply With Quote
Old 07-01-12, 07:15 PM   #8994
McHub532
Seasoned Skipper
 
Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 104
Uploads: 0
Default

Quote:
Originally Posted by habib911 View Post
What type of mod should i download 1st
DarkWraith's TDC

All the way... no question about it.
__________________
Thomas Jefferson - "When the people fear their government, there is tyranny; when the government fears the people, there is liberty."

McHub532 is offline   Reply With Quote
Old 07-01-12, 07:44 PM   #8995
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by habib911 View Post
What type of mod should i download 1st
One that changes your nickname would be good
THE_MASK is offline   Reply With Quote
Old 07-03-12, 01:26 AM   #8996
habib911
Swabbie
 
Join Date: Jul 2012
Posts: 9
Downloads: 33
Uploads: 0
Default Notepad?

What should I do after opening the file with notepad?
habib911 is offline   Reply With Quote
Old 07-03-12, 02:36 AM   #8997
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

Quote:
Originally Posted by habib911 View Post
What should I do after opening the file with notepad?
you need 7Zip to extract the mods .
THE_MASK is offline   Reply With Quote
Old 07-03-12, 09:24 AM   #8998
Likloklord232
Watch
 
Join Date: Apr 2012
Location: Netherlands, Gelderland
Posts: 18
Downloads: 169
Uploads: 0
Were stays it?

HI, The mod NewUI+TDC 3.0.0 looks verry good

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 !!!
Likloklord232 is offline   Reply With Quote
Old 07-03-12, 09:58 AM   #8999
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Likloklord232 View Post
HI, The mod NewUI+TDC 3.0.0 looks verry good

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.
gap is offline   Reply With Quote
Old 07-03-12, 03:42 PM   #9000
habib911
Swabbie
 
Join Date: Jul 2012
Posts: 9
Downloads: 33
Uploads: 0
Default

Quote:
Originally Posted by sober View Post
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?
habib911 is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui


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 05:46 PM.


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