Jump to content
Naiss

ArmA 3 Extension problem C#

Recommended Posts

I'm currently trying to learn how Extensions works and how to make them but I have an issue where I get the following error:

CallExtension 'Exttest' could not be found

 

I have tried making a mod folder and placed in @mod\Exttest.dll

and I have tried to place it in the Arma 3 directory but still no luck.

 

Here is the code:

using RGiesecke.DllExport;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Exttest
{
    public class DllEntry
    {
       
        [DllExport("RVExtension", CallingConvention = CallingConvention.Winapi)]
        public static void RVExtension(StringBuilder output, int outputSize,
        [MarshalAs(UnmanagedType.LPStr)] string function)
        {
            outputSize--;

            output.Append("TEST OUTPUT! " + function);
        }
          
     }
}

 

I'm running a 64bit server and I have tried doing 32bit but the ext is made for 64bit

Share this post


Link to post
Share on other sites

How are you using the CallExtension command?

 

Share this post


Link to post
Share on other sites

Forgot to add that :P

 

here is how:

_output = "Exttest" callExtension "testing123"';
hint format ["T: %1",_output];

Share this post


Link to post
Share on other sites

So you have the mod loaded in the launcher?

 

sorry can't think of anything else right now...

Share this post


Link to post
Share on other sites

Try with BattlEye turned off, it block non-whitelisted extensions (you can see if it did this in the launcher when starting).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×