Jump to content

Won Exchange Window


Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

Here ( Required )

Hi everyone.

 

The time has come, and sorry for this late.

What is this? Check the base version on this video:

Spoiler

 

 

 

Necessary functions:

 

It doesn't hurt to know:

  1. Need a bit of knowledge of programming, especially for implementing the python parts.
  2. You need to see the whole python core of metin2 how it works to understand what, why and how.
  3. Regarding to 1. and 2. this release is not for beginners.
  4. It has been tested on test and a live server too, small problems what appeared has been fixed.
  5. MouseWheel is not included, but public on the internet.

 

Special thank to @masodikbela for testing and @Tatsumaru for the gui elements(wider tab buttons).

This is the hidden content, please

 

PS.: If I missed something out from the guide feel free to let me know.

  • Metin2 Dev 73
  • Dislove 1
  • Angry 1
  • Not Good 1
  • Think 1
  • Confused 1
  • Lmao 1
  • Good 13
  • Love 6
  • Love 72
Link to comment
Share on other sites

  • Management

#Video Fixed

 

feel better in love GIF

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

  • 1 month later...


0519 08:58:47776 ::   File "ui.py", line 2006, in CallEvent

0519 08:58:47777 ::   File "ui.py", line 90, in __call__

0519 08:58:47777 ::   File "ui.py", line 72, in __call__

0519 08:58:47778 ::   File "uiTaskBar.py", line 80, in OpenWonExchangeWindow

0519 08:58:47778 :: AttributeError
0519 08:58:47778 :: : 
0519 08:58:47778 :: 'ExpandedMoneyTaskBar' object has no attribute 'Interface'
0519 08:58:47778 :: 
help me please?

click icon but not open won exchange window

badass hei GIF

Link to comment
Share on other sites

  • Honorable Member

It seems you don't have the interface bound into the ExpandedMoneyTaskBar class.

Search this line in the interfaceModule.py: "self.wndExpandedMoneyTaskBar.LoadWindow()" and add below this:

		self.wndExpandedMoneyTaskBar.BindInterface(self)

Then open the uiTaskBar.py and put the following line into the ExpandedMoneyTaskBar.__init__ function:

		self.interface = None

Last the following function anywhere inside the ExpandedMoneyTaskBar class:

	def BindInterface(self, interface):
		from _weakref import proxy
		self.interface = proxy(interface)

 

But I don't get it, how did you get 'Interface' instead of 'interface'. ?

  • Love 1
Link to comment
Share on other sites

'ExpandedMoneyTaskBar' object has no attribute 'Interface'

 

 

problem is fixed and under!

 

My uitaskbar.py changed
 

import interfaceModule  # add your file

class ExpandedMoneyTaskBar(ui.ScriptWindow):
    def __init__(self):
        ui.ScriptWindow.__init__(self)
        self.LoadWindow()
        self.interface = interfaceModule.Interface()  # add your file

 

and interfacemodule.py function def __init__(self): add under code

 

		self.wndWonExchange = uiWonExchange.WonExchangeWindow()

 

badass hei GIF

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

0803 02:41:20599 :: Traceback (most recent call last):

0803 02:41:20599 ::   File "ui.py", line 1048, in CallEvent

0803 02:41:20600 ::   File "ui.py", line 87, in __call__

0803 02:41:20601 ::   File "ui.py", line 69, in __call__

0803 02:41:20602 ::   File "uiTaskBar.py", line 112, in OpenWonExchangeWindow

0803 02:41:20603 :: AttributeError
0803 02:41:20603 :: : 
0803 02:41:20603 :: 'NoneType' object has no attribute 'ToggleWonExchangeWindow'
0803 02:41:20603 :: 

badass hei GIF

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

Nice work, thank you very much.

Everything works very well but but when clicking on the slot i have this error.

 

 

1212 15:41:49375 ::   File "ui.py", line 2516, in OnMouseLeftButtonDown

1212 15:41:49376 :: AttributeError
1212 15:41:49376 :: : 
1212 15:41:49376 :: 'EditLineCentered' object has no attribute 'canEdit'

 

image

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

  • 1 month later...
0124 19:01:45504 :: Traceback (most recent call last):

0124 19:01:45504 ::   File "ui.py", line 1593, in CallEvent

0124 19:01:45504 ::   File "ui.py", line 95, in __call__

0124 19:01:45504 ::   File "ui.py", line 77, in __call__

0124 19:01:45505 ::   File "uiTaskBar.py", line 354, in OpenWonExchangeWindow

0124 19:01:45505 :: AttributeError
0124 19:01:45505 :: : 
0124 19:01:45505 :: 'NoneType' object has no attribute 'ToggleWonExchangeWindow'
0124 19:01:45505 :: 

 

I'm getting this error. Can you help me? @xP3NG3Rx

Link to comment
Share on other sites

On 12/12/2020 at 9:49 PM, mebe said:

Nice work, thank you very much.

Everything works very well but but when clicking on the slot i have this error.

 

 


1212 15:41:49375 ::   File "ui.py", line 2516, in OnMouseLeftButtonDown

1212 15:41:49376 :: AttributeError
1212 15:41:49376 :: : 
1212 15:41:49376 :: 'EditLineCentered' object has no attribute 'canEdit'

 

image

same problem

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

  • 3 years 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.