code34 / armago_x64 Goto Github PK
View Code? Open in Web Editor NEWArma3 Golang Extensions
License: MIT License
Arma3 Golang Extensions
License: MIT License
怎么去掉导出的函数名称后面的@n ,又可以让win32的客户端 使用 stdcall 方式调用 dll??
Everything is packed as in requirements for using dll.
Environment: go version go1.20.1 windows/amd64
TDM-GCC: Tried latest 10.3.0 and previous 9.2 with no success
Builds: x64 and x86 version of dll's by method as you described in your README.md
When i run this code the game just crashed with no errors in rpt.
_result = "armago" callExtension "John";
hint format [ "Result:% 1", _result ];
UPD 1:
Checked it couple of times and what i got: x86 version works great with no crash, but it works only on x86 executable of Arma3.
For x64 version got this: err
UPD 2:
Found as temporary solution: all works on go1.19 and tdm-gcc 9.2
Is it possible to compile for 32 bit systems? I did it through the appveyor, but the game does not perceive it.
Hi code34,
would you be so kind to provide a code example of an extensions able to connect to rcon locally to the server and to get replies from it in game? What I have in mind is something like:
onPlayerConnected EH triggers the extension, providing UID to it, the extension finds that UID from the player list and sends its IP back to the game.
I'm a real newbie in C and extensions seems not a so easy "first step" to do in this coding language. Sorry if bothering you with a so specific request, you seem to be the perfect confident person to ask to!
Hi, i don't know what the heck is happening, but after compiling with instructions i managed to run it in only in 32-bit
Extension sources
curly_spoon.zip
Do you have an example of creating an extension for linux A3 servers? I understand that it's .so
rather than .dll
s
Hi
I startede playing around with this a little.
on my first build i get this error
invalid operation: size > outputsize (mismatched types _Ctype_ulong and _Ctype_ulonglong)
cannot use outputsize (type _Ctype_ulonglong) as type _Ctype_ulong in assignment
I know it's this position of the code thats makes the error and why it does.
Don't know if its because i am on an mac
var size = C.strlen(result) + 1
if size > outputsize {
size = outputsize
}
go version go1.10.3 darwin/amd64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.