| View previous topic :: View next topic |
| Author |
Message |
lurbz
Joined: 02 Apr 2005 Posts: 33
|
Posted: Sat Apr 02, 2005 9:21 pm Post subject: NeueKurs 0.1: keyboard depth, rudder and heading settings. |
|
|
Neue Kurs 0.1 (Alpha)
A quick&crude hack to help the virtual Kaleun in SHIII
-Disclaimer:
This program is really "quick and dirty", so while hopefully it wont harm your pets nor wipe your HD, it might crash your game and/or computer, and will definitely run your sub aground more than once. I have tested it for the grand total of about 10 minutes. Props go to Merrion @ codeproject.com,as I stole the keyboard listening stuff from his article there.
The idea is having keyboard shorcuts for the "mouse only" commands: rudder setting, depth setting, heading...
Users of voice command programs (Shoot, VAC...) can greatly benefit from this.
-What else do I need?
+I made this in C#, so you might need that "Microsoft .NET Framework" thingie (i'm a unix guy, so I'm not sure about that).
+It might work only in Win XP,I don't have 2000 around.
-How it works?
Basically, It reacts to some keyboard combinations, and then performs some fast mouse clicking for you.
-Instructions:
+Start the program before starting SHIII, leave the window somewhere around (might not work if minimized).Then start SHIII and jump into your sub.
+You need to have the mouse pointer showing when issuing a command, so it can click right away.
+Leave the mouse alone while performing a command, otherwise you could confuse the magical-mouse-clicking-gnomes.
+Those pesky little clickers expect the gauges to be in their default state (Compass, Shallow depth meter showing), be nice to them.
+All commands are 4 keystrokes, all keystrokes are Ctrl-something, so hopefully they won't conflict with anything else.
+A few examples help explain it all:
Ctrl-R Ctrl-P Ctrl-1 Ctrl-2 (Rudder to Port 12 deg.)
Ctrl-R Ctrl-S Ctrl-0 Ctrl-5 (Rudder to Starboard 05 deg.)
Ctrl-D Ctrl-1 Ctrl-2 Ctrl-5 (Set Depth to 125 m.)
Ctrl-D Ctrl-0 Ctrl-2 Ctrl-0 (Set Depth to 020 m.)(under 25 m. it clicks the shallow depth dial)
Ctrl-O Ctrl-0 Ctrl-9 Ctrl-0 (Turn 90 deg. Port)
Ctrl-P Ctrl-1 Ctrl-0 Ctrl-0 (Turn 100 deg. Starboard)
On top of that, Ctrl-C cancels the current command (you can use it to ensure that you start your commands "clean" if you are unsure about it).
-Why not an absolute heading command?
The gauge spins.... think about it.
-Known issues:
+Sometimes the clicking misses by 1 meter or degree... sloppy decimal rounding does that. Roleplay it as a nervous crewman. Or drunken gnomes.
+I'm not performing any checks for the input values... so if you want to play sub roulette, set your depth to "999" or "ABC" and try to guess where you´ll end up.
-TO DO:
+Fix the above.
+Add the knot speed setting (anyone uses that?).
+Add an absolute heading command (will be hard, if at all possible).
+Provide feedback on screen (would be cool, but hard, if at all possible).
+Fix the need for having the right gauges showing and the mouse in clicking mode (I think some keymap modding might do that).
+Study for my exam.
Get it here |
|
| Back to top |
|
 |
lurbz
Joined: 02 Apr 2005 Posts: 33
|
Posted: Sun Apr 03, 2005 7:26 pm Post subject: |
|
|
No one tried?
I know it's a bit rough, but mostly works, I've been having some fun using VAC to "talk" my way back into the sub-pen whithout going side to side from having to use full rudder deflection, and I guess Shoot would work great as well.
Well OTOH, no users=no need to fix or upgrade it.... programmer's paradise  |
|
| Back to top |
|
 |
Gizzmoe
Joined: 22 Mar 2005 Posts: 3011 Location: Düsseldorf, Germany
|
Posted: Sun Apr 03, 2005 7:55 pm Post subject: |
|
|
| lurbz wrote: | No one tried? |
Pleaaase don´t cry!!!
Could you do a "smaller", less "complicated" version?
Keep Ctrl pressed, then type 1 1 5, release Ctrl and it changes the course to 115?
Keep Shift pressed, then type 1 2, release Shift and it changes the speed to 12 knots?
Maybe? Please?
Gizzmoe |
|
| Back to top |
|
 |
lurbz
Joined: 02 Apr 2005 Posts: 33
|
Posted: Sun Apr 03, 2005 8:20 pm Post subject: |
|
|
You can keep Ctrl pressed between keys already, works the same.
About reducing the keystroke number, I sorta like the flexibility of the current system given that is intended to be associated to voice commands, so the actual # of keys is not that important:
Ex, in my VAC setup (which is currently a horrible mess of spanish, german and english babbling ) I have:
"Rudder port" = Ctrl-C Ctrl-R Ctrl-P
"twelve" = Crtl-1 Ctrl-2
I see the point in having shorter combos for common actions if you are using the keyboard directly. Maybe I should add a list of actions and some sort of "keymapper". |
|
| Back to top |
|
 |
Gizzmoe
Joined: 22 Mar 2005 Posts: 3011 Location: Düsseldorf, Germany
|
Posted: Sun Apr 03, 2005 8:31 pm Post subject: |
|
|
Yes, having shorter combos was my point, that would be really nice! Only if it easier to use your program than the mouse the people will accept and use it. You could also have standard evasion procedures on a hotkey for example...
Gizzmoe |
|
| Back to top |
|
 |
Hitman
Joined: 14 Sep 2002 Posts: 3059 Location: Spain
|
Posted: Sun Apr 03, 2005 9:40 pm Post subject: |
|
|
Not tried it but thanks The effort of doing any mod, the will to help and the generousity to share it with the community always gets my appreciation. Many Thanks!!  |
|
| Back to top |
|
 |
wazoo
Joined: 27 Jan 2005 Posts: 247 Location: Tustin, California
|
Posted: Sun Apr 03, 2005 11:57 pm Post subject: |
|
|
VERY cool mod! Thanks!
I've messed with it and it works quite well.... but I am having a problem.
I find that the depth settings do not work between 026 meters and 099 meters. I assume this is because you are looking for a leading "1" to switch to the deeper depth guage.
Not sure how to get around this....
Wazoo |
|
| Back to top |
|
 |
lurbz
Joined: 02 Apr 2005 Posts: 33
|
Posted: Mon Apr 04, 2005 1:35 am Post subject: |
|
|
Good catch, fixed it and uploaded it again.
Now that I got one tester , I'll at least clean the code a bit and will think about making it more customizable, as Gizzmoe says.
I'm thinking about finding a way to read the current heading from memory, that way I could implement absolute headings.
And there are ways to display stuff on screen so you can see what you are entering, but some evil DirectX mojo is required. |
|
| Back to top |
|
 |
wazoo
Joined: 27 Jan 2005 Posts: 247 Location: Tustin, California
|
Posted: Mon Apr 04, 2005 6:44 pm Post subject: |
|
|
| lurbz wrote: | Good catch, fixed it and uploaded it again.
Now that I got one tester , I'll at least clean the code a bit and will think about making it more customizable, as Gizzmoe says.
I'm thinking about finding a way to read the current heading from memory, that way I could implement absolute headings.
And there are ways to display stuff on screen so you can see what you are entering, but some evil DirectX mojo is required. |
Hey Lurbz,
I downloaded again from the link in your first post, but I'm still getting the same problems on depths between 026 & 099.
Any thoughts?
Also.... and just a suggestion... using ALT combos instead of CTRL combos would be HUGE; especially for those of use using voice commands. SH3 makes great use of the CTRL key in the commands_en.cfg file once you start activating all the potential commands. This is causing real headaches trying to find room on a crowded keyboard.
ALT, however, is not used by SH3 and thus gives much more freedom to incorporate your mod into some of the great SHOOT profiles out there; especially Cavalier's....
Thanks!
Wazoo |
|
| Back to top |
|
 |
Jungman
Joined: 03 Apr 2005 Posts: 724 Location: Iowa, USA
|
Posted: Mon Apr 04, 2005 7:09 pm Post subject: |
|
|
Can you make a keyboard quick short cut for the reports 'Depth under Keel' and the 'Battery/Fuel/Air/CO2/ display' ?
As now you must do alot of annoying clicking to get to them. |
|
| Back to top |
|
 |
Jungman
Joined: 03 Apr 2005 Posts: 724 Location: Iowa, USA
|
Posted: Mon Apr 04, 2005 7:10 pm Post subject: |
|
|
Can you make a keyboard quick short cut for the reports 'Depth under Keel' and the 'Battery/Fuel/Air/CO2/ display' ?
As now you must do alot of annoying clicking to get to them. |
|
| Back to top |
|
 |
Warhunter
Joined: 04 Apr 2005 Posts: 28
|
Posted: Mon Apr 04, 2005 7:34 pm Post subject: |
|
|
sorry, but the title of your Mod isn't grammatically correct.(like my english )It must be "Neuer Kurs", or it makes no sense...
Only a little hint . |
|
| Back to top |
|
 |
wazoo
Joined: 27 Jan 2005 Posts: 247 Location: Tustin, California
|
Posted: Mon Apr 04, 2005 7:53 pm Post subject: |
|
|
| Jungman wrote: | Can you make a keyboard quick short cut for the reports 'Depth under Keel' and the 'Battery/Fuel/Air/CO2/ display' ?
As now you must do alot of annoying clicking to get to them. |
Hey Jungman,
Just go into commands_en.cfg (or commands_de.cfg for German version) and add a key for Get_Depth_Under_Keel. I have been using the NumberPad 5 key.
Wazoo |
|
| Back to top |
|
 |
cavalier889
Joined: 03 Dec 2004 Posts: 504 Location: Albuquerque NM
|
Posted: Mon Apr 04, 2005 8:10 pm Post subject: |
|
|
| wazoo wrote: | | lurbz wrote: | Good catch, fixed it and uploaded it again.
Now that I got one tester , I'll at least clean the code a bit and will think about making it more customizable, as Gizzmoe says.
I'm thinking about finding a way to read the current heading from memory, that way I could implement absolute headings.
And there are ways to display stuff on screen so you can see what you are entering, but some evil DirectX mojo is required. |
Hey Lurbz,
I downloaded again from the link in your first post, but I'm still getting the same problems on depths between 026 & 099.
Any thoughts?
Also.... and just a suggestion... using ALT combos instead of CTRL combos would be HUGE; especially for those of use using voice commands. SH3 makes great use of the CTRL key in the commands_en.cfg file once you start activating all the potential commands. This is causing real headaches trying to find room on a crowded keyboard.
ALT, however, is not used by SH3 and thus gives much more freedom to incorporate your mod into some of the great SHOOT profiles out there; especially Cavalier's....
Thanks!
Wazoo |
Speaking of
How quickly do you need to press the keys for your program to get the entire entry? How long can you wait between key presses? Throw me some info, and It'll be in the next iteration of my profile  |
|
| Back to top |
|
 |
cavalier889
Joined: 03 Dec 2004 Posts: 504 Location: Albuquerque NM
|
Posted: Mon Apr 04, 2005 8:23 pm Post subject: |
|
|
| Jungman wrote: | Can you make a keyboard quick short cut for the reports 'Depth under Keel' and the 'Battery/Fuel/Air/CO2/ display' ?
As now you must do alot of annoying clicking to get to them. |
You can easily make your own shortcut for DUK by editing command_en.cfg (that's the English language version). This is the section you want to modify:
[Cmd130]
Name=Get_depth_under_sub_keel
Ctxt=1
Key0=0x54,Ccs,"CTRL SHIFT T"
MnID=0x3F250005
You will notice that I've already created a keyboard short cut to it. If you find cmd130 and replace it with the above, you will have a short cut. If you prefer a different key, search the file for the key you want, and replace the line starting with Key0= with the desired key's line. Decide what CTRL/SHIFT combo you want to use. Notice that after 0x54 above you see ,Ccs,. The Capitol C means 'performed by the crew.' The lower case c and s mean 'exicute with CTRL' and 'SHIFT' respectively. Modify your line accordingly. Just make sure you aren't stepping on one of the predefined keys with your shortcut.
As for the CE reports, I'd love to know how you activate those. If anyone knows, please speak up!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|