squale323 0 Posted April 7, 2019 hi all, since the new version of Hitlog, it simply doesn't work. i tried to modify my version but without success. i tried the hit log from defaut xvm, i tried other xvm configs, and it doesn't work too... some help would be really apreciated :-) thanks ! battletemplate_hitlog.zip Quote Share this post Link to post Short link Share on other sites
Andyss 16 #456085 Posted April 7, 2019 check your battlelabels file, they have changed some naming there in hitlogs , you have to check that those definitions match with battlelabeltemplates for istance if you have ${ "battleLabelsTemplates.xc":"def.hitLogHeader" }, you need to check that it match in that other file, same naming., Quote Share this post Link to post Short link Share on other sites
squale323 0 #456129 Posted April 8, 2019 thx for your answer and your help Andyss, i've checked matching definition and it's ok. the thing i don't understand it's the fact that Hitlog doesn't work regardless the config i use (mine, default, or another config)... Quote Share this post Link to post Short link Share on other sites
Andyss 16 #456133 Posted April 8, 2019 you need to post your whole config maybe its easier to someone tell whats wrong. Quote Share this post Link to post Short link Share on other sites
squale323 0 #456421 Posted April 12, 2019 i had a look to xvm.log , and there's an error, maybe the source of my hitlog doesn't work... is someone have an idea : 2019-04-12 19:01:11: [ERROR] Traceback (most recent call last): File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 128, in load_macros_lib execute(code, file_name, {'xvm': XvmNamespace}) File "res_mods/mods/xfw_packages\xvm_main\python\python_macro.py", line 112, in execute raise ExecutionException("{} at file '{}' line {}: {}".format(error_name, file_name, line_number, message)) ExecutionException: ImportError at file 'res_mods/configs/xvm/py_macro\hit_log.py' line 1: cannot import name hitLog Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456424 Posted April 12, 2019 @squale323 , reinstall XVM, and do not delete anything from the folder "py_macro" Quote Share this post Link to post Short link Share on other sites
squale323 0 #456425 Posted April 12, 2019 already done, but the error is still there :-( Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456426 Posted April 12, 2019 @squale323 , do not have enough files in the folder "py_macro" Namely folders "py_macro/xvm" Quote Share this post Link to post Short link Share on other sites
squale323 0 #456427 Posted April 12, 2019 i have 13 files and 1 folder Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456428 Posted April 12, 2019 @squale323 , attach: xvm.log python.log Quote Share this post Link to post Short link Share on other sites
squale323 0 #456431 Posted April 12, 2019 log.zipyep sure Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456439 Posted April 13, 2019 (edited) @squale323 , I'll start in order: In file: res_mods\configs\xvm\squale\battleLabelsTemplates.xc You need to replace macro {{hitlog.dmg-total}} with {{py:xvm.totalDamage}} Mod installed incorrectly, an entry in the log confirms this: 2019-04-12 20:39:50: xvm_integrity results: incorrect! extra file res_mods/mods/xfw/actionscript/xfw.swf extra file res_mods/mods/xfw/actionscript/xfwfonts.swf extra file res_mods/mods/xfw/python/xfw_loader.py extra file res_mods/mods/xfw/python/lib/six.py extra file res_mods/mods/xfw/python/lib/ssl.py extra file res_mods/mods/xfw/python/lib/dpath/exceptions.py extra file res_mods/mods/xfw/python/lib/dpath/options.py extra file res_mods/mods/xfw/python/lib/dpath/path.py extra file res_mods/mods/xfw/python/lib/dpath/util.py extra file res_mods/mods/xfw/python/lib/dpath/version.py extra file res_mods/mods/xfw/python/lib/dpath/__init__.py extra file res_mods/mods/xfw/python/lib/fs/appdirfs.py extra file res_mods/mods/xfw/python/lib/fs/appdirs.py extra file res_mods/mods/xfw/python/lib/fs/base.py extra file res_mods/mods/xfw/python/lib/fs/browsewin.py extra file res_mods/mods/xfw/python/lib/fs/compatibility.py extra file res_mods/mods/xfw/python/lib/fs/errors.py extra file res_mods/mods/xfw/python/lib/fs/filelike.py extra file res_mods/mods/xfw/python/lib/fs/ftpfs.py extra file res_mods/mods/xfw/python/lib/fs/httpfs.py extra file res_mods/mods/xfw/python/lib/fs/iotools.py extra file res_mods/mods/xfw/python/lib/fs/local_functools.py extra file res_mods/mods/xfw/python/lib/fs/memoryfs.py extra file res_mods/mods/xfw/python/lib/fs/mountfs.py extra file res_mods/mods/xfw/python/lib/fs/multifs.py extra file res_mods/mods/xfw/python/lib/fs/opener.py extra file res_mods/mods/xfw/python/lib/fs/path.py extra file res_mods/mods/xfw/python/lib/fs/remote.py extra file res_mods/mods/xfw/python/lib/fs/rpcfs.py extra file res_mods/mods/xfw/python/lib/fs/s3fs.py extra file res_mods/mods/xfw/python/lib/fs/sftpfs.py extra file res_mods/mods/xfw/python/lib/fs/t.py extra file res_mods/mods/xfw/python/lib/fs/tempfs.py extra file res_mods/mods/xfw/python/lib/fs/utils.py extra file res_mods/mods/xfw/python/lib/fs/watch.py extra file res_mods/mods/xfw/python/lib/fs/xattrs.py extra file res_mods/mods/xfw/python/lib/fs/zipfs.py extra file res_mods/mods/xfw/python/lib/fs/__init__.py extra file res_mods/mods/xfw/python/lib/fs/osfs/watch.py extra file res_mods/mods/xfw/python/lib/fs/osfs/watch_inotify.py extra file res_mods/mods/xfw/python/lib/fs/osfs/watch_win32.py extra file res_mods/mods/xfw/python/lib/fs/osfs/xattrs.py extra file res_mods/mods/xfw/python/lib/fs/osfs/__init__.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/debugfs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/hidedotfilesfs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/hidefs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/lazyfs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/limitsizefs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/readonlyfs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/subfs.py extra file res_mods/mods/xfw/python/lib/fs/wrapfs/__init__.py extra file res_mods/mods/xfw/python/lib/JSONx/ast.py extra file res_mods/mods/xfw/python/lib/JSONx/exception.py extra file res_mods/mods/xfw/python/lib/JSONx/lexer.py extra file res_mods/mods/xfw/python/lib/JSONx/parser.py extra file res_mods/mods/xfw/python/lib/JSONx/utils.py extra file res_mods/mods/xfw/python/lib/JSONx/__init__.py extra file res_mods/mods/xfw/python/lib/JSONxLoader/loader.py extra file res_mods/mods/xfw/python/lib/JSONxLoader/__init__.py extra file res_mods/mods/xfw/python/lib/pika/amqp_object.py extra file res_mods/mods/xfw/python/lib/pika/callback.py extra file res_mods/mods/xfw/python/lib/pika/channel.py extra file res_mods/mods/xfw/python/lib/pika/compat.py extra file res_mods/mods/xfw/python/lib/pika/connection.py extra file res_mods/mods/xfw/python/lib/pika/credentials.py extra file res_mods/mods/xfw/python/lib/pika/data.py extra file res_mods/mods/xfw/python/lib/pika/exceptions.py extra file res_mods/mods/xfw/python/lib/pika/frame.py extra file res_mods/mods/xfw/python/lib/pika/heartbeat.py extra file res_mods/mods/xfw/python/lib/pika/spec.py extra file res_mods/mods/xfw/python/lib/pika/utils.py extra file res_mods/mods/xfw/python/lib/pika/__init__.py extra file res_mods/mods/xfw/python/lib/pika/adapters/base_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/blocking_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/libev_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/select_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/tornado_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/twisted_connection.py extra file res_mods/mods/xfw/python/lib/pika/adapters/__init__.py extra file res_mods/mods/xfw/python/lib/simplejson/compat.py extra file res_mods/mods/xfw/python/lib/simplejson/decoder.py extra file res_mods/mods/xfw/python/lib/simplejson/encoder.py extra file res_mods/mods/xfw/python/lib/simplejson/ordered_dict.py extra file res_mods/mods/xfw/python/lib/simplejson/scanner.py extra file res_mods/mods/xfw/python/lib/simplejson/tool.py extra file res_mods/mods/xfw/python/lib/simplejson/__init__.py extra file res_mods/mods/xfw/python/lib/tlslite/api.py extra file res_mods/mods/xfw/python/lib/tlslite/basedb.py extra file res_mods/mods/xfw/python/lib/tlslite/checker.py extra file res_mods/mods/xfw/python/lib/tlslite/checker_xfw.py extra file res_mods/mods/xfw/python/lib/tlslite/constants.py extra file res_mods/mods/xfw/python/lib/tlslite/errors.py extra file res_mods/mods/xfw/python/lib/tlslite/extensions.py extra file res_mods/mods/xfw/python/lib/tlslite/handshakesettings.py extra file res_mods/mods/xfw/python/lib/tlslite/mathtls.py extra file res_mods/mods/xfw/python/lib/tlslite/messages.py extra file res_mods/mods/xfw/python/lib/tlslite/session.py extra file res_mods/mods/xfw/python/lib/tlslite/sessioncache.py extra file res_mods/mods/xfw/python/lib/tlslite/tlsconnection.py extra file res_mods/mods/xfw/python/lib/tlslite/tlsrecordlayer.py extra file res_mods/mods/xfw/python/lib/tlslite/verifierdb.py extra file res_mods/mods/xfw/python/lib/tlslite/x509.py extra file res_mods/mods/xfw/python/lib/tlslite/x509certchain.py extra file res_mods/mods/xfw/python/lib/tlslite/__init__.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/asyncstatemachine.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/clienthelper.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/httptlsconnection.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/imap4_tls.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/pop3_tls.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/smtp_tls.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/tlsasyncdispatchermixin.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/tlssocketservermixin.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/xmlrpcserver.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/xmlrpctransport.py extra file res_mods/mods/xfw/python/lib/tlslite/integration/__init__.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/aes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/asn1parser.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/cipherfactory.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/codec.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/compat.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/cryptomath.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/datefuncs.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/keyfactory.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/openssl_aes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/openssl_rc4.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/openssl_rsakey.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/openssl_tripledes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/pem.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/pycrypto_aes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/pycrypto_rc4.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/pycrypto_rsakey.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/pycrypto_tripledes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/python_aes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/python_rc4.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/python_rsakey.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/rc4.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/rijndael.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/rsakey.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/tackwrapper.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/tripledes.py extra file res_mods/mods/xfw/python/lib/tlslite/utils/__init__.py extra file res_mods/mods/xfw/python/xfw/console.py extra file res_mods/mods/xfw/python/xfw/constants.py extra file res_mods/mods/xfw/python/xfw/events.py extra file res_mods/mods/xfw/python/xfw/logger.py extra file res_mods/mods/xfw/python/xfw/ping.py extra file res_mods/mods/xfw/python/xfw/singleton.py extra file res_mods/mods/xfw/python/xfw/swf.py extra file res_mods/mods/xfw/python/xfw/utils.py extra file res_mods/mods/xfw/python/xfw/vfs.py extra file res_mods/mods/xfw/python/xfw/wg.py extra file res_mods/mods/xfw/python/xfw/wwise.py extra file res_mods/mods/xfw/python/xfw/xfwmodsinfo.py extra file res_mods/mods/xfw/python/xfw/xfwview.py extra file res_mods/mods/xfw/python/xfw/xinput.py extra file res_mods/mods/xfw/python/xfw/__init__.py File hitLog.py is still not in the folder: res_mods\configs\xvm\py_macro\xvm Because of this, the hitLog doesn't work. Edited April 13, 2019 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
squale323 0 #456440 Posted April 13, 2019 seriously i don't understand... - i've cheked my battlelabesltemplate.xc and Macro {{py:xvm.totalDamage} is OK - i install mod like that : i download zip, unzip and just copy/paste to Wot folder, so i can cofirm all files are in the right place - in res_mods\configs\xvm\py_macro\xvm i can confirm that hitlog.py is there. BUT unlike the other files in that folder, ther is not the "equivalent" with the extension ".pyc" something is going wrong somewhere but i don't know where. i've checked security tab of all files, all seems to be fine, i compared my folder to default folder, and again no missing files or bad name. i'm turning mad :-) Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456441 Posted April 13, 2019 (edited) 25 минут назад, squale323 сказал: i can confirm that hitlog.py is there Therein lies the problem. There should be a hitLog.py file, not hitlog.py 25 минут назад, squale323 сказал: i download zip, unzip and just copy/paste to Wot folder 25 минут назад, squale323 сказал: i compared my folder to default folder, and again no missing files or bad name You need to download the mod only from the official site. Where did you download your archive? 25 минут назад, squale323 сказал: and Macro {{py:xvm.totalDamage} is OK Judging by the log: ValueError: malformed string arg='xvm.total_hp.avgDamage('',hitlog)' arg='xvm.total_hp.mainGun('', hitlog)' Which makes it clear that an obsolete macro {{hitlog.dmg-total}} is written in your config. I did not just write about it Edited April 13, 2019 by night_dragon_on Quote Share this post Link to post Short link Share on other sites
squale323 0 #456442 Posted April 13, 2019 Bingo @night_dragon_on ! that's it ! instead of copy/paste, i deleted hitLog.py and copy hitlog.py and hitlog is now working ! it's amazing, really, when i copy/paste, Windows ask me if i want to replace files, i answer ok, but Windows didn't renamed that file now i need to format that line correctly and it's ok : "formatHistory": "<textformat leading='-4' tabstops='[95,165,200]'><font face='$UniversCondC' color='{{c:vtype}}'>{{vehicle}}</font> <tab><font color='#FFFFFF'> x{{hitlog.n-player}}</font><font face='$UniversCondC' color='#FFFFFF'> -{{dmg}}</font> <tab> <font color='#FFCC33'>{{hitlog.dmg-player}}</font> {{hitlog.dead}}</textformat>" a big thank you to you !! @night_dragon_on Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456443 Posted April 13, 2019 2 минуты назад, squale323 сказал: now i need to format that line correctly Attach files: hitLog.xc battleLabels.xc battleLabelsTemplates.xc Quote Share this post Link to post Short link Share on other sites
squale323 0 #456445 Posted April 13, 2019 I found the correct format for {{n-player}} and {{dmg-player}} but not the last one (when ennemy is killed) battle_hitlog.rar Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,601 #456446 Posted April 13, 2019 48 минут назад, night_dragon_on сказал: Which makes it clear that an obsolete macro {{hitlog.dmg-total}} is written in your config. You have an old macro {{hitlog.dmg-total}} in the file: battleLabelsTotalHPWGLold.xc 9 минут назад, squale323 сказал: but not the last one (when ennemy is killed) You have an old file "hitlog.xc" In which there were sections: "deadMarker": "xxxxx", "blowupMarker": "xxxxx", Or you can write which character or text you want to display when you destroy vehicle and undermine the ammo pack. Quote Share this post Link to post Short link Share on other sites
squale323 0 #456447 Posted April 13, 2019 battleLabelsTotalHPWGLold.xc corrected ! and destroy ennemy corrected too ! again thank you very much for you kind help @night_dragon_on Quote Share this post Link to post Short link Share on other sites
cyberspaz 0 #456544 Posted April 14, 2019 I am very glad the hit log issue was resolved-- But for the Code deficient people can you all post a easy to follow fix as i really would like mine to work again .. TIA Quote Share this post Link to post Short link Share on other sites