Jump to content
  • 0

Implementing setWeatherBlended(int weatherID, int duration)


izstas

Question

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? :D

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... :D 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

  • 0
Thanks, it's easier to develop if I can don't care about compatibility with 1.0 :)

But anyway looks like MTA is not compatible with VC2010 and I should install VC2008.

We're working on upgrading to VS2010, but in the mean time it's advisable to use VS2008.

The easiest way to get a custom build running, is to install an unstable nightly build from https://nightly.multitheftauto.com/ and then compile your files on top.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...