Jump to content
.ZeNu

Metin2 | Auto Refine Option | Just Python Mod

Recommended Posts

I have a problem, the sound of the blacksmith is off. how to activate it again? which code and where to insert?

Share this post


Link to post
On 3/30/2020 at 7:20 PM, Egorka said:

I have a problem, the sound of the blacksmith is off. how to activate it again? which code and where to insert?

Open your game.py with Notepad++
CTRL-F => def RefineSuceededMessage(self):

 

    def RefineSuceededMessage(self):
        snd.PlaySound("sound/ui/make_soket.wav")		<== ADD THIS AGAIN
        self.PopupMessage(localeInfo.REFINE_SUCCESS)
        if app.ENABLE_REFINE_RENEWAL:
            self.interface.CheckRefineDialog(False)

    def RefineFailedMessage(self):
        snd.PlaySound("sound/ui/jaeryun_fail.wav")		<== ADD THIS AGAIN
        self.PopupMessage(localeInfo.REFINE_FAILURE)
        if app.ENABLE_REFINE_RENEWAL:
            self.interface.CheckRefineDialog(True)


Anyways i need help aswell.
I can't seem to solve following issue:

 

Quote

0420 00:40:22370 :: Traceback (most recent call last):

0420 00:40:22370 ::   File "game.py", line 2050, in BINARY_ServerCommand_Run

0420 00:40:22370 ::   File "stringCommander.py", line 63, in Run

0420 00:40:22370 ::   File "stringCommander.py", line 31, in __call__

0420 00:40:22370 ::   File "stringCommander.py", line 11, in __call__

0420 00:40:22370 ::   File "game.py", line 2087, in RefineSuceededMessage

0420 00:40:22370 :: AttributeError
0420 00:40:22370 :: : 
0420 00:40:22370 :: 'Interface' object has no attribute 'CheckRefineDialog'
0420 00:40:22370 :: 



Does someone know a fix for it?

Share this post


Link to post

You need to have a function called 'CheckRefineDialog' inside your interfacemodule.py file. Make sure you have it.

  • Love 1

Share this post


Link to post
4 minutes ago, nefdulin said:

You need to have a function called 'CheckRefineDialog' inside your interfacemodule.py file. Make sure you have it.

I do have it right there:

	if app.ENABLE_REFINE_RENEWAL:
		def CheckRefineDialog(self, isFail):
			self.dlgRefineNew.CheckRefine(isFail)

 

Share this post


Link to post

Looks pretty ugly with the checkbox

Share this post


Link to post
Posted (edited)
On 4/19/2020 at 11:55 PM, Leafxc said:

I do have it right there:

if app.ENABLE_REFINE_RENEWAL: def CheckRefineDialog(self, isFail): self.dlgRefineNew.CheckRefine(isFail)


	if app.ENABLE_REFINE_RENEWAL:
		def CheckRefineDialog(self, isFail):
			self.dlgRefineNew.CheckRefine(isFail)

 

 

def CheckRefineDialog shouldn't be attached to the "def AppendMaterialToRefineDialog".

 

@Leafxc or any other person who's having issues with this error,

support below concerns errors within the file interfacemodule.py at Definitions "AppendMaterialToRefineDialog" &  "CheckRefineDialog"

Wrong Scenario (the one you probably have):

 

	def AppendMaterialToRefineDialog(self, vnum, count):
		self.dlgRefineNew.AppendMaterial(vnum, count)
		if app.ENABLE_REFINE_RENEWAL:
			def CheckRefineDialog(self, isFail):
				self.dlgRefineNew.CheckRefine(isFail)


Correct Scenario below:

	def AppendMaterialToRefineDialog(self, vnum, count):
		self.dlgRefineNew.AppendMaterial(vnum, count)
	
	if app.ENABLE_REFINE_RENEWAL:
		def CheckRefineDialog(self, isFail):
			self.dlgRefineNew.CheckRefine(isFail)


Also please, double check the tab identation. Python has strict rules and you need to follow them.

 

Edited by shotyourself (see edit history)

Share this post


Link to post

Where is old metin if anyone need this system.. So lazy one more click for more fun.. 😕

Share this post


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
  • Recently Browsing   0 members

    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.