Jump to content

How To Metin2 & Cython


Recommended Posts

  • Premium

For those who have this error :

Error    25    error LNK2005: "struct rootlib_SMethodDef * rootlib_init_methods" (?rootlib_init_methods@@3PAUrootlib_SMethodDef@@A) already defined in PythonrootlibManager.obj    C:UsersGaletDesktopXXXMetin2XXXClientXXXsrcUserInterfaceUserInterface.obj    UserInterface

Error   26    error LNK2005: "void __cdecl initrootlibManager(void)" (?initrootlibManager@@YAXXZ) already defined in PythonrootlibManager.obj    C:UsersGaletDesktopXXXMetin2XXXClientXXXsrcUserInterfaceUserInterface.obj    UserInterface

Delete the .h link at the beginning or UserInterface.

Link to comment
Share on other sites

  • Premium

Hello, i'ts me (again)

 

https://metin2.download/picture/0kyi10pLP2Hgq834oYw8T9605629wQSP/.png

 

Same problem with .pyd or packed .exe, I don't know why there's a "stopped working". Is it because my root are messed up ?

Indeed, I think it's because the charset, when I put any "coding" at the top, here's my error :

__pack_import() got an unexpected keyword argument 'level'

Edit : syserr error with normal root fixed, use this charset instead of utf8 : # -*- coding: ISO-8859-1 -*-

 

Edit : Once I've built a new launcher, here's my current error : https://metin2.download/picture/ORvH221QSCZ5QEcoPC4cK9wdu3lzzYI3/.png

Have a nice day.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3
Link to comment
Share on other sites

Hello, i'ts me (again)

 

https://metin2.download/picture/0kyi10pLP2Hgq834oYw8T9605629wQSP/.png

 

Same problem with .pyd or packed .exe, I don't know why there's a "stopped working". Is it because my root are messed up ?

Indeed, I think it's because the charset, when I put any "coding" at the top, here's my error :

__pack_import() got an unexpected keyword argument 'level'

Edit : syserr error with normal root fixed, use this charset instead of utf8 : # -*- coding: ISO-8859-1 -*-

 

Edit : Once I've built a new launcher, here's my current error : https://metin2.download/picture/ORvH221QSCZ5QEcoPC4cK9wdu3lzzYI3/.png

Have a nice day.

Try to coding python file in notepad++ with korean or ansi, dont put # -*- coding: x-*-  in file.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...
  • Premium
0413 00:21:02685 :: 
introLogin.py(line:566) introLogin.LoginWindow.__LoadScript (introLogin.c:11073)
ui.py(line:2792) ui.PythonScriptLoader.LoadScriptFile (ui.c:67759)

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0413 00:21:02685 :: ============================================================================================================
0413 00:21:02685 :: Abort!!!!

Link to comment
Share on other sites

  • Bronze
0413 00:21:02685 :: 
introLogin.py(line:566) introLogin.LoginWindow.__LoadScript (introLogin.c:11073)
ui.py(line:2792) ui.PythonScriptLoader.LoadScriptFile (ui.c:67759)

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0413 00:21:02685 :: ============================================================================================================
0413 00:21:02685 :: Abort!!!!

some error im sure about this introLogin.py(line:566) look at what you have there you should at least know what is the reason if the bug (btw the smallest error might cz the client to crush so be carefull)

Link to comment
Share on other sites

  • Premium

 

0413 00:21:02685 :: 
introLogin.py(line:566) introLogin.LoginWindow.__LoadScript (introLogin.c:11073)
ui.py(line:2792) ui.PythonScriptLoader.LoadScriptFile (ui.c:67759)

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0413 00:21:02685 :: ============================================================================================================
0413 00:21:02685 :: Abort!!!!

some error im sure about this introLogin.py(line:566) look at what you have there you should at least know what is the reason if the bug (btw the smallest error might cz the client to crush so be carefull)

 

introLogin.py

	def __LoadScript(self, fileName):
		import dbg
		try:
			pyScrLoader = ui.PythonScriptLoader()
			pyScrLoader.LoadScriptFile(self, fileName)
		except:
			import exception
			exception.Abort("LoginWindow.__LoadScript.LoadObject")

ui.py

	def LoadScriptFile(self, window, FileName):
		Body = self.ScriptDictionary["window"]
		self.CheckKeyList("window", Body, self.BODY_KEY_LIST)

		window.ClearDictionary()
		self.InsertFunction = window.InsertChild
Link to comment
Share on other sites

  • Bronze

 

 

0413 00:21:02685 :: 
introLogin.py(line:566) introLogin.LoginWindow.__LoadScript (introLogin.c:11073)
ui.py(line:2792) ui.PythonScriptLoader.LoadScriptFile (ui.c:67759)

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0413 00:21:02685 :: ============================================================================================================
0413 00:21:02685 :: Abort!!!!

some error im sure about this introLogin.py(line:566) look at what you have there you should at least know what is the reason if the bug (btw the smallest error might cz the client to crush so be carefull)

 

introLogin.py

	def __LoadScript(self, fileName):
		import dbg
		try:
			pyScrLoader = ui.PythonScriptLoader()
			pyScrLoader.LoadScriptFile(self, fileName)
		except:
			import exception
			exception.Abort("LoginWindow.__LoadScript.LoadObject")

ui.py

	def LoadScriptFile(self, window, FileName):
		Body = self.ScriptDictionary["window"]
		self.CheckKeyList("window", Body, self.BODY_KEY_LIST)

		window.ClearDictionary()
		self.InsertFunction = window.InsertChild

is there anything above that syserr ?

Link to comment
Share on other sites

  • Bronze

0325 13:33:00312 :: Could not import uiScriptLocale
0325 13:33:01056 :: RunMain Error

i compiled uisript.py in c++ is good

 

maybe you did not replace system.py that marty included. or that was not complied

 

do you have it on your lib folder? + does it work without cython?

 

download page is down?

 

no ,  it was changed to github you should look on the right to find a download zip button .

 

 

Still this bug ^^

 

still the same answer

 

Nope.

 

this does not tell me much.

as i said in the shoutbox :

for the cython error check lines around 43 there should be some unwanted charcter change them / delet them if they are comments

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Think 1
Link to comment
Share on other sites

  • Premium

do you have it on your lib folder? + does it work without cython?

 

I haveall my lib normally and it works fine with non-cythonized root.

 

Thanks for the awnser

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...

Announcements



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