Quote:
Originally Posted by Fаng
I know that I'm bumping a SUPER old thread - but I *think* I just figured out what Res.dat's value means. It's in binary.
In Conquer 1.0, the value is 0001, meaning Conquer Online 1.0
In Conquer 2.0, the value is 0010, meaning Conquer Online 2.0
It was probably used for the transition back in the days... and you know TQ. They probably never got rid of the check. That's my theory at least.
|
Yes, the res.dat file is used to version the client. But I don't think TQ never used it. Anyway, you can use it, as pro4never said, to version your own server.
MsgConnect (AccServer), sent by the client to indicate to the AccServer to close the connection.
Code:
MsgHeader Header;
Int32 AccountID; //The unique ID of the account
Int32 Constant; //A constant hard-coded in the client
Byte ResFile[0x10]; //A string containing file name of the file that contains the version
MsgConnect (MsgServer), sent by the client at the connection. The first packet.
Code:
MsgHeader Header;
Int32 AccountUID;
Int32 Token;
Int16 Constant; //A constant hard-coded in the client
Byte Language[0x10]; //The first two letters of the language of the client. Hard-coded in graphic.dll.
Int32 Version; //The version of the client
So, yes, it's a versioning file. I use it to indicate if the client has to be patched. Also, I use the AccServer constant to validate the Conquer.exe and the MsgServer constant to validate the injection of my protection DLL. But, TQ do nothing with these values.