uberEmulator - Stabilized - The Final Revision

Page 4 of 11 FirstFirst 1234567891011 LastLast
Results 46 to 60 of 165
  1. #46
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by MikeDavies View Post
    Remove the time lock
    How ? I tried removing the file. I get 126 errors.

  2. #47
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by MattUK View Post
    How ? I tried removing the file. I get 126 errors.
    Make the timelock Private instead of public

    Ill try and fix up and release

  3. #48
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by MikeDavies View Post
    Make the timelock Private instead of public

    Ill try and fix up and release
    That would be greatly appreciated.

  4. #49
    Account Upgraded | Title Enabled! Ubercheese is offline
    MemberRank
    Mar 2009 Join Date
    238Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by MattUK View Post
    After getting 50+ users online I get this:


    (I'm using the database provided).
    I get that, when trying to load up a room.

  5. #50
    Valued Member vicancer is offline
    MemberRank
    Mar 2010 Join Date
    133Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by MikeDavies View Post
    Remove the time lock
    TimedLock.cs edit in C#

    Code:
    using System;
    using System.Runtime.InteropServices;
    using System.Threading;
    
    [StructLayout(LayoutKind.Sequential)]
    public struct TimedLock : IDisposable
    {
        private readonly object target;
        private TimedLock(object o)
        {
            this.target = o;
        }
    
        public void Dispose()
        {
            Monitor.Exit(this.target);
        }
    
        public static TimedLock Lock(object o)
        {
            return Lock(o, TimeSpan.FromSeconds(10.0));
        }
    
        public static TimedLock Lock(object o, TimeSpan timeout)
        {
            TimedLock @lock = new TimedLock(o);
            if (!Monitor.TryEnter(o, timeout))
            {
                Console.WriteLine("Timeout Waiting for lock... ");
            }
            return @lock;
        }
    }
    :)

  6. #51
    Account Upgraded | Title Enabled! MikeDavies is offline
    MemberRank
    Aug 2010 Join Date
    WalesLocation
    629Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by vicancer View Post
    TimedLock.cs edit in C#

    Code:
    using System;
    using System.Runtime.InteropServices;
    using System.Threading;
    
    [StructLayout(LayoutKind.Sequential)]
    public struct TimedLock : IDisposable
    {
        private readonly object target;
        private TimedLock(object o)
        {
            this.target = o;
        }
    
        public void Dispose()
        {
            Monitor.Exit(this.target);
        }
    
        public static TimedLock Lock(object o)
        {
            return Lock(o, TimeSpan.FromSeconds(10.0));
        }
    
        public static TimedLock Lock(object o, TimeSpan timeout)
        {
            TimedLock @lock = new TimedLock(o);
            if (!Monitor.TryEnter(o, timeout))
            {
                Console.WriteLine("Timeout Waiting for lock... ");
            }
            return @lock;
        }
    }
    :)
    Brilliant, i didnt do mine like that tho

  7. #52
    Valued Member vicancer is offline
    MemberRank
    Mar 2010 Join Date
    133Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Code:
    04/11/2010 8:08:46
    System.Threading.SynchronizationLockException: El método de sincronización del objeto se ha llamado desde un bloque de códigos sin sincronizar.
       en Uber.HabboHotel.GameClients.GameClientManager.GetClient(UInt32 ClientId) en C:\Documents and Settings\Compaq_Propietario\Mis documentos\Descargas\uberEmulator\whosthat\HabboHotel\GameClients\GameClientManager.cs:línea 45
       en Uber.HabboHotel.GameClients.GameClientManager.StopClient(UInt32 ClientId) en C:\Documents and Settings\Compaq_Propietario\Mis documentos\Descargas\uberEmulator\whosthat\HabboHotel\GameClients\GameClientManager.cs:línea 71
       en Uber.Net.TcpConnection.ConnectionDead() en C:\Documents and Settings\Compaq_Propietario\Mis documentos\Descargas\uberEmulator\whosthat\Net\TcpConnection.cs:línea 89
       en Uber.Net.TcpConnection.DataReceived(IAsyncResult iAr) en C:\Documents and Settings\Compaq_Propietario\Mis documentos\Descargas\uberEmulator\whosthat\Net\TcpConnection.cs:línea 198
       en System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       en System.Net.ContextAwareResult.CompleteCallback(Object state)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       en System.Net.ContextAwareResult.Complete(IntPtr userToken)
       en System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
       en System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       en System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    only mistake that I have a solution?

  8. #53
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Sorry to sound like a begging noob but I'm _that_ good in C# but can some one please release a fix for this ? When making timelock private I get a few compile errors and yeah I've spent a good few hours trying to fix them.

    I'm not using the above fix because it looks like it doesn't work.

    thx
    Last edited by Matthew; 04-11-10 at 10:16 PM.

  9. #54
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Great release iJakey gonna use it now for meh hotel. :D

  10. #55
    Member icesurvivor is offline
    MemberRank
    Apr 2010 Join Date
    58Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Nice release. Is it possible to replace the emu I'm using with your one without resetting the db?

  11. #56
    Sydius is a Master Mudkip sidle is offline
    MemberRank
    Jun 2009 Join Date
    In the buttLocation
    301Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by icesurvivor View Post
    Nice release. Is it possible to replace the emu I'm using with your one without resetting the db?
    Yeah, just use his structure and import an back-up Query with navicat (or PHPMYADMIN)

    Like i did

  12. #57
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Very nice Jake..

    Haven't spoken in ages mate, Sexy release :P

  13. #58
    Account Upgraded | Title Enabled! iJakey is offline
    MemberRank
    May 2010 Join Date
    355Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Ohhh Jay boi, Idk wth is up, some people I can't see on my msn contacts anymore. ;\

    Off-Topic: How have you been?

  14. #59
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: uberEmulator - Stabilized - The Final Revision

    Quote Originally Posted by iJakey View Post
    Ohhh Jay boi, Idk wth is up, some people I can't see on my msn contacts anymore. ;\

    Off-Topic: How have you been?
    Na, I just have been in-active...

    I've been good buddy, yaself?

  15. #60
    Account Upgraded | Title Enabled! Yannickzz is offline
    MemberRank
    May 2009 Join Date
    The NetherlandsLocation
    348Posts

    Re: uberEmulator - Stabilized - The Final Revision

    By the way, the :news command doesn't work, for the rest: awesome job :D



Advertisement