 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Wakezor Guest
|
Posted: Fri Jun 13, 2008 11:55 pm Post subject: Synced movement in WoW |
|
|
Hi
Ive been trying to find a script that sends the keystrokes ASDW to both WoW windows and there seems to be many, but not any that works the way I want.
My problem is that the other WoW windows seems to be getting out of sync. For example, if I start both of the characters at the exact same spot, facing the exact same direction and move around for a bit, one of the characters end up in a different spot than the other.
Is there any way to get rid of this delay between the windows somehow? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Sat Jun 14, 2008 12:10 am Post subject: |
|
|
it could be lag in the game. thry adjusting setkeydelay, set controldelay and setbatchlines to make the script faster. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
argneo
Joined: 14 Sep 2007 Posts: 124
|
Posted: Sat Jun 14, 2008 12:25 am Post subject: |
|
|
This is because you are actually playing in one of the windows, and hence, it gets a process priority over the other... Also... are you sending the signal via AHK to both windows? If so, try adding some delay to the main window like engunneer suggested. _________________
WoW |
|
| Back to top |
|
 |
Wakezor Guest
|
Posted: Sat Jun 14, 2008 1:31 am Post subject: |
|
|
It cant be ingame lag because (how do I explain this?) the game server doesnt affect the movement you make in the client, it just reads your character movement. So basicly, you're movement ingame never lags, even if you have a high ping.
How do I add this delay you are talking about? And would that really help since both keystrokes needs to be recived by the clients at the exact same time.
This is how my current script looks like:
| Code: | idMain = %wowid1%
else
idMain = %wowid2%
If idMain = %wowid1%
{
idClone = %wowid2%
} else {
idClone = %wowid1%
}
;Activate All WOW windows
WinActivate, ahk_id %idMain%
WinActivate, ahk_id %idClone%
#IfWinActive, World of Warcraft
w::
ControlSend,,{w down}, ahk_id %idMain%
ControlSend,,{w down}, ahk_id %idClone%
return
w up::
ControlSend,,{w up}, ahk_id %idMain%
ControlSend,,{w up}, ahk_id %idClone%
return
#IfWinActive, World of Warcraft
a::
ControlSend,,{a down}, ahk_id %idMain%
ControlSend,,{a down}, ahk_id %idClone%
return
a up::
ControlSend,,{a up}, ahk_id %idMain%
ControlSend,,{a up}, ahk_id %idClone%
return
#IfWinActive, World of Warcraft
d::
ControlSend,,{d down}, ahk_id %idMain%
ControlSend,,{d down}, ahk_id %idClone%
return
d up::
ControlSend,,{d up}, ahk_id %idMain%
ControlSend,,{d up}, ahk_id %idClone%
return
#IfWinActive, World of Warcraft
s::
ControlSend,,{s down}, ahk_id %idMain%
ControlSend,,{s down}, ahk_id %idClone%
return
s up::
ControlSend,,{s up}, ahk_id %idMain%
ControlSend,,{s up}, ahk_id %idClone%
return |
|
|
| Back to top |
|
 |
Elesar
Joined: 28 Jun 2007 Posts: 94
|
Posted: Sat Jun 14, 2008 1:44 am Post subject: |
|
|
the lag that you would counter by adding delay is the latency between you pressing the key, the main process (First WoW) recieving it, AHK recieving and processing it, then AHK sending it to the second WoW process.
This is likely to only be maybe 1-2ms.
I have found that, even on a private test server that I had set up running on a gigabit LAN, I could not 100% sync the movements. your characters are always going to have that .5 degree variation in direction, one will process the W key as being a couple ms longer than the other, too many factors to try and accurately counter.
The issue only gets worse with more than two clients. The more you have open, the longer it takes for all the clients to receive the commands, and you are soon driving toons in multiple directions. Although this can be entertaining for a few minutes, its not very useful.
Your best bet is to just macro in a /follow command and set that to an AHK hotkey that would broadcast to all your alt toons. |
|
| Back to top |
|
 |
Wakezor Guest
|
Posted: Sat Jun 14, 2008 1:54 am Post subject: |
|
|
| Elesar wrote: | the lag that you would counter by adding delay is the latency between you pressing the key, the main process (First WoW) recieving it, AHK recieving and processing it, then AHK sending it to the second WoW process.
This is likely to only be maybe 1-2ms.
I have found that, even on a private test server that I had set up running on a gigabit LAN, I could not 100% sync the movements. your characters are always going to have that .5 degree variation in direction, one will process the W key as being a couple ms longer than the other, too many factors to try and accurately counter.
The issue only gets worse with more than two clients. The more you have open, the longer it takes for all the clients to receive the commands, and you are soon driving toons in multiple directions. Although this can be entertaining for a few minutes, its not very useful.
Your best bet is to just macro in a /follow command and set that to an AHK hotkey that would broadcast to all your alt toons. |
I already have a /follow based script, but I wanted to spice up the gameplay a bit. I would find it strange if there werent any way to get the keystrokes 100% synced, but I still dont know how >.< |
|
| Back to top |
|
 |
evan Guest
|
Posted: Sat Jun 14, 2008 7:46 am Post subject: |
|
|
if u are trying to make a follower, maybe u should use cheatengine to look for current coordinate for clients and compare the values
which i did with a game call ConquerOnline
example video:
http://youtube.com/watch?v=aSPCIKDEMdQ |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|