Jump to content

Recommended Posts

Hello,Client source problem?
why no kill help buttom?

On 2017. 05. 30. at 2:39 PM, monarchis2 said:

Hey for some reason... Every time i login the help button appears... doesn't matter if the character is new or old.. 

DNmHG5p.png

 

Edited by Metin2 Dev
Core X - External 2 Internal

787292068_Nvtelen.png.6faa7b0bbb3398fd29

Link to comment
Share on other sites

  • 3 years later...

up i have the same problem instead even auto-atack reset its self, any help ?:(

 

EDIT: Found a solution... for me it should do it... 

info: i think auto-atack resseting problem was from some files i have put into the autopatcher as i noticed some .inf were there so i deleted them and now it seems to be ok

 

for the help button i decided to hide it as i changed the character windows and i assume its from there the problem

 

root/uigamebutton.py

 

#search

		if 0 == player.GetPlayTime():
			helpButton.Hide()
		else:
			helpButton.Show()

#change to

		if 0 == player.GetPlayTime():
			helpButton.Hide()
		else:
			helpButton.Hide()

 

Edited by dv2axonn
Solution found and explenation of atack-button
Link to comment
Share on other sites

  • 2 years later...

I know I'm bumping an old issue but someone may actually need a solution and after finding the needle in the haystack I'm willing to share it:

The code is self-explanatory:

		if 0 == player.GetPlayTime():
			helpButton.Show()
		else:
			helpButton.Hide()

which means that if you see the button the player has no play time.

The fix? There should be 2 instances of SetPlayTime(number of minutes) in your root python files.

  1. interfaceModule.py:
    	def __OnClickHelpButton(self):
    		player.SetPlayTime(1)
    		self.CheckGameButton()
    		self.OpenHelpWindow()
  2. introSelect.py:
    This was my thing. I installed the new character/empire select/create system and I was missing this part of the code.

    In def OnUpdate(self) find this (should be at the bottom of the def):
    		if -1 != self.startIndex:

    and make sure that it ends like this:
     

    		if -1 != self.startIndex:
    			if app.GetTime() - self.startReservingTime > 3.0:
    				if False == self.openLoadingFlag:
    					chrSlot = self.stream.GetCharacterSlot()
    					net.DirectEnter(chrSlot)
    					self.openLoadingFlag = True
    
    					# Start of Help button fix (assigning play time to the character)
    					playTime = net.GetAccountCharacterSlotDataInteger(self.slot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME)
    
    					import player
    					player.SetPlayTime(playTime)
    					# End of Help button fix
    					
    					import chat
    					chat.Clear()

    That's it! The problem was that the selected player was never assigned play time and now they have with player.SetPlayTime(playTime) just like in the original introSelect.

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.