Jump to content
  • 0

Error achievement system


KingTsunamy

Question

  • VIP

syserr

ui.py(line:2773) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:176) __LoadTextFile__
system.py(line:61) __init__

LoadScriptFile1 - <type 'exceptions.IOError'>:No file or directory

0705 20:37:21050 :: ============================================================================================================
0705 20:37:21050 :: Abort!!!!


0705 20:37:21050 :: filename=exception.py, name=Abort
0705 20:37:21050 :: filename=ui.py, name=LoadScriptFile
0705 20:37:21050 :: filename=uiAchievement.py, name=__LoadDialog
0705 20:37:21050 :: filename=uiAchievement.py, name=__init__
0705 20:37:21050 :: filename=uiAchievement.py, name=Show
0705 20:37:21050 :: filename=game.py, name=__AchievementTest
0705 20:37:21050 :: filename=stringCommander.py, name=__call__
0705 20:37:21050 :: filename=stringCommander.py, name=__call__
0705 20:37:21050 :: filename=stringCommander.py, name=Run
0705 20:37:21050 :: filename=game.py, name=BINARY_ServerCommand_Run
0705 20:37:21050 :: filename=prototype.py, name=RunApp
0705 20:37:21050 :: filename=prototype.py, name=<module>
0705 20:37:21050 :: filename=system.py, name=Run
0705 20:37:21050 :: filename=system.py, name=execfile
0705 20:37:21050 :: filename=system.py, name=RunMainScript
0705 20:37:21050 :: filename=system.py, name=<module>
0705 20:37:21050 :: filename=<string>, name=<module>
0705 20:37:21052 :: 
uiAchievement.py(line:148) __LoadDialog
ui.py(line:2779) LoadScriptFile
exception.py(line:36) Abort

WaitingDialog.LoadDialog.BindObject - <type 'exceptions.SystemExit'>:

0705 20:37:21052 :: ============================================================================================================
0705 20:37:21052 :: Abort!!!!


0705 20:37:21052 :: filename=exception.py, name=Abort
0705 20:37:21052 :: filename=uiAchievement.py, name=__LoadDialog
0705 20:37:21052 :: filename=uiAchievement.py, name=__init__
0705 20:37:21052 :: filename=uiAchievement.py, name=Show
0705 20:37:21052 :: filename=game.py, name=__AchievementTest
0705 20:37:21052 :: filename=stringCommander.py, name=__call__
0705 20:37:21052 :: filename=stringCommander.py, name=__call__
0705 20:37:21052 :: filename=stringCommander.py, name=Run
0705 20:37:21053 :: filename=game.py, name=BINARY_ServerCommand_Run
0705 20:37:21053 :: filename=prototype.py, name=RunApp
0705 20:37:21053 :: filename=prototype.py, name=<module>
0705 20:37:21053 :: filename=system.py, name=Run
0705 20:37:21053 :: filename=system.py, name=execfile
0705 20:37:21053 :: filename=system.py, name=RunMainScript
0705 20:37:21053 :: filename=system.py, name=<module>
0705 20:37:21053 :: filename=<string>, name=<module>

and this is uiachievement.py

import ui
import snd
import systemSetting
import net
import chat
import app
import localeInfo
import chrmgr
import uiWhisper
import interfacemodule
import time
import wndMgr

AchievementPoints = 0

class AchievementDialog(ui.ScriptWindow):

	def __init__(self):
		ui.ScriptWindow.__init__(self)
		self.__Load()
		
	def __del__(self):
		ui.ScriptWindow.__del__(self)

	def Destroy(self):
		self.Hide()
		return TRUE
		
	def __Load_LoadScript(self, fileName):
		try:
			pyScriptLoader = ui.PythonScriptLoader()
			pyScriptLoader.LoadScriptFile(self, fileName)
		except:
			import exception
			exception.Abort("AchievementDialog.__Load_LoadScript")

	def __Load_BindObject(self):
		try:
			self.AchievementText = self.GetChild("Achievement_Text")
			self.AchievementTextFiller = self.GetChild("Achievement_Filler")
			self.AchievementCountText = self.GetChild("Count_Achievement_Text")
			self.AchievementCountTextFiller = self.GetChild("Count_Filler")
			self.AchievementPointsText = self.GetChild("Achievement_Points_Text")
			self.AchievementInfoTextPage1 = self.GetChild("Achievement_Info_1")
			self.AchievementInfoTextPage2 = self.GetChild("Achievement_Info_2")
			self.AchievementInfoTextPage3 = self.GetChild("Achievement_Info_3")
		except:
			import exception
			exception.Abort("AchievementDialog.__Load_BindObject")

	def __Load(self):
		self.__Load_LoadScript("uiscript/achievementboard.py")
		self.__Load_BindObject()
		width = wndMgr.GetScreenWidth()
		height = wndMgr.GetScreenHeight()
	
	def Show(self, wahl, archivement):
		global AchievementPoints
		ui.ScriptWindow.Show(self)
		if wahl == 1:
			self.AchievementSetText(str(archivement))
			self.WarteSchleife = WaitingDialog()
			self.WarteSchleife.Open(3.0)
			self.WarteSchleife.SAFE_SetTimeOverEvent(self.ShowAchievementPoints)
		elif wahl == 2:
			self.AchievementWindow(AchievementPoints)
		
	
	def AchievementSetText(self, archivement):
		global AchievementPoints
		if archivement.find("_") != -1:
			archivement = archivement.replace('_', ' ')
		if archivement.find("%") != -1:
			AchievementSplit = archivement.split("%")
			archivement = AchievementSplit[0]
			AchievementPoints = AchievementSplit[1]
		if archivement.find("#") != -1:
			Splittext = archivement.split("#")
			Achievement = Splittext[0]
			Count = Splittext[1]
			self.AchievementText.SetText(str(Achievement))
			self.AchievementCountText.SetText(str(Count))
		else:
			self.AchievementText.SetText(str(archivement))
			self.AchievementCountTextFiller.SetText("Felicitari.")
			self.AchievementCountText.SetText("")
		self.AchievementPointsText.SetText("")
		self.AchievementInfoTextPage1.SetText("")
		self.AchievementInfoTextPage2.SetText("")
		self.AchievementInfoTextPage3.SetText("")
	
	def ShowAchievementPoints(self):
		global AchievementPoints
		self.AchievementTextFiller.SetText("Punctele dumneavoastra de Achivement")
		self.AchievementText.SetText("")
		self.AchievementPointsText.SetText("cresc la:")
		self.AchievementCountTextFiller.SetText("")
		self.AchievementCountText.SetText(str(AchievementPoints))
		self.WarteSchleife = WaitingDialog()
		self.WarteSchleife.Open(3.0)
		self.WarteSchleife.SAFE_SetTimeOverEvent(self.Information)
		
	def Information(self):
		self.AchievementTextFiller.SetText("")
		self.AchievementText.SetText("")
		self.AchievementPointsText.SetText("")
		self.AchievementCountTextFiller.SetText("")
		self.AchievementCountText.SetText("")
		self.AchievementInfoTextPage1.SetText("Aveti posibilitatea sa utilizati punctele")
		self.AchievementInfoTextPage2.SetText("in Achievement-Shop")
		self.AchievementInfoTextPage3.SetText("")
		self.WarteSchleife = WaitingDialog()
		self.WarteSchleife.Open(2.5)
		self.WarteSchleife.SAFE_SetTimeOverEvent(self.Close)
		
	def AchievementWindow(self, points):
		self.AchievementTextFiller.SetText("Punctele dumneavoastra de Achivement")
		self.AchievementText.SetText("")
		self.AchievementPointsText.SetText("   sunt:")
		self.AchievementCountTextFiller.SetText("")
		self.AchievementCountText.SetText(str(points))
		self.WarteSchleife = WaitingDialog()
		self.WarteSchleife.Open(3.0)
		self.WarteSchleife.SAFE_SetTimeOverEvent(self.Information)
		
	def Close(self):
		self.Hide()
		return TRUE
		
	def OnPressEscapeKey(self):
		self.Hide()
		return TRUE

class WaitingDialog(ui.ScriptWindow):

	def __init__(self):
		ui.ScriptWindow.__init__(self)
		self.__LoadDialog()
		self.eventTimeOver = lambda *arg: None
		self.eventExit = lambda *arg: None

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

	def __LoadDialog(self):
		try:
			PythonScriptLoader = ui.PythonScriptLoader()
			PythonScriptLoader.LoadScriptFile(self, "UIScript/WarteSchleife.py")

		except:
			import exception
			exception.Abort("WaitingDialog.LoadDialog.BindObject")

	def Open(self, waitTime):
		curTime = time.clock()
		self.endTime = curTime + waitTime

		self.Show()		

	def Close(self):
		self.Hide()

	def Destroy(self):
		self.Hide()

	def SAFE_SetTimeOverEvent(self, event):
		self.eventTimeOver = ui.__mem_func__(event)

	def SAFE_SetExitEvent(self, event):
		self.eventExit = ui.__mem_func__(event)
		
	def OnUpdate(self):
		lastTime = max(0, self.endTime - time.clock())
		if 0 == lastTime:
			self.Close()
			self.eventTimeOver()
		else:
			return
		
	def OnPressExitKey(self):
		self.Close()
		return TRUE

		

and I use 40k client

pls help

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 8

      WaveSystem

    2. 0

      error: unable to find library

    3. 19

      Race Height of Actors

    4. 2

      How to add Chromium Embedded Browser ?

    5. 2

      How to add Chromium Embedded Browser ?

    6. 2

      How to add Chromium Embedded Browser ?

    7. 1

      Fish stack catch

  • Recently Browsing

    No registered users viewing this page.

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