glass40 wrote:I hate compilers and compiler setup with a passion. Was there any documentation released with the DLL's and how to get a basic program setup by chance? I'm assuming there was no official release and that the only reason I caught it is because I happened to read the end of this forum?
It couldn't be easier in visual studio, if that's what you're using. I imagine visual basic express works just as well.
Here's some simple instructions:
Create a new project, give it whatever name you want.
In the project's directory, copy all the vgextreme files and support files (/includes directory not necessary)
In VS, right click the project name in your Solution Explorer and choose Add Reference
In the Add Reference window, click the Browse tab and browse to vgextremeservice.exe in your project folder and click OK
Repeat for VGEHelper.dll if you want those functions as well (pixel, mouse, etc. that is not directly associated with vanguard or memory)
In your code, add these declarations:
Visual Basic:
Code: Select all
Dim oVG As New MMOViper.Vanguard()
Dim oVGH As New VGEHelper.ScriptHost()
C#
Code: Select all
MMOViper.Vanguard oVG = new MMOViper.Vanguard();
VGEHelper.ScriptHost oVGH = new VGEHelper.ScriptHost();
Using these are easy. Example:
intPlayerHP = oVG.Player.HP
etc... the IntelliSense will give you dropdowns for the available methods and properties of oVG and oVGH (you can, of course, name these whatever you want. doesn't have to be oVG)
As for compiler settings, there is nothing from default that you would want to change, although if using VB, you may want to set Option Strict so the dev environment can more easily catch errors.
The environment will allow you to execute the code within visual studio or you can run the exe separately. All you have to do is click the Build your_program_name from the Build menu, and it will create the .exe in the project folder. That can be distributed as is. The only limitation is it must be in the same directory as vgextremeservice.
One last note... make sure you copy the vgextreme files into the project folder. You can create a reference to the exe in another location, but it will attempt to copy the needed files in the project folder anyway. However, since it does not copy the code obfuscation library (HVNRuntm.dll), it will generate an error when you try to debug your program. Also, do not have vgextremeservice.exe running when you try to run your compiled program as the service can only hook vanguard logging once and may be dumping the log in the wrong place.