CS590VC – Tutorial 6 Client-side connection through external application.

Slides:



Advertisements
Similar presentations
Technology ICT Virtual PC. Network Resources Microsoft Virtual PC Allows multiple Guest Operating Systems (Virtual Machines) run using the resources of.
Advertisements

ACT! “Web” Plugins ACC Webinar (Part 1of 2) Brian Mowka and Jamie Aurand December 2010.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Distributed Systems Tutorial 1 - Getting Started with Visual C#.NET.
GTECH 731 Lab Session 2 Lab 1 Review, Lab 2 Intro 9/6/10 Lab 1 Review Lab 2 Overview.
1 Web Services Visual C# 2008 Step by Step Chapter 30.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Lecture 2: An Introduction to J# and.NET. 2 MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET 2-2 Objectives “Microsoft.NET is based on the.NET.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
MagicInfo Pro Server Software All control, content, and scheduling is performed within the MagicInfo Pro Server software previously installed. Before.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Intro to C# Dr. John P. Abraham UTPA. Background required Thorough C++ programming – If you made an A in 1370/1170 you will do fine with some effort.
N ETWORKED & D ISTRIBUTED COMPUTING S YSTEMS L AB Programming Assignments EE323 Computer Networks.
Libsecondlife: Bots Hyungwook Park. LSL vs. libsecondlife Linden Script Language (LSL)  Programming language used by residents of Second Life  Controls.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Computer Programming 1.  Editor Console Application Notepad Notepad++ Edit plus etc.  Compiler & Interpreter Microsoft.NET Framework  Microsoft visual.
CSCI 3328 Object Oriented Programming in C# Chapter 1: Introduction to C# Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Clement Allen, PhD Florida A&M University SUMMER 2006.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Active-HDL Interfaces Debugging C Code Course 10.
Getting Started with C# August 29, NET Concepts Language Independence Language Integration  your C# program can use a class written in VB Program.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Comments in Java. When you create a New Project in NetBeans, you'll notice that some text is greyed out, with lots of slashes and asterisks:
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Connecting to the eTeacher FTP on Windows 7/Vista eTeacherGroup 2010.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
Jan Hatje, DESY CSS GSI Feb. 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
How to use in outlook 365. Opening outlook 365 Firstly you want to click the windows button in the bottom left corner of your screen which will.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Module 1 Introducing C# and the.NET Framework. Module Overview Introduction to the.NET Framework 4 Creating Projects Within Visual Studio 2010 Writing.
CPSC 372 John D. McGregor Module 6 Session 4 Sonar.
Jump-Start WDSc-RSE by Robert Arce from PrismaTech. Jump-Start WDSc-RSE Presented by: Robert Arce.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Strings in C++/CLI us/library/system.string.aspxhttp://msdn.microsoft.com/en- us/library/system.string.aspx public: static.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
How to develop a VoIP softphone in C# that enables SIP Instant Messaging (IM) This presentation describes how to create a softphone in C# that allows you.
How to develop a VoIP softphone in C# by using OZEKI VoIP SIP SDK This presentation demonstrates the first steps concerning to how to develop a fully-functional.
1 Adding a Model. We have created an MVC web app project Added a controller class. Added a view class. Next we will add some classes for managing movies.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
Building C# Applications
Jkelany Chat Project.
Visual programming Chapter 1: Introduction
Module 0: Introduction Chapter 2: Getting Started
Web Development in Microsoft Visual Studio 2013
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Getting Started with Programming
CSCI 3328 Object Oriented Programming in C# Chapter 1: Introduction to C# UTPA – Fall 2012 This set of slides is revised from lecture slides of Prof.
1. Open Visual Studio 2008.
عرض اجمالي المهام الشرطية في سي شارب (الأمر if)
Social Media And Global Computing Creating DLLs with Visual Studio
Constructors, GUI’s(Using Swing) and ActionListner
These slides are for reference only. They are not "lecture notes"
Developing Java Applications with NetBeans
Developing Java Applications with NetBeans
Computer Terms Review from what language did C++ originate?
Review of Previous Lesson
SOAP web services in Microsoft Azure
IS 135 Business Programming
Presentation transcript:

CS590VC – Tutorial 6 Client-side connection through external application

LibSecondLife Project An effort directed at understanding how Second Life works from a technical perspective. Extending and integrating with the rest of the web. Understanding how the official Second Life client operates Understanding how it communicates with the Second Life simulator servers Development of independent third party clients and tools

Brief Technicalities libsecondlife runs in a.Net virtual machine. libsecondlife is written in C# using Microsoft.NET. We will be using Windows platform.

How to use libsecondlife in Visual Studio

Step 1: Create new project

Step 2: Select “Console Application” under Visual C# -> Windows

You write the code now

Step 3: Copy the given code in the editor using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenMetaverse; namespace ConsoleApplication3 { class Program { public static GridClient Client = new GridClient(); private static string first_name = "First"; private static string last_name = "Last"; private static string password = "password";

Code contd.. static void Main(string[] args) { Client.Network.LoginProgress += new EventHandler (Network_LoginProgress); if (Client.Network.Login(first_name, last_name, password, "My First Bot", "Your name")) { Console.WriteLine("I logged into Second Life!"); } else { Console.WriteLine("I couldn't log in, here is why: " + Client.Network.LoginMessage); Console.WriteLine("press enter to close..."); Console.ReadLine(); }

Code contd.. static void Network_LoginProgress(object sender, LoginProgressEventArgs e) { if (e.Status == LoginStatus.Success) { Console.WriteLine("I'm connected to the simulator, going to greet everyone around me"); Client.Self.Chat("Hello World!", 0, ChatType.Normal); Console.WriteLine("Now I am going to logout of SL.. Goodbye!"); Client.Network.Logout(); Console.WriteLine("I am Loged out please press enter to close..."); Console.ReadLine(); }

Step 4: Click “Solution Explorer” Solution explorer Right click on “References” -> Add References

Step 5: Select “Browse” -> select “bin” of the “libsecondlife-0_4_1_1-binary” folder Select “OpenMetaverse.dll.dll”

Select “Browse” -> select “bin” of the “libsecondlife-0_4_1_1-binary” folder Select “OpenMetaverseTypes.dll”

Select “Browse” -> select “bin” of the “libsecondlife-0_4_1_1-binary” folder Select “OpenMetaverse.StructuredData.dll

Step 6: Compilation “OpenMetaverseTypes.dll” OpenMetaverseTypes.dll OpenMetaverse.StructuredData.dll added Build successful

Code Explanation 1: using OpenMetaverse; This tells the compiler to include the contents of the OpenMetaverse library when compiling this file, put this at the top of all files using any of the libsecondlife classes. public static GridClient Client = new GridClient(); This line is probably the most important line in any libsecondlife application. It contains all of the functions that are required for your bot to communicate with the Second Life grid. [Usually this variable is named "client," but you can call it whatever you want.]

Code Explanation 2: Client.Network.LoginProgress += new EventHandler (Network_LoginProgress); The LoginProgressis an Event (found under the Network class in your SecondLife variable). Basically, whenever your bot connects to a simulator (server side) and marks its presence there, it will fire the Network_LoginProgress method (Event Handler). [This event handler has to be coded according to your application. Defines what the bot should do when it logs in] if (client.Network.Login(first_name, last_name, password, "My First Bot", "Your name")) The bot logs in with the login information.

How to run the bot Go to the Debug menu at the top of Visual Studio and click "Start Debugging" If everything went according to plan, you should see a windows console pop up

References for installation [build ver.: libsecondlife-0_4_1_1-binary.zip]libsecondlife-0_4_1_1-binary.zip