Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Visual Basic

Visual Basic Visual Basic Discussion

Reply
 
Thread Tools Display Modes
Old 05-30-2006, 04:12 PM   #1 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default [Guide]How to script using VB. NET

First of all, I need to mention I dont know VB.NEt and I hate the language but this thread (it says you cannot use VB.NET for runuo) might discourage people to script in VB.NEt. The thread is closed, so I had to open a new one with the guide.

Instructions: (assuming you know how to use an IDE )

-Create a blank solution
-Add a C# class library project. (name: RunUOCore) (could be also console app if you want to execute runuo) (delete default .cs file)
-Extract all core files to this project.
-Add a C# class library project (name: RunUO) (delete default .cs file)
-Extract all distribution files to this project
-Set project dependencies for this project: Add RunUOCore
-Add a VB.NEt class library project. (name: RunUOVB) (delete default .vb file)
-Add reference->Browse in the .NEt tab->Select RunUOCore.dll (in the output folder in RunUOCore project)
-Add reference->Browse in the .NEt tab->Select RunUO.dll (in the output folder in RunUO project)
-Build RunUOVB. (to create RunUOVB.dll)
-Select RunUO project. Add reference->Browse in the .NEt tab->Select RunUOVB.dll (in the output folder in RunUOVB project)
-Select RunUOCore project. Add reference->Browse in the .NEt tab->Select RunUOVB.dll (in the output folder in RunUOVB project)


Now, both C# classes are accessible in VB.NEt project, and VB classes are are accessible in RunUO and RunUOCore.


How to use it with RunUO.exe:
-Copy RunUOVB.lib to RunUO directory.
-Open <RunUO Folder>/Data/Assemblies.cfg
-Add RunUOVB.lib at the end file
-Run

Good luck with VB.NEt
noobie is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5