Register for your free account! | Forgot your password?


Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Guides & Templates
You last visited: Today at 09:41

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

Advertisement




[Release] Flash fix for old clients.

Discussion on [Release] Flash fix for old clients. within the CO2 Guides & Templates forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,416
Received Thanks: 1,538
[Release] Flash fix for old clients.

As many of you are aware as of 12th of January 2021 Flash has been discontinued and many of you maybe facing the following issue.

The client does have a local version of flash, however it is version 6... very old and probably buggy.

I have attached a version of flash which you can put into the client folder, it is from late 2019.



The client by default loads the system installed flash.ocx, this has been updated to expire on the 12th of january 2021.

Many of you have tried to remove the windows update. However, i have a better solution that microsoft can't remove. Here i have included flash.ocx which you can replace in your conquer directly. Now with a little help from a the following class you can add to your Loader / Hook. You can force the client to load the local flash.ocx from the client folder. This will fix your issue.

Code:
CFlashFix.h

#pragma once
class CFlashFix
{
	typedef HMODULE(_stdcall* HookLoadLibrary)(_In_ LPCWSTR lpLibFileName,
		_Reserved_ HANDLE hFile,
		_In_ DWORD dwFlags);
public:
	static void Hook();
	static HookLoadLibrary pLoadLibrary;
	static  HMODULE _stdcall LoadLibraryDetour(_In_ LPCWSTR lpLibFileName,
		_Reserved_ HANDLE hFile,
		_In_ DWORD dwFlags);
};
Code:
CFlashFix.cpp

#include "pch.h"
#include "CFlashFix.h"
#include <tchar.h>

CFlashFix::HookLoadLibrary CFlashFix::pLoadLibrary;
void CFlashFix::Hook()
{
    auto m = GetModuleHandleA("kernelbase.dll");
    auto proc = GetProcAddress(m, "LoadLibraryExW");
    pLoadLibrary = reinterpret_cast<CFlashFix::HookLoadLibrary>(proc);
    DetourTransactionBegin();
    DetourUpdateThread(GetCurrentThread());
    DetourAttach(&reinterpret_cast<PVOID&>(pLoadLibrary), LoadLibraryDetour);
    DetourTransactionCommit();
}

//Thanks to { Angelius } for the cleaner method.
HMODULE _stdcall CFlashFix::LoadLibraryDetour(LPCWSTR lpLibFileName, HANDLE hFile, DWORD dwFlags)
{
	if (StrStrW(lpLibFileName, L"Flash.ocx"))
		lpLibFileName = L"./Flash.ocx";

    return pLoadLibrary(lpLibFileName, hFile, dwFlags);
}

I am aware this code may not be optimized and or messy. I gave it like 5 seconds of love. It is more just of a quick release to get you guys back up and running.

If done correctly, your client should now work again.

Ultimation is offline  
Thanks
7 Users
Old 01/12/2021, 19:38   #2
 
elite*gold: 26
Join Date: Jul 2011
Posts: 512
Received Thanks: 280
I'd just like to say Thanks for the help and Happy birthday!
Yupmoh is offline  
Thanks
1 User
Old 01/12/2021, 19:50   #3
 
elite*gold: 0
Join Date: Mar 2005
Posts: 85
Received Thanks: 18
Now that is a fast reply. All can get back on truck now

Thank you for this fast fix!

Added and works as it should:


Regards
cronoszeu is offline  
Thanks
1 User
Old 01/12/2021, 20:03   #4
 
elite*gold: 0
Join Date: Sep 2014
Posts: 183
Received Thanks: 47
Thanks for the help.
iBotx is offline  
Thanks
1 User
Old 01/13/2021, 19:34   #5
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,636
Received Thanks: 690
If everyone enjoys this release, please wish Ultimation a happy birthday as it is his birthday today!

HAPPY BIRTHDAY ULTI!
turk55 is offline  
Thanks
1 User
Old 01/17/2021, 01:16   #6
 
elite*gold: 0
Join Date: Nov 2019
Posts: 33
Received Thanks: 1
Thanks for still contributing to co2!
Noycers is offline  
Old 01/19/2021, 17:54   #7
 
elite*gold: 0
Join Date: Dec 2009
Posts: 11
Received Thanks: 4
Hi, i Tried to add this on my loader, i add the new itens and put the code, but i'm having lots of errors that says some functions are already defined in other class, i think this doesen't work with my loader source, some one have a "basic" one with this code added?
pachecmax is offline  
Thanks
1 User
Old 01/22/2021, 14:20   #8
 
elite*gold: 0
Join Date: Mar 2006
Posts: 490
Received Thanks: 51
Quote:
Originally Posted by pachecmax View Post
Hi, i Tried to add this on my loader, i add the new itens and put the code, but i'm having lots of errors that says some functions are already defined in other class, i think this doesen't work with my loader source, some one have a "basic" one with this code added?
You can use @ Autopatch server which is very helpful and it will fix your Flash Login problem.
Soulfly25 is offline  
Thanks
1 User
Old 01/23/2021, 19:16   #9
 
elite*gold: 0
Join Date: Jul 2009
Posts: 835
Received Thanks: 347
Quote:
Originally Posted by Soulfly25 View Post
You can use @ Autopatch server which is very helpful and it will fix your Flash Login problem.
Would just probably need to comment the resolution change code.
pintinho12 is offline  
Thanks
1 User
Old 02/14/2021, 14:49   #10
 
elite*gold: 0
Join Date: Feb 2014
Posts: 3
Received Thanks: 0
how i can add this code please
mahmoud magdy is offline  
Old 02/14/2021, 16:34   #11
 
elite*gold: 0
Join Date: Mar 2006
Posts: 490
Received Thanks: 51
Copy and paste will work.
Soulfly25 is offline  
Old 02/19/2021, 02:06   #12
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Props. Beats PS if you ask me.

Now, who is going to tell the poor guys that approved that PR that they have a problem?
ImmuneOne is offline  
Old 02/19/2021, 14:13   #13
 
elite*gold: 0
Join Date: Sep 2010
Posts: 22
Received Thanks: 3
Happy birth day!
XxDaMaRxX is offline  
Old 03/10/2021, 19:48   #14
 
elite*gold: 0
Join Date: Aug 2011
Posts: 7
Received Thanks: 0
Algum BR ensina a fazer isso ai em vídeo, por favor? Não consegui entender como adicionar esses códigos.
Fernando Soares is offline  
Old 03/12/2021, 18:53   #15
 
elite*gold: 0
Join Date: Jul 2009
Posts: 835
Received Thanks: 347
Quote:
Originally Posted by Fernando Soares View Post
Algum BR ensina a fazer isso ai em vídeo, por favor? Não consegui entender como adicionar esses códigos.
pintinho12 is offline  
Reply


Similar Threads Similar Threads
[Release] Fix the MouseLag on old Clients without hooking.
01/24/2018 - CO2 PServer Guides & Releases - 19 Replies
Here is a simple tool that Enables it when it detects Conquer and Disables the tail again once it closed. Code: using System.Diagnostics; using System.Runtime.InteropServices; using System.Timers; using System.Windows.Forms; using Timer = System.Timers.Timer;
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
*FLASH FLASH FLASH* 66er mk auf s9
04/17/2009 - Metin2 Trading - 7 Replies
hey wie die ueberschrift schon sagt ich vk einen lvl 66er mk auf s9 was ich suche ? sachen auf s9 oder sura ab lvl 50 screens bekommt ihr ueber icq oder msn



All times are GMT +1. The time now is 09:41.


Powered by vBulletin®
Copyright ©2000 - 2022, 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 ©2021 elitepvpers All Rights Reserved.