Inactive [DEV] BukkitContrib Alpha 0.1.7 [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Afforess, May 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Afforess

    BukkitContrib is superseded by Spout, the new Bukkit/Client framework.
     
  2. Offline

    12119

    Here:

    Operating System : Mac OS X Lion
    Processor: Intel Core i7
    speed: 2.7 GHz Dual-core
    RAM: 4 Gb 1333 MHz
    Graphics card : intel HD Graphics 3000

    Hope this helps

     
  3. Offline

    Afforess

    Perfect, thanks. I am looking into it.
     
  4. Offline

    dezsta

    thank you for your reply appreciated =) good to see evelopers working together and with other keep it up
     
  5. Offline

    HCLivess

    Great, perfect, ingenious and with unlimited possibiities. You please me very much.
     
  6. Offline

    dralletje

    @affores can you make the inventory listeners work again?
    anyway, thanks for this GREAT plugin :D:D:D
     
  7. Offline

    K900

    That's bad. If I had that texture pack, I should have that texture pack until I remove it myself. Maybe it's better to save server textures to some temporary file, not overwrite the original?
     
  8. Offline

    rslink

    Maybe if it could generate a checksum of the file and compare to the server version. If you are using a unchanged version from the texture pack creator it will be the same. Also for texture packs being able to tell the client to switch back to the one it was using before would be helpful.
     
    alta189, dralletje and narrowtux like this.
  9. Offline

    K900

    Yea, maybe this way. But then you'll need to DL the texture pack to the server and calculate MD5 and stuff.
     
  10. Offline

    bastrian

    I thing that this mod is great. But it have just on problem: The brokedown with Modloader.
    Afforess, this mod is simply genial but breaking the compatibility with modloader was not a good idea. Not for the fact that you are wrong with the facts about modloader, but due the fact that with this move you cut down even itemcraft. And you don't do nothing to make it working (atleast i can't see any progress).
    When itemcraft works with Craftbukkit i would install Craftbukkit on my server.
    Mayby someone can tell me how to make work itemcraft+craftbukkit at the same time on the same Client, mantaining the multiplayer compatibility ;)

    MfG
    Bastrian

    ------------------
    PS: sorry for my bad english
     
  11. Offline

    Afforess

    Not going to be fixed, it's intentional. Read the OP.

    Should still work. Do you need help with using them?

    I can certainly check a md5 against the new file and old file, but that means it won't get replaced if they are the same...which is the same as not doing anything, which is pretty much what happens now.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  12. Offline

    K900

    Not like that. If md5(server) == md5(client) you only need to switch. If md5(server) != md5(client) then you need to save the texture pack to a temp file and remove it later. This way texturepacks that clients have locally will not be overwritten/removed.
     
  13. Offline

    Raphfrk

    Alternatively, all downloaded packs could have a prefix added

    contrib.packname.zip

    or maybe

    <MD5>.packname.zip

    Checking the MD5 is a good idea anyway, since it saves bandwidth. The server could download the file once to calculate the MD5 and cache it.

    The process could be

    Server: sends MD5 and URL for download
    Client: checks if it has a local version that matches the MD5
    Client: If not, download the file again
    Client: If that doesn't match the MD5, inform the server
    Server: Re-download the file and see if the MD5 changed*
    Server: Inform the client that the new MD5 is fine, or that the file is corrupt

    *: There could be a timeout, it will only update the cache once every 10 mins max.
     
  14. Offline

    frdfsnlght

    What would it take to add the ability to tell the client to connect to a different server?

    I doesn't seem BukkitContrib can do this yet, but I've written a plugin that needs to do this. I have a client patcher which installs the necessary [very simple] patch, so I can tell you exactly what needs to change client side.

    I've been getting user requests to integrate with BukkitContrib and I'd like to if possible.
     
  15. Offline

    K900

    Also, that means you can't change packs with proxy or routes or DNS or any other way of intercepting traffic.
     
  16. Offline

    Raphfrk

    As I posted in your thread :), Afforess accepted the serverport reconnect code.

    You just kick with

    [Redirect] some message : server/domain name : port

    or for default port

    [Redirect] some message : server/domain name
     
  17. Offline

    frdfsnlght

    I must have missed that. So, to be clear, the current version of BukkitContrib will do a redirect if I send the right kick message? And does the current version of your CraftProxy also respond to the same message?
     
  18. Offline

    dralletje

    yeah, I can't find any tutorial for it and there are no comments in the source :( can you say how I can activate them?
     
  19. Offline

    Raphfrk

    Yeah, it should.
     
  20. Offline

    frdfsnlght

    Dang, you responded too fast. I edited my post and added another question: And does the current version of your CraftProxy also respond to the same message?
     
  21. Offline

    Raphfrk

    Again, yeah it should :).
     
  22. Offline

    T9C5F

    19:05:36 [SEVERE] Unexpected exception
    java.lang.ClassCastException: org.bukkitcontrib.block.ContribCraftChunk cannot be cast to org.bukkitcontrib.block.ContribCraftChunk
    at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:105)
    at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:111)
    at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:1)
    at net.minecraft.server.Entity.move(Entity.java:542)
    at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
    at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
    at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    at net.minecraft.server.World.cleanUp(World.java:1104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:06:48 [INFO] Connection reset

    I donĀ“t know when it happens.

    Code:
    19:05:36 [SEVERE] Unexpected exception
    java.lang.ClassCastException: org.bukkitcontrib.block.ContribCraftChunk cannot be cast to org.bukkitcontrib.block.ContribCraftChunk
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:105)
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:111)
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:1)
            at net.minecraft.server.Entity.move(Entity.java:542)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
            at net.minecraft.server.World.cleanUp(World.java:1104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:06:48 [INFO] Connection reset
    I don't know when it happens.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  23. Offline

    Sevenos

    Just got this exception which froze the server after it. Running CB based on #1029
    It may be because of customizations to CB, but maybe you know what happened.
    Code:
    22:25:22 [INFO] [BukkitContrib] Unexpected Behavior in ContribCraftBlock.getRelative(...)! Attempting to compensate.
    22:25:22 [INFO] [BukkitContrib] Unexpected Behavior in ContribCraftBlock.getRelative(...)! Failed to compensate!
    22:25:22 [SEVERE] java.lang.ClassCastException: org.bukkitcontrib.block.ContribCraftChunk cannot be cast to org.bukkitcontrib.block.ContribCraftChunk
    22:25:22 [SEVERE]       at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:105)
    22:25:22 [SEVERE]       at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:111)
    22:25:22 [SEVERE]       at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:1)
    22:25:22 [SEVERE]       at net.minecraft.server.Entity.move(Entity.java:538)
    22:25:22 [SEVERE]       at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
    22:25:22 [SEVERE]       at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
    22:25:22 [SEVERE]       at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
    22:25:22 [SEVERE]       at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
    22:25:22 [SEVERE]       at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
    22:25:22 [SEVERE]       at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
    22:25:22 [SEVERE]       at net.minecraft.server.World.cleanUp(World.java:1104)
    22:25:22 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
    22:25:22 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:362)
    22:25:22 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    22:25:22 [SEVERE] Unexpected exception
    java.lang.ClassCastException: org.bukkitcontrib.block.ContribCraftChunk cannot be cast to org.bukkitcontrib.block.ContribCraftChunk
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:105)
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:111)
            at org.bukkitcontrib.block.ContribCraftBlock.getRelative(ContribCraftBlock.java:1)
            at net.minecraft.server.Entity.move(Entity.java:538)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:582)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:704)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
            at net.minecraft.server.World.cleanUp(World.java:1104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:362)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  24. Offline

    newyorkdaily

    Hey guys, anyone have a clue what caused this error? Its the first time it happened and bukkitcontrib seemed to work fine before it, and it still does. But after this error spammed 5 times my server restarted itself. Using Craftbukkit build #1000 and bukkitcontrib 0.1.7. No errors on start up either, it was just random.
    Code:
    BukkitContrib: Unexpected Behavior in ContribCraftBlock.getRelative(...)! Attempting to compensate.
    BukkitContrib: Unexpected Behavior in ContribCraftBlock.getRelative(...)! Failed to compensate!
     
  25. Offline

    rslink

    So to sum of the idea of md5 checksums:

    Server stores a list of allowed md5s, or the md5 of each map.
    Client generates md5 check sum of each texture pack installed, and caches a list linking to the file names.

    If: clientmd5 != allowedmd5
    then: download [md5]
    else: change to [md5]

    In a sense replacing using file names, and instead a md5.

    For plugins that change the texturpack they will have to make a feild like this:

    File Url: The quick brown fox jumps over the lazy dog
    md5: 9e107d9d372bb6826bd81d3542a419d6


    More examples:
    Show Spoiler

    Server md5 list of generally allowed texturepacks if none is set for the world:
    name : md5
    1.zip : c4ca4238a0b923820dcc509a6f75849b
    2.zip : c81e728d9d4c2f636f067f89cc14862c
    3.zip : eccbc87e4b5ce2fe28308fd9f2a7baf3

    Clients texturpacks:
    1.zip : c4ca4238a0b923820dcc509a6f75849b
    2.zip : c81e728d9d4c2f636f067f89cc14862c
    3.zip : 5b068a95442c7d5505b4166a77357ea5

    In this case the client can use texture packs 1 and 2, but not 3


    Next case:
    Survival world texturepack: 4.zip : a87ff679a2f3e71d9181a67b7542122c

    Client's list:
    1.zip : c4ca4238a0b923820dcc509a6f75849b
    2.zip : c81e728d9d4c2f636f067f89cc14862c

    The client will have to download texturepack "4.zip"


    Case 3:
    Survival world texturepack: 4.zip : a87ff679a2f3e71d9181a67b7542122c

    Client texturpacks

    1.zip : c4ca4238a0b923820dcc509a6f75849b
    2.zip : c81e728d9d4c2f636f067f89cc14862c
    3.zip : 5b068a95442c7d5505b4166a77357ea5
    4.zip : 895a074a5b216322121b5f76bc831927

    The "4" texture pack's name is the same but it's md5 does not match the required one. The client will have to download the texurepack the server requires, but will not rewrite the clients texturpack of the same name.
     
    mrgreaper likes this.
  26. Offline

    mrgreaper

    thats a fantastic idea! it would stop the use of xray textures with out enforcing a texture pack on the users
     
  27. Offline

    Graype

    Would it ever be possible to hide the player cross-hair & arm (Eg when you press F1)
     
  28. Offline

    narrowtux

    Maybe when the GUI comes out, I think it is at least possible to hide the cross-hair. I don't know if the arm is in that, because that goes beyond the GUI.
     
  29. Offline

    CuZnDragon

    With this does the player skin mod still need to do something to support HD char pngs or will it automatically work?
     
  30. Offline

    HailGMAN

    Where do i put the autodownload thing at... sorry im new
     
  31. Offline

    Afforess

    @T9C5F @Sevenos

    The latest development plugin builds should have this fixed.

    Yeah, I'll do something like this than.

    Don't put it anywhere, download the installer, then double click and run it.

    Quadruple post! I love AT&T

    Triple post...

    Double post...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
Thread Status:
Not open for further replies.

Share This Page