So, I wrote this thing

A general discussion for EverQuest2.

Moderator: MacroQuest Developers

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

So, I wrote this thing

Post by stateful » Wed Jan 19, 2005 3:49 pm

Client/Server control for EQ2.

Can send multiple commands, mouseclicks, hotkeys, etc. This doesn't tie into EQ2 at all, as far as anyone can tell, you are sitting at your computer actually typing and clicking.

I've started playing WoW for the time being. So, I'm putting some pics here to see if there is interest.

It works across the Internet to control an instance of EQ2 running on a computer that is running REQ2S. But without a remote display it's kinda difficult to do much. Logs can be streamed to the client. I have successfully chatted in game using this tunneled through SSH to my home net and sent to my game PC.

The best use, is running it on your laptop with a view of the monitor. If you are a caster, you can just type all of the commands you usually do, like
/assist xxxx
8 <-hotkey
1 <-attack
#Pause 3 <- wait for spell cast by 8
3
#Pause 2
etc.....
Just have to target the tank and /follow



The help button you see below produces the following output:
-------------------------------------------
You must be connected to an REQ2 server to send commands.
EQ2 must be running on the computer the server is running on.
Send Regular EQ-style slash commands as you would in game
or any other character for that matter see below for special cases (alt, ctrl, esc, tab, enter)

REQ2 commands:
REQ2 commands are prefixed with a #
#Enter -- Press enter key on the server side; e.g. /tell blah blah; #ENTER
#Tab -- Press the Tab key on the server side
#Esc -- Press the ESC key on the server side
#Pause X -- pause, server side, for the specified X of milliseconds

Hotkeys:
The Insta-Send hotkey bar can be used to hit that hotkey in game.
To hit a hotkey as part of a command sequence in the commands window:
#HotKey [Alt][Ctrl] X -- send hotkey specifed, e.g. "#Hotkey Alt ="
Note: this #Hotkey command can also be used for other ctrl and alt needs,
like alt-o. (#Hotkey Alt o)

Mouse:
#LClick X Y -- Left click the mouse that the specified coords
#LDClick X Y -- Double left click
#RClick X Y -- Right click
------------------------------------------------

Some pics of it running:

1. Server after being started. Server runs on box where EQ2 is running.

Image


2. Client after connecting to the server. The client CAN run on the same PC as the server but it's not really advisable, unless you are doing some looping macro type stuff, because the server has to make EQ2 the foreground window to simulate keystrokes. The Insta-Sent Hotkeys are immedately sent to the server to be executed in game.

Image


3. Client being used

Image


4. Server receiving and executing commands

Image


5. The "More Log Windows" button on the client.

Image

6. The "Reply to Last Tell" button on client

Image

So, anybody want it?

Def
Last edited by stateful on Thu Jan 20, 2005 3:59 am, edited 2 times in total.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jan 19, 2005 4:52 pm

I could definately stand to have more red X's, they fill me with merriment.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Wed Jan 19, 2005 5:08 pm

I'll have some frys with those red X's

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

AHHHH!

Post by stateful » Wed Jan 19, 2005 5:13 pm

Never, ever, lease a server from AIT Inc. http://aitcom.net/

moved pics to photobucket

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jan 19, 2005 5:28 pm

You has killed a granitescale basilisk
It's good to see not much has changed from EQ1 to EQ2
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Jan 19, 2005 6:01 pm

You offering the source?

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

Source

Post by stateful » Wed Jan 19, 2005 6:04 pm

Sure, don't plan on doing much more with this for a while. Let me clean it up a little. Also, it's .NET.

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

binaries

Post by stateful » Wed Jan 19, 2005 6:39 pm

Here's the exe's. The .config has to reside in the same dir as the server and will have to be edited if you want to receive logs.

The "Disable Mouse Timer" button you see but didn't see in the pics was added as a temporary fix to an exception. There is a timer that fires ever 250ms that updates the X,Y of the mouse in the status bar, for some reason on one of my computers, the vmware/win2k one, when I tried to move the window it would throw up. If you get this error, hit continue, click, disable mouse timer, and move the window. This didn't happen on XP. The Loop checkbox and iteration timer thingy aren't coded yet. I have the code just haven't put it in. The network code is a little buggy as well, sometimes you'll get the client running in the background if you close the server without disconnecting the client first, etc. Please keep in mind this isn't considered release or anything like that, I'm just putting it out to get some opinions.

If you want to see it work without running EQ2, just open the txt doc in the zip file wherever you are running the server app. Keep in mind all can be run on the same comp and just connect from the client to 127.0.0.1. The port used can be configured in the .config as well. You can also simulate logging, by changing the .config to some text doc, and adding pasting some text into it then saving it.

Link:
http://screammy.name/req2/REQ2.011905.zip

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Thu Jan 20, 2005 1:37 am

Did I miss the posting of the source? I wouldn't mind playing around a bit with this at all.

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

No

Post by stateful » Thu Jan 20, 2005 2:31 am

I haven't put it up there yet. It's my first big thing with C++ :).. want to clean it up a bit.

Def

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

Source

Post by stateful » Thu Jan 20, 2005 3:51 am

Here is the source.

I have cleaned it up a bit.

Changed #Pause X from seconds to milliseconds

Annotated within code all of the TODO sections

Link:
http://screammy.name/req2/REQ2-source.011905.zip

Def

Toophertwo
decaying skeleton
decaying skeleton
Posts: 7
Joined: Sat Sep 18, 2004 8:36 pm

noob question

Post by Toophertwo » Wed Feb 02, 2005 6:29 pm

it wont compile under .net c++ 2005, any easyer ways?

LordBhaal
decaying skeleton
decaying skeleton
Posts: 1
Joined: Thu Feb 03, 2005 3:33 pm

Post by LordBhaal » Thu Feb 03, 2005 3:34 pm

I am interested in trying this out but I cannot get to the zip file. Do you still have the source available or the compiled exe's?

Thanks

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

c++ in 2005

Post by stateful » Thu Feb 03, 2005 3:41 pm

They revamped c++ in 2005, apparently it was thrown together for inclusion in 2003, read that on MSDN a couple months ago. Info on the new Visual C++ 2005 language can be found here.
http://msdn.microsoft.com/visualc/using ... fault.aspx

I don't have 2005 atm so, you can convert it, or grab the binaries in the post above the source.

Def

User avatar
stateful
orc pawn
orc pawn
Posts: 15
Joined: Tue Mar 23, 2004 1:24 am

freaking hosting

Post by stateful » Thu Feb 03, 2005 3:46 pm

Seriously, AIT hosting sucks. I'll get it back up soon.

Def