Page 1 of 30 1234511 ... LastLast
Results 1 to 10 of 300

  Click here to go to the first Developer post in this thread.  

Thread: Arma2NET

  1. #1
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    139

    Smile Arma2NET

    Arma2NET 2.2

    Arma2NET is a wrapper used for communicating between managed code and SQF code used in the game Arma 2, adding significant functionality to SQF scripting.

    Arma2NET gives you the ability to use the .NET Framework from Arma 2. It is designed to be an alternative for those who don't want to use C or C++ with callExtension or Java and the JVM.

    There is a wide range of language implementations that target the Common Language Runtime, so you can use C#, Python, VB.NET, F#, Ruby code and more, directly from Arma 2.

    A list of languages that you can use can be found here.

    Features

    - Call managed functions and manipulate the return value from SQF.
    - Check the status of long-running managed functions from SQF using callbacks.
    - Convert SQF literals (lists, strings, numbers etc) to .NET objects and back.
    - Extend the functionality of Arma2NET by writing plugins written in any language that compiles to .NET bytecode, such as C#, F# or VB.NET.

    Included plugins

    - BaseFunctions
    - CommandLine (get command line used to start Arma 2)
    - DateTime (get system time/UTC time)

    More plugins

    - IronPython code executor/evaluator. Run .py script files and more from your system.
    - IronRuby

    Requirements

    To use Arma2NET you must be running Arma 2 version 1.62 or later, and .NET Framework 4 Client Profile (Download it from http://www.microsoft.com/download/en....aspx?id=24872).
    Microsoft Visual C++ 2010 must also be installed (Download it from http://www.microsoft.com/en-us/downl...s.aspx?id=8328).

    Documentation

    Wiki home: https://bitbucket.org/Scott_NZ/arma2net/wiki/Home
    Getting started with Arma2NET: https://bitbucket.org/Scott_NZ/arma2...etting_started
    Introductory tutorial: https://bitbucket.org/Scott_NZ/arma2net/wiki/Tutorial

    Dev-Heaven: https://dev-heaven.net/projects/a2n

    Please create a ticket for bugs/features at https://dev-heaven.net/projects/a2n/issues or https://bitbucket.org/Scott_NZ/arma2net/issues

    Example

    C#:
    Code:
    using Arma2Net.AddInProxy;
    
    namespace MyPlugin
    {
        [AddIn("MyPlugin")]
        public class MyPlugin : MethodAddIn
        {
            public string Hello()
            {
                return "Hello world!";
            }
        }
    }
    SQF:
    Code:
    _result = call compile ("Arma2Net.Unmanaged" callExtension "MyPlugin [Hello]");
    hint _result;
    Changelog

    Spoiler:


    Download

    ZIP archive: https://bitbucket.org/Scott_NZ/arma2...ma2NET-2.2.zip
    MSI installer: https://bitbucket.org/Scott_NZ/arma2...ma2NET-2.2.msi

    Any other downloads can be found here: https://bitbucket.org/Scott_NZ/arma2net/downloads
    Last edited by Scott_NZ; Aug 24 2012 at 00:52. Reason: Version 2.2

  2. #2
    Awesome, thanks a bunch!
    A.C.E. Advanced Combat Environment

    Dev-Heaven.net Free Project Hosting | A2 Community Issue Tracker Help BIS, Help yourself!

  3. #3
    Interesting! So could this be used to do something like have a dedicated map interface, or integrate with working gauges in the vehicles (like Flight Sim)?

  4. #4
    First Lieutenant Kremator's Avatar
    Join Date
    Jun 8 2007
    Location
    Cambridge, UK
    Posts
    5,075
    This sounds really interesting. Pity I just tinker with code instead of writing fresh stuff !

    Hopefully all you coding gurus can use it.

  5. #5
    Excellent effort, presentation and iniatitive Scott

    Hopefully some skilled coders will jump onto the bandwagon.

  6.   This is the last Developer post in this thread.   #6

  7. #7
    BRAVO Scott!! BRAVO!!
    ViperMaul
    Assistant Team Lead | Advanced Combat Environment
    ShackTac Community Member | www.dslyecxi.com

  8. #8
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    139
    Author of the Thread
    Quote Originally Posted by hcpookie View Post
    Interesting! So could this be used to do something like have a dedicated map interface, or integrate with working gauges in the vehicles (like Flight Sim)?
    Yeah, you could create an Arma2NET plugin with a GUI and a map of the terrain on a second monitor using WPF. Arma 2 would simply call the plugin's function with the map data and the data would be plotted on the second monitor.

  9. #9
    Staff Sergeant Feint's Avatar
    Join Date
    Sep 9 2008
    Location
    Chicago, IL, USA
    Posts
    389
    Could this be used to interface with Thrustmaster Cougar MFD's? That would be really sweet. Then I could finally use this old second monitor!




  10. #10
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    139
    Author of the Thread
    If the MFDs have an interface an Arma2NET plugin could connect to, it could marshal data back and forth between Arma 2 and the MFDs. Arma2NET/callExtension are very powerful but are hindered by the fact you can only send/receive text data at the moment. That said, I haven't tried anything of this nature yet so the only real way to know is to try it...

Page 1 of 30 1234511 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •