Helkar 385 #279025 Posted June 21, 2015 XVMInstalled is true and working print commands are T1 & T2 i'm sorry but i don't see T2 printed. moreover, check missing underscore: XVMInstalled = True except: XVMInstalled = False if XVM_Installed: Quote Share this post Link to post Short link Share on other sites
OlliN 13 #279028 Posted June 21, 2015 moreover, check missing underscore: Just a copy & paste error while writing the post, it's correct in the script. Quote Share this post Link to post Short link Share on other sites
Helkar 385 #279030 Posted June 21, 2015 with corrected underscore it works as it should: not showing the flag 1 Quote Share this post Link to post Short link Share on other sites
OlliN 13 #279068 Posted June 21, 2015 Yep it does. Did compile an older script first. Thx again. Quote Share this post Link to post Short link Share on other sites
OlliN 13 #290202 Posted September 4, 2015 Too bad, the flag is back again. Is it because of the XVM mod loading changes of the init file? https://bitbucket.org/XVM/xvm/commits/72e26ab79e44317be8f39dad871c9dcc6beab2a4#chg-src/xpm/xvm_hangar/__init__.py Any ideas are welcome. Quote Share this post Link to post Short link Share on other sites
Helkar 385 #290216 Posted September 4, 2015 Too bad, the flag is back again. Is it because of the XVM mod loading changes of the init file? https://bitbucket.org/XVM/xvm/commits/72e26ab79e44317be8f39dad871c9dcc6beab2a4#chg-src/xpm/xvm_hangar/__init__.py Any ideas are welcome. i will add an option to choose wherever to display flag/skills or not. 1 Quote Share this post Link to post Short link Share on other sites
OlliN 13 #290222 Posted September 4, 2015 Brilliant. Quote Share this post Link to post Short link Share on other sites
OlliN 13 #373426 Posted January 8, 2017 Can't get the hook working, am I doing something wrong? import BigWorld from gui.scaleform.daapi.view.battle.shared.postmortem_panel import PostmortemPanel from gui.shared.gui_items import Vehicle from helpers import int2roman _VEHICLE_SMALL_ICON_RES_PATH = '../maps/icons/vehicle/small/{0}.png' def new_showOwnDeathInfo(self): print 'Test' if self.__deathAlreadySet: self.as_showDeadReasonS() else: deathInfo = self.getDeathInfo() if deathInfo: reason = self.__makeReasonInfo(deathInfo) killerVehID = deathInfo['killerVehicle'] battleCtx = self.sessionProvider.getCtx() if killerVehID and not battleCtx.isCurrentPlayer(killerVehID) and battleCtx.getArenaDP().getVehicleInfo(killerVehID).vehicleType.compactDescr: showVehicle = True vTypeInfoVO = battleCtx.getArenaDP().getVehicleInfo(killerVehID).vehicleType vehLvl = int2roman(vTypeInfoVO.level) vehImg = _VEHICLE_SMALL_ICON_RES_PATH.format(vTypeInfoVO.iconName) vehClass = Vehicle.getTypeBigIconPath(vTypeInfoVO.classTag, False) vehName = vTypeInfoVO.shortNameWithPrefix else: showVehicle = False vehLvl = vehImg = vehClass = vehName = None self.as_setDeadReasonInfoS(reason, showVehicle, None, vehImg, None, vehName) self.__deathAlreadySet = True else: self.as_setDeadReasonInfoS('', False, None, None, None, None) return PostmortemPanel._PostmortemPanel__showOwnDeathInfo = new_showOwnDeathInfo Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #373695 Posted January 9, 2017 (edited) Can't get the hook working, am I doing something wrong? from gui.Scaleform.daapi.view.meta.PostmortemPanelMeta import PostmortemPanelMeta def new_as_setDeadReasonInfoS(self, reason, showVehicle, vehicleLevel, vehicleImg, vehicleType, vehicleName): return self.flashObject.as_setDeadReasonInfo(reason, showVehicle, None, vehicleImg, None, vehicleName) if self._isDAAPIInited() else None PostmortemPanelMeta.as_setDeadReasonInfoS = new_as_setDeadReasonInfoS Edited January 9, 2017 by Ekspoint 1 Quote Share this post Link to post Short link Share on other sites
aks1983 19 #373805 Posted January 10, 2017 (edited) Can't get the hook working, am I doing something wrong? I have no idea without datails - how did you load your hook and what is inside python.log? Edited January 10, 2017 by aks1983 Quote Share this post Link to post Short link Share on other sites
OlliN 13 #374892 Posted January 14, 2017 from gui.Scaleform.daapi.view.meta.PostmortemPanelMeta import PostmortemPanelMeta def new_as_setDeadReasonInfoS(self, reason, showVehicle, vehicleLevel, vehicleImg, vehicleType, vehicleName): return self.flashObject.as_setDeadReasonInfo(reason, showVehicle, None, vehicleImg, None, vehicleName) if self._isDAAPIInited() else None PostmortemPanelMeta.as_setDeadReasonInfoS = new_as_setDeadReasonInfoS Thanks a lot. Quote Share this post Link to post Short link Share on other sites