|
You last visited: Today at 18:57
Advertisement
Python Problem Tooltip
Discussion on Python Problem Tooltip within the Metin2 Private Server forum part of the Metin2 category.
07/06/2016, 20:12
|
#1
|
elite*gold: 0
Join Date: Dec 2012
Posts: 819
Received Thanks: 220
|
Python Problem Tooltip
Hallo Liebe Community,
Ich hab sowas ähnliches wie ein Wiki wenn man über das Item mit Maus drüber fährt wurde dann ja die Bonis und so des Items angezeigt aber seid dem ich das Schulterbandsystem drin hab kommt mir der Fehler:
Code:
0706 20:09:38364 :: IndexError
0706 20:09:38364 :: :
0706 20:09:38364 :: list index out of range
0706 20:09:38364 ::
0706 20:09:38528 :: Traceback (most recent call last):
0706 20:09:38528 :: File "ui.py", line 853, in OnMouseOverIn
0706 20:09:38528 :: File "ui.py", line 87, in __call__
0706 20:09:38528 :: File "ui.py", line 69, in __call__
0706 20:09:38529 :: File "wiki.py", line 407, in ShowToolTips
0706 20:09:38529 :: File "uiToolTip.py", line 874, in AddRefineItemData
0706 20:09:38529 :: File "uiToolTip.py", line 943, in AddItemData
0706 20:09:38529 :: File "uiToolTip.py", line 1337, in __AdjustMaxWidth
0706 20:09:38530 :: File "uiToolTip.py", line 1349, in __AdjustAttrMaxWidth
0706 20:09:38530 :: IndexError
0706 20:09:38530 :: :
0706 20:09:38530 :: list index out of range
0706 20:09:38530 ::
Davor ging es. Hab schon vieles versucht, hab aber die Vermutung das der Fehler aufgetaucht ist da im Source dieser eintrag geändert wurde ITEM_ATTRIBUTE_MAX_NUM = 15,
und hier 14 nur stehen hab schon versucht das da zu ändern aber ohne erfolg
Code:
self.toolTip.AddRefineItemData(int(tool[0]), [int(tool[15]), int(tool[16]), int(tool[17])], [(int(tool[1]), int(tool[2])), (int(tool[3]), int(tool[4])), (int(tool[5]), int(tool[6])), (int(tool[7]), int(tool[8])), (int(tool[9]), int(tool[10])), (int(tool[11]), int(tool[12])), (int(tool[13]), int(tool[14])), 0]) # Item ID
|
|
|
07/06/2016, 21:41
|
#2
|
elite*gold: 238
Join Date: Sep 2009
Posts: 2,327
Received Thanks: 1,164
|
Demnach Stört er sich an ein paar Werten hier:
self.toolTip.AddRefineItemData(int(tool[0]), [int(tool[15]), int(tool[16]), int(tool[17])], [(int(tool[1]), int(tool[2])), (int(tool[3]), int(tool[4])), (int(tool[5]), int(tool[6])), (int(tool[7]), int(tool[8])), (int(tool[9]), int(tool[10])), (int(tool[11]), int(tool[12])), (int(tool[13]), int(tool[14])), 0]) # Item ID
dein Problem ist ja list index out of range, was bedeutet das dein array/deine Liste nicht die größe hat mit der ein Wert aufgerufen wird.
Du kannst natürlich probieren niedrigere Werte zu nehmen oder aber mittels eines Ifs zu große Werte erst einmal abfangen.
|
|
|
07/06/2016, 22:19
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 819
Received Thanks: 220
|
Quote:
Originally Posted by mrapc
Demnach Stört er sich an ein paar Werten hier:
self.toolTip.AddRefineItemData(int(tool[0]), [int(tool[15]), int(tool[16]), int(tool[17])], [(int(tool[1]), int(tool[2])), (int(tool[3]), int(tool[4])), (int(tool[5]), int(tool[6])), (int(tool[7]), int(tool[8])), (int(tool[9]), int(tool[10])), (int(tool[11]), int(tool[12])), (int(tool[13]), int(tool[14])), 0]) # Item ID
dein Problem ist ja list index out of range, was bedeutet das dein array/deine Liste nicht die größe hat mit der ein Wert aufgerufen wird.
Du kannst natürlich probieren niedrigere Werte zu nehmen oder aber mittels eines Ifs zu große Werte erst einmal abfangen.
|
Hab alle werte auf 1 gestellt gleicher Fehler. Aber wie gesagt der Fehler ist erst aufgetaucht seid dem das Schulterbandsystem drine ist.
|
|
|
07/07/2016, 16:17
|
#4
|
elite*gold: 15
Join Date: Mar 2010
Posts: 4,269
Received Thanks: 2,499
|
und wie kommt deine tool Variable zustande? Die ist der Fehler. Mit diesem Zeilen Schnippsel kann hier niemand was anfangen.
|
|
|
|
Similar Threads
|
[Python]Item Tooltip auf einen Button
03/09/2016 - Metin2 Private Server - 4 Replies
Hallo,
Ich möchte in Python einen Button machen und als Tooltip soll wie bei einem richtigen Item die Beschreibung kommen. Allerdings will ich dort den Text noch etwas verändern.
Wäre nett wenn mir jemand helfen könnte^^
|
[Python]Frage Button Tooltip
09/24/2015 - Metin2 Private Server - 2 Replies
Hey leutzz,
Ich hab mal ne Frage,
Von dem Abschiedsrelease (Killroy.) hab ich mir das Sideboard gezogen und es eingefügt. Ich würd gern ein Button Tooltip rein haben, funktioniert jedoch nich so ganz. Ich hab die python datei von ihm schon ein wenig abgeändert aber es will nicht rein gehen. Im syserr steht nix diesbezüglich.
Hier meine .py datei:
import ui
import dbg
|
jQuery UI Tooltip Problem
10/01/2013 - Web Development - 8 Replies
So ich habe eine Script-Design Problem und habe zu wenig erfahrung in JS ums zu lösen.
Also ich habe einen Ajax Chat auf meiner Seite und will beim Hover über den User Informationen in einem Tooltip anzeigen, das ganze über den jQuery UI Tooltip. Das zu habe ein ein kleines System geschrieben was die informationen über jQuery lädt wenn diese noch nicht vorhanden sind und dann anschließend bereithält, das funktioniert auch soweit.
Nun habe ich aber das Problem das der Code den ich mir dazu...
|
Python Problem.
10/29/2011 - Metin2 Private Server - 4 Replies
Hey Leute. Ich wollte gerade Python auf Freebsd 8.2 installieren nach dem Tut.
http://www.elitepvpers.com/forum/metin2-pserver-g uides-strategies/937110-how2-python-f-r-alles.html
Nach make install clean kommt ein Fenster ich gehe auf Close doch nun kommt.
Horny# cd /usr/ports/lang/python
Horny# make install clean
===> Installing for python-2.7,2
===> python-2.7,2 depends on file: /usr/local/bin/python2.7 - not found
|
ToolTip problem
04/02/2010 - AutoIt - 4 Replies
Hallo,
Ja habe ein Problem bei AutoIT, hier mal ein ausschnitt des Codes:
Man kann erkennen das er den Tooltip starten soll, wenn der Prozess nicht existiert und ihn beenden soll, wenn der Prozess existiert.
Mein Problem ist aber, dass er ihn einfach nicht beendet, er bleibt einfach da... hab schon verschiedenste zusammenstellungen probiert aber nichts hat funktioniert <.< Weis einer weiter?^^ (Insgesamt funzt alles über GUI)
|
All times are GMT +2. The time now is 18:57.
|
|