Jump to content

maca134

Member
  • Content Count

    22
  • Joined

  • Last visited

  • Medals

Community Reputation

22 Excellent

2 Followers

About maca134

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. This is a package that contains a JsonConvertor for the Newtonsoft.Json package in C#. It's purpose is to convert between C# data types and ARMA data types. If you have used Newtonsoft.Json you will be familar with mapping C# properties to Json properties and vise versa. You can download it here https://www.nuget.org/packages/Maca134.Arma.Serializer/ or Maca134.Arma.Serializer in Nuget. Also source is on Github https://github.com/maca134/Maca134.Arma.Serializer. Here is a very basic example: public class TestClass { public string Var1 { get; set; } public string[] Var1A { get; set; } public int Var2 { get; set; } public float Var3 { get; set; } public bool Var4 { get; set; } public TestClassInner Var5 { get; set; } public List<string> Var1B { get; set; } } public class TestClassInner { public string Var1 { get; set; } public int Var2 { get; set; } public float Var3 { get; set; } public bool Var4 { get; set; } } var testData = new TestClass { Var1 = "he\"llo", Var1A = new[] {"1", "2", "3"}, Var1B = new List<string> { "1", "2", "3" }, Var2 = 1, Var3 = 1.2f, Var4 = false, Var5 = new TestClassInner { Var1 = "h\"ello", Var2 = 1, Var3 = 1.2f, Var4 = false, } }; /* Returns: ["he""llo",["1","2","3"],1,1.2,false,["h""ello",1,1.2,false],["1","2","3"]] */ var str = ArmaArrayConvert.SerializeObject(testData); /* Returns the reconstructed object */ var obj = ArmaArrayConvert.DeserializeObject<TestClass>(str); I fairly sure I have covered all the types but there maybe missing bits.
  2. After using RGiesecke's DllExport package for years for getting C# ARMA extensions working, I wanted to know exactly how it worked and in the process ended up writing a DllExport package specific for ARMA's exports. You can download it here https://www.nuget.org/packages/Maca134.Arma.DllExport/ or Maca134.Arma.DllExport in Nuget. Also source is on Github https://github.com/maca134/Maca134.Arma.DllExport. Here is the old way of doing it (64bit): [DllExport("RVExtension", CallingConvention = System.Runtime.InteropServices.CallingConvention.Winapi)] public static void RVExtension(StringBuilder output, int outputSize, [MarshalAs(UnmanagedType.LPStr)] string function) { output.Append(function); } With the new package it simplifies the code into: [ArmaDllExport] public static string Invoke(string function, int outputSize) { return function; } The package will also switch the export name depending on bit'ness of the DLL.
  3. For some video work I am doing at the moment, I wrote a small addon for 3DEN to make it easier editing the inventory of vehicles/containers. Download it on Steam Workshop: http://steamcommunity.com/workshop/filedetails/?id=1124993203 The mod does not add any additional dependencies to the mission as it uses the existing ammo attribute that is used by vanilla ARMA.
  4. Full of bugs, not bin'ed, over a gig in size and using SQF to replace buildings. Here is another version of the buildings that have been properly setup with LODs, AI paths etc
  5. A small drop of credit would of been nice, considering you copy-pasted from my project. https://github.com/mistergoodson/OCAP/blob/master/extension/OCAPExporter/OCAPExporter/Class1.cs#L64 https://github.com/maca134/ARMAExtCS/blob/master/ARMAExtCS/DllEntry.cs#L13
  6. Hey take a look at this code here https://github.com/maca134/armaext/blob/master/project/armaextconsole/ARMAExt.cs this is what i use to test extensions before loading it into arma. Also this project https://github.com/maca134/armaext can be helpful testing code, without having to recompile and restart arma each time you make a change.
  7. Download This is an extension/mod that will allow you to compile/run C# on the fly to ease rapid development of a c# ARMA extension The mod has only 2 functions: Load some c# or javascript, returns a pointer _pointer = [_path_to_cs] call ARMAEXT_fnc_load Run the script and return the results _result = [_pointer, _args] call ARMAEXT_fnc_run; The c# has to implement the follow pattern so its as close as possible to the actual DllExport: class Startup { public static stirng Invoke(string input) { return "Hello World"; } } All paths starting .\ will be relative to ARMACS.dll Additional libraries can be loaded as follows: #r ".\lib.dll" or #r "c:\path\to\lib.dll or #r "System.Data.dll" Output is set to 10k If you use this on clients, DISABLE BATTLEYE! This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
  8. maca134

    PLP Markers

    Are you allowed to use these markers on BIS approved monetized servers?
  9. maca134

    A2/A2:OA Patch 18.12.2015

    Regarding launching i found that commandline, calling arma2oa_be gets you to the lobby then instantly get Session Lost but if you join via Steam URL, all is good ArmA2OA_BE.exe 0 0 -noSplash -noPause -connect=192.223.24.226 -port=2302 "-mod=C:\SteamLibrary\steamapps\common\Arma 2;Expansion;C:\mods\@DayzOverwatch" Result: Join lobby then instantly get "Session Lost" steam://run/33930//-noSplash -noPause -connect=192.223.24.226 -port=2302 "-mod=C:\SteamLibrary\steamapps\common\Arma 2;Expansion;C:\mods\@DayzOverwatch" URL encoded: steam://run/33930//-noSplash%20-noPause%20-connect%3D192.223.24.226%20-port%3D2302%20%22-mod%3DG%3A%5CSteamLibrary%5Csteamapps%5Ccommon%5CArma%202%3BExpansion%3BU%3A%5Cmods%5C%40DayzOverwatch%22 Result: Join lobby fine
  10. maca134

    A2/A2:OA Patch 18.12.2015

    Im also getting this problem with a community launcher
  11. I will check it out, i personally use fire daemon to restart. Also is the plugin in debug mode?
  12. IT might be just that the latency on the stream is shit. I will see about some buffering options.
×