Inactive [MISC] CraftProxy v161 - Reduce bandwidth use by caching chunk data [1.2.3]

Discussion in 'Inactive/Unsupported Plugins' started by Raphfrk, May 1, 2011.

     
  1. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    CraftProxy - Reduce bandwidth use by caching chunk data
    Version: 156

    Description

    This plugin allows chunk data to be cached locally by players. This reduces the bandwidth required for hosting the server.

    The .jar file is both the plugin .jar file and an executable .jar file. It is run as a plugin for the server and a stand alone Java executable by players.

    For ease of use the local version has a GUI. Players just need to double click the file and press start to start the GUI. The player then connects to the server via the local proxy.

    When downloading cached chunks, the bandwidth is reduced by a factor of around 4-5.

    Features:
    • GUI means easy to use for players
    • Caching of chunk data locally
    • Automatic reconnect for inter-server teleporting
    • Can bind to a specific local IP address
    • Can connect to servers based on the hostname provided by the client (NEW)
    How it works


    Thanks to @Kimundi for the diagram

    [IMG]



    The CraftProxyLite.jar file is a proxy server and it can be run in a few different modes.

    It listens on 1 port on the local computer and connects to another server somewhere else.

    If you double click on the .jar file, it starts the proxy in local-cache mode.

    If you start it as a plugin, it starts in remote proxy mode.

    The local cache mode has 2 ports

    Listen on: localhost:25565
    Connect to: <remote hostname that you type in>:20000

    The remote proxy mode has 2 ports

    Listen on: 20000
    Connect to: localhost 25565

    The Bukkit server has 1 port
    Listen on: 25565

    Note: If you run everything on 1 server then the port 25565 is used twice, so will cause a collision. That is why when testing it out on 1 computer, you should change the local cache listen on to localhost:25564

    Ok, so the process is that you connect to the local proxy with your minecraft client.

    1) You connect the minecraft client to
    localhost (or localhost:25564 if all on 1 computer)

    2) The local proxy accepts your connection

    3) The local proxy connects to
    <remote hostname that you type in>:2000

    4) The remote proxy accepts this connection
    (It was listening on 20000)

    5) The remote proxy connects to the Bukkit server on port 20000

    So you end up with

    <minecraft client>

    connects to

    <local-cache proxy>

    connects to

    <remote/plugin proxy>

    connects to

    <minecraft server>

    The local-cache to plugin proxy connection is over the internet and has reduced bandwidth.

    Download

    Download
    Download 1.0.1 version


    Older versions

    Source Code

    FAQ

    Faq

    Parameters

    You can see a full list of parameters by typing

    Code:
    java -jar CraftProxyLiter.jar help
    
    Note: auth_off only controls if the proxy does checking, it has no effect on the server

    For authentication, you should either have the proxy or the server handle authentication.

    Parameters

    Setup

    Server

    Basic

    Download .jar file and place it in the plugins directory
    Forward external port 20000 to port 20000 on your server

    Sometimes Required
    • start server
    • stop server
    • open /plugins/Craft Proxy Lite/proxylite.txt
    • find default_server=25565
    • replace with <local-ip of server>:25565 (see Faq for more info)
    • start server again
    Players

    Not on the same computer as the server
    • Download .jar file and double-click
    • Enter your server's details into the GUI (mostly Remote Server -> Name)
    • Press start
    • Connect to localhost with their client
    On the same computer as the server

    • Download .jar file and double-click
    • Change the listen port for the local server
    • Instead of 25565, use 25564
    • Press start
    • Connect to localhost:25564 with their client
    Advanced

    Note: You should only have authentication on for either the proxy OR the server. If you switch on authentication for both, then players won't be able to login.

    running the proxy stand alone

    Client Mode (no GUI)

    Code:
    java -jar CraftProxyLiter.jar 25565 <target-server-hostname>:20000 local_cache auth_off
    
    Server Mode (not as a plugin)

    Code:
    java -jar CraftProxyLiter.jar 20000 25565  auth_off
    
    Changelog:


    Version 36
    • Released as plugin and with client GUI
    Version 40

    • Bukkit server now handles authentication (bug fix)
    • Removed the need for the server to use any disk space
    • Only sends nearby hashes when a cache hit is detected (rather than sending all hashes in cache)
    Version 41

    • Saves GUI settings to file
    Version 43

    • Fixed bug where server didn't shut down when the plugin was reloaded
    • Added big warning when plugin can't bind to port
    • Reset default connect port back to 20000 (accidentally had set it to 25565)
    Version 44

    • Actually, fixed the server shut-down bug
    Version 45

    • Fixed a bug where player had to restart GUI to get the benefits of caching
    Version 46

    • Proxy will retry all local IP addresses if "localhost" fails
    Version 47

    • Fixed a bug where players were kicked with a negative array length exception
    Version 48

    • Fixed a bug where a thread wasn't closing properly
    • Added support for variable cache disk sized to the GUI
    Version 49-52

    • Null pointer exception fixes
    Version 54

    • Flushes the output streams after each packet (latency improvement)
    Version 55

    • Increases connection timeout delays to 45 seconds (up from 20 seconds and in a few cases 4 seconds)
    Version 65
    • Re-write
    • Adds a fairness manager to prioritize packets
    • Adds a buffers so packets are grouped into larger packets
    • Note: The new command line requires the auth_off
    Version 67
    • Fixed a bug that was causing hashes not to be transferred, when a player reconnected
    • Removed "lock" spam
    Version 71
    • Reduced max latency for buffering from 100ms to 10ms
    Version 72
    • Added bufferlatency command line option
    • "bufferlatency 0" would disable buffering.
    • Fixed bug where actual latency was higher than max setting
    Version 73
    • Added compression_level switch for the command line
    • 1 = fastest compression
    • 9 = best compression
    Version 75
    • Added version number to GUI
    Version 76
    • Added latency field to the GUI
    Version 77
    • Removed delay through fairness manager spam
    Version 78
    • Changes to the fairness manager
    Version 79
    • Output buffering disabled
    Version 80
    • Fairness manager will only send low priority packets if there are no high priority available
    Version 81
    • Bypass fairness manager
    Version 82
    • Made the previous change thread safe.
    Version 83
    • Cache disk size fix for GUI
    • Changed window GUI title
    • Output buffer re-enabled (set to 0 by default)
    Version 84
    • Added reconnect functionality for Server Port
    Version 85
    • Added support for starting as a plugin
    Version 86
    • Fixed player entity id mapping error (prevented damage sounds/lava fire)
    • Removed most of the remaining code for the fairness manager
    • Changed the order in which sockets are closed
    Version 87
    • Fixed authentication for multiple servers
    • Fixed rain packet, when teleporting between servers
    Version 88
    • Removed time when logging in plugin mode
    Version 89
    • Terminates all streams with a kick packet. This should reduce client crashes.
    Version 90
    • Added password support (for proxy to proxy connections)
    Version 91
    • Improved handling of IO exceptions
    Version 92
    • Updated some of the comments for parameters
    Version 93
    • Removes players from reconnect cache if login fails (previously it was only if the socket couldn't be established)
    Version 94
    • Fixed a chunk load/unload tracking issue that was causing spam (and probably unnecessary packets to be sent)
    Version 95
    • Added ban and white list functionality (data is refreshed from the file every 30 seconds)
    Version 96
    • More info about connection type
    Version 97
    • Version 1.6 protocol support
    Version 98
    • Fixed bug with optional fields in 0x17 packet (caused packet parsing error for falling sand)
    Version 99
    • Fixed a bug with the map update packet and also kick messages must now start with [Serverport] to be considered reconnect requests
    Version 100
    • Redirects (global_hostnames) will default to port 25565 if none if given
    Version 101
    • IPs are also checked against the banned file list
    Version 102
    • Better error messages if buffer mis-sizing occurs
    Version 103
    • Fixed Reconnect file support (actually stores data now)
    • Added reload and save support for reconnect file
    • Added Bukkit Contrib support (still doesn't exactly match Afforess' code)
    • The kick message can start with [Redirect] instead of [Serverport] (aesthetic change)
    Version 104
    • Fixed broken download link
    Version 105
    • Teleporting from the nether on one server to a normal world on another server will now update sky colour. World seed still can't be updated :(.
    Version 106
    • Exception handling
    Version 107
    • The IP address of the listenTo parameter can now be used to set which local IP the server is bound to.
    Version 108
    • Added a bandwith_limit option in kbps. This sets the max speed of transmission to clients (client download speed).
    Version 109/110
    • Added white list support to plugin mode
    Version 111-112
    • Compile readme, no functional changes
    Version 113
    • Added timer to save the reconnect file every 10 seconds
    Version 114
    • Added a /memdump command which dumps the proxy memory to a file
    Version 115
    • Removed bandwidth limiter. This should fix disconnects for versions 108 - 114
    Version 116
    • Client switches to terrain loading screen when switching servers
    Version 117
    • Re-tries authentication if the server times out
    Version 118
    • Adds attempt 1 of Mod Loader MP support
    Version 119
    • Packet support for 1.8
    Version 120/1
    • Fixes due to changes to the way the respawn packet works
    Version 122
    • Separated flood protection for ping connections
    Version 123
    • Added command line parameter for controlling the timeout
    Version 124
    • Attempt 2 to fix flood protection with ping connections
    Version 125
    • Initial attempt at support for 1.0.0 protocol
    Version 126
    • Added back in the rotate IP address functionality (and set it to ON by default). This means that the proxy connects from various 127.0.x.y addresses. This fools the server into thinking the proxy is connecting from a different location for each player. This is required to bypass the server's flood protection system (where a script is used to connect over and over to the server and crash it). Notch had changed his code so that localhost connections were exempt, but he has added it back in again for some reason.
    Version 127
    • Changed it so that the challenge code sent by the proxy is a positive long. Previously any long would work.
    Version 128
    • Bug fix for enchanted items courtesy of Dafluf
    Version 129
    • 1.1 compatibility
    Version 130
    • Fixed a bug when clients reconnect
    Version 131
    • Fixed another reconnect bug
    Version 132
    • Changed error message due to mismatched version numbers
    • Connection will timeout if the a correctly formatted login packet isn't sent within 1 second
    Version 133
    • Increased timeout when logging in to 10 seconds before it assumes a version mis-match
    Version 136
    • Added better error reporting when the buffer overflows
    Version 138
    • Fixed a bug with version 136 and another with 137
    Version 139/140
    • 2 Null pointer fixes
    Version 141
    • More debug info when buffer overflow occurs
    Version 142
    • Possible fix for buffer overflow error


    Version 144
    • Updated the protocol to 1.2.3. I still need to check if compression still works.
    Version 146
    • Fixed bug with packet 51 - caching is still not operational
    Version 147
    • The updated protocol means that full chunk update packets aren't always 81920 bytes
    • Caching now actives on all packets > 16384 instead of only for 81920 byte packets
    • This supports cubic chunks (and the new "expanded" packets)
    Version 148
    • Fixed a bug with the password based LAN to LAN connection system
    Version 149
    • Increased circular buffer sizes due to new protocol
    Version 150
    • Correctly copied "dummy" integer for chunk packet
    • Slightly improved error checking when compressing/decompressing
    Version 151
    • Reduces chunk not initialized spam
    Version 152
    • Fixed misrepresentation of the updated packet 52 in the code
    Version 153
    • Made warning for unallocated chunks optional (defaults off)
    • This is not a protocol error with the new protocol
    Version 154
    • Added hostname support, the parameter and others are described here
    Version 155
    • Added packet for 1.2.4 compatibility (should still be compatible with 1.2.3)
    Version 156
    • Fixed bug with respawn packet, proxy should now properly reconnect between servers
    Version 161
    • Spoutcraft compatibility
    • Slight change to rotate localhost system

    This is probably fixed, so no big deal.

    Memory Issue - Memory Dumps needed (Help needed)


    There is a memory leak of some kind that is caused by an interaction between the latest CB recommended build and Craft Proxy.

    I need a memory dump of the proxy when the problem occurs.


    Code:
    java -Dcom.sun.management.jmxremote  -Dcom.sun.management.jmxremote.port="9004"  -Dcom.sun.management.jmxremote.authenticate="false"  -Dcom.sun.management.jmxremote.ssl="false" -jar CraftProxyLiter.jar  20000 25565 adminname raphfrk
    <listen port> <default hostname> adminname <your username> <add the rest of your parameters>
    
    You can then perform a memory dump by connecting to the proxy and entering the /memdump command. You must connect using the username you provide in the command line for adminname.

    Until I fix this craft proxy will have lots of latency.

    This post has been edited 58 times. It was last edited by Raphfrk Apr 5, 2012.
  2.  
  3. Offline

    claytonraymond2004

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Correct.

    Strange thing is if I connect over my local network either way, it's fine. I've just been noticing on the log though that people who are connecting over the internet, regardless if they are using craftproxy or regular connection, get kicked out and that error appears.

    I removed the CraftProxy plugin for about half an hour, and didn't get the message at all. Seems to be localized to CraftProxy being enabled.
  4. Offline

    claytonraymond2004

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okay well never mine. I think I figured out the problem. It seems that my CraftBukkit was slightly out of date, and updating it ridded it of the errors.
  5. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ahh great.
  6. Offline

    Heliwr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    To confirm, I am still getting buffer erros with #140:
    Code:
    Buffer full and unable to parse packet
    Buffer full and unable to parse packet
    Bytes: c3, a4, cc, 0, 20, 0, 5, bd, 30, c4, 0, 20, 0, 5, c1, 38, e3, 0, 20, 0, 5, c1, 3a, 6c, 0, 20, 0, 5, c1, 37, a, 0, _33_, ff, ff, fd, f0, 0, 0, 0, 0, 0, 60, f, 7f, f, 0, 0, 12, ec, 78, 9c, ed, 5d, bd, 8e, 1c, c7, 11, ee, f6, ac, bd, a6, cd, c5, 9c, 95, 38, 14, 25, 1, 8e, 5, 42, 20, 16, b0, 1, 13, 10, 98, b, 84, cd, 98, 89, a0, c0, c9, 45, 82, 42, 66, 82, 32, 86, 82, 22, 66, 86, ec, e4, 42, 41, 52, 70, a9, c1, 13, 70, f, 70, 67, dc, b, 50, f0, 13, d8, 9e, e9, 9f, 99, ea, 9f, ea, e9, ea, 9a, d9, b9, 3d, 76, 5, 3a, de, de, d4, 7e, dd, 3d, 5d, f5, 55, 55, d7, 8c, b6, fb, 88, b4, 9d, 48, 29, 7a, 91, ad, 15, f3, 1, f8, a4, ff, ac, 6d, 9b, e6, 17, a2, 5c, b6, db, ed, 7e, eb, a2, 37, d, c0, b, f0, e5, f8, bb, 9c, 9, df, 87, d7, 3, 8, f0, 1a, f5, 2b, c4, 97, fd, 9f, 3, fc, 77, de, 61, e3, db, 15, 90, 0, bf, ff, 58, e, f0, 6a, 74, fd, 9f, 9f, 46, f0, 9, 23, d8, 6, 3, 68, dc, 5, f0, f0, db, 9, fc, e6, 77, bd, 90, f0, bd, fb, 8f, e1, b7, 66, 55, 5c, fc, a7, 4f, 9d, 1, f4, ff, a4, cd, df, df, 7d, 6a, 0, a, cb, c7, 77, 44, df, 9a, ee, 7e, 74, 3, 18, b6, c0, ae, d1, f8, d9, e8, fd, fc, f7, ce, 8, a4, 36
    IO ERROR
    [2:26:09 PM] ip/57973 (sander_20): Closed connection to server
    [2:26:09 PM] ip/57973 (sander_20): Closed connection to client
    
  7. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I added more debug info in 141. Is there any other exceptions ? The other changes may just have been unrelated bugs.
  8. Offline

    Heliwr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    #141 is providing much more information, but no other exceptions I can see:
    Code:
    Start scan
    Start scan
    Start 652470
    Start 652470
    dataLength 2890
    dataLength 2890
    Op code: JUMP_FIXED
    Op code: JUMP_FIXED
    Param: 14
    Param: 14
    Op code: INT_SIZED
    Op code: INT_SIZED
    Param: 0
    Param: 0
    Size: 3080
    Size: 3080
    position: 655568
    position: 655568
    Start: 652470
    Start: 652470
    dataLength: 2890
    dataLength: 2890
    maxPacketSize: 92160
    maxPacketSize: 92160
    Return packet: null
    Return packet: null
    Buffer full and unable to parse packet
    Buffer full and unable to parse packet
    Bytes: 5f, cb, b, 96, 97, 8e, 5f, e9, f2, e2, f1, 8f, 95, 97, 8e, 5f, 8d, ff, b, 2f, 2f, 1d, bf, 77, 3a, fe, ff, 7, 78, ce, aa, cd, _33_, ff, ff, fc, b0, 0, 0, 0, 0, 1, 20, f, 7f, f, 0, 0, c, 8, 78, 9c, ed, 9d, bd, 8e, 1e, 45, 16, 86, bb, 28, b3, cd, b0, b4, 7a, c4, 15, 20, 11, 90, 2, 22, a8, 90, c4, e9, 86, c4, 64, a4, 84, be, 3, e4, 6c, a3, d, 1c, 39, 5b, ad, 9c, 10, 22, 44, 40, ce, 2d, 20, ee, 60, 25, df, c1, 6e, 77, 75, fd, ff, 75, 7f, 73, 4e, f5, 71, fb, 3b, 6f, e0, 99, 91, 7d, e6, a9, bf, 53, 6f, 55, 75, f5, e7, 51, 8d, a3, 52, 62, d5, df, 87, 61, f9, 53, 2d, 92, 72, 9e, 26, 31, 2c, 3f, cf, 9b, 84, fd, c6, 48, ae, 1a, 86, f5, cf, f, fe, 31, 40, 34, ae, f2, fc, 41, 17, 60, e1, 2f, c8, c1, 17, a0, 27, 5f, 19, 2d, 40, 5d, e5, a5, 0, 86, 19, 34, 40, 2a, 8d, 1f, 4, bc, 0, 63, 58, 80, ad, ca, c2, f2, bf, a8, f2, b7, ea, 8b, 19, 81, af, 46, 29, 93, 2, 34, ea, bf, 2, cd, d7, e5, 5f, 63, f0, 47, 15, 75, c1, e0, a1, 62, ca, b, 60, f9, 6b, f1, c4, 8c, c3, 77, f5, b7, 5, 28, f2, 37, 70, c0, 77, e5, 1, 15, 60, a9, be, 52, 15, be, eb, 80, 2f, 9f, 2d, 8a, f8, 36, 21, e0, fc, b0, fd, 63, fe, 3c, 57, f9, 2, 8f, af, 82, c, d8
    IO ERROR
    [10:55:29 PM] ip/61545 (SuNnYxD): Closed connection to server
    [10:55:29 PM] ip/61545 (SuNnYxD): Closed connection to client
    

    This post has been edited 1 time. It was last edited by Heliwr Feb 10, 2012.
  9. Offline

    Simanova

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  10. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks for the info. I made a change that may fix it (plus adds a tiny bit more info)
  11. Offline

    Heliwr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I haven't had any complaints today, fingers crossed this did fix it. Thanks for keeping at it!
  12. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great, thanks for the error reports.
  13. Offline

    sawine

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey,

    I'm getting those errors on #142 in the proxy console:

    Code:
    Exception in thread "Proxy Listener" Exception in thread "Passthrough connection - 1329088583111" java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start0(Native Method)
            at java.lang.Thread.start(Thread.java:691)
            at com.raphfrk.netutil.MaxLatencyBufferedOutputStream.<init>(MaxLatencyBufferedOutputStream.java:47)
            at com.raphfrk.protocol.ProtocolOutputStream.<init>(ProtocolOutputStream.java:35)
            at com.raphfrk.craftproxyliter.LocalSocket.<init>(LocalSocket.java:205)
            at com.raphfrk.craftproxyliter.LoginManager.getUsername(LoginManager.java:94)
            at com.raphfrk.craftproxyliter.PassthroughConnection.run(PassthroughConnection.java:78)
    java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start0(Native Method)
            at java.lang.Thread.start(Thread.java:691)
            at com.raphfrk.craftproxyliter.ProxyListener.run(ProxyListener.java:199)
         
     
    Exception in thread "Passthrough connection - 1329173449612" java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start0(Native Method)
            at java.lang.Thread.start(Thread.java:691)
            at com.raphfrk.netutil.MaxLatencyBufferedOutputStream.<init>(MaxLatencyBufferedOutputStream.java:47)
            at com.raphfrk.protocol.ProtocolOutputStream.<init>(ProtocolOutputStream.java:35)
            at com.raphfrk.craftproxyliter.LocalSocket.<init>(LocalSocket.java:205)
            at com.raphfrk.craftproxyliter.LoginManager.getUsername(LoginManager.java:94)
            at com.raphfrk.craftproxyliter.PassthroughConnection.run(PassthroughConnection.java:78)
    Exception in thread "Passthrough connection - 1329173450626" java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start0(Native Method)
            at java.lang.Thread.start(Thread.java:691)
            at com.raphfrk.netutil.MaxLatencyBufferedOutputStream.<init>(MaxLatencyBufferedOutputStream.java:47)
            at com.raphfrk.protocol.ProtocolOutputStream.<init>(ProtocolOutputStream.java:35)
            at com.raphfrk.craftproxyliter.LocalSocket.<init>(LocalSocket.java:205)
            at com.raphfrk.craftproxyliter.PassthroughConnection.run(PassthroughConnection.java:65)
    Exception in thread "Proxy Listener" java.lang.OutOfMemoryError: unable to create new native thread
            at java.lang.Thread.start0(Native Method)
            at java.lang.Thread.start(Thread.java:691)
            at com.raphfrk.craftproxyliter.ProxyListener.run(ProxyListener.java:199)
    And simultaneously to those, I get these in the server console:
    Code:
    ves_icall_System_Threading_Thread_Thread_internal: CreateThread error 0x0
    ves_icall_System_Threading_Thread_Thread_internal: CreateThread error 0x0
    ves_icall_System_Threading_Thread_Thread_internal: CreateThread error 0x0
    I'm also running CB++, I don't know if it could be related or it's just a bug in the current proxy version. The memory usage of the proxy gets quite high also.

    Thank you

    This post has been edited 1 time. It was last edited by sawine Feb 13, 2012.
  14. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The issue looks like it is just running out of memory. There was a bug a while back.

    If you start the proxy using

    Code:
    java -Dcom.sun.management.jmxremote  -Dcom.sun.management.jmxremote.port="9004"  -Dcom.sun.management.jmxremote.authenticate="false"  -Dcom.sun.management.jmxremote.ssl="false" -jar CraftProxyLiter.jar  20000 25565 adminname <your-username>
    
    then you can cause a heap dumping by using the /memdump command in game (after connecting with the username you provided on the command line).

    The last time it occured, it was fixed when they updated the RB.
  15. Offline

    Naviboi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I got a question,
    What if I just download this plugin and put it in my folder, but still changing the default_serverip to my local ip,
    does it still reduce bandwith?

    Do the players, and me have to open the GUI and press connect to reduce bandwith? or can i simple just put it in my plugins folder.
  16. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The proxy has to be run by both the server and on the player's computer. The local version is what converts the cached data stream back to the normal stream, so the client can understand it.
  17. Offline

    Naviboi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So it does not reduce bandwith if i have it and noone else has it?
  18. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Right. If someone connects to the proxy directly, then it can't cache the data, since the player's computer doesn't actually have a cache.
  19. Offline

    Naviboi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sweet, thanks
  20. Offline

    vanwed94

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [EDIT]
    Never Mind I can connect it just has a wierd MOTD
    [EDIT]
    I have a wierd problem i think I set it up for my own computer right following the instructions, port forwarded 20000, and now im using localhost:25564 but when im in the minecraft client and i type in localhost:25564 it says

    could someone help me if this is needed here is my CraftProxy config file

    This post has been edited 1 time. It was last edited by vanwed94 Feb 19, 2012.
  21. Offline

    12sd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Good day.
    We have a Java launcher dedicated to our server.
    I've tried several ways to launch it on client side.
    Such as:
    - executing command to launch:
    Code:
    Process p = Runtime.getRuntime().exec("java -jar /path/to/file/CraftProxyLiter.jar 25565 server.com:50100 local_cache auth_off");
    The same command in Terminal and then launching client, connecting it to localhost:25565 works perfect.
    In launcher it seems not to be launched.
    -building a proccess:
    Code:
    ProcessBuilder proxy = new ProcessBuilder ("java -jar /path/to/file/CraftProxyLiter.jar 25565 server.com:50100 local_cache auth_off");
    
    then starting it before client:
    Code:
    Process prox_p = proxy.start()
    if (prox_p == null) { System.exit(1); }
    Then goes code to launch minecraft.jar.
    In this way situation is the same - client launches, but connection refused - proxy didn't started correctly or didn't started at all.

    So we have a question - what we are doing wrong?
    Or is there any simple way to integrate proxy to launcher or make it as modloader mod?

    This post has been edited 1 time. It was last edited by 12sd Feb 22, 2012.
  22. Offline

    rickky

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [INFO] Disconnecting jjdd [/127.0.0.1:63111]: Internal server error
    [WARNING] Failed to handle packet: java.lang.IllegalStateException: Failed to add player. net.minecraft.server.EntityPlayer@1dcd8(jjdd at 695.5,64.0,46.5) already is in chunk 43, 2
    java.lang.IllegalStateException: Failed to add player. net.minecraft.server.EntityPlayer@1dcd8(jjdd at 695.5,64.0,46.5) already is in chunk 43, 2
    at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:36)
    at net.minecraft.server.PlayerManager.addPlayer(PlayerManager.java:81)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:141)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:121)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:87)
    at net.minecraft.server.Packet1Login.handle(Packet1Login.java:70)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:47)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

    This post has been edited 1 time. It was last edited by rickky Feb 26, 2012.
  23. Offline

    micdoodle8

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You plan on updating this to R5?
  24. Offline

    Simanova

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Its not recommended to go for R5, only a few plugins are compatible and minecraft 1.2 isnt out yet.
    So theres no reason to head for R5.
  25. Offline

    LEOcab

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm still confused about the whole R5/R6/1.2 issue... I just jumped from R4 to 1.2. :D
  26. Offline

    Shifteh

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wait so does this work on 1.2.3?
  27. Offline

    zaptrem

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi, i was wondering dose this pluggin help with people who DONT have the client side? Or vise versa?

    This post has been edited 1 time. It was last edited by zaptrem Mar 7, 2012.
  28. Offline

    LEOcab

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nope.

    @Raphfrk , we can haz for 1.2.3? :D
  29. Offline

    AgentKid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    He appears to be MIA. He hasn't logged into IRC for more than a week, and hasn't logged in on bukkit.org or Spout Forums since the 25th of February.
  30. Offline

    strontkever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    OMG HES DEAD!!!!!! NOOO
  31. Offline

    Shifteh

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    =/ I really need this plugin :p Any idea what he might be up to? A.K.A Will he return? :p
  32. Offline

    Simanova

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Absolutly normal, dont worry.
    This happens every time with Raphfrk, if a big update comes out.

    This post has been edited 2 times. It was last edited by Simanova Mar 13, 2012.

Share This Page