NegaTiV26r Posted July 4, 2014 Share Posted July 4, 2014 Добрый день! Подскажите как создать сообщение в центре уведомлений. Т.е. что бы при входе например был автор мода, ну или другая инфа. Какие файлы отвечают за данную фичу. @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 (edited) http://www.koreanrandom.com/forum/topic/16986-python/?do=findComment&comment=197456 Делается на питоне (Python). Например, этим. Называешь скрипт каким-то именем и ложишь в res_mods>0.9.1>scripts>client>mods. Edited July 4, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 http://www.koreanrandom.com/forum/topic/16986-python/?do=findComment&comment=197456 Делается на питоне (Python). Например, этим. Называешь скрипт каким-то именем и ложишь в res_mods>0.9.1>scripts>client>mods. Спасибо за помощь :) для примера вставил код: import BigWorld from gui import SystemMessages from Account import Account link = Account.onBecomePlayer def _First(self): link(self) msg = '<font color="#cc9933"><b>Hello</b></font>' type = SystemMessages.SM_TYPE.Information SystemMessages.pushMessage(msg, type) Account.onBecomePlayer = link Account.onBecomePlayer = _First скопировал в res_mods>0.9.1>scripts>client>mods, но при входе нет сообщения. В чём проблема? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 (edited) В чём проблема? С каким расширением файл ты закинул? (*.py, *.pyc)? Edited July 4, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 (edited) С каким расширением файл ты закинул? (*.py, *.pyc)? *.pyc Если не сложно скинь любой пример полного кода. попробую. Edited July 4, 2014 by NegaTiV26r @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 (edited) type = SystemMessages.SM_TYPE.Information Так-то оно выведет, но во всплывающих не отобразится, а сразу в системном канале будет. Поменяй на: type = SystemMessages.SM_TYPE.Warning Если не сложно скинь любой пример полного кода. попробую. Исходник и скомпиленный скрипты: Desktop.rar Edited July 4, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 взял исходник, сохранил всё как есть с разрешение *.рус в папку res_mods>0.9.1>scripts>client>mods, но всё равно при входе ни чего не выдаёт, так же в центре уведомлений нет нет :( какой то замкнутый круг :( @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 (edited) @NegaTiV26r, в папке res_mods>0.9.1>scripts>client должен быть файл CameraNode.pyc, а в res_mods>0.9.1>scripts>client>mods - init.pyc. Есть такие? Edited July 4, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 @NegaTiV26r, в папке res_mods>0.9.1>scripts>mods должен быть файл CameraNode.pyc, а в res_mods>0.9.1>scripts>mods>client - init.pyc. Есть такие? да, есть. сообщение что ясен красен и оленеметр вылазиют @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 ясен красен Он может мешать. @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 Он может мешать. Ок. Сейчас удалю его и попробую @ Quote Link to comment Short link Share on other sites More sharing options...
DrWebber Posted July 4, 2014 Share Posted July 4, 2014 (edited) Он может мешать. Это вряд ли. Ок. Сейчас удалю его и попробую Скинь свой pyc файл. Edited July 4, 2014 by DrWebber @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 4, 2014 Share Posted July 4, 2014 Скинь свой pyc файл. Смотри выше, я скидывал ему исходник, который у него не сработал (у меня - норм). @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 4, 2014 Author Share Posted July 4, 2014 тот самый файл и не работает. да и с примеров тем тоже :( @ Quote Link to comment Short link Share on other sites More sharing options...
DrWebber Posted July 4, 2014 Share Posted July 4, 2014 Тогда кидай python.log @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 5, 2014 Author Share Posted July 5, 2014 [PATHS]Python=C:\python34.dllConnectWOT=1SearchWOT=0WOT=C:\Games\World_of_Tanks\[TERMINAL]FontName=Courier NewFontSize=10FontBold=0FontItalic=0FontUnderline=0IndentWidth=4ShowGutter=1MarkModifiedLines=1BracketsHighLighting=1RightEdgePosition=85[GENERAL]InitScript=Z2l5a25lZ2EyNnI=LoadFullScreen=0DefaultEncoding=0[AUTOCOMPLETION]ListWidth=400LinesInWindow=12[RUN]SetExecuteFile=0ExecuteFile=ExecuteFileHistory=RestartConnection=1SetParameters=0Parameters=ParametersHistory=SetName=0Name=NameHistory=[EXPRESS]ClearAfterExec=1[COMPILE]ApplyProcessing=1DelPyFilesAfterCompile=0[DECOMPILE]Decompiler=3FileExtension=.pyc_decShowOutFolderSelectionDialog=0ShowDecompilerSelectionDialog=1[MINIMIZE]RemoveDocStringsAndComments=1RemoveEmptyLines=1RemoveSpaces=1MinimizeIndents=1[PACKING]UseMarshal=0[OBFUSCATION]Obfuscation=0RenameVarAndObj=0HideStandartNames=0InsertBytecodeLoader=0[PROTECTION]Protection=0 @ Quote Link to comment Short link Share on other sites More sharing options...
DrWebber Posted July 5, 2014 Share Posted July 5, 2014 И что это? Ты можешь прикрепить сюда файл python.log из папки "C:\Games\World_of_Tanks\". Python=C:\python34.dll В игре Python 2.7. @ Quote Link to comment Short link Share on other sites More sharing options...
NegaTiV26r Posted July 5, 2014 Author Share Posted July 5, 2014 И что это? Ты можешь прикрепить сюда файл python.log из папки "C:\Games\World_of_Tanks\". В игре Python 2.7. Когда подключаю 2.7 в питоне ошибка: >>> Python connected: internal error, connection aborted! @ Quote Link to comment Short link Share on other sites More sharing options...
DrWebber Posted July 5, 2014 Share Posted July 5, 2014 (edited) Если пытаешься скомпилировать через PjOrion, то лучше разберись сначала как это делается без него. Почитай эту темку. Edited July 5, 2014 by DrWebber @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted July 5, 2014 Share Posted July 5, 2014 @NegaTiV26r, в архиве тут я кидал исходник и уже готовый скомпиленный скрипт. То, что ты пытался компилировать исходник (*.ру) оттуда это я уже понял. А пытался-ли ты использовать уже готовый (*.рус) ? @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.