Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

missing component.py


Go to solution Solved by VegaS™,

Question

Posted (edited)

Version of Files XXX

Hello everybody, i'm so sorry for my bad english , i try to di my best.

 

1. Description of the problem / Question :

I try to use Guild Stats sytem, everything ok in Game/Client Source but i receive one error from Client Py, it's seems like i don't have one file and i hope you can help me to find out how to fix it.

 

2. SysErr ( Client ) 

0511 19:31:20798 :: File "networkModule.py", line 246, in SetGamePhase

0511 19:31:20798 :: File "system.py", line 131, in __pack_import

0511 19:31:20798 :: File "system.py", line 111, in _process_result

0511 19:31:20798 :: File "game.py", line 50, in <module>

0511 19:31:20798 :: File "system.py", line 131, in __pack_import

0511 19:31:20798 :: File "system.py", line 111, in _process_result

0511 19:31:20798 :: File "uiWarBoard.py", line 13, in <module>

0511 19:31:20798 :: File "system.py", line 138, in __pack_import

0511 19:31:20799 :: ImportError
0511 19:31:20799 :: :
0511 19:31:20799 :: No module named component
0511 19:31:20799 ::

 

I think the solution can be to insert the component.py file in root, but i can't find this file anywhere.

I hardly ever open discussions, nor am I happy to thank all Metin2 dev users, really guys, you saved me many of those times that you don't even imagine.

 

Edited by cristiandumitru (see edit history)
Link to post

3 answers to this question

Recommended Posts

  • 0
  • Solution
Posted (edited)
  • component.py
  • game.py

Search for:

Spoiler
	def __ProcessPreservedServerCommand(self):
		def __WarBoard(self, input):
			constInfo.wndWarBoard.Handle(input)
				
		def CanOpenWarBoard(self):
			constInfo.CanOpen = 1
			
		def CantOpenWarBoard(self):
			constInfo.CanOpen = 0
		try:
			command = net.GetPreservedServerCommand()
			while command:
				print " __ProcessPreservedServerCommand", command
				self.serverCommander.Run(command)
				command = net.GetPreservedServerCommand()
		except RuntimeError, msg:
			dbg.TraceError(msg)
			return 0

Replace with:

Spoiler
	def __WarBoard(self, input):
		if constInfo.wndWarBoard:
			constInfo.wndWarBoard.Handle(input)
			
	def CanOpenWarBoard(self):
		constInfo.CanOpen = 1
		
	def CantOpenWarBoard(self):
		constInfo.CanOpen = 0

	def __ProcessPreservedServerCommand(self):
		try:
			command = net.GetPreservedServerCommand()
			while command:
				print " __ProcessPreservedServerCommand", command
				self.serverCommander.Run(command)
				command = net.GetPreservedServerCommand()
		except RuntimeError, msg:
			dbg.TraceError(msg)
			return 0

 

Edited by VegaS™ (see edit history)
  • Love 2
Link to post
  • 0
Posted (edited)

How can we help you if we are blind?

Open our eyes.

 

(E.G. paste your system.py and uiwarboard.py)

 

Also i do not think that's an uiscript, since it says no module.

Edited by TMP4 (see edit history)
  • Love 1
Link to post
  • 0
Posted (edited)
44 minutes ago, TMP4 said:

How can we help you if we are blind?

Open our eyes.

 

(E.G. paste your system.py and uiwarboard.py)

 

Also i do not think that's an uiscript, since it says no module.

Hi, first thanks for your comment. You are right, it's not an uiscript problem, is in the root directory, i suppose it missed the import component because i don't have the file component.py 



uiwarboard.py

 

system.py

 

game.py

 

 

EDIT: Fixed by Download component.py from @VegaS™
 

component.py

 

Edited by cristiandumitru (see edit history)
Link to post

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


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