Page 1 of 33
Vanguard Bot - VGExtreme Scritping Service
Posted: February 8th, 2007, 10:48 pm
by wyvernx
Please download from here:
http://www.taultunleashed.com/phpbb2/about44331.html
If you have any suggestions, or specific locs you need, let me know.
Lets get a good bot started. Please post updates you make and please let me know what other API's are needed.
Posted: February 16th, 2007, 4:33 am
by jdillard
Awesome, I can't wait to get home and try this.
Posted: February 16th, 2007, 4:44 am
by tault_mississippi
It appears that we can only run the service if Vanguard is up and running. However, I would like the ability to start, login, select a character, enter world, do my thing, camp, and then exit.
What are the odds that we can get VGService decoupled from VGClient enough to do just that?
Additionally, on running the provided exe, after starting up VG and logging in, I get the following error:
A startup error occurred.
Retrieving the COM class factory for component with CLSID {ADA15C9D-60F3-41A5-8BCC-4D57CB24F451} failed due to the following error: 80040154.
Posted: February 16th, 2007, 4:58 am
by divetta
Poor download link though. I get a few % done and it cancels. :/
Posted: February 16th, 2007, 5:16 am
by wyvernx
Download Exhume and run it first. It may solve that error. I dont get it so I'm not sure what it is caused from.
Posted: February 16th, 2007, 5:18 am
by wyvernx
Let me sleep for a few and I'll upload it to a mirror that should download better.
Posted: February 16th, 2007, 5:22 am
by wyvernx
Yes, place exhume.exe in the same folder and run it. That should fix any errors you are getting with CLSID.
Posted: February 16th, 2007, 5:34 am
by thescribe
Darnit, why did I have to see this 'til now? No time to program! Time for school!
I'll edit this post later with comments, bugs, etc.
Posted: February 16th, 2007, 10:43 am
by tault_mississippi
Wyvernx - I should have documented earlier that I did place it in the same folder with Exhume.exe & Exhumehelper.dll and still get the same error.
I attempted regsvr32 on Exhumehelper.dll and although it registered, that didn't fix it. I also attempted regsvr32 on VGChatDump.dll but it complained that there was no registration point for the dll.
I run exhume.exe from the same directory with no issues at all.
Posted: February 16th, 2007, 11:19 am
by tault_stigma
Wyuvernx can you descripe the enablechatlog function a bit more? Does this function extract the logs from the game, or does it just enable it in the game? If thats the case it seems pretty useless, but if it can actually extract it and write it into a file that is VERY useful indeed.
Posted: February 16th, 2007, 11:34 am
by tault_stigma
Hmmm... can't get this to work.
Im getting the exact same error as Tault_mississippi is.
Im running it from the same folder as the Exhume files, and I'm running it after Exhume is started up and logged in. its not running any script yet tho, since I obviously haven't gotten around to doing that.
Any clues on what the cause might be?
-Stigma
Posted: February 16th, 2007, 12:27 pm
by tault_stigma
I hope you havent gone to sleep wyvernx, don't leave us hanging like this =P
BTW I wanted to ask if there is a good reliable method of transfering the values that the service can detect out to an autoit script. Im more familiar with autoit than with VBscript and I allready have a ton of code allready done in autoit that id like to continue using.
my best solution solution so far would be using files with a mutex lock as a bridge between the two scripts running simultaniously, but even though it should work ok and only produce a few ms delay at most, its a bit cumbersome perhaps. is there a better or more direct way?
I am also stil confused about what script types Exhume can handle. Only vbscript, or any others also?
Posted: February 16th, 2007, 12:52 pm
by lilfisher
yeah wyvernx went to sleep, as far as i know the service only works with vbscipt
questions and requests
Posted: February 16th, 2007, 12:58 pm
by sinshar
OK,, a few questions and a request since i'm at work and not at home to play with it I must know.
Question #1) Do we have to run this in windowed moded?
Question #2) Can we use J-script with yourservice or only VBS?
Question #3) YOu say we can't over write that file, How do we make our own script? can we just code it up in a seperate file? and include it somehow, or do we just Add on to what you give?
Question4) Does anyone know if there is any examples in it?
Request #1) Can you put some examples of what it can do and how do to them in the initial script? for examplle
Sending keys to Vanguard.
maby someone can explain to me how to do it?
Will the Xunleashed.SENDKEYS() in exhume go right to vanguard?
or do ineed to tell it that... I know i could screw with this when i get home but i wanna start hackin out a rough Main loop and some sub routines while i'm killing time at work
Posted: February 16th, 2007, 1:41 pm
by tault_mississippi
Answer #1) Probably not - but it is likely a preferred method.
Answer #2) You can safely assume JScript and VBScript are usable.
Answer #3) The file that says don't overwrite *is* the sample script.
Answer #4) See Answer #3.
Sending keys to Vanguard.
Sending keys is much like typing, when you hit a key on the keyboard it goes to the active window. So you need to first ensure that Vanguard is the active window (i.e. Your keystrokes would normally go to it). You can do that by finding the window by title an then focusing on the window. For example:
// Find Notepad and Ensure it has focus
hndNotepad = Windows.FindWindowByTitle ("Untitled - Notepad");
Windows.FocusWindow(hndNotepad);
// Send the data to Notepad
Keyboard.SendKeys("Hello World!");
Win32.Sleep(1000);
Will find a Notepad instance - if one is running and has that title, and will then focus on that window. Once the window has focus - Keys sent will automagically appear there. So, if you instead did this:
var hndVGSOH = Windows.FindWindowByTitle ("Vanguard: Saga of Heroes");
Windows.FocusWindow(hndVGSOH);
// Send the data to Notepad
Keyboard.SendKeys("/say Hello World!");
Win32.Sleep(1000);
..... You get the picture.