Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 19:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Disconnecting while minimized

Discussion on Disconnecting while minimized within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
FlyffDeveloper's Avatar
 
elite*gold: 0
Join Date: Aug 2017
Posts: 187
Received Thanks: 117
Disconnecting while minimized

Hey everyone,

After implementing the minimize/exit buttons in my neuz and also disabling the //Pause code when being minimized my client still tends to disconnect after a few minutes. Any ideas what this can cause? I am working with a v15 base.

My code:
Code:
            if( SIZE_MINIMIZED == wParam )
            {
#ifdef __NONE_CUSTOM_CURSORs
                if( m_bClipCursorWhenFullscreen && !m_bWindowed )
                    ::ClipCursor( NULL );
#else
                ClipCursor();
#endif
                //if( m_bClipCursorWhenFullscreen && !m_bWindowed )
                  //  ClipCursor( NULL );
#ifdef __ZHICHIZUIXIAOHUA
                //Pause(true); // Pause while we're minimized - disabled
#endif //__ZHICHIZUIXIAOHUA
				m_bActive = false;
                m_bMinimized = true;
                m_bMaximized = false;
            }
FlyffDeveloper is offline  
Old 12/07/2017, 19:16   #2
 
Mike Oxmaul's Avatar
 
elite*gold: 50
Join Date: Feb 2014
Posts: 288
Received Thanks: 245
add heartbeat paket
Mike Oxmaul is offline  
Old 12/07/2017, 19:54   #3
 
elite*gold: 50
Join Date: Jun 2015
Posts: 100
Received Thanks: 210
Also call FrameMove once in a while.
Unless you want a huge amount of sudden SFX/movement to be thrown into your face when maximizing.
ディオニュソス is offline  
Thanks
4 Users
Old 12/08/2017, 19:10   #4
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
You can create a timer when the client goes into the minimized state, to run the FrameMove() and handle network traffic. This allows the user to continue following, moving, and lets the user receive updates. And then simply kill the timer when going out of the minimized state.

If the client is Maximized and Minimized, it won't run WM_SIZE, so in that case you can kill the timer on WM_QUERYOPEN.

If you you plan on adding the released code to not freeze the window while moving, just holding down the window enters a 500ms delay due too other stuff that needs to be ran. You can ignore this by changing the non-client windows messages, Ie: WM_NCLBUTTONDOWN. You can send a hittest, and use functions like GetCursorPos, SetCapture to the hwnd to get the point of the cursor. By setting a boolean, you can determine that in this state the window would be moving. Then handle the change in position in the client by updating the position with SetWindowPos by using the offset of points from the mouse cursor movement with the mouse move windows messages. Simply on the button up, you would set the bool flag to false. Thus, skipping some extra windows bulk and the client will always render while doing this.

Just a "for your information", if you send a hittest to the window while planning to move the client, in the fashion that I mentioned, you will need to also determine the wparam, that way you don't move the client by pressing the buttons. And you would need to check if a window steals focus to stop the manual movement which I do by just checking WM_ACTIVE with the loword of wparam being WA_INACTIVE.

Just by messing with the windows messages, a lot can be possible.
Avalion is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
NEW Minimizable Key Presser "login while Ecsro is minimized"
07/05/2011 - SRO PServer Guides & Releases - 6 Replies
Hi all, i think waiting for the game to login which may spend 3h, with out being able to use Pc is a boring time waste BUT here is the solution "Condor Clint Man." by the way this subject is copied from other site,,,,,,,,,,,now the Links,,,,,,,, UpLoad:http://uploaded.to/file/7kqgh4 FileFront:Condor_Client_Manager.rar now i'll tell how to use this tool:1)run the prog. "Condor Clint Manager" 2)press "options" then u will find "Add" press it ...
Constant disconnecting on ZSZC while using SRODB 1.3a...wtf?
10/18/2010 - SRO Private Server - 2 Replies
I keep getting constantly dc'ed on ZSZC (water) while using SRO DB 1.3a. Usually after killing just one mob. Sometimes it takes a little while longer but it dc's. I've uninstalled ZSZC and wiped every trace of it. I dl'ed the new client they just put up on SROInfo. I installed it. Still the dc'ing. It's seriously pissing me off. Anyone got any clue as to why it's doing it and any advice on fixing it?
Key Presser for SRO while minimized
05/20/2009 - Silkroad Online - 3 Replies
I'm looking for a program that works as a key presser for SRO while minimized so I can do other things, something like auto pot buff resser, and not a bot but supports the new client, 1.175.
How can i make Bot work while AL Minimized?
02/20/2009 - Archlord - 19 Replies
How can i make Bot work while AL Minimized? plz help me!



All times are GMT +2. The time now is 19:12.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.