Page 1 of 2

VB & LOTROextreme

Posted: April 30th, 2007, 6:09 am
by tault_razorwing
Hello,
i was wondering is there any tutorials in which i can use to connect VB to lotroextreme?

Thanks
RazorWing

Posted: April 30th, 2007, 6:36 am
by wyvernx
I havnt released the COM Wrapper yet. Unless you mean VB.Net. If you meant VB.Net, just add a reference to the LOTRWrapper.dll and its pretty self explanitory. If you mean VB6, I'll have to release the COM wrapper before it will work.

Posted: April 30th, 2007, 6:41 am
by tault_razorwing
I have Visual Studio 2005 so VB.Net will be Fine :)

I have added LOTRWrapper.dll to my Reference COM in my project, just wondering how do i start getting ingame values into VB?

Posted: April 30th, 2007, 8:37 am
by wyvernx
Create the LOTROWrapper object. (Look a the LOTROWrapper reference itself to see the API).

Then you can call methods using it.

Posted: April 30th, 2007, 8:41 am
by wyvernx
ie like

Dim myO as new LOTROWrapper()

dim name as string
name = myO.Player.Name

Posted: April 30th, 2007, 9:00 am
by tault_razorwing
Ok thank you :)

Helped alot, keep me posted on new updates as i will include them into my Visual Basic bot.

I will keep you updated WyvernX as to how i get on :)

Update:
When i attempted to run the code it failed.

I went to "Project" > "Add Reference" > "Browse" > then selected LOTROWrapper.dll with the code provided and it failed to run. Here is what i got so far.

Code: Select all

Public Class Form1
    Dim myO As New LOTROWrapper()
    Dim CharName As String
    CharName = myO.Player.Name

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        'lblCharName.Text = CharName
    End Sub
End Class

Posted: April 30th, 2007, 12:49 pm
by wyvernx
Oh, I forgot to mention. LOTROE needs to be placed in the SAME folder that the VB App is being run. So in your VB.Net app, set the build folder to be the LOTROE folder. So it places the exe's int eh same place. I have not found a way around that bug yet. :(

Posted: April 30th, 2007, 2:32 pm
by antareus
Update thread has taken longer then 30 secsto initate (or something like that), closing.

Getting that error when I try to open LOTROExtreme

Posted: April 30th, 2007, 2:47 pm
by wyvernx
Hmm.. I'll have to see if I can add more detailed logging to find out why.

Posted: May 1st, 2007, 10:12 am
by tault_razorwing
Hmm still doesnt want to compile right. I have removed the reference and created a new reference so it points to the current directory which i am currently working from. Build Path is also that of the current working directory.

Code: Select all

Public Class Form1
    Dim myO As New LOTROWrapper()
    Dim CharName As String
    CharName = myO.Player.Name

    Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
        lblCharName.Text = "Player Name: " & CharName
    End Sub
End Class
Error Produced when attempting to run / compile:
Error 1 Type 'LOTROWrapper' is not defined. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\Form1.vb 2 20 LOTRO-Champion
Error 2 Declaration expected. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\Form1.vb 4 5 LOTRO-Champion

Posted: May 1st, 2007, 3:10 pm
by wyvernx
May 1, 2007 - LOTROExtreme v0.91beta

--Bugfix: Mob names were not being cached properly
--Bugfix: EU clients were not being initialized correctly.

You may have to delete LOTROExtreme.exe and run UpdateLOTROExtrme.exe for it to take the patch.

Posted: May 1st, 2007, 3:10 pm
by wyvernx
PS. Make sure you have the LOTROWrapper as a reference.

Posted: May 1st, 2007, 10:17 pm
by tault_razorwing
OK i will do this step by step as it doesnt seem to want to work :(

Starting from the beginning:
1) Start-up Visual Studio 2005
2) Select Visual Basic and Window Application
3) Save Project
4) Copy all LOTROextreme files to working Directory
eg. C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion
5) Add Reference LOTROWrapper.dll (from location on Step 4)
6) Insert the same code provided
7) Compile application

Error, LOTROWrapper not defined :(

So what step am i doing wrong? :(

Posted: May 2nd, 2007, 8:02 am
by wyvernx
Problem is you ran LOTRE from a different directory,k and the wrapper is still "linked" to the old folder. Remove any old files for lOTROE. Get LOTROE working in whatever folder you put it.. (with no copies located elsewhere on the HD). Then when all files are in place and lotroE is working, load up your VS and give it a go.

Posted: May 3rd, 2007, 10:10 am
by tault_razorwing
Ok i have done what you said, LOTROextreme works within the following development directory: C:\Documents and Settings\Scooby\My Documents\Visual Studio 2005\Projects\LOTRO-Champion\LOTRO-Champion\

But the program still fails to run with the previous error mentioned before.