I started to try implement it on MTA 1.1 trunk code. And need some help from developers. I started from client part.
To sync it, I found that I need to change CPacketHandler::Packet_MapInfo and CWorldRPCs::SetWeatherBlended. Is it true?
I think I should to keep compatibility with servers that won't support blending duration. Or no?
If yes, the weather data in Packet_MapInfo is processed in the beginning of this function. If I won't change this and try to read blending duration after bitStream.Read ( ucBlendedWeatherHour ); I can get invalid data, because currently there bHasSkyGradient after ucBlendedWeatherHour. How to resolve this problem? Maybe read blending duration in the function's end (I expect that bitStream.Read will return false if no more data)?
P.S. I compiled unmodified (only edited one CEGUI code string because it wasn't compiling) 1.1 client from trunk with VC2010, downloaded data files (bass.dll etc), but can't connect to 1.0.4 server (client shows "Entering the game" for some seconds and reports about timeout after this). Is it normal? I know that MTA should be compiled with VC2008, but... So I can't check my changes now... Is it problem of compatibility with VC2010 and client works fine with VC2008 compiler?
Question
izstas
I started to try implement it on MTA 1.1 trunk code. And need some help from developers. I started from client part.
To sync it, I found that I need to change CPacketHandler::Packet_MapInfo and CWorldRPCs::SetWeatherBlended. Is it true?
I think I should to keep compatibility with servers that won't support blending duration. Or no?
If yes, the weather data in Packet_MapInfo is processed in the beginning of this function. If I won't change this and try to read blending duration after bitStream.Read ( ucBlendedWeatherHour ); I can get invalid data, because currently there bHasSkyGradient after ucBlendedWeatherHour. How to resolve this problem? Maybe read blending duration in the function's end (I expect that bitStream.Read will return false if no more data)?
P.S. I compiled unmodified (only edited one CEGUI code string because it wasn't compiling) 1.1 client from trunk with VC2010, downloaded data files (bass.dll etc), but can't connect to 1.0.4 server (client shows "Entering the game" for some seconds and reports about timeout after this). Is it normal? I know that MTA should be compiled with VC2008, but... So I can't check my changes now... Is it problem of compatibility with VC2010 and client works fine with VC2008 compiler?
Link to comment
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now