Jump to content
Sign in to follow this  
d0nar

Need help writing an extension in C# for A3

Recommended Posts

Hi,

 

I am currently trying to make an (very simple) extension in C#,

main purpose willl be in Altis Life or other RP modes for realtime diesel prices, later maybe more prices, but for now i do not understand why it keeps crashing a3.

 

the source is aviable at github.

 

i followed the tutorial from Maca134

 

It compiles without problem and without battleye it also gets loaded (placing in an empty modfolder with empty addons folder) but then when i try to call it with

hint "arma3diesel" callExtension "";

Arma3 Crashes without error.

 

Greetings

Daniel

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

 

Hi,

 

thanks i will give it a try, but have to wait, my keyboard got defective after moving back to university :/

On my Laptop i use linux (sometime windows but have to reinstall first) so sadly i can not try it now :/

 

But an other question, for deserialze the JSON input, i use an other dll, so are dll´s loaded by arma allowed to do so or might that be my problem?

 

 

Perhaps this could help? https://github.com/intercept/intercept

 

No, that is for use C/C++ instead of SQF but i want to write an extension not an script ;)

But thank you, will look into some day this semester.

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
Sign in to follow this  

×