Jump to content

TysonDMG

Inactive Member
  • Posts

    35
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by TysonDMG

  1. GCC9 update

    ch1/db/auth/ch99 syserr empty

    when i select empire i get this

    0615 20:46:07676 :: Unknown packet header: 176, last: 253 32

        HEADER_DG_ACK_HORSE_NAME        = 176,
    tables.h

    #FIXED

  2. La 07.03.2019 la 23:13, Artefact a spus:

    First in CRenderTarget.h find void SelectModel(DWORD index);

    add 

    
    		void ChangeArmor(DWORD dwVnum);
    		void ChangeWeapon(DWORD dwVnum);
    		void ChangeHair(DWORD dwVnum);

    If you named the functions in crendertarget.cpp otherwise change it as you named them

    Second in UserInterface/CPythonRenderTargetModule.cpp

    find this { "SelectModel", renderTargetSelectModel, METH_VARARGS },

    add

    
    		{ "ChangeArmor", renderTargetChangeArmor, METH_VARARGS },
    		{ "ChangeWeapon", renderTargetChangeWeapon, METH_VARARGS },
    		{ "ChangeHair", renderTargetChangeHair, METH_VARARGS },

    And in crendertarget.cpp should look like this

    
    void CRenderTarget::ChangeArmor(DWORD vnum)
    {
    	if (!m_visible || !m_pModel)
    		return;
    	
    	m_pModel->SetArmor(vnum);
    	m_pModel->Refresh(CRaceMotionData::NAME_WAIT, true);
    }

    It works for me, tell me if it helped.

    ILp1hvf.png

    SYSERR: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 11209

  3. Chiar acum, LordZiege a spus:

    maybe because this is only a basic version not a "i put all things in your ass and you have nothing to do" version.

    0307 14:01:05395 :: 'module' object has no attribute 'SetArmor'
    line

            renderTarget.SetArmor(self.RENDER_TARGET_INDEX, 11499)
    can you help with this..?

  4. Hello i have 1 problem ..

    0807 00:37:15451 :: 
    whisper.py(line:141) Initialize
    ui.py(line:3082) GetChild

    WhisperManager.Initialize.BindObject - <type 'exceptions.KeyError'>:'ColorBoard'

    0807 00:37:15451 :: ============================================================================================================
    0807 00:37:15451 :: Abort!!!!

    i can not find anything about ColorBoard in rubinum root

     

  5. Acum 7 ore, xP3NG3Rx a spus:

    No, that is the multiline version of the bigboard for ox-quiz, he is looking for this:

      Ascunde conținuturi
    
    
    if app.ENABLE_12ZI:
    	class MissionBoard(ui.Bar):
    		FONT_HEIGHT	= 15
    		LINE_HEIGHT	= FONT_HEIGHT + 5
    		STEP_HEIGHT	= LINE_HEIGHT + 5
    		LONG_TEXT_START_X	= 300
    		SCREEN_WIDTH	= wndMgr.GetScreenWidth()
    		
    		
    		def __init__(self):
    			ui.Bar.__init__(self)
    
    			self.AddFlag("not_pick")
    			self.missionText = None
    			self.missionFullText = None
    			self.curPos = 0
    			self.dstPos = -5
    			self.nextScrollTime = 0
    			self.flowMode = False
    			self.ScrollStartTime = 0.0
    
    			self.SetPosition(0, 100)
    			self.SetSize(self.SCREEN_WIDTH, 35)
    			self.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.5))
    			self.SetWindowHorizontalAlignCenter()
    
    			self.__CreateTextBar()
    			
    		def __del__(self):
    			ui.Bar.__del__(self)
    
    		def __CreateTextBar(self):
    
    			x, y = self.GetGlobalPosition()
    
    			self.textBar = BigTextBar(self.SCREEN_WIDTH*2, 300, self.FONT_HEIGHT)
    			self.textBar.SetParent(self)
    			self.textBar.SetPosition(6, 8)
    			self.textBar.SetTextColor(242, 231, 193)
    			self.textBar.SetClipRect(0, y, self.SCREEN_WIDTH, y+8+self.STEP_HEIGHT)
    			self.textBar.Show()
    
    		def CleanMission(self):
    			self.missionText = None
    			self.missionFullText = None
    			self.textBar.ClearBar()
    			self.Hide()
    
    		def __RefreshBoard(self):
    
    			self.textBar.ClearBar()
    
    			if self.missionFullText:
    				(text_width, text_height) = self.textBar.GetTextExtent(self.missionFullText)
    				
    				if text_width>self.SCREEN_WIDTH:
    					self.textBar.TextOut(0, (self.STEP_HEIGHT-8-text_height)/2, self.missionFullText)
    					self.flowMode = True
    				else:
    					self.textBar.TextOut((wndMgr.GetScreenWidth()-text_width)/2, (self.STEP_HEIGHT-8-text_height)/2, self.missionFullText)
    					self.flowMode = False
    
    		def SetMission(self, text):
    			self.__AppendText(text)
    			self.__RefreshBoard()
    
    			if self.flowMode:
    				self.dstPos = -text_width
    				self.curPos = self.LONG_TEXT_START_X
    				self.textBar.SetPosition(3 + self.curPos, 8)
    			else:
    				self.dstPos = 0
    				self.curPos = self.STEP_HEIGHT
    				self.textBar.SetPosition(3, 8 + self.curPos)
    			
    			if not self.IsShow():
    				self.Show()
    				
    		def SetSubMission(self, text):
    			self.missionFullText = self.missionText + text
    			
    			preflowMode = self.flowMode
    			
    			self.__RefreshBoard()
    			
    			if preflowMode != self.flowMode:
    				if self.flowMode:
    					self.dstPos = -text_width
    					self.curPos = self.LONG_TEXT_START_X
    					self.textBar.SetPosition(3 + self.curPos, 8)
    				else:
    					self.dstPos = 0
    					self.curPos = self.STEP_HEIGHT
    					self.textBar.SetPosition(3, 8 + self.curPos)
    
    		def __AppendText(self, text):
    			if text == "":
    				self.CleanMission()
    				return
    				
    			self.missionText = text
    			self.missionFullText = text
    			
    		def OnUpdate(self):
    			if self.missionFullText == None:
    				self.Hide()
    				return
    
    			if self.dstPos < self.curPos:
    				self.curPos -= 1
    				if self.flowMode:
    					self.textBar.SetPosition(3 + self.curPos, 8)
    				else:
    					self.textBar.SetPosition(3, 8 + self.curPos)
    			else:
    				if self.flowMode:
    					self.curPos = self.SCREEN_WIDTH

    This is the part of the game.py:

    
    
    	if app.ENABLE_12ZI:
    		def BINARY_SetMissionMessage(self, message):
    			self.interface.missionBoard.SetMission(message)
    			
    		def BINARY_SetSubMissionMessage(self, message):
    			self.interface.missionBoard.SetSubMission(message)
    			
    		def BINARY_CleanMissionMessage(self):
    			self.interface.missionBoard.CleanMission()

    And some declarations in the interfaceModule.py like the rest of the tipboards.
    The rest is c++.

     

    XaDtJ5H.jpg

    i don't need for mission's

    exemple: /n Hello

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.