Jump to content
Korean Random
Sign in to follow this  
squale323

Hitlog doesn't work since new version

Recommended Posts

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

Share this post


Link to post

Short link
Share on other sites

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.,

Share this post


Link to post

Short link
Share on other sites

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)...

Share this post


Link to post

Short link
Share on other sites

you need to post your whole config maybe its easier to someone tell whats wrong.

Share this post


Link to post

Short link
Share on other sites

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

 

Share this post


Link to post

Short link
Share on other sites

@squale323 , I'll start in order:

  1. In file:

    • res_mods\configs\xvm\squale\battleLabelsTemplates.xc

    • You need to replace macro {{hitlog.dmg-total}} with {{py:xvm.totalDamage}}

  2. 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

       

  3. 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 by night_dragon_on

Share this post


Link to post

Short link
Share on other sites

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"

 

image.png.dda68ecf456c8e67ee98c16fdb72d916.png

 

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 :-)

Share this post


Link to post

Short link
Share on other sites
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?

 

797d5751b38a.png

 

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 :smile:

Edited by night_dragon_on

Share this post


Link to post

Short link
Share on other sites

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 :huh:

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 !! :flower:@night_dragon_on

Share this post


Link to post

Short link
Share on other sites
2 минуты назад, squale323 сказал:

now i need to format that line correctly

 

Attach files:

  • hitLog.xc

  • battleLabels.xc

  • battleLabelsTemplates.xc

Share this post


Link to post

Short link
Share on other sites
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.

Share this post


Link to post

Short link
Share on other sites

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

Share this post


Link to post

Short link
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×