Skip to content

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

License

Notifications You must be signed in to change notification settings

AtryFox/Arma3LauncherLib

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages