Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 01:42

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

Advertisement



[Release] CursorHook (Old Client Cursor Blink Lag)

Discussion on [Release] CursorHook (Old Client Cursor Blink Lag) within the CO2 Programming forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
[Release] CursorHook (Old Client Cursor Blink Lag)

It has been a long time since I've released anything to the community whatsoever, so I figured I'd throw something out there that has plagued the community for quite some time.

What you will find here is a small DLL/Source I created to prevent the extremely frustrating cursor issues on older clients.

There is no need to replace your client cursors with the windows one or vice versa, this will give you your cursors back without the added fps problems.

It works by basically hooking the WndProc handler to override the GCL_HCURSOR value in a WNDCLASS structure and set the class cursor to the current cursor (achieved by hooking SetCursor).

Edit: Note that I haven't actually tested this extensively, just loaded up the start screen on the old 4351 client, but in theory it should work for any clients which have the issue.
Attached Files
File Type: rar CursorHook.rar (1.07 MB, 1173 views)
© Haydz is offline  
Thanks
13 Users
Old 02/27/2014, 00:41   #2
 
elite*gold: 0
Join Date: Jun 2007
Posts: 659
Received Thanks: 31
I was having issues with this with my player base I'll try it out and if anything I'll link them to this post. Thanks for this is a really great release.
angel12345 is offline  
Old 02/27/2014, 01:27   #3
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Ahhh, I see. Microsoft Detours. I love reading projects like these.
Spirited is offline  
Thanks
1 User
Old 02/27/2014, 15:40   #4
 
Ultimation's Avatar
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,425
Received Thanks: 1,565
This will probably cause a 1 day ban on modern clients
Ultimation is offline  
Thanks
1 User
Old 02/27/2014, 16:22   #5
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by Ultimation View Post
This will probably cause a 1 day ban on modern clients
Yeah, probably, although the issue doesn't actually occur on any client post 5300 ish.
© Haydz is offline  
Old 02/27/2014, 23:38   #6
 
elite*gold: 0
Join Date: Sep 2013
Posts: 197
Received Thanks: 140
Great release. I've always been a victim of the cursor lag on the old clients and I've never been bothered looking into what the cause of it is. Thanks for this, it's nice to see more and more useful stuff is starting to show up here on epvp again.
SteveRambo is offline  
Old 03/06/2014, 21:20   #7
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Quote:
Originally Posted by SteveRambo View Post
Great release. I've always been a victim of the cursor lag on the old clients and I've never been bothered looking into what the cause of it is. Thanks for this, it's nice to see more and more useful stuff is starting to show up here on epvp again.
Just sad it's too late to save the community.
Super Aids is offline  
Old 03/06/2014, 21:25   #8
 
elite*gold: 0
Join Date: Sep 2013
Posts: 197
Received Thanks: 140
Quote:
Originally Posted by Super Aids View Post
Just sad it's too late to save the community.
Yeah probably
SteveRambo is offline  
Old 04/15/2014, 20:44   #9
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Works perfectly fine on 4348!

Attached a Loader Put the StartConquer.exe and the MouseHook.dll into your conquer directory and run it.
Attached Files
File Type: rar StartAndHook.rar (9.5 KB, 310 views)
Y u k i is offline  
Old 05/20/2014, 01:17   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Doesn't work on 5018+. For some reason hooking the WndProc before being online crashes the client - it probably has something to do with the flash login screen.
-impulse- is offline  
Old 05/20/2014, 09:34   #11
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Quote:
Originally Posted by -impulse- View Post
Doesn't work on 5018+. For some reason hooking the WndProc before being online crashes the client - it probably has something to do with the flash login screen.
Possibly, I have since tested it on a 5035 client and it worked, so perhaps there is something different about 5018.

I will download it and have a look then get back to you.

Edit:
I have just tested from 5017 through till 5035 and it appears to work fine here.

If you get a chance can you try, commenting out the detoured SetCursor hook completely, and only hooking the WndProc. I recently learnt that you can simply pass NULL to WM_SETCURSOR to prevent windows changing the cursor and allow SetCursor to proceed as normal.
© Haydz is offline  
Old 05/20/2014, 11:10   #12
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Well, I assumed the issue was with 5018+ because it had the flash, but my actual issue is with 5065.

And I tried to figure out why and as far as I can tell no matter what is in the WndProc hook it still crashes. Just by hooking that function the client crashes, which is weird.

----------
Edit:

Turns out the crash came from the injection process for some reason creating a hook from a remotely created thread crashed the client.
The fix works as it's supposed to.

Thank you Haydz.
-impulse- is offline  
Thanks
1 User
Old 05/20/2014, 15:47   #13


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Quote:
Originally Posted by -impulse- View Post
Well, I assumed the issue was with 5018+ because it had the flash, but my actual issue is with 5065.

And I tried to figure out why and as far as I can tell no matter what is in the WndProc hook it still crashes. Just by hooking that function the client crashes, which is weird.

----------
Edit:

Turns out the crash came from the injection process for some reason creating a hook from a remotely created thread crashed the client.
The fix works as it's supposed to be.

Thank you Haydz.
Thanks for the heads up, I wanted to do the same thing.
KraHen is offline  
Old 05/26/2014, 18:35   #14
 
darkopp's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 127
Received Thanks: 10
how to use cursor hook ?
darkopp is offline  
Old 05/26/2014, 19:22   #15
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by darkopp View Post
how to use cursor hook ?
I attached a loader on the previous page, check it out
Y u k i is offline  
Closed Thread


Similar Threads Similar Threads
Blink Dash / Blink Fade
10/01/2013 - Cabal Online - 7 Replies
Can someone teach me how to do that? or send me a link for that?
Client Map (M) Blink Fehler?!
06/10/2013 - Metin2 Private Server - 2 Replies
Hi community, hab in meinem Client in der Map (M) ein Problem: http://puu.sh/3ckWc.jpg Warum blinkt der nicht ganz und hat ein weißen Balken?
Metin2 P-Server Client Text-Cursor
01/29/2013 - Metin2 Private Server - 1 Replies
Hallo, Ich habe eine Frage bezüglich des Client Moddings. Und zwar ist mir aufgefallen, dass ich keinen Cursor in den Textfeldern meines Clients habe. (nicht der Mauszeiger, sondern der blinkende senkrechte Strich ist gemeint.) Die Frage ist nun, was zu tun ist um diesen Cursor wieder anzuzeigen. Gruß,
[How To] Cursor ändern [Client]
05/09/2010 - Metin2 PServer Guides & Strategies - 9 Replies
Ihr geht auf den Modified Client 2.5 von Neon Blue dann geht ihr auf "ymir work" dann auf den ordner "cursor" dann öffnet ihr z.b. die cursor_buy.sub und die cursor_sell.sub und vertauscht was bei ihnen steht wenn ihr jetz bei nem händler auf kaufen geht kommt ein cursor mit sell ^^ Wie mache ich ganz andere cursor rein???
[Guide] Change cursor in your client
10/24/2009 - EO PServer Guides & Releases - 2 Replies
Hi. I have been away from epvpers for a long time. So Im gonna teach you how to change your cursor in your client. I know its simple as it is xD But Im teaching for those that might find it difficult. Lets get this as simple as it is. 1)Download Reshack 2)Extract it somewhere using WinRAR or any other program used to extract files 3)Now open ResHacker.exe and click file, then open soul.exe file. 4)In the menus click Action



All times are GMT +2. The time now is 01:42.


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.