Jump to content

TMP4

Contributor
  • Posts

    1112
  • Joined

  • Last visited

  • Days Won

    20
  • Feedback

    100%

Posts posted by TMP4

  1.   

    16 minutes ago, WeedHex said:

    brain.exe

     

    @WeedHex Sorry but now i gonna be honest with you! Your're so dumb when understanding the problem.

    The game want to load guild npcs and objects to every core. But that is not needed, map1 (index 41) is only at core 1.

    That's why it's cannot find the sectree at core 2, because it only exists in core1.

     

    I can't exlain you more :( There's no problem with the sectrees or server_attrs. The syserr only appears in core 2.

     

    @ElRenardo thanks i gonna test it soon!

    Working, thanks!

    • Love 2
  2. More inform: I just removed the sold guild land and the syserr disappeard - as expected.

     

    I was curious how old this issue is and i had time, so i picked a very old serverfile "1675 daroo" (year 2010?) to check. 

    The syserr came to the second core as soon as i bought a guild land and placed some object.

     

    Edit: To be clear, you had to place some object or guild npc to produce that syserr.

  3. Version of Files : 40k Source (clean)

    Bugfix in this message: Here

     

     

    Hi,

     

    There is an old error what i want to solve.

     

    In the second/third core of channels, i always get a syserr like this:

    SYSERR: Apr 29 15:43:59.406352 :: Show: cannot find sectree by 983887x271709 mapindex 41
    SYSERR: Apr 29 15:43:59.406359 :: Show: cannot find sectree by 984077x271700 mapindex 41
    SYSERR: Apr 29 15:43:59.406365 :: Show: cannot find sectree by 984242x271714 mapindex 41
    SYSERR: Apr 29 15:43:59.406377 :: Show: cannot find sectree by 984415x271715 mapindex 41
    SYSERR: Apr 29 15:43:59.406383 :: Show: cannot find sectree by 984595x271710 mapindex 41
    SYSERR: Apr 29 15:43:59.406390 :: Show: cannot find sectree by 984766x271716 mapindex 41
    SYSERR: Apr 29 15:43:59.406396 :: Show: cannot find sectree by 984912x271714 mapindex 41
    SYSERR: Apr 29 15:43:59.406403 :: Show: cannot find sectree by 985078x271716 mapindex 41
    SYSERR: Apr 29 15:43:59.406409 :: Show: cannot find sectree by 983754x272599 mapindex 41
    SYSERR: Apr 29 15:43:59.406416 :: Show: cannot find sectree by 984052x272602 mapindex 41
    SYSERR: Apr 29 15:43:59.406423 :: Show: cannot find sectree by 984617x274106 mapindex 41
    SYSERR: Apr 29 15:43:59.406441 :: RegenNPC: Cannot create guild npc
    SYSERR: Apr 29 15:43:59.406456 :: Show: cannot find sectree by 983951x274065 mapindex 41
    SYSERR: Apr 29 15:43:59.406470 :: RegenNPC: Cannot create guild npc


    I'm 99.99% sure it is because of the guild land objects and npcs. I only have a guild land sold in blue map1 (==41, that's why it only say mapindex 41 in syserr)

    I think you guessed what is the problem here, the mapindex 41 is in the first core, the second core want to load that index and create guild npc + objects there but the index is not there, it is only available in the first core.

     

    I think most people say "just ignore this syserr",  but i don't want to.

     

    Any idea to solve this problem? I dont want to copy mapindex 41 (blue)  1 (red)  21 (yellow) to the second cores since then there can be seperated map1s for cores and that can cause troubles for players.  Like 2 people in the same map1 but they may not see each other because one is in first core's map1, other is in second core's map1.

     

    Before you start typeing "I don't have this problem" please read the topic. You must have at least one guild land sold!

    Edit: To be clear, you had to place some object or guild npc to produce that syserr.

     

    Thanks, Sincerly,
    TMP4

    • Metin2 Dev 6
    • Good 2
    • Love 5
  4. Hi,

     

    There was a map in the alpha version of Metin2 way back in the time. 

    I think that map did not even made it to the Beta test for some reason.

    Just vanished.

     

    https://www.gamemeca.com/view.php?gid=120980

     

    vill4.jpg

     

    I know i could do it with WE but it wouldn't be the same and would take some days. I will if i can not find, but firstly, i want to find it.

     

    @Shogun Do you have any info related to this map? I know you posted the Beta client, maybe you know anything about this map... :D

    • Love 1
  5. The defensewave_pawn monster's animations does not work for some reason. They're doing damage but they only play the wait animation.

    I just can't figure out what is wrong.

     

    I took the files from: 

    (Or reup just the defensewave_pawn: 

    This is the hidden content, please
     )

     

    Proto:

    3950    ë‚�ę°€    PAWN    MONSTER    MELEE    97    0    AGGR,BERSERK    0    ICE,ATT_ICE    TERROR    0    defensewave_pawn    0    95    64    63    31    168    252    19407    10    5    0    0    0    141    100    100    100    2000    100    0    0    0    0    0    0    3    15    15    15    10    15    15    15    15    0    0    0    0    2.000000    0    20    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    3951    ë‚�ę°€    PAWN    MONSTER    MELEE    97    0    AGGR,BERSERK    0    ICE,ATT_ICE    TERROR    0    defensewave_pawn    0    95    64    63    31    168    252    20407    10    5    0    0    0    141    100    100    100    2000    100    0    0    0    0    0    0    3    15    20    20    15    20    20    20    15    0    0    0    0    2.000000    0    20    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
    3952    ë‚�ę°€    PAWN    MONSTER    MELEE    97    0    AGGR,BERSERK    0    ICE,ATT_ICE    TERROR    0    defensewave_pawn    0    95    64    63    31    168    252    21407    10    5    0    0    0    141    100    100    100    2000    100    0    0    0    0    0    0    3    15    25    25    15    25    25    25    15    0    0    0    0    2.000000    0    20    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0

     

    There's no syserr. Any idea?

  6. Can you tell me if your dedicated VM have internal ip (192.168.x.x or 10.x.x.x)?

    It should not have but everything can happen.

    I'm not a BSD expert but maybe type "ifconfig" and check there the adresses.

     

    If so, try to put BIND_IP: 1.2.3.4 (your vps PUBLIC IP) to your channel's cores, and auth CONFIG file.

     

    BTW if your vps have internal ip then it's not really a vps, bad hosting :D

     

    Edit: I just realised your dedicated VM is a home root and not vps, so it have internal ip. Hope the bind_ip will work and solve your problem, but honestly i never tried this way in a home root.

    • Love 1
  7. There were some sh*tty "Public IP Fix" releases what made home-root server works without the "MC Starter" but ruined it in a normal environment (=vps).

    Just as you wrote.

     

    Maybe that's the case? Did you get a changelog with your source to check?

     

    Are you able to try your server in home-root (virtualbox) to check if it's works there? if it's works there, that's the case.

    • Love 1
  8. Ah it doesn't contains the gauge's tooltip what i looking for.

     

    Anyway can you or anyone look into this code?

    class Gauge(Window):
    
    	SLOT_WIDTH = 16
    	SLOT_HEIGHT = 7
    
    	GAUGE_TEMPORARY_PLACE = 12
    	GAUGE_WIDTH = 16
    
    	def __init__(self):
    		Window.__init__(self)
    		self.width = 0
    		
    		#HIDRA
    		self.showtooltipevent = None
    		self.showtooltiparg = None
    		self.hidetooltipevent = None
    		self.hidetooltiparg = None
    		self.ToolTipText = None
    		#HIDRA
    		
    	def __del__(self):
    		Window.__del__(self)
    		
    		#HIDRA
    		self.showtooltipevent = None
    		self.showtooltiparg = None
    		self.hidetooltipevent = None
    		self.hidetooltiparg = None
    		#HIDRA
    
    	#HIDRA START
    	def SetShowToolTipEvent(self, func, *args):
    		self.showtooltipevent = func
    		self.showtooltiparg = args
    
    	def SetHideToolTipEvent(self, func, *args):
    		self.hidetooltipevent = func
    		self.hidetooltiparg = args
    
    	def ShowToolTip(self):
    		if self.ToolTipText:
    			self.ToolTipText.Show()
    
    	def HideToolTip(self):
    		if self.ToolTipText:
    			self.ToolTipText.Hide()
    
    	def SetToolTipText(self, text, x=0, y = -19):
    		self.SetFormToolTipText("TEXT", text, x, y)
    
    	def SetFormToolTipText(self, type, text, x, y):
    		if not self.ToolTipText: 
    			toolTip=createToolTipWindowDict[type]()
    			toolTip.SetParent(self)
    			toolTip.SetSize(0, 0)
    			toolTip.SetHorizontalAlignCenter()
    			toolTip.SetOutline()
    			toolTip.Hide()
    			toolTip.SetPosition(x + self.GetWidth()/2, y)
    			self.ToolTipText=toolTip
    
    		self.ToolTipText.SetText(text)
    	#HIDRA END
    
    	def MakeGauge(self, width, color):
    
    		self.width = max(48, width)
    
    		imgSlotLeft = ImageBox()
    		imgSlotLeft.SetParent(self)
    		imgSlotLeft.LoadImage("d:/ymir work/ui/pattern/gauge_slot_left.tga")
    		imgSlotLeft.Show()
    
    		imgSlotRight = ImageBox()
    		imgSlotRight.SetParent(self)
    		imgSlotRight.LoadImage("d:/ymir work/ui/pattern/gauge_slot_right.tga")
    		imgSlotRight.Show()
    		imgSlotRight.SetPosition(width - self.SLOT_WIDTH, 0)
    
    		imgSlotCenter = ExpandedImageBox()
    		imgSlotCenter.SetParent(self)
    		imgSlotCenter.LoadImage("d:/ymir work/ui/pattern/gauge_slot_center.tga")
    		imgSlotCenter.Show()
    		imgSlotCenter.SetRenderingRect(0.0, 0.0, float((width - self.SLOT_WIDTH*2) - self.SLOT_WIDTH) / self.SLOT_WIDTH, 0.0)
    		imgSlotCenter.SetPosition(self.SLOT_WIDTH, 0)
    
    		imgGauge = ExpandedImageBox()
    		imgGauge.SetParent(self)
    		imgGauge.LoadImage("d:/ymir work/ui/pattern/gauge_" + color + ".tga")
    		imgGauge.Show()
    		imgGauge.SetRenderingRect(0.0, 0.0, 0.0, 0.0)
    		imgGauge.SetPosition(self.GAUGE_TEMPORARY_PLACE, 0)
    
    		imgSlotLeft.AddFlag("attach")
    		imgSlotCenter.AddFlag("attach")
    		imgSlotRight.AddFlag("attach")
    
    		self.imgLeft = imgSlotLeft
    		self.imgCenter = imgSlotCenter
    		self.imgRight = imgSlotRight
    		self.imgGauge = imgGauge
    
    		self.SetSize(width, self.SLOT_HEIGHT)
    
    	def SetPercentage(self, curValue, maxValue):
    
    		# PERCENTAGE_MAX_VALUE_ZERO_DIVISION_ERROR
    		if maxValue > 0.0:
    			percentage = min(1.0, float(curValue)/float(maxValue))
    		else:
    			percentage = 0.0
    		# END_OF_PERCENTAGE_MAX_VALUE_ZERO_DIVISION_ERROR
    
    		gaugeSize = -1.0 + float(self.width - self.GAUGE_TEMPORARY_PLACE*2) * percentage / self.GAUGE_WIDTH
    		self.imgGauge.SetRenderingRect(0.0, 0.0, gaugeSize, 0.0)

    uiminimap.py __LoadWindow

                    self.MastHp.OnMouseOverIn = ui.__mem_func__(self.MastHp.ShowToolTip)
                    self.MastHp.OnMouseOverOut = ui.__mem_func__(self.MastHp.HideToolTip)
                    self.MastHp.SetShowToolTipEvent(self.MastHp.OnMouseOverIn)
                    self.MastHp.SetHideToolTipEvent(self.MastHp.OnMouseOverOut)

     

    uiminimap.py end: 

            def SetMastHP(self, hp):
                self.MastHp.SetPercentage(hp, 500000000)
                self.MastHp.SetToolTipText("HP:  %d /500000000" % hp)
    
            def SetMastWindow(self, i):
                if i:
                    self.MastWindow.Show()
                else:
                    self.MastWindow.Hide()

    uiscript:

    		{
    			"name" : "MastWindow",
    			"type" : "thinboard",
    
    			"x" : 35-17,
    			"y" : 160+22,
    
    			"width" : 105,
    			"height" : 37,
    			"children" :
    			(
    				{
    					"name" : "MastText",
    					"type" : "text",
    
    					"text_horizontal_align" : "center",
    
    					"x" : 35,
    					"y" : 8,
    
    					"text" : uiScriptLocale.DEFANCE_WAWE_MAST_TEXT,
    				},
    				{
    					"name" : "MastHp",
    					"type" : "gauge",
    
    					"x" : 10,
    					"y" : 23,
    
    					"width" : 85,
    					"color" : "red",
    					
    					"tooltip_text" : uiScriptLocale.DEFANCE_WAWE_GAUGE_TOOLTIP,
    				},
    			),
    		},

    The guage itself works and updating okey (self.MastHp.SetPercentage) but the tooltip does not show.

    Me and the python is very far away so maybe it's obvious why it's bad but i don't have a single clue. 

  9. Hi,

     

    When a dungeon is created, it get a map index * 10000 +x.

    i mean someone play a dungeon and get this index: 3520000, the second player/group get 3520001 and so on until 3529999

    The used indexes never get reused until a restart.

     

    My question is the dungeons never will be destoryed and stay in the memory causing overloading in big servers?

    Or they get cleaned just the indexes not used again until a fresh start? (If they get cleaned, when? When everyone logged out?)

×
×
  • 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.