Welcome to the RaGEZONE - MMORPG development forums.

Emulator Update System

This is a discussion on Emulator Update System within the Habbo Releases forums, part of the Habbo Hotel category; Hello Ragezone This is an update system for checking versions. Code: class VersionAdapter : IDisposable { private string Version = ...

LyncusMU
Results 1 to 9 of 9
  1. #1
    Alpha
    Rank
    Member
    Join Date
    Dec 2011
    Posts
    134
    Liked
    39

    Emulator Update System

    Tabo Hotel
    Hello Ragezone

    This is an update system for checking versions.

    Code:
        class VersionAdapter : IDisposable
        {
            private string Version = string.Empty;
    
            public VersionAdapter(string Version)
            {
                this.Version = Version;
            }
    
            public string GetNewest()
            {
                var Builder = new StringBuilder();
                var Buffer = new byte[8192];
    
                try
                {
                    HttpWebRequest Request = (HttpWebRequest)WebRequest.Create("http://breakz0ne.webs.com/B33R.version");
                    HttpWebResponse Response = (HttpWebResponse)Request.GetResponse();
    
                    Stream ResStream = Response.GetResponseStream();
    
                    var Count = 0;
    
                    do
                    {
                        Count = ResStream.Read(Buffer, 0, Buffer.Length);
    
                        if (Count > 0)
                        {
                            Builder.Append(Encoding.ASCII.GetString(Buffer, 0, Count));
                        }
                    }
                    while (Count > 0);
                }
                catch { }
    
                var Version = Builder.ToString();
    
                return Version;
            }
    
            public Boolean Validate()
            {
                var A = string.Empty;
                var B = string.Empty;
    
                for (int x = 0; x <= 3; x++)
                {
                    var Am = int.Parse(Version.Split('.')[x]);
                    var Bm = int.Parse(GetNewest().Split('.')[x]);
    
                    A += Am;
                    B += Bm;
                }
    
                return int.Parse(A) < int.Parse(B);
            }
    
            public void Dispose() { }
        }
    How to use?
    Code:
                using (var VersionAdapter = new VersionAdapter(%CURRENTVERSIONEMULATOR%))
                {
                    if (VersionAdapter.Validate()) // Outdated
                    {
                       // Update Emulator.
                    }
                }

  2. HostKey.com: Unmetered Dedicated servers in the Netherlands
  3. #2
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    Everywhere i go
    Posts
    206
    Liked
    32

    Re: Emulator Update System

    Nice one :)

    Of: Juggernaut, thats a cod zombies drink? haha

  4. #3
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    Belgium
    Posts
    306
    Liked
    41

    Re: Emulator Update System

    Nice :) thanks?

  5. #4
    TopHabbo.com Best Topsite
    Rank
    Alpha Member
    Join Date
    Oct 2007
    Posts
    2,423
    Liked
    497

    Re: Emulator Update System

    Quote Originally Posted by Akimbo View Post
    Nice one :)

    Of: Juggernaut, thats a cod zombies drink? haha
    Nice release.

    And nope in MW3 there a type of killstreak called Juggernaught that gives you a big heavy armed suit and a riot shield.

  6. #5
    /title
    Rank
    Member +
    Join Date
    Mar 2011
    Posts
    1,034
    Liked
    146

    Re: Emulator Update System

    Nice release, thanks.

  7. #6
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jan 2012
    Location
    C:\inetpub\
    Posts
    213
    Liked
    26

    Re: Emulator Update System

    This is great! Thanks for this!

  8. #7
    TopHabbo.com Best Topsite
    Rank
    Alpha Member
    Join Date
    Oct 2007
    Posts
    2,423
    Liked
    497

    Re: Emulator Update System

    Update. The project name is Boolean!

    Due: Project String.
    [Coming soon!]

  9. #8
    Working in private usage.
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    On FrostEmu
    Posts
    902
    Liked
    133

    Re: Emulator Update System

    Quote Originally Posted by Zak© View Post
    Nice release.

    And nope in MW3 there a type of killstreak called Juggernaught that gives you a big heavy armed suit and a riot shield.
    That's the point streak, the real kill streak is a LMG and MP412 (revolver)

    Ontopic: looks.. nice I guess.

  10. #9
    The Omega
    Rank
    Member
    Join Date
    Oct 2011
    Location
    On RaGEZONE.com
    Posts
    116
    Liked
    7

    Re: Emulator Update System

    Nice realase!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •