SUBSIM Radio Room Forums
Sailor Steve supports Subsim through his many Amazon purchases, you can too!
Want to support Subsim and make Amazon pay for it? Click here to start any Amazon shopping.


SUBSIM: The Web's #1 BBS for all submarine and naval simulations!

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-2012, 09:12 PM   #9001
finchOU
Grey Wolf
 
Join Date: Jan 2004
Posts: 851
Downloads: 60
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 Dyn Enviro V2.9+Dark, Sober's Best Fog, no magic, MFCM, MCCD_1.04_MFCM, German Lang pack, Speech fixes, DBSM, REM, Equip Fixes, Ship Inetia, FX_UD, NewUI's TDW, Real Nav, IRAI, OHII 1.9, SteelV's interior, Crit hits torp, lifeboats, sobers green, Auto Scripts, Longer repairs
finchOU is offline   Reply With Quote
Old 06-27-2012, 09:17 PM   #9002
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,102
Downloads: 143
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-2012, 09:15 AM   #9003
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,102
Downloads: 143
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-2012, 10:18 AM   #9004
radcapricorn
Shore leave
 
Join Date: Jun 2011
Posts: 70
Downloads: 117
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-2012, 12:13 PM   #9005
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,102
Downloads: 143
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-2012, 12:28 PM   #9006
radcapricorn
Shore leave
 
Join Date: Jun 2011
Posts: 70
Downloads: 117
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-2012, 04:01 AM   #9007
habib911
Nub
 
Join Date: Jul 2012
Posts: 9
Downloads: 25
Uploads: 0
Default Help

What type of mod should i download 1st
habib911 is offline   Reply With Quote
Old 07-01-2012, 07:15 PM   #9008
McHub532
Seasoned Skipper
 
Join Date: Dec 2008
Location: Arizona
Posts: 665
Downloads: 88
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-2012, 07:44 PM   #9009
sober
Ace of the deep .
 
sober's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 7,228
Downloads: 630
Uploads: 35


Default

Quote:
Originally Posted by habib911 View Post
What type of mod should i download 1st
One that changes your nickname would be good
__________________
sobers modlist
http://www.subsim.com/radioroom/showthread.php?t=192374
http://www.youtube.com/watch?v=VP30s5QF0pw
We would like you to experience all the frustrations a uboat captain had , and thats just installing the game and mods .
sober is offline   Reply With Quote
Old 07-03-2012, 01:26 AM   #9010
habib911
Nub
 
Join Date: Jul 2012
Posts: 9
Downloads: 25
Uploads: 0
Default Notepad?

What should I do after opening the file with notepad?
habib911 is offline   Reply With Quote
Old 07-03-2012, 02:36 AM   #9011
sober
Ace of the deep .
 
sober's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 7,228
Downloads: 630
Uploads: 35


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 .
__________________
sobers modlist
http://www.subsim.com/radioroom/showthread.php?t=192374
http://www.youtube.com/watch?v=VP30s5QF0pw
We would like you to experience all the frustrations a uboat captain had , and thats just installing the game and mods .
sober is offline   Reply With Quote
Old 07-03-2012, 09:24 AM   #9012
Likloklord232
Nub
 
Join Date: Apr 2012
Location: Netherlands, Gelderland
Posts: 10
Downloads: 122
Uploads: 0
Exclamation 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-2012, 09:58 AM   #9013
gap
Ocean Warrior
 
Join Date: Jan 2011
Location: CJ8937
Posts: 3,388
Downloads: 523
Uploads: 5
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-2012, 03:42 PM   #9014
habib911
Nub
 
Join Date: Jul 2012
Posts: 9
Downloads: 25
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
Old 07-03-2012, 03:49 PM   #9015
volodya61
Admiral
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 2,424
Downloads: 304
Uploads: 0


Default

Quote:
Originally Posted by habib911 View Post
What should I do after opening the file with notepad?
Quote:
Originally Posted by habib911 View Post
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?
Which file?
What file you want to open via notepad and 7zip?
__________________
.
volodya61 is offline   Reply With Quote
Reply

Tags
dbrn , favorite , new ui

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 04:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 1997- 2013 Subsim