Jump to content
Korean Random
Zelenogorec

[0.9.0] XVM Tank Minimap Ranges, забугорный мод.

Recommended Posts

Обновил шапку по теме от Omegaice.

 

А какая версия мода с конфигом от Meddio в шапке, 1.9 или 2.0 ?

Edited by Antoshka_Rus

Share this post


Link to post

Short link
Share on other sites

А какая версия мода с конфигом от Meddio в шапке, 1.9 или 2.0 ?

оба

Share this post


Link to post

Short link
Share on other sites

А какая версия мода с конфигом от Meddio в шапке, 1.9 или 2.0 ?

Переделанная версия 1.9 до 2.0, с нашими дополнениями.

Share this post


Link to post

Short link
Share on other sites

Переделанная версия 1.9 до 2.0, с нашими дополнениями.

 

Эта версия так же немного неадекватно работает с новыми версиями XVM

 

т.е. мы при первой установке мода и входе в ангар видим обзор в системном канале, а в бою нет. Чтобы увидеть нормальное отображение получается нужно войти в бой на том же танке 2 раз, либо перезапустить клиент чтобы XVM подхватил данные об обзоре.

 

Я правильно все понял почитав эту тему.

Edited by Antoshka_Rus

Share this post


Link to post

Short link
Share on other sites

Да, все так.

Пока это неисправимо.

Позже, все поправят, но не сейчас.

Share this post


Link to post

Short link
Share on other sites

Meddio can you help me pls again!?

 

I have translated the newest version from Omegaice to german and make it to

the multilined version with your version as a model!

 

but i dont know to build a xml config file!

 

Maybe you are so friendly and build me again a config file?????

 

'Screenshot'

d7n89nqhs2x5.jpg

 

DOWNLOAD

 

Adler, I'm sorry, I saw your message earlier (but I was busy at the time), saved it for later, and then forgot to answer. :-(

 

I see that you were able to decompile and compile Python.

 

In that case you can add the XML-part yourself after each update.

 

'How to add XML?'

1) Decompile currentvehicle.pyc

2) Open the decompiled file (currentvehicle.py).

3) Add the following code to any line starting with "include":

, ResMgr

For example, change this line:

import io, os, json, codecs, math

to this:

import io, os, json, codecs, math, ResMgr

4) Locate the line starting with:

xvm_configuration_file = 

'For example:'

xvm_configuration_file = os.getcwd() + os.sep + 'res_mods' + os.sep + 'xvm' + os.sep + 'tankrange.xc'

 

5) and add the following code after the line:

 

'XML-part code'

xml = ResMgr.openSection('scripts/client/currentvehicle.xml')
if xml is not None:
    xml_userpath = xml.readString('ConfigPath')
    if xml_userpath:
        xml_fullpath = os.path.normpath(os.getcwd() + os.sep + xml_userpath)
        if os.path.exists(xml_fullpath):
            xvm_configuration_file = xml_fullpath

 

'the RESULT should look like this'

xvm_configuration_file = os.getcwd() + os.sep + 'res_mods' + os.sep + 'xvm' + os.sep + 'tankrange.xc'
xml = ResMgr.openSection('scripts/client/currentvehicle.xml')
if xml is not None:
    xml_userpath = xml.readString('ConfigPath')
    if xml_userpath:
        xml_fullpath = os.path.normpath(os.getcwd() + os.sep + xml_userpath)
        if os.path.exists(xml_fullpath):
            xvm_configuration_file = xml_fullpath

 

6) Save the file and compile it.

7) Create the text file currentvehicle.xml next to currentvehicle.pyc

\res_mods\0.9.0\scripts\client\currentvehicle.pyc
\res_mods\0.9.0\scripts\client\currentvehicle.xml

8) Add the following content to this file:

<TankMinimapRanges>
	<ConfigPath>res_mods\xvm\configs\tankrange.xc</ConfigPath>
</TankMinimapRanges>

You can change the path (res_mods\xvm\configs\tankrange.xc) as you see fit.

 

That's all. If you have any problems adding XML-part, feel free to PM me, and I'll do It myself.

Edited by Meddio

Share this post


Link to post

Short link
Share on other sites

Подскажите какой из этих путей будет правильным в конфиг файле, расположенном в \res_mods\xvm\configs

"circles": ${"../tankrange.xc":"circles"}, 

"circles": ${"tankrange.xc":"circles"},

Share this post


Link to post

Short link
Share on other sites

Подскажите какой из этих путей будет правильным в конфиг файле, расположенном в \res_mods\xvm\configs

"circles": ${"../tankrange.xc":"circles"}, 

"circles": ${"tankrange.xc":"circles"},

а tankrange.xc где живёт?

Share this post


Link to post

Short link
Share on other sites

а tankrange.xc где живёт?

 

res_mods\xvm\tankrange.xc

Edited by Jen1ok

Share this post


Link to post

Short link
Share on other sites

Подскажите какой из этих путей будет правильным в конфиг файле, расположенном в \res_mods\xvm\configs

"circles": ${"../tankrange.xc":"circles"}, 

"circles": ${"tankrange.xc":"circles"},

 

Если я правильно понял, конфиг - однофайловый, и структура файлов такая:

res_mods\xvm\config.xc  -  конфиг, из которого нужно сделать ссылку (вместо config.xc может быть любое имя, например, @xvm.xc)

res_mods\xvm\tankrange.xc  -  файл, на который нужно сделать ссылку (в той же папке)

 

Ссылка на файл в той же папке выглядит так:

"circles": ${"tankrange.xc":"circles"},

Edited by Meddio

Share this post


Link to post

Short link
Share on other sites

Доброго времени суток!!!!

Подскажите а можно ли настроить tankrange.xc или какой другой файл, чтоб при каждом выборе танка в ангаре, выскакивал его обзор с учетом рогов и тд. потому что один раз показал и все.

заранее благодарю!!!!

Share this post


Link to post

Short link
Share on other sites

Thats a nice quest teleboy!

I know a other mod ProView, with this mod you can show with a hotkey all time your sightrange

but i know know way to see my sight again with the currentvehicle.pyc!

Share this post


Link to post

Short link
Share on other sites

Свершилось чудо!  XVM 2849

 

Тестим динамические круги на миникарте.

 

 

дальность обзора (динамически изменяется при включении стереотрубы)   - прямо во время боя?
А что насчёт просветлёнки?

 

да, во время боя

просветленка учитывается, так же как и навыки экипажа и т.д.

 

Я взял за основу код XVM Tank Minimap Ranges (http://forum.worldoftanks.eu/index.php?/topic/284919-xvm-tank-minimap-ranges-v20-090/)

 

Спасибо ув. sirmax. В XVM (minimapCircles) теперь достаточно настроить параметры трех динамических окружностей (арта, пулеметчики, обзор) -

и они будут динамически отображаться для каждого танка, учитывая реальный обзор и дальность стрельбы.

 

Никакие дополнительные скрипты и манипуляции с конфигами (и конфигами для конфигов) не нужны =)

 

Стереотруба работает вообще круто. Едешь - показывается только круг базового обзора.

Останавливаешься на три секунды - круг увеличивается на 25%.

Edited by Meddio

Share this post


Link to post

Short link
Share on other sites

Свершилось чудо!  XVM 2849

 

 

 

Спасибо ув. sirmax. В XVM (minimapCircles) теперь достаточно настроить параметры трех динамических окружностей (арта, пулеметчики, обзор) -

и они будут динамически отображаться для каждого танка, учитывая реальный обзор и дальность стрельбы.

 

Никакие дополнительные скрипты и манипуляции с конфигами (и конфигами для конфигов) не нужны =)

 

Стереотруба работает вообще круто. Едешь - показывается только круг базового обзора.

Останавливаешься на три секунды - круг увеличивается на 25%.

круть =)

Share this post


Link to post

Short link
Share on other sites

я так понимаю это ночной билд? 

правильно понимаете

Share this post


Link to post

Short link
Share on other sites

Ну, вот, я как чуял что надо с бурной деятельностью повременить... и вот оно, вуаля и всё само разрулилось. Осталось только ковырнуть билд и проверить как оно там и где.

Share this post


Link to post

Short link
Share on other sites

встроенный и модифицированный tankrange — очень круто, спасибо

Share this post


Link to post

Short link
Share on other sites

 

 

Ну, вот, я как чуял что надо с бурной деятельностью повременить... и вот оно, вуаля и всё само разрулилось. Осталось только ковырнуть билд и проверить как оно там и где.
слишком долго барин собирались :heh:  

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...