AtryFox / Arma3LauncherLib

Simple .NET library containing everything needed for a custom Arma 3 launcher.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status TravisCI Build status AppVeyor NuGet

Arma 3 Launcher Library

Simple .NET library which makes creating your custom Arma 3 launcher easier.

This project is currently work in progress. Feel free to watch, star or contribute this project!

Prerequisites

  • .NET Framework 4.5 or higher

Installation

The simplest way to install Arma3LauncherLib is to use our NuGet package. Just open the context menu for your project with Visual Studio and click the option "Manage NuGet Packages...".

PM> Install-Package Arma3LauncherLib -Pre

You can also build Arma3LauncherLib yourself and add it as an reference to your project.

Features

  • Server status (+ player list) using SSQLib
  • Start game and connect to server
  • Missionfile management
  • Mod management (coming soon)

Basic usage

Some simple examples in C#. A full documention of this library is work in progress.

using DerAtrox.Arma3LauncherLib.Model;
using DerAtrox.Arma3LauncherLib.Utilities;

// Start game with default start parameters.
public void RunArma() {
    string armaPath = Path.Combine(ArmaUtils.GetArma3Path(), "arma3battleeye.exe");

    new ArmaLauncher().Connect(armaPath);
}

// Start game using profile "Günther".
public void RunArmaProfile() {
    string armaPath = Path.Combine(ArmaUtils.GetArma3Path(), "arma3battleeye.exe");

    var armaSettings = new ArmaStartSettings() { Profile = "Günther" };

    new ArmaLauncher().Connect(armaPath, armaSettings);
}

// Want to connect to a server?
public void JoinServer() {
    string armaPath = Path.Combine(ArmaUtils.GetArma3Path(), "arma3battleeye.exe");

    var armaServer = new ArmaServer("some-hostname.tld", 2302, 2303);

    new ArmaLauncher().Connect(armaPath, armaServer);
}

About

Simple .NET library containing everything needed for a custom Arma 3 launcher.

License:MIT License


Languages

Language:C# 100.0%