Jump to content
Korean Random

Не работает пинг кластеров при запуске WoT из .BAT файла


Recommended Posts

Добрый день

 

По причине наличия нескольких аккаунтов для старта игры использую .BAT файл приблизительно такого содержания:

 

copy "USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml" %APPDATA%\wargaming.net\WorldOfTanks\preferences.xml

cd "D:\Program Files\Games\World of Tanks"
"D:\Program Files\Games\World of Tanks\WorldOfTanks.exe"

copy %APPDATA%\wargaming.net\WorldOfTanks\preferences.xml "USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml"
 

однако при таком запуске не работает пинг кластеров в ангаре. Часть лога:

 

[ERROR] _pingAsync() exception: Traceback (most recent call last):
  File "xvmstat/pinger.py", line 93, in _pingAsync
  File "xvmstat/pinger.py", line 131, in _pingAsyncWindows
  File "scripts/common/Lib/subprocess.py", line 614, in __init__
  File "scripts/common/Lib/subprocess.py", line 722, in _get_handles
  File "scripts/common/Lib/subprocess.py", line 761, in _make_inheritable
WindowsError: [Error 6] The handle is invalid

 

Есть / Будет ли возможность продолжать использовать .BAT файл, но видеть ping ?

Link to comment
Short link
Share on other sites

copy "USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml" %APPDATA%\wargaming.net\WorldOfTanks\preferences.xml

cd "D:\Program Files\Games\World of Tanks"

"D:\Program Files\Games\World of Tanks\WorldOfTanks.exe"

copy %APPDATA%\wargaming.net\WorldOfTanks\preferences.xml "USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml"

тут половина вообще не работает, а остальное не работает в определенных случаях.

copy /y "%USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml" "%APPDATA%\wargaming.net\WorldOfTanks\preferences.xml"
cd /d "D:\Program Files\Games\World of Tanks"
start /wait "" "D:\Program Files\Games\World of Tanks\WorldOfTanks.exe"
copy /y "%APPDATA%\wargaming.net\WorldOfTanks\preferences.xml" "%USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml"

А лучше так:

@echo off
copy /y "%USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml" "%APPDATA%\wargaming.net\WorldOfTanks\preferences.xml"
:restart
cd /d "D:\Program Files\Games\World of Tanks"
start /wait "" "D:\Program Files\Games\World of Tanks\WorldOfTanks.exe"
IF %ERRORLEVEL% EQU 0 (
	copy /y "%APPDATA%\wargaming.net\WorldOfTanks\preferences.xml" "%USERPROFILE%\My Documents\WorldOfTanks\preferences_eu.xml"
) ELSE (
	goto restart
)

Тогда при вылете игры игра будет просто перезапускаться

Edited by seriych
Link to comment
Short link
Share on other sites

не работает пинг кластеров в ангаре

У меня та же беда и cmd /c WorldOfTanks.exe не помогает. Проблема началась только в этом патче, в прошлом небыло, там танки запускались через файл xvm-stat.

 

cmd /c WorldOfTanks.exe

xcopy %APPDATA%\wargaming.net\WorldOfTanks\battle_results\*.dat "d:\Games\3D\World_of_Tanks\replays\" /s /c /y

Link to comment
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...