Thread: x-log fix, 1 line..

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 x-log fix, 1 line.. 
    Donator


    Join Date
    Oct 2008
    Posts
    81
    Thanks given
    0
    Thanks received
    3
    Rep Power
    326
    ----
    Reply With Quote  
     

  2. #2  
    :')


    Join Date
    Oct 2008
    Age
    29
    Posts
    1,946
    Thanks given
    48
    Thanks received
    47
    Rep Power
    1545
    Nice guide, Will use, But this is a snippet .
    Reply With Quote  
     

  3. #3  
    Registered Member WebsterScape's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    467
    Thanks given
    32
    Thanks received
    3
    Rep Power
    17
    Very nice.I can't think of a better way to do it then this.
    Reply With Quote  
     

  4. #4  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Lol how is this good fight? This isn't it anyway.
    Free Filehost Premium Accounts
    Click Here
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2008
    Posts
    2,056
    Thanks given
    26
    Thanks received
    98
    Rep Power
    0
    Lines mean nothing, you can write an entire server on 1 line if you wanted to, its the conventions and efficiency of the code that matters.

    You can do this the real way, and the much better way with about 5 or 6 lines.

    with those extra 5 lines you will save yourself alot of trouble.
    Reply With Quote  
     

  6. #6  
    Registered Member
    AMG A Bear's Avatar
    Join Date
    Jun 2008
    Posts
    1,157
    Thanks given
    27
    Thanks received
    87
    Rep Power
    945
    I honestly don't see how this solves anything....

    I could be wrong.
    Quote Originally Posted by The Night Life View Post
    Errm. I had a similar idea a very long time ago, about instead of current rs's gameframe, (622) making a rsps with about a 1645 or something. Make it look like you walked outside. I even gathered proffesional computer programmers to help, but bailed on the idea after i realized if we all worked on it non-stop for months at a time, we'd barely get any progress. (unless you wanted to half ass it)
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jun 2009
    Posts
    2,916
    Thanks given
    169
    Thanks received
    806
    Rep Power
    0
    doesnt work for me, when i add disconnect = false i get 100 errors.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jul 2009
    Posts
    597
    Thanks given
    158
    Thanks received
    95
    Rep Power
    632
    Quote Originally Posted by theowner123 View Post
    doesnt work for me, when i add disconnect = false i get 100 errors.
    ..... How is that even possible...
    Reply With Quote  
     

  9. #9  
    Saltina
    Guest
    Code:
    public int xlogFix = 0;
    Code:
    if (xlogFix == 1){
    disconnected = true;
    }
    Code:
    if (xlogFix > 0) {
    			xlogFix--;
    		}
    Code:
    if (numBytesInBuffer > 0) {
    try {
    out.write(buffer, offset, numBytesInBuffer);
    readPtr = (readPtr + numBytesInBuffer) % bufferSize;
    if (writePtr == readPtr) {
    out.flush();
    }
    } catch (java.net.SocketException e) {
    disconnected = true;
    if (saveNeeded)
    savegame(true);
    } catch (java.lang.Exception __ex) {
    server.logError(__ex.getMessage());
    disconnected = true;
    if (saveNeeded)
    savegame(true);
    }
    }
    }
    disconnected = false;
    }
    Code:
    if(!logoutButton && inCombat) {
    disconnected = false;
    xlogFix = 30;
    }
    Reply With Quote  
     

  10. #10  
    Member x-log fix, 1 line.. Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    Oh god not another one, this is a stupid way to do it, i posted a better way in one of the many other X-log fix topics.

    Attached imageAttached image
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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