Register for your free account! | Forgot your password?

You last visited: Today at 12:19

  • 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 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 01/14/2021, 10:24   #16
 
ConquerDev's Avatar
 
elite*gold: 0
Join Date: Mar 2020
Posts: 30
Received Thanks: 9
#Me im maked solution with changed time directly. But this solution from Ultimation is more better .Thanks Ultimation !
ConquerDev is offline  
Thanks
1 User
Old 01/14/2021, 11:06   #17
 
elite*gold: 0
Join Date: Apr 2009
Posts: 22
Received Thanks: 0
same problem bro
engo is offline  
Old 01/14/2021, 13:06   #18
 
elite*gold: 0
Join Date: Nov 2010
Posts: 29
Received Thanks: 6
Quote:
Originally Posted by Ultimation View Post
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.

God in the sky, Ultimation on the ground !
TrapNZap is offline  
Thanks
1 User
Old 01/14/2021, 14:42   #19
 
elite*gold: 0
Join Date: Aug 2020
Posts: 11
Received Thanks: 0
must to be owner loder ?
Russia441 is offline  
Old 01/14/2021, 16:14   #20
 
elite*gold: 0
Join Date: Mar 2020
Posts: 59
Received Thanks: 21
Quote:
Originally Posted by ConquerDev View Post
#Me im maked solution with changed time directly. But this solution from Ultimation is more better .Thanks Ultimation !
Anything related to changing time is not a solution.
Envy\Craft is offline  
Thanks
1 User
Old 01/14/2021, 20:17   #21
 
hyperco's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
ty, bro! back up and running again!
hyperco is offline  
Thanks
1 User
Old 01/14/2021, 22:53   #22
 
elite*gold: 0
Join Date: Dec 2007
Posts: 10
Received Thanks: 2
well, i wont gonna need this anymore but it's really good to have u back { Angelius }
- Ultimation
ppl like u made the game something else and u { Angelius } my friend i will never forget what u have done for me u have been helping me Since day 1
thanks for all ur amazing work guy's
ahmed_drbaka_lo is offline  
Thanks
2 Users
Old 01/14/2021, 23:22   #23
 
Ultimation's Avatar
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,425
Received Thanks: 1,565
If anyone is having issues with windows 7 SP1 (even though its no longer officially supported), You can use the flash.ocx that comes with the client, however it will be missing the conquer logo in the top right i believe.
Ultimation is offline  
Old 01/15/2021, 05:48   #24
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 991
Received Thanks: 1,107
Quote:
Originally Posted by Ultimation View Post
If anyone is having issues with windows 7 SP1 (even though its no longer officially supported), You can use the flash.ocx that comes with the client, however it will be missing the conquer logo in the top right i believe.
Also, I noticed that if someone has several different version of flash player installed at the same time, The version would be included in the dll name to differentiate between dlls when loading them. So it would look something like this "flashxx.x.x.***.ocx" instead of "flash.ocx".

In this case, The hook will fail to find the dll.

This would fix issue.
Code:
if (StrStrW(lpLibFileName, L"Flash") && StrStrW(lpLibFileName, L".ocx"))
     lpLibFileName = L"./Flash.ocx";
{ Angelius } is offline  
Thanks
4 Users
Old 01/15/2021, 22:36   #25
 
KOMOKABOY's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 105
Received Thanks: 5
im still having issues.. im not sure were ive went wrong...
KOMOKABOY is offline  
Old 01/16/2021, 16:03   #26
 
elite*gold: 0
Join Date: Feb 2007
Posts: 340
Received Thanks: 38
thanks for this release, could you help me understand what this does?
This code is hooking the global kernelbase.dll in order to make the custom Flash.ocx to be used instead of the one installed locally?
If this is not the case, then does this need to be injected into the conquer executable?
I've tried to run it from a loader but I think I'm doing it wrong since it didn't throw any error but it didn't work, so I believe it should be injected into the client and run from the client itself?

EDIT: managed to make it work, thanks a lot for the fix
ryuchetval is offline  
Old 01/18/2021, 09:07   #27
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
How can I make this work? Do I need to create a DLL and then hook it in the Conquer.exe?
Soulfly25 is offline  
Old 01/18/2021, 11:14   #28
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
it should be added in the loader
marcbacor6666 is offline  
Old 01/18/2021, 11:17   #29
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
Quote:
Originally Posted by marcbacor6666 View Post
it should be added in the loader
Yeah, If you are using a loader. But there is a chance that you can make a DLL to hook it in the Conquer.exe. Which I think the release code for Ultimation is that's something a peice of DLL to hook in Conquer.exe if yu dont have a loader.
Soulfly25 is offline  
Old 01/18/2021, 14:57   #30
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 908
Received Thanks: 390
Quote:
Originally Posted by Soulfly25 View Post
Yeah, If you are using a loader. But there is a chance that you can make a DLL to hook it in the Conquer.exe. Which I think the release code for Ultimation is that's something a peice of DLL to hook in Conquer.exe if yu dont have a loader.
pintinho12 is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Release] Flash fix for old clients.
02/06/2022 - CO2 Guides & Templates - 19 Replies
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. https://i.imgur.com/5pGFCf0.png The client by default loads the system installed flash.ocx, this has been updated to expire on the 12th of january 2021.
[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 +2. The time now is 12:19.


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.