[MISC] CraftProxy 0.2.0 - Reduce bandwidth use by caching chunk data [1.6]

Discussion in 'Archived: Plugin Releases' started by Raphfrk, May 1, 2011.

  1. Offline

    Raphfrk

    CraftProxy - Reduce bandwidth use by caching chunk data
    Version: 0.2.0

    Description

    This plugin and local client allows chunk data to be cached locally by players. This reduces the bandwidth required for hosting the server. It also helps users who are on slower connections.

    I am not sure what the status of this system is. It doesn't count as a plugin, since it has 2 parts.

    Even when running the plugin, players who don't use the client proxy can still connect. However, they will use the full bandwidth.

    The system can reduce bandwidth by 70-90% (after the 2nd login).

    Setup

    Server

    Add the plugin file to the plugins folder

    Client

    Start minecraft client and login
    Double click on the client jar file
    Enter login details
    Enter the server location/port in the GUI
    Press start on the GUI
    Connect to localhost on the minecraft client

    Stable Builds

    None yet

    Dev Builds

    Warning: These may not be stable

    Client
    Plugin

    Had it get the compress/decompression gain backwards.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
    Jushy, Martin1704, Nathan C and 24 others like this.
  2. Offline

    Pythros

    TL;DR

    I understand this helps with bandwidth. Does it or has anyone noticed if it relieves resources outside of bandwidth on the server? Lets say, memory? I don't care about bandwidth on my server, only the other resources it uses.
     
  3. Offline

    Simanova

    This plugin is designed for small bandwith - nothing more - nothing less
    I've got enough upload for 2 people, so this plugin is essential for me :) to drive with 6 people
     
  4. Offline

    Raphfrk

    The current version seems to be unstable. I am re-doing the packet parser code to hopefully make it better.

    I could set it so that it sends at most once every 30ms or something.

    I didn't want to add latency. However, my new version pauses for 10ms if it tries to read a packet and only gets a few bytes. I think that would have a similar effect.

    Alternatively, I might have a 10ms latency if the buffer has fewer than 1024 bytes in it.

    It sounds like there is a bandwidth saving immediately.

    I was thinking of also adding a system where non-chunk data is prioritised. That way the server shouldn't lag so much when someone teleports.

    Notch's server does this already on a per-player basis.

    It isn't really a plugin, it is just a small class which starts the server with the bukkit server.

    In fact, it sounds like people get better performance if they use it stand alone.

    Actually, it probably shouldn't exist at all since there is no server side cache needed, though there was in the initial version.

    I have it written so that it does nothing but parse the packets.

    If people want to test then that would be useful.

    Yes, the GUI converts the compressed packets back into MC packets.

    Right.

    They will leave the port at 25565 and connect to "localhost"

    They put your address in remote hostname and leave the port at 20000.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  5. Offline

    Pencilhead

    It's quite contradictory and/or confusing with your explanation.
    So in the GUI, do they leave Remote Server or Local Server at port 25565?
    Logically, I would guess that it's Remote Server but you say later on that
    so you leave Local Server at port 25565 and leave the Name as localhost?

    And for Remote Server, they just do what you say.
    When it's all done, they should click Start, open Minecraft, click Multiplayer, and type in localhost and connect?

    Maybe I'm just stupid.
    Thanks!
     
  6. Offline

    Raphfrk

    Anyway ....

    This is the latest version of ending in "Lite-er" :).

    At the moment, it is a pure passthrough and doesn't change the data.

    However, I added a packet buffer, so maybe that will help. It flushes the packet buffer at least once every 20ms.

    My bandwidth calculations just accounted for actually sent data and not network overhead, so won't be able to tell if that improved.

    You can start it with:

    java -jar CraftProxyLiter.jar 19999 25565

    The first number is the listen port and the 2nd number is the default server's listen port. It should work with Hostname:Port too, but I haven't tested it.

    If people want to test it to make sure it creates a stable connection, then I can look at adding the caching functions.

    Sorry, so many proxies and servers.

    Assuming you have left things at default

    Remote Server
    Name: minecraft.yourserver.com
    Port: 20000

    Local Server
    Name: localhost
    Port: 25565 (or 25564 if server + client are on the same computer)

    Minecraft Client
    localhost:25565 (or 25564 if server + client are on the same computer)

    Note: you must forward port external 20000 to your computer, if you are behind a firewall.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  7. Offline

    Pencilhead

    That completely explains it.
    Thank you :D
    Liter version!
     
  8. Offline

    ledhead900

    Is this download up or not as Im willing to test it!

    PHP:
    OLD LOG JUST TO SHOW THE PACKET ISSUE.
    TESTING NEW VERSION NOW!

    Name authentication enabled
    WARNING
    reconnectfile parameter not set
    WARNING
    players will be connected to the default server regardless of last server connected to
    Use "end" to stop the server
    [CraftProxy-LiteServer console disabled
    Server listening on port
    20000
    Connection from 115.189.151.145
    /50365
    [12:15:54 PM115.189.151.145/50365 (r_a_person): Connecting to10.0.0.25:7767
    [12:19:54 PM115.189.151.145/50365 (r_a_person): Closing connection to server
    [12:19:54 PM115.189.151.145/50365 (r_a_person): Closing connection to client
    Connection from 115.189.28.47
    /50602
    [12:24:06 PM115.189.28.47/50602 (r_a_person): Connecting to10.0.0.25:7767
    [12:24:26 PM115.189.28.47/50602 (r_a_person): Client sent bad login packet - (Id null)
    [
    12:24:26 PM115.189.28.47/50602 (r_a_person): Closing connection to server
    [12:24:26 PM115.189.28.47/50602 (r_a_person): Closing connection to client
    Connection from 115.189.28.47
    /50606
    [12:24:33 PM115.189.28.47/50606 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    64
    [12:24:43 PM115.189.28.47/50606 (r_a_person): Uplink Previous packets (Oldest -> Newest): 1111111111111111111111111111111111111164
    [12:24:43 PM115.189.28.47/50606 (r_a_person): Closing connection to server
    [12:24:43 PM115.189.28.47/50606 (r_a_person): Closing connection to client
    Connection from 115.189.28.47
    /50613
    [12:24:46 PM115.189.28.47/50613 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    65
    [12:24:55 PM115.189.28.47/50613 (r_a_person): Uplink Previous packets (Oldest -> Newest): 1311111111131313131111111313131313231565
    [12:24:55 PM115.189.28.47/50613 (r_a_person): Closing connection to server
    [12:24:55 PM115.189.28.47/50613 (r_a_person): Closing connection to client
    Connection from 115.189.28.47
    /50617
    [12:24:59 PM115.189.28.47/50617 (r_a_person): Connecting to10.0.0.25:7767
    [12:25:15 PM115.189.28.47/50617 (r_a_person): Closing connection to server
    [12:25:15 PM115.189.28.47/50617 (r_a_person): Closing connection to client
    Connection from 115.189.73.139
    /51565
    [3:11:05 PM115.189.73.139/51565 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    : -124
    [3:11:13 PM115.189.73.139/51565 (r_a_person): Uplink Previous packets (Oldest -> Newest): 11111111111111111311111111111111111111, -124
    [3:11:13 PM115.189.73.139/51565 (r_a_person): Closing connection to server
    [3:11:13 PM115.189.73.139/51565 (r_a_person): Closing connection to client
    Connection from 115.189.73.139
    /51571
    [3:11:18 PM115.189.73.139/51571 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    : -90
    [3:11:26 PM115.189.73.139/51571 (r_a_person): Uplink Previous packets (Oldest -> Newest): 11111111111111111111111111111111111123, -90
    [3:11:26 PM115.189.73.139/51571 (r_a_person): Closing connection to server
    [3:11:26 PM115.189.73.139/51571 (r_a_person): Closing connection to client
    Connection from 115.189.73.139
    /51575
    [3:11:29 PM115.189.73.139/51575 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    64
    [3:11:39 PM115.189.73.139/51575 (r_a_person): Uplink Previous packets (Oldest -> Newest): 1111111111111111111111111111111111111164
    [3:11:39 PM115.189.73.139/51575 (r_a_person): Closing connection to server
    [3:11:39 PM115.189.73.139/51575 (r_a_person): Closing connection to client
    Connection from 115.189.73.139
    /51579
    [3:11:45 PM115.189.73.139/51579 (r_a_person): Connecting to10.0.0.25:7767
    CRITICAL ERROR unknown packet id
    : -124
    [3:11:59 PM115.189.73.139/51579 (r_a_person): Uplink Previous packets (Oldest -> Newest): 11111111111111111111111111111111111111, -124
    [3:11:59 PM115.189.73.139/51579 (r_a_person): Closing connection to server
    [3:11:59 PM115.189.73.139/51579 (r_a_person): Closing connection to client
    Connection from 115.189.73.139
    /51583
    [3:12:03 PM115.189.73.139/51583 (r_a_person): Connecting to10.0.0.25:7767
    [3:14:11 PM115.189.73.139/51583 (r_a_person): Closing connection to server
    [3:14:11 PM115.189.73.139/51583 (r_a_person): Closing connection to client
    Killing server from Bukkit
    Waiting 
    for server to close
     
  9. Offline

    ratty

    Regarding the bukkit plugin portion, I have this in proxylite.txt:
    listen_hostname_port=1.2.3.4:20000
    And it is still binding to all interfaces, I run 2 minecraft servers and each has its own IP, I'd rather tell people to connect to the DNS name and leave the port at 20000 instead of saying for server 1 use 20000 for server 2 use 20001. Its not a show stopper by any means, but its just a request.
     
  10. Offline

    Simanova

    CraftProxyLiter works flawless - but got no datastream compression and local cache

    I would like to test CraftProxyLite asap, if your recoding was successfully
     
  11. Offline

    ledhead900

    Ok apprently v55 is worse for r_a_person he cannot connect at all with proxy now.
    will post log in a sec
     
  12. Offline

    40540057

    Please update for CB 766 ... PLEASE! BlindCraft won't survive without it ...
     
  13. Offline

    Raphfrk

    It should work for 766

    That shouldn't be an issue, feel free to remind me again once I have the re-code working.

    I have updated again. It now has a fairness system. When the upload is at max rate, no more than 50% of the bandwidth will be assigned to chunk data.

    I still need to add the chunk compression code, but I think the original code was fine, so it shouldn't be a big issue.
     
  14. Offline

    ledhead900

    How do we use craftproxyliter as it just gives me a exception error on 766 on start.

    is liter only to be used standalone or something?

    EDIT:
    ok using both standalone now and the liter version allowes me to connect but it kicks me with unable to authenticate username or end of stream instantly.

    current v55 build lets me join for most of our users is far worse then the fix implimented they all disconnect instantly now with string errors and bad packet id's.
     
  15. Offline

    angus22397

  16. Offline

    Raphfrk

    Well, I don't see why I would get angry :).

    However, I think that they are different ideas (though granted both related to performance). Performance tweaks optimises server disk read/writes. It prevents chunks being written to disk over and over again.

    This has no effect on the server <-> client comms and has no effect on the network bandwidth used.

    This plugin doesn't have any effect on server disk usage at all. It reduces the network bandwidth.

    However, that inherently means that some kind of decompressor must be present at the client.

    It hasn't got the GUI built in yet, is this when starting by double clicking?

    You can turn authentication off by using the auth_off command line option.

    I am concentrating on getting the newer version working rather than tracking down bugs in the old version.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  17. Offline

    ledhead900

    Well I need authentication on I dont run no pirate server. So I guess that would be a bug then.

    as for the gui no I was starting it as plugin it did not create a config and it did not work with the existing config it just gave me an excpetion on load I will try it again if u want to see the error.


    Also by v55 im talking about what ever version was the stable release you just forgot to change your OP title.

    I think its 56 or something I dunno, but it worse then last one, as you read users cannot connect at all with out instant packet Issue disconnect.

    So quick Recap to make it reading shorter.

    1.Current Stable version is a good 2x worse then prev version for the Bad Packet bug
    2.Deveolpment version wont initaite on server start when used as a plugin on CB 766
    3.Development version kick any one attempting to join with non validadated username when I require all usernames be Authenticated.
     
  18. Offline

    Raphfrk

    Hoping the new version will be ready soon.

    [/quote]

    Btw, what do you mean non-validated? If you turn on authentication, isn't that what you want?
     
  19. Offline

    Simanova

    i hope so, too :)
     
  20. Offline

    ledhead900

    PHP:
    Starting Craftproxy-lite version 56
    Name authentication enabled
    WARNING
    reconnectfile parameter not set
    WARNING
    players will be connected to the default server regardless of last serv
    er connected to
    Use "end" to stop the server
    Server listening on port
    20000
    Connection from 10.0.0.23
    /49868
    [11:44:37 AM10.0.0.23/49868 (ledhead900): Connecting tomindcalf.sytes.net:77
    67
    local cache enabled
    Chunk 
    -13 -29 updated false
    Chunk 
    -13 -29 added true
    Connection from 115.189.73.253
    /49305
    [11:51:02 AM115.189.73.253/49305 (r_a_person): Connecting tomindcalf.sytes.n
    et
    :7767
    local cache enabled
    [11:51:22 AM115.189.73.253/49305 (r_a_person): Closing connection to server
    [11:51:22 AM115.189.73.253/49305 (r_a_person): Closing connection to client
    Connection from 115.189.73.253
    /49314
    [11:51:25 AM115.189.73.253/49314 (r_a_person): Connecting tomindcalf.sytes.n
    et
    :7767
    local cache enabled
    [11:51:36 AM115.189.73.253/49314 (r_a_person): Closing connection to server
    [11:51:36 AM115.189.73.253/49314 (r_a_person): Closing connection to client
    Connection from 115.189.73.253
    /49318
    [11:51:47 AM115.189.73.253/49318 (r_a_person): Connecting tomindcalf.sytes.n
    et
    :7767
    local cache enabled
    [11:51:58 AM115.189.73.253/49318 (r_a_person): Closing connection to server
    [11:51:58 AM115.189.73.253/49318 (r_a_person): Closing connection to client
    Connection from 115.189.73.253
    /49322
    [11:52:06 AM115.189.73.253/49322 (r_a_person): Connecting tomindcalf.sytes.n
    et
    :7767
    local cache enabled
    [11:52:21 AM115.189.73.253/49322 (r_a_person): Closing connection to server
    [11:52:21 AM115.189.73.253/49322 (r_a_person): Closing connection to client
    Connection from 115.189.73.253
    /49326
    [11:52:30 AM115.189.73.253/49326 (r_a_person): Connecting tomindcalf.sytes.n
    et
    :7767
    local cache enabled
    [11:52:53 AM115.189.73.253/49326 (r_a_person): Closing connection to server
    [11:52:53 AM115.189.73.253/49326 (r_a_person): Closing connection to client
    [12:18:52 PM10.0.0.23/49868 (ledhead900): Closing connection to server
    [12:18:52 PM10.0.0.23/49868 (ledhead900): Closing connection to client
    Connection from 58.169.148.101
    /53501
    [6:58:05 PM58.169.148.101/53501 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    [6:58:07 PM58.169.148.101/53501 (Spunkan): Client sent bad login packet - (Id
    null)
    [
    6:58:07 PM58.169.148.101/53501 (Spunkan): Closing connection to server
    [6:58:07 PM58.169.148.101/53501 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53502
    [6:58:11 PM58.169.148.101/53502 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    73
    [6:58:20 PM58.169.148.101/53502 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 131311111111111111111111111111111111,
     
    1173
    [6:58:20 PM58.169.148.101/53502 (Spunkan): Closing connection to server
    [6:58:20 PM58.169.148.101/53502 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53514
    [6:58:27 PM58.169.148.101/53514 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    Chunk 
    -9 22 updated false
    Chunk 
    -9 22 added true
    CRITICAL ERROR unknown packet id
    64
    [7:00:32 PM58.169.148.101/53514 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 131313131313131313131313131370000,
    64
    [7:00:32 PM58.169.148.101/53514 (Spunkan): Closing connection to server
    [7:00:32 PM58.169.148.101/53514 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53581
    [7:00:52 PM58.169.148.101/53581 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -36
    [7:01:02 PM58.169.148.101/53581 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 131113131313131311111116111611161111,
     
    5, -36
    [7:01:02 PM58.169.148.101/53581 (Spunkan): Closing connection to server
    [7:01:02 PM58.169.148.101/53581 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53596
    [7:01:09 PM58.169.148.101/53596 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    [7:01:37 PM58.169.148.101/53596 (Spunkan): Closing connection to server
    [7:01:37 PM58.169.148.101/53596 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53621
    [7:01:43 PM58.169.148.101/53621 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    Chunk 
    -14 23 updated false
    CRITICAL ERROR unknown packet id
    55
    [7:02:45 PM58.169.148.101/53621 (Spunkan): Downlink Previous packets (Oldest -
    Newest): 31313133333331313131313331313131917
    955
    [7:02:45 PM58.169.148.101/53621 (Spunkan): Closing connection to server
    [7:02:45 PM58.169.148.101/53621 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /53634
    [7:03:34 PM58.169.148.101/53634 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    [7:32:32 PM58.169.148.101/53634 (Spunkan): Closing connection to server
    [7:32:32 PM58.169.148.101/53634 (Spunkan): Closing connection to client
    Connection from 122.56.193.137
    /50899
    [7:39:34 PM122.56.193.137/50899 (r_a_person): Connecting tomindcalf.sytes.ne
    t
    :7767
    local cache enabled
    Connection from 122.56.193.137
    /50905
    [7:39:46 PM122.56.193.137/50905 (r_a_person): Connecting tomindcalf.sytes.ne
    t
    :7767
    local cache enabled
    [7:39:54 PM122.56.193.137/50905 (r_a_person): Closing connection to server
    [7:39:54 PM122.56.193.137/50905 (r_a_person): Closing connection to client
    [7:40:21 PM122.56.193.137/50899 (r_a_person): Closing connection to server
    [7:40:21 PM122.56.193.137/50899 (r_a_person): Closing connection to client
    Connection from 58.169.148.101
    /53914
    [7:49:57 PM58.169.148.101/53914 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    [7:50:35 PM58.169.148.101/53914 (Spunkan): Unable to read from socket
    [7:50:35 PM58.169.148.101/53914 (Spunkan): Closing connection to server
    [7:50:35 PM58.169.148.101/53914 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54143
    [7:58:33 PM58.169.148.101/54143 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -26
    [7:59:50 PM58.169.148.101/54143 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 101010101010101010131311111111111111,
     
    11, -26
    [7:59:50 PM58.169.148.101/54143 (Spunkan): Closing connection to server
    [7:59:50 PM58.169.148.101/54143 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54161
    [7:59:55 PM58.169.148.101/54161 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -35
    [8:02:13 PM58.169.148.101/54161 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 111111131313131313131313131313131313,
     
    13, -35
    [8:02:13 PM58.169.148.101/54161 (Spunkan): Closing connection to server
    [8:02:13 PM58.169.148.101/54161 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54171
    [8:02:18 PM58.169.148.101/54171 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -78
    [8:36:03 PM58.169.148.101/54171 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 121212121010101010101518101010101010,
     
    12, -78
    [8:36:03 PM58.169.148.101/54171 (Spunkan): Closing connection to server
    [8:36:03 PM58.169.148.101/54171 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54442
    [8:36:08 PM58.169.148.101/54442 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    121
    [8:48:25 PM58.169.148.101/54442 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 131313111111111113131313131313131313,
     
    13121
    [8:48:25 PM58.169.148.101/54442 (Spunkan): Closing connection to server
    [8:48:25 PM58.169.148.101/54442 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54467
    [8:48:31 PM58.169.148.101/54467 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -36
    [8:48:42 PM58.169.148.101/54467 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 111111111111111111111111111111111111,
     
    11, -36
    [8:48:42 PM58.169.148.101/54467 (Spunkan): Closing connection to server
    [8:48:42 PM58.169.148.101/54467 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54476
    [8:48:47 PM58.169.148.101/54476 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    121
    [8:48:58 PM58.169.148.101/54476 (Spunkan): Uplink Previous packets (Oldest ->
    Newest): 111111111111111111111111111111111111,
     
    11121
    [8:48:58 PM58.169.148.101/54476 (Spunkan): Closing connection to server
    [8:48:58 PM58.169.148.101/54476 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54479
    [8:49:04 PM58.169.148.101/54479 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -9
    [9:15:33 PM58.169.148.101/54479 (Spunkan): Downlink Previous packets (Oldest -
    Newest): 31313131313331293133313331333331014
    0, -9
    [9:15:33 PM58.169.148.101/54479 (Spunkan): Closing connection to server
    [9:15:33 PM58.169.148.101/54479 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54744
    [9:15:39 PM58.169.148.101/54744 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    CRITICAL ERROR unknown packet id
    : -73
    [9:28:32 PM58.169.148.101/54744 (Spunkan): Downlink Previous packets (Oldest -
    Newest): 31313331333133333131313131313128333
    1
    31, -73
    [9:28:32 PM58.169.148.101/54744 (Spunkan): Closing connection to server
    [9:28:32 PM58.169.148.101/54744 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54771
    [9:28:39 PM58.169.148.101/54771 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    [9:31:12 PM58.169.148.101/54771 (Spunkan): Closing connection to server
    [9:31:12 PM58.169.148.101/54771 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54785
    [9:31:27 PM58.169.148.101/54785 (Spunkan): Connecting tomindcalf.sytes.net:7
    767
    local cache enabled
    [10:13:40 PM58.169.148.101/54785 (Spunkan): Closing connection to server
    [10:13:40 PM58.169.148.101/54785 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54839
    [10:13:49 PM58.169.148.101/54839 (Spunkan): Connecting tomindcalf.sytes.net:
    7767
    local cache enabled
    [10:13:58 PM58.169.148.101/54839 (Spunkan): Closing connection to server
    [10:13:58 PM58.169.148.101/54839 (Spunkan): Closing connection to client
    Connection from 58.169.148.101
    /54844
    [10:14:03 PM58.169.148.101/54844 (Spunkan): Connecting tomindcalf.sytes.net:
    7767
    local cache enabled
    [10:26:16 PM58.169.148.101/54844 (Spunkan): Closing connection to server
    [10:26:16 PM58.169.148.101/54844 (Spunkan): Closing connection to client
    ^^^ is what happens currntly with the stable version.

    What I mean is when you DO turn on Authentication and you DO login LEGALLY with a valid account it Kicks you after sucessful connection to the server as in when running it standalone and it passes your connection to the Server and it says "playername has logged in with entity IDxxx", It will KICK you from the server before map loads and the msg that is show is "BAD LOGIN" or "End Of Stream"

    The msg shown in the Proxy on disconnect is
    "Failed To Validate/Authenticate Username"


    This only happens using the Development build and happens no matter how many times u Exit the MC client and log back in via the Minecraft Launcher.
     
  21. Offline

    angus22397

    I am LawLing at that comment "This has no effect on the server" as you would be pleasantly suprized.
    No I'm not trying to start a fight (hey, it happens).
     
  22. Offline

    Pisi-Deff

    Hey, only reading part of someone's sentence and twisting it around is cruel. :)

    And he's right, the Performancetweaks plugin does not affect the above.
     
  23. Offline

    dispet

    WORKS PERFECT!

    First I had some problems getting it runned with ports.. now we are like 6-8 People and our server IS NOT! lagging. It was lagging with 3-5 People already!
     
  24. Offline

    Simanova


    What version of CraftProxyLite an CraftBukkit are you using?
     
  25. Offline

    angus22397

    Awwww,
    LawL damn you for correcting me.
     
  26. Offline

    Simanova

    Raphfrk, is there a release date for the next version of this great plugin ? :)
     
  27. Offline

    Imm0rt41

    so, this will cause less lag on the server its used on?

    also, i notice you talk about the client gui, do people who connect to the server also have to have this downloaded for it to work?
     
  28. Offline

    Simanova

    Its reducing consumed bandwith. if you got a small internet connection you will need this :9

    People have to download it too. If you close standard login ports, your player have to join via this tool

    I think [Raphfrk] is out of the house.

    Is there another developer, who can continue this plugin - i need it !
     
  29. Offline

    Raphfrk

    Ok, I have updated again.

    Sorry for the delay (though was only a few days :)). Multi-threaded programs are hard to find bugs for.

    With luck, this version has a much more stable core.

    The features are:
    • Caching of local data
    • Combing lots of small network packets into larger packets
    • A "fairness"/priority manager for packets
    The first 2 should both reduce bandwidth.

    The fairness manager decides what priority to give each packet. It is global so it affects all users connecting to the server.

    It restricts chunk data packets so that at most 50% of the bandwidth is allocated to them (unless there are no low priority packets in the queue).

    The standard server only does this on a per-user basis. A user's interaction packets are given higher priority than their chunk packets but it doesn't affect player to player packets.

    All other packets are considered high priority.

    This should keep latency low even when someone logs in, since their chunk data will be designated low priority.

    Combining all the small packets into larger packets may increase latency though.
     
    Simanova and ledhead900 like this.
  30. Offline

    ledhead900

    Giving this one a test thru now.

    Edit:

    OP Changelong out dated
    Craftproxy version display on when used says 56 still?

    Edit:
    Same issue as the older development craftproxyliter.jar

    [​IMG]

    Here is the Sever log for the event.

    Code:
    13:04:33 [INFO] Disconnecting ledhead900 [/10.0.0.22:51931]: Failed to verify us
    ername!
    13:04:35 [INFO] Connection reset
    This is the ProxyLog.

    Code:
    [/B][/B][/B][/B]
    [B][B][B]Starting Craftproxy-lite version 56[/B][/B][/B]
    [B][B][B]Name authentication enabled[/B][/B][/B]
    [B][B][B]WARNING: reconnectfile parameter not set[/B][/B][/B]
    [B][B][B]WARNING: players will be connected to the default server regardless of last server connected to[/B][/B][/B]
    [B][B][B]Use "end" to stop the server[/B][/B][/B]
    [B][B][B]Server listening on port: 20000[/B][/B][/B]
    [B][B][B]Connection from 10.0.0.22/62480[/B][/B][/B]
    [B][B][B]Username: ledhead900[/B][/B][/B]
    [B][B][B][1:04:29 PM] 10.0.0.22/62480 (ledhead900): Attempting to connect to: mindcalf.sytes.net:7767[/B][/B][/B]
    [B][B][B][1:04:29 PM] 10.0.0.22/62480 (ledhead900): Connection successful[/B][/B][/B]
    [B][B][B][1:04:34 PM] 10.0.0.22/62480 (ledhead900): Server login successful[/B][/B][/B]
    [B][B][B][1:04:35 PM] 10.0.0.22/62480 (ledhead900): Client requested caching mode[/B][/B][/B]
    [B][B][B][1:04:35 PM] 10.0.0.22/62480 (ledhead900): EOF reached[/B][/B][/B]
    [B][B][B]About to kill compression manager[/B][/B][/B][/B]
    [B][B][B][1:04:35 PM] 10.0.0.22/62480 (ledhead900): EOF reached[/B][/B][/B][/B]
    [B][B][B][1:04:35 PM] 10.0.0.22/62480 (ledhead900): Closed connection to server[/B][/B][/B]
    [B][B][B][1:04:35 PM] 10.0.0.22/62480 (ledhead900): Closed connection to client[/B][/B][/B]
    [B][B][B]
    [/B][/B]


    Here is the Porxystart up batchfile.
    PHP:
    "C:\Program Files\Java\jre7\bin\java.exe" -server  -jar CraftProxyLiter.jar 20000 mindcalf.sytes.net:7767 bridge_connection quiet staticlocalhos

    pause


    Using the exact same setup the prev CraftProxylite.jar works with I am indeed loging in with a authenticated account that logs in using the offical launcher.[/B][/B]

    My server does indeed check account usernerm authenticity on login and I will be keeping it doing so.[/CODE][/B]

    Sorry about the above post and the double post by me Bukkit has decided have a mind of its own again every time a modify the post it adds another lot of that garbage over it and it wont let me remove the bottom [/code[ brackets they just keep re apparing. :mad:

    with carfull reading take not at the bottom of the last code section for Here is the Porxystart up batchfile.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  31. Offline

    Simanova

    Going to try version 65 as soon as possible. Feedback incoming ...

    Same error "failed to verify username" on client login with v65 and cb 786 - Craftproxy is running as standalone

    [​IMG]


    Running as plugin says:

     

Share This Page