Arma 3
80 평점
Pythia
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Data Type: Mod
Mod Type: Mechanics
파일 크기
게시일
업데이트일
260.027 MB
2019년 5월 25일 오전 11시 01분
2022년 9월 27일 오후 2시 47분
업데이트 노트 3개 (보기)

다운로드 위해 구독하기
Pythia

설명
Pythia
An Arma 3 extension that lets you write python extensions for Arma 3. And it's really simple and straightforward to use!

Discord: https://discord.gg/Pp6ac56
More information: https://github.com/overfl0/Pythia

TL;DR
Create a function:
def my_function(some_string, number, the_truth): return ["awesome", 42, True, (1, 3.5)]

Call it from Arma:
["MyAwesomeModule.my_function", ["arg1", 3.14256, False]] call py3_fnc_callExtension

This will return this to your SQF code:
["awesome", 42, True, [1, 3.5]]

See the examples of mods performing simple functions here: https://github.com/overfl0/Pythia/tree/next/examples

Features
  • Works on Windows 32/64bit and on Linux 64bit
  • Full type conversion both ways: pass in an SQF array of ints, get a python array of ints. Return a tuple of a float, a bool and a string, get an SQF array containing the float, bool and the string
  • Embedded python installation (you don't have to install anything; just run the mod)
  • Python code stored inside @YourOwnMod directory
  • Python modules can call and reuse each other, even between separate Arma mods
  • Background Python threads
  • Cython and other compiled python extensions "just work" (C-like speed for performance-critical modules)
  • Extendable python environment through pip
  • Proven to work with libraries such as numpy, scipy, matplotlib, PyQt5, etc...
  • Automatic python code reloader for easier development
  • Allows returning more than 10240 characters from the extension transparently
  • Annoys sloppy SQF developers with correct code indentation since Day One ;)

More information
For more information, go to the github page and read the readme: https://github.com/overfl0/Pythia
댓글 12
HermineBZH 2025년 4월 5일 오후 1시 24분 
Seriously, I have to download this mod to have to save. What's this joke? Isn't there enough trouble to have to download mods to save. I feel like I'm playing Ubisoft games.
zdo 2024년 8월 25일 오전 8시 32분 
Amazing, thank you.
I've implemented Russian language recognition with VOSK using your mod (video in Russian https://www.youtube.com/watch?v=nh4PtwOUzgM) .

If somebody wants to improve on the work I've done - for Russian or any other language because VOSK supports a lot of them - feel free to do it, license is Arma Public Licence (APL).
Hannibal 2023년 10월 8일 오후 8시 31분 
This has been invaluable for debugging thank you!
J. Schmidt 2023년 5월 9일 오후 4시 29분 
Thanks for the reply, I'll be sure to make the changes for it to only be on the server side
Stack  [작성자] 2023년 5월 9일 오전 9시 57분 
This is normal behavior and happens with any (non-whitelisted) extension.

Also, Pythia is supposed to be used on the server side, not by players. I'd advise against using it by players unless they trust the server owner unconditionally, as running Pythia gives the server owner the ability to execute arbitrary Python code on players' machines.

While this seems to be exactly the same case as with regular extensions, the difference is that each extension would need to be whitelisted by BattlEye separately, while once BE lets Pythia run, there is no control over what exactly is executed anymore.
J. Schmidt 2023년 4월 23일 오후 12시 14분 
I noticed that when I have BattlEye enabled it automatically blocks the dll and doesn't allow me to call to my python functions. Any fix for this other than just disableing BattlEye? The server host/setup I'm using requires BattlEye and players end up getting kicked if they don't have BattlEye enabled.
Stack  [작성자] 2023년 2월 1일 오후 2시 07분 
It works just like with any other Arma extension: if you're calling the extension on the server, then the server needs Pythia to be running. If you're running the extension on the client, then just the client needs Pythia to be running.
Gacku 2023년 2월 1일 오전 9시 23분 
Question: does the server need this mod if I were to use it in my own mission making? Thanks
R3vo 2021년 5월 3일 오전 1시 37분 
Just wanted to tell you what an awesome mod this is. Having Python available in Arma 3 is just fantastic!
Vlad 2020년 12월 18일 오전 1시 47분 
i did not understand anything, but very interesting.:steammocking: