Dunno if it's okay to talk English in here, so sorry if it's not.
Thanks a lot adri1, your script is really clever and useful. Unfortunately, there's a big limitation as it only works for arties that are within the view range of your tank (BigWorld.entity(vid) returns None otherwise). It's even worse for arties in arty view (strategic mode), as it depends on where the arty is aiming: your tank can be located near another friendly arty, and yet you won't see where he aims at if you aim too far from his position (even if both of you aim at the same location!).
But that's still a very useful addon, and probably a good base for implementing the XMQP arty features suggested there. I'll give it a try...
Updating every seconds is probably too slow, but doing it every frames is probably too much. Something like every 10 frames should probably be better (using ON_EVERY_FRAME and a frame counter in refreshAimPos()).
Here are the instructions for those who haven't understand how to install that wonderful addon:
download attachment from adri1 post and extract it into res_mods\configs\xvm\py_macro\xvm
create a new file in res_mods\configs\xvm\py_macro, name it aimpos.py (name doesn't matter) and put the following in it (original code from adri1 is invalid):
from xvm import aimingposition
@xvm.export('xvm.aimpos', deterministic = False)
def refreshAimPos():
aimingposition.posManager.refreshList()
return ''
edit the file res_mods\configs\xvm\default\battleLabelsTemplates.xc and add the following lines just before the line "hitlogHeader": {:
"AimPos": {
"enabled": true,
//"updateEvent": "ON_EVERY_FRAME",
"updateEvent": "ON_EVERY_SECOND",
"alpha": 0,
"format": "{{py:xvm.aimpos}}"
},
edit the file res_mods\configs\xvm\default\battleLabels.xc and add the following line just before the line ${ "battleLabelsTemplates.xc":"def.hitlogHeader" },:
${ "battleLabelsTemplates.xc":"def.AimPos" },