| View previous topic :: View next topic |
| Author |
Message |
Aquabat Capitaine
Joined: 06 Oct 2005 Posts: 291
|
Posted: 02 Mar 2010 14:32 Post subject: AutoHotKey -- To Tack the Boat |
|
|
Hi Guys,
Thought I would post this to see
1) If anyone finds it helpful
2) Triggers any other ideas for AHK
Just being playing around with AHK with the aim of making AHK tack the boat on a press of the key, before now I have on occasions messed up with the mouse and messed up the tack / gybe
I have not yet figured out a way to find the tack left / right location when a window has been resized. So as test I have fixed the window size to 1024 x 768 in VSK (for AHK this is 1040 x 804)
The script is below .. please treat as a TEST only....
, key - tack left
. key - tack right
r key - to resize the window back to 1024 * 768
Now there is no reason why this should not work in full screen mode but you will need to change the 'click` locations depending on you screen resolution I guess, AHK comes with a tool called Window Spy (right click on AHK)
#,:: - TACK LEFT
IfWinExist, VskAC32
WinActivate ; use the window found above
WinGetActiveStats, Title, Width, Height, X, Y
click 277,782
return
#.:: - TACK RIGHT
IfWinExist, VskAC32
WinActivate ; use the window found above
WinGetActiveStats, Title, Width, Height, X, Y
click 759, 780
return
#R::
IfWinExist, VskAC32
WinActivate ; use the window found above
WinGetActiveStats, Title, Width, Height, X, Y
;MsgBox, The active window "%Title%" is %Width% wide`, %Height% tall`, and positioned at %X%`,%Y%.
WinMove,,,,, 1040, 804
return _________________ Rob |
|
| Back to top |
|
 |
Aquabat Capitaine
Joined: 06 Oct 2005 Posts: 291
|
Posted: 02 Mar 2010 14:36 Post subject: |
|
|
Issues / Ideas
1) What is the window name for VSK5, I have VSK32. This might not work on VSK5 pure
2) Figure out the location of tack area for any window size
3) Could the helm be made to center when TWD at 30 degrees ? (might be a problem on a gybe though!! , could check to see the colour of the SPI botton, if yellow then centre at 160 maybe) _________________ Rob |
|
| Back to top |
|
 |
pumpkin Matelot
Joined: 24 Jan 2008 Posts: 113
|
Posted: 02 Mar 2010 15:24 Post subject: |
|
|
Cool idea!
But wouldn't having an "auto-tack" key subject the helm to being "slammed" over? Judging from my experience as a sailor and as a virtual sailor this is not the proper way to tack a boat.
I guess it would come in handy but I don't think I would use it when racing.
Good luck.  _________________ http://freeworldyachtclub.net |
|
| Back to top |
|
 |
Aquabat Capitaine
Joined: 06 Oct 2005 Posts: 291
|
Posted: 02 Mar 2010 16:11 Post subject: |
|
|
Looks like my assumption that the best way to tack in VSK might not be the best way..
I tack by clicking the mouse on the 50 figure on the rudder scale ...now it would seem that some think its quicker at around 30 .. less loss of boat speed .. now this would make sense in the real world and I have not had a chance to test. However .. this script will still work, you just need to get the new XY position ...at 30 mark
Also .. the keys for left and right tack need to be pressed with the window key (next to the left shift key)
Rob _________________ Rob |
|
| Back to top |
|
 |
Camster Moderator

Joined: 09 Dec 2005 Posts: 1437 Location: Scotland
|
Posted: 02 Mar 2010 16:43 Post subject: |
|
|
I find for tacking that progressive helm is the best. I have tried various combinations and it varies a bit with the wind & waves.
Start with helm degrees 10° > 20° > 30° > 20° > 10° as you go through the tack & experiment till you consistently keep the lowest BS at 9.2 or more in F5+.
I do have a AHK to achieve this for F5 but find it's not that great. Often you tack on a shift and the numbers above need adjusted for that. Also you cant change your mind mid-tack which can be awkward. Finally I had some disasters when the AHK failed to work which gave the other boat a lot of grief! _________________ Sandy
 |
|
| Back to top |
|
 |
Aquabat Capitaine
Joined: 06 Oct 2005 Posts: 291
|
Posted: 02 Mar 2010 17:45 Post subject: |
|
|
All very interesting ... thanks Sandy
I can now keep my boat speed up by about 1 knot by going over 30 degrees ... all new stuff for me.
Rob _________________ Rob |
|
| Back to top |
|
 |
fosterbarry Capitaine
Joined: 13 May 2006 Posts: 291
|
Posted: 02 Mar 2010 22:48 Post subject: |
|
|
Many players would see the use of AHK in the manner described as cheating. There is a post somewhere in this forum from Trev saying players will be banned/ kicked from his races if AHK is used. Of course, AHK cannot be detected so any form of policing will not work.
The game of vsk required most skills in vsk3. In vsk4 it was slightly deskilled and in vsk5 huge deskilling took place. Sadly, the use of AHK to produce the perfect tack/gybe removes one more skill that previously separated the men from the boys. _________________ Smile... it's good for the face! |
|
| Back to top |
|
 |
Camster Moderator

Joined: 09 Dec 2005 Posts: 1437 Location: Scotland
|
Posted: 03 Mar 2010 1:21 Post subject: |
|
|
As I have explained, AHK does not produce the perfect tack and you will be quicker manually. I dont use it after some earlier tests.
Now using a joystick ... that could be cheating lol
 _________________ Sandy
 |
|
| Back to top |
|
 |
fosterbarry Capitaine
Joined: 13 May 2006 Posts: 291
|
Posted: 03 Mar 2010 1:44 Post subject: |
|
|
What is cheating and what is not cheating could be an interesting forum topic for discussion. For example, some players sail with minimum graphic settings because it's supposed to be faster. Theoretically those players who sail with higher settings, because they want to see the game in its full glory, would be at a disadvantage.
Then what about all the add ons? The special radar, puff/lull enhancer etc etc. Some players use a stealth skin!
So what do you guys think is going too far? _________________ Smile... it's good for the face! |
|
| Back to top |
|
 |
California mousse
Joined: 16 Jan 2007 Posts: 48 Location: California, USA
|
Posted: 03 Mar 2010 3:27 Post subject: |
|
|
Installing any add-on for the purpose of gaining an advantage over other players –like a tacking program, or better instruments, isn’t fair play in my view, but I’m old fashioned.
| fosterbarry wrote: | | The game of vsk required most skills in vsk3. In vsk4 it was slightly deskilled and in vsk5 huge deskilling took place. Sadly, the use of AHK to produce the perfect tack/gybe removes one more skill that previously separated the men from the boys. |
The lower skill trend of vsk is unfortunate. With the race performance margin being so small now, there is a corresponding increase in frustration, too many boats arriving at the mark at the same time, and so on. I liked that the races in vsk3 were less decided until the finish line, since it was possible to gain or lose more ground. Vsk3 normal mode with the current boat physics would make a good combination. |
|
| Back to top |
|
 |
pumpkin Matelot
Joined: 24 Jan 2008 Posts: 113
|
Posted: 03 Mar 2010 3:33 Post subject: |
|
|
| fosterbarry wrote: | What is cheating and what is not cheating could be an interesting forum topic for discussion. For example, some players sail with minimum graphic settings because it's supposed to be faster. Theoretically those players who sail with higher settings, because they want to see the game in its full glory, would be at a disadvantage.
Then what about all the add ons? The special radar, puff/lull enhancer etc etc. Some players use a stealth skin!
So what do you guys think is going too far? |
I don't think any game option, addon's or special equipment that is available to the public could be classified as "cheating". Yes, the game is based on one design racing and there are in fact one design rules that limit what you can and can't use on your boat IRL, but there are many reasons why someone would NEED to use options or special equipment to help them compete with the rest of the crowd. Most of these reasons would fall in the category of mental or physical disabilities.
I think going "too far" is all the debating and whinning about what is and isn't fair.
Maybe it's time for Nadeo to give us PHRF or IRC rules along with the capability to run multiclass fleets! Just think about all the whinning you could do if that happened.
As far as Robert's Auto Tack program, I say more power to him. But, like I said in my first post on this topic, I personaly wouldn't use it while racing because I think it would be more of a disadvantage then an advantage. On the other hand I would use it just for the sake of using it to check it out when cruising around.
Does anybody out there just cruise around from time to time? There has to be other players that do it at one time or another. _________________ http://freeworldyachtclub.net |
|
| Back to top |
|
 |
euphoria Vieux loup de mer

Joined: 06 Oct 2005 Posts: 565
|
Posted: 08 Mar 2010 11:12 Post subject: |
|
|
| fosterbarry wrote: | | skill that previously separated the men from the boys. |
You mean skill that previously separated the computer nerds from "ordinary people"...
Now the game most of all separates good strategists/tacticians from "ordinary sailors".
Harald |
|
| Back to top |
|
 |
Aquabat Capitaine
Joined: 06 Oct 2005 Posts: 291
|
Posted: 08 Mar 2010 12:03 Post subject: |
|
|
Hi Harald,
| Quote: | | You mean skill that previously separated the computer nerds from "ordinary people"... |
Can you expand on this ... in context to VSK ? I am not sure I get you point here.
Do you mean that manual trim in other versions of VSK was a bad (nerdy) thing ?
Rob _________________ Rob |
|
| Back to top |
|
 |
Camster Moderator

Joined: 09 Dec 2005 Posts: 1437 Location: Scotland
|
Posted: 08 Mar 2010 15:57 Post subject: |
|
|
I'm not sure what the issue is here. If you want to reward helming & trimming skills, then you can use the Simulation Mode with VSK5.
The lack of popularity of this mode is not anyone's fault. _________________ Sandy
 |
|
| Back to top |
|
 |
euphoria Vieux loup de mer

Joined: 06 Oct 2005 Posts: 565
|
Posted: 08 Mar 2010 16:03 Post subject: |
|
|
| Aquabat wrote: | | Can you expand on this ... in context to VSK ? I am not sure I get you point here. |
Constantly pressing up and down (out and in) keys on the keyboard in order to keep an indicator green, is not very much related to sailing. The skill you need for this is simply not a sailing skill. That's why we took VSK in the other direction, keeping it as a tactical regatta simulator.
Harald |
|
| Back to top |
|
 |
|