Jump to content
Korean Random
Sign in to follow this  
VasyaPRO_2014

Отладка ActionScript

Recommended Posts

Здравствуйте.
Как можно вывести что либо (например строку) в python.log (или куда нибудь ещё) из ActionScript? Здесь сказано, что для этого используется класс net.wargaming.utils.DebugUtils. В текущей версии такого класса нет (Вероятно его убрали после перехода на AS3), зато есть DebugUtils в корне package. Пробовал передавать в DebugUtils.LOG_DEBUG тестовую строку, вот так:

getlex              QName(PackageNamespace(""), "DebugUtils")
pushstring          "log debug test"
callpropvoid        QName(PackageNamespace(""), "LOG_DEBUG"), 1

При этом в debug_utils.pyc сделал _logLevel = 1 (dev).
Не работает. Как правильно вывести строку в лог?

Edited by VasyaPRO_2014

Share this post


Link to post

Short link
Share on other sites

При этом в debug_utils.pyc сделал _logLevel = 1 (dev).

А если так:

class LOG_LEVEL:
    DEV = 1
    ST = 1
    CT = 1
    SVR_RELEASE = 1
    RELEASE = 1
Edited by ShadowHunterRUS

Share this post


Link to post

Short link
Share on other sites

 

 

А если так:
Так не работает (лог аналогичен с логом полученным в чистом клиенте). У меня было так:
if CURRENT_REALM == 'DEV':
    _logLevel = LOG_LEVEL.DEV
elif CURRENT_REALM == 'ST':
    _logLevel = LOG_LEVEL.ST
elif CURRENT_REALM in ('CT', 'SB'):
    _logLevel = LOG_LEVEL.CT
elif IS_CLIENT:
    _logLevel = LOG_LEVEL.RELEASE
else:
    _logLevel = LOG_LEVEL.SVR_RELEASE
_logLevel = 1

При этом количество информации в python.log значительно возрастало в сравнении с чистым клиентом. Но строки из флеша в логе не было.

Share this post


Link to post

Short link
Share on other sites

Но строки из флеша

из какого именно флеша? Скрипты во многих флешках висят мертвым грузом.

Share this post


Link to post

Short link
Share on other sites

из какого именно флеша? Скрипты во многих флешках висят мертвым грузом.

battle.swf. А именно net.wg.gui.battle.views.vehicleMarkers класс VehicleMarker метод updateMarkerSettings

Share this post


Link to post

Short link
Share on other sites

ну там вроде флешка маркеров(battleVehicleMarkers.swf) уже должна правиться, а не battle.swf

Точно, спасибо. Только в лог всё равно ничего не выводит. Если вставляю код с шапки получаю это вместо маркеров:

post-32536-0-18100800-1471025017_thumb.jpg

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...