Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Invalid CRC launcher

Newbie Spellweaver
Joined
Aug 30, 2021
Messages
7
Reaction score
0
Hello! I'm Trying to patch my gunz.exe, default.mrs, model.mrs, is not working only system.mrs any clue's how it get works, btw i'm using 1.5 zlauncher source

Also
I tried already to reinstall my windows, disable my windows-defender, etc

AleriyaSama - Invalid CRC launcher - RaGEZONE Forums
 
I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
That must be because of the ZPatchBuilder that is not building the patch.xml well.
When you compile the ZPatchBuilder you must also compile the ZUpdate with the same cml project as your code, otherwise this will not work.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 30, 2021
Messages
7
Reaction score
0
Hello! I followed your steps but it isn't works

Compile zpatchbuilder zlauncher etc still not working.



That must be because of the ZPatchBuilder that is not building the patch.xml well.
When you compile the ZPatchBuilder you must also compile the ZUpdate with the same cml project as your code, otherwise this will not work.

Hey!
Btw Do you have a better source? Because in my source GunzLauncher didn't works :/
 
Upvote 0
Junior Spellweaver
Joined
Feb 2, 2012
Messages
162
Reaction score
56
Hello! I'm Trying to patch my gunz.exe, default.mrs, model.mrs, is not working only system.mrs any clue's how it get works, btw i'm using 1.5 zlauncher source

Also
I tried already to reinstall my windows, disable my windows-defender, etc

AleriyaSama - Invalid CRC launcher - RaGEZONE Forums

Your using Visual Studio 2019 yes? The issue is the way the DWORD for CRC32 gets calculated. Switch the values to float. The CRC32 is exceeding the upper limit supported safely in vs2019.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 30, 2021
Messages
7
Reaction score
0
Yes i use visual studio 2019, can you say it maybe in a bit more details, because i don't really understand what you mean, and yes i see a'lot of dword's in the files,
 
Upvote 0
Junior Spellweaver
Joined
Feb 2, 2012
Messages
162
Reaction score
56
Okey thank you so much. I'm waiting ^^

Code:
IN:
PatchBuilder/CNewApp/NewAppDlg.cpp


LINE:111 (REPLACE)
	DeleteFile("Patch.xml");
	DeleteFile("patch.xml"); // VS2019 targeting and windows C++ is cases sensitive post windows XP.

LINE 202: (REPLACE)

m_PatchList.push_back( new MPatchNode( szFilePath, FindData.nFileSizeLow, FindData.ftLastWriteTime, dwCRC));

m_PatchList.push_back( new MPatchNode( szFilePath, FindData.nFileSizeLow, FindData.ftLastWriteTime, (float)dwCRC)); //Cast Dword CRC as float;

IN:
cml/Include/MXml.h
LINE 142: (ADD)

	bool GetChildContents(long* iOutValue, const char* sChildTagName); // add a long to operate for float


IN:
cml/source/MXml.cpp

LINE:492 (ADD)

bool MXmlElement::GetChildContents(long* iOutValue, const char* sChildTagName)
{
	char szBuf[512];
	if (GetChildContents(szBuf, sChildTagName))
	{
		try
		{
			*iOutValue = atoi(szBuf);
		}
		catch (...)
		{
			*iOutValue = 0;
			return false;
		}

		return true;
	}

	return false;
}

IN:
ZLauncher/CNewApp/ZUpdate.cpp

LINE: 188 (REPLACE)

DWORD dwCRC = GetCRC( GetFileName(), pstrErrorMsg);
float dwCRC = GetCRC( GetFileName(), pstrErrorMsg);

LINE: 192 (REPLACE)

		char szMsg[ 512];
		char szMsg[2048]; //Longer Checksums require a longer size
		
LINE: 169(REPLACE & ADD)

		//sprintf( szMsg, "[ZUpdatePatchNode] Needs to update : %s .. CRC: %u", GetFileName(),GetChecksum());
		long ft = GetChecksum() - dwCRC;
		sprintf(szMsg, "[ZUpdatePatchNode] Needs to update : %s, remote(%u), local(%u) %u", GetFileName(), GetChecksum(), dwCRC,ft);
		
LINE: 513 (REPLACE)
		char szBuf[256];
		char szBuf[2048];
		
LINE: 522 (REPLACE)
			int nCheckSum = 0;
			float nCheckSum = 0; //Floating on sunshine. lol
			

Rebuild updater, then patch builder, then launcher. Use the new Patch builder and launcher.
 
Upvote 0
Newbie Spellweaver
Joined
Aug 30, 2021
Messages
7
Reaction score
0
Thank you so much! Let me try :)



I Take This Error.

AY9Gtl7 - Invalid CRC launcher - RaGEZONE Forums


 

Attachments

You must be registered for see attachments list
Last edited:
Upvote 0
Junior Spellweaver
Joined
Feb 2, 2012
Messages
162
Reaction score
56
Thank you so much! Let me try :)



I Take This Error.

AY9Gtl7 - Invalid CRC launcher - RaGEZONE Forums




This is my files can you check it out?

-->

2 Things.
1.
Comment those lines out (Should have done that already during conversion.)

Code:
			//if ( aPatchNode.GetChildContents( &nSize, MPTOK_SIZE) == false)
			//	continue;

2. You should disable HanAuthForClient

3. If you need more help, add me on discord
 

Attachments

You must be registered for see attachments list
Upvote 0
Back
Top