[RLS] Markierung neu gedroppter Items

02/14/2016 22:36 .T4Ump#46
Quote:
Originally Posted by kimameixede View Post
i check 4 times in last 3 hours and its every think right.

can you help me?
I didnt see effect xD g
02/14/2016 23:13 INF|Anon-X#47
Ich fand das schon auf Metin2.de richtig praktisch. Nett dass du den Code teilst :)

greetz

Anon-X
02/15/2016 12:48 iStark##48
Thanks, works.
02/15/2016 15:00 BizzyMontana9090#49
bei mir kommt kein effect bitte hilfe
02/15/2016 15:40 bastüh33#50
Quote:
Originally Posted by BizzyMontana9090 View Post
bei mir kommt kein effect bitte hilfe
wie soll man dir so helfen ?
02/15/2016 15:45 BizzyMontana9090#51
habe es soweit bloß es wird nur 1 slot makiert hmm

[Only registered and activated users can see links. Click Here To Register...]
02/16/2016 22:27 .Colossus.#52
Habs auch mal ausprobiert.
Kein Effekt wird angezeigt + keine syserr Fehler.
02/16/2016 22:40 BizzyMontana9090#53
ja habe ja nen effect aber nicht den den yiv hier reingestellt hat sondern sos chon
02/16/2016 23:06 Yiv#54
Ich werde das morgen mal in 'nen cleanen Source einbauen und Dateien zum Vergleich bereitstellen. Das System funktioniert bei richtigem Einbau einwandfrei.

Bitte beachtet im Anhang die Dateien! Diese müssen in bspw. das ETC Archiv gepackt werden (Dateipfad im virtuellen Dateisystem: d:/ymir work/ui/public/).

MfG
02/16/2016 23:23 BizzyMontana9090#55
boha vielen dank ps habe sash drinne kann es da zu fehlern kommen?
02/16/2016 23:46 .Colossus.#56
Quote:
Originally Posted by Yiv View Post
Ich werde das morgen mal in 'nen cleanen Source einbauen und Dateien zum Vergleich bereitstellen. Das System funktioniert bei richtigem Einbau einwandfrei.

Bitte beachtet im Anhang die Dateien! Diese müssen in bspw. das ETC Archiv gepackt werden (Dateipfad im virtuellen Dateisystem: d:/ymir work/ui/public/).

MfG
Freue mich drauf.
Dateipfad hat übrigens auch gepasst.
02/17/2016 16:08 DasSchwarzeT#57
Also wenn man es richtig einbaut funktioniert es wirklich einwandfrei ;)
02/17/2016 16:48 Yiv#58
Dateien, in denen das ganze nun umgesetzt wurde, zum Vergleich hinzugefügt.
Added comparable files with all changes.

[Only registered and activated users can see links. Click Here To Register...]

MfG
02/17/2016 17:20 xP3NG3Rx#59
Quote:
Originally Posted by oceanusPT View Post
0213 17:03:45301 :: Traceback (most recent call last):

0213 17:03:45301 :: File "game.py", line 1994, in BINARY_Highlight_Item

0213 17:03:45301 :: AttributeError
0213 17:03:45301 :: :
0213 17:03:45301 :: 'NoneType' object has no attribute 'Highligt_Item'
0213 17:03:45301 ::


why?
Because when you teleport, somewhere the GameWindow class is initialized again, and it overwrites the interface variable with None.

And never import interfaceModule at twice, or more. If you want to use methods from interfaceModule bind itself to the window where you want to use them.. There are many examples; inventory, dsinventory, chat etc (keyword: BindInterface)

So this code would be medicine for your problem:
Code:
	def BINARY_Highlight_Item(self, inven_type, inven_pos):
		if self.interface:
			self.interface.Highligt_Item(inven_type, inven_pos)
If that is not working, which is impossible, here is another way:
Code:
	def BINARY_Highlight_Item(self, inven_type, inven_pos):
		try:
			self.interface.Highligt_Item(inven_type, inven_pos)
		except AttributeError:
			pass
02/17/2016 23:50 .T4Ump#60
Quote:
Originally Posted by xP3NG3Rx View Post
Because when you teleport, somewhere the GameWindow class is initialized again, and it overwrites the interface variable with None.

And never import interfaceModule at twice, or more. If you want to use methods from interfaceModule bind itself to the window where you want to use them.. There are many examples; inventory, dsinventory, chat etc (keyword: BindInterface)

So this code would be medicine for your problem:
Code:
	def BINARY_Highlight_Item(self, inven_type, inven_pos):
		if self.interface:
			self.interface.Highligt_Item(inven_type, inven_pos)
If that is not working, which is impossible, here is another way:
Code:
	def BINARY_Highlight_Item(self, inven_type, inven_pos):
		try:
			self.interface.Highligt_Item(inven_type, inven_pos)
		except AttributeError:
			pass
Hi, you fixed my problem :) I didnt see effect. So i tried find def BINARY_Highlight_Item didnt found. Now i add this function and now all works thanks anyway :D