Jump to content
×
×
  • Create New...
  • 0

Problème apres implantation de switchbot


Punisher
 Share

Question

Bonjour /bonsoir 

Client 2014

serveur dédié

Voilà mon problème après avoir implanter switchbot j'ai  eu erreur il avais pas de fichier uiteleport alors j'en est pris un d'un autre sp ... et il a bien marcher mais avec sa il veut plus m'ouvrir les pnj (multi_shop) et anneau de teleportation bizar non ? je vous laisse le fichier uiteleport.py 

import wndMgr,ui,grp,event

class TeleportWindow(ui.Window):

def __init__(self):
	ui.Window.__init__(self,"TOP_MOST")
	self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
	self.SetPosition(0,0)
	self.Hide()
	self.Index = 0
	self.SendToServer = 0
	self.Loaded = 0

def initData(self):
	if self.Loaded > 0:
		self.Show()
		return

	self.Loaded = 1

	self.Background = ui.Bar()
	self.Background.SetParent(self)
	self.Background.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())
	self.Background.SetPosition(0,0)
	self.Background.SetColor(grp.GenerateColor(0.0,0.0,0.0,150.0/255.0))
	self.Background.Show()
	self.MainImage = ui.ImageBox()
	self.MainImage.SetParent(self.Background)
	self.MainImage.LoadImage("main.tga")
	self.MainImage.SetSize(642,600)
	self.MainImage.SetCenterPosition()
	self.MainImage.Show()

	self.CloseButton = ui.Button()
	self.CloseButton.SetParent(self)
	self.CloseButton.SetPosition(wndMgr.GetScreenWidth()/2-350, wndMgr.GetScreenHeight()/2+200)
	self.CloseButton.SetUpVisual("close_n.tga")
	self.CloseButton.SetOverVisual("close_h.tga")
	self.CloseButton.SetDownVisual("close_a.tga")
	self.CloseButton.SetEvent(ui.__mem_func__(self.Open))
	self.CloseButton.Show()

	self.MapName = ui.ImageBox()
	self.MapName.SetParent(self)
	self.MapName.SetPosition(wndMgr.GetScreenWidth()/2+300, wndMgr.GetScreenHeight()/2+200)
	self.MapName.LoadImage("info.tga")
	self.MapName.SetSize(162,50)
	self.MapName.Hide()

	self.MapNameText = ui.TextLine()
	self.MapNameText.SetParent(self.MapName)
	self.MapNameText.SetHorizontalAlignCenter()
	self.MapNameText.SetPosition(81,18)
	self.MapNameText.SetText("PenisMap")
	self.MapNameText.Show()

	points = [[94,172],[94,172],[124,232],[239,204],[70,307],[157,326],[198,282],[322,199],[365,178],[419,98],[484,120],[540,153],[539,221],[454,199],[415,237],[452,261],[447,297],[457,365],[499,377],[517,412],[435,442],[368,497],[404,545],[258,370],[304,282],[419,361],[367,300]]
	self.data = []
	for pos in xrange(len(points)):
		button = ui.Button()
		button.SetParent(self.MainImage)
		button.SetPosition(points[pos][0],points[pos][1])
		button.SetUpVisual("click_n.tga")
		button.SetOverVisual("click_h.tga")
		button.SetDownVisual("click_a.tga")
		button.SetEvent(ui.__mem_func__(self.WarpPosition),pos)
		button.Show()
		self.data.append(button)
	self.Show()

def UpdateIndex(self, idx):
	self.Index = idx

def WarpPosition(self, arg):
	if self.Index == 0:
		return
	self.SendToServer = arg
	event.QuestButtonClick(self.Index)


def OnUpdate(self):
	is_in = FALSE
	for i in xrange(len(self.data)):
		if self.data[i].IsIn():
			is_in = TRUE
			if not self.MapName.IsShow():
				self.UpdateMapName(i)
				self.MapName.Show()
	if not is_in and self.MapName.IsShow():
		self.MapName.Hide()

def UpdateMapName(self,idx):
	mapName = ["PvE - Temple","PvE - Temple","PvE - Terre de Feu","Map 2 Jaune","PvE - Mont Sohan","PvE - CapeDragonHead","Map 2 Rouge","Instance - Tour","PvE - Orc","PvE - DownMistWood","PvE - Forêt","PvE - Thunder","PvE - Catacombe","PvE - Bois Rouge","PvE - Grotte 1","PvE - Grotte 2","Boss - Grotte 3","PvE - Cave 1","PvE - Cave 2","Boss - Cave 3","PvE - Ultime","PvE - Universel","PvE - Extreme","PvE - Desert de Yongbi","Map Commune","PvE - BayBlackSend","Map 2 Bleu"]
	try:
		self.MapNameText.SetText(mapName[idx])
	except:
		pass

def Open(self):
	if self.IsShow():
		self.Hide()
		return
	self.initData()

def __del__(self):
	ui.Window.__del__(self)

 

Merci de votre aide 

Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

Le swichbot me le demende ...

1202 11:18:15358 :: 
networkModule.py(line:191) SetSelectCharacterPhase
system.py(line:130) __pack_import
system.py(line:110) _process_result
introSelect.py(line:28) 
system.py(line:130) __pack_import
system.py(line:110) _process_result
interfaceModule.py(line:46) 
system.py(line:130) __pack_import
system.py(line:110) _process_result
uiBonusPage.py(line:10) 
system.py(line:130) __pack_import
system.py(line:110) _process_result
game.py(line:1) 
system.py(line:137) __pack_import

networkModule.SetSelectCharacterPhase - :No module named uiteleport

1202 11:18:15358 :: ============================================================================================================
1202 11:18:15358 :: Abort!!!!


1202 11:18:15358 :: filename=exception.py, name=Abort
1202 11:18:15358 :: filename=networkModule.py, name=SetSelectCharacterPhase
1202 11:18:15358 :: filename=prototype.py, name=RunApp
1202 11:18:15359 :: filename=prototype.py, name=
1202 11:18:15359 :: filename=system.py, name=Run
1202 11:18:15359 :: filename=system.py, name=execfile
1202 11:18:15359 :: filename=system.py, name=RunMainScript
1202 11:18:15359 :: filename=system.py, name=
1202 11:18:15359 :: filename=, name=

 

je comprend pas pourquoi !

Link to comment
Share on other sites

  • 0
  • Retraité

Tu implantes quel switchbot ? J'ai regardé celui partagé par Kijaru et rien n'indique un quelconque module teleport.

Montre nous ton switchbot.

You can't be immortal,
But you can make people remember
you for thousands of years...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



  • Flux d'Activité

    1. 0

      Projet Genesis

    2. 4

      Shiva.international serveur privé metin2 Oldschool Start 16.09.2022

    3. 0

      Metin2 Champions - Accès anticipé

    4. 0

      Barbok

    5. 4

      Shiva.international serveur privé metin2 Oldschool Start 16.09.2022

    6. 2

      Partage Émulateur 2.63

    7. 2

      Partage Émulateur 2.63

  • Recently Browsing

    • No registered users viewing this page.

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.