Inactive [SEC] Ore To Client Obfuscation v1.9.1.1 - Anti X-Ray (xray) [1.2.5-R4]

Discussion in 'Inactive/Unsupported Plugins' started by TyrOvC, Jul 12, 2011.

  1. Offline

    TyrOvC

    solarox5, DaveDee, kahlilnc and 27 others like this.
  2. Offline

    dirkson

    What're the chances of getting your change (or one like it) into standard craftbukkit? I don't mind updating the file manually... But it'd be nice if I didn't have to, you know? :D
     
  3. Offline

    jaboy

    @TyrOvC
    the screenshots i took ... there are still an bug "Next to stairs" ... screenshot is of stairs form layer Y:14 - 17

    also if [tnt] or a [creeper] goes boom you still see the "fake" blocks until you mine them
     
  4. Offline

    GmK

    This happens to us as well, with the newest version and enginemode 4, on mode 1-3 it doesnt happen.
     
  5. Offline

    Borch

    I first thought this should happen too, but when I tested it I found that the server quickly sends a multi-block update after an explosion for me, so the fake ores are gone. I wonder if this only happens in certain cases, cause I played around with TNT for quite a while.
     
  6. Offline

    morizuki

    Code:
    2011-07-15 19:35:45 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 100
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:376)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:155)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.PlayerManager.flush(PlayerManager.java:34)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.b(ServerConfigurationManager.java:304)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-15 19:35:45 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-15 19:35:45 [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException: 100
        at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:376)
        at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
        at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:155)
        at net.minecraft.server.PlayerManager.flush(PlayerManager.java:34)
        at net.minecraft.server.ServerConfigurationManager.b(ServerConfigurationManager.java:304)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    seeing some errors :(.. it stop my server and crashed :(
     
  7. Offline

    GmK

    Read above.

    Dont use mode 4 for now.
     
    morizuki likes this.
  8. Offline

    Sleaker

    Support open software! Use 7-zip! (winrar is horrid!)
    http://www.7zip.org/

    Edit: Logically how hard would it be to do a check like this for cave spelunking -
    Hide all ores except those that are transparent and within 10-20 Y level of the player being sent the packet. So instead of allowing players to see all Cave ores when in mode 1, it limits them a little based their Y plane and the ore's Y plane.
    Seems like it might be a good middleground to still allow easy spelunking without requiring players to hit everything (like in mode2) but still prevent players from xraying from topside down into the earth to see what's in a cave. (Seems like it might make mode 1 more efficient by disregarding all blocks that are on the wrong Y level, and only do transparent checks on blocks close enough to the player's Y)
     
  9. Offline

    kerovan

    I was literally typing this idea when my buddy told me on vent that someone just posted your idea.. but yea was going to suggest that mode 5 be something like current chunk that player is in act like mode 1 while rest of map act like mode 2
     
  10. Offline

    Ratchet

    that would be pretty good!
     
  11. Offline

    Sleaker

    My idea is slightly different, I initially thought mode 1 would be good in the whole current chunk. Also it would still allow xrayers to see ores all the way to bedrock in their current chunk. Defining a distance for the Y level would make it so they needed to move vertically to get updates (might result in more data being sent though cause it would need to re-obfuscate/send the chunk when vertical changes movement is detected)

    Also if you do it only for the current chunk it would requires players to be within a specific distance to see the exposed ores. which in cave system sometimes you can see ores a couple chunks out. if it was a defineable radius for mode 1 - and swapped to mode 2 for all other chunks that might be nice. let it send mode1 for 2-3 chunks. then swap to mode 2 for the rest? hmm.
     
  12. Offline

    kerovan

    The current chunk wasn't the original idea, I just shorten the idea up since you beat me to the idea. Originally I was thinking along the lines of a radius of like 20 in all directions of the player and just update the ores as data was being sent to the player. Then I thought maybe current chunk might be easier and faster to code.
     
  13. Offline

    tickleman

    By big-chest-bug :

    I dig a 2x2 blocks hole
    [​IMG]

    Put my big chest into the hole :
    [​IMG]

    I disconnect then reconnect (your MOD is active, of course), and one of the two chests blocks looks like... stone !

    [​IMG]

    'seems that it has been obfuscated ! But it has 1 air block up-to-it.

    Thanks for a fix.
    And thanks a lot for your mod. I was to affraid installing AntiXRay on my server (don't want to crash all by losing my ores file), so your mod IS the solution.
     
  14. Offline

    Sleaker

    I run BananaChunk, this is probably why the chunk update is being sent when I teleport short distances within the same chunk. Just realized that.
     
  15. Offline

    DomiStyle

    Thank you for this plugin!
    Server crashes with Mode 4 though.
    Using Recommended Build #953 with no other plugin installed.
    Code:
    2011-07-15 21:46:19 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 80
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:377)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:155)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.PlayerManager.flush(PlayerManager.java:34)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.ServerConfigurationManager.b(ServerConfigurationManager.java:304)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-15 21:46:19 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-15 21:46:19 [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException: 80
        at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:377)
        at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
        at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:155)
        at net.minecraft.server.PlayerManager.flush(PlayerManager.java:34)
        at net.minecraft.server.ServerConfigurationManager.b(ServerConfigurationManager.java:304)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    The error appears after about 1 minute and locks the server up.
     
  16. Offline

    spunkiie

    I can confirm the engine:4 error:

    18:48:54 [SEVERE] at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:377)
    18:48:54 [SEVERE] at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
    18:48:54 [SEVERE] at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:155)
    18:48:54 [SEVERE] at net.minecraft.server.PlayerManager.flush(PlayerManager.java:34)
    18:48:54 [SEVERE] at net.minecraft.server.ServerConfigurationManager.b(ServerConfigurationManager.java:304)
    18:48:54 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
    18:48:54 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    18:48:54 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    18:48:54 [SEVERE] Unexpected exception
     
  17. Offline

    Scent Tree

    I get this too, except it's exposed ores that revert back to stone
     
  18. Offline

    jonathanyc

    After some testing, I think this happens because the chest or ore is on the edge of a chunk...
     
  19. Offline

    CoolOppo

    I've always wanted this in AntiXRay so that it doesn't destroy my map! THANK YOU!
     
  20. Offline

    Silarn

    @RugRats All this plugin does is change what the server TELLS the client a block's id is, not the actual server map data. Even if you didn't properly 'detect' the ore (and thus never saw it in your map while mining), after physically mining it the server would have still dropped ORE because what you see as stone is, in reality, still an ore block. So make sure there is always room in your inventory.
     
  21. Offline

    KrazyBonez

    Started using this 2 days ago or so, and i gotta say, you really outdid antixray, they destroyed my maps. Your plugin however is hiding the ore effectively without hurting cpu usage and also not destroying my map. Thank you sir, loving the plugin, great job!
     
  22. Offline

    AriesT

    enginemode=1

    but error the same

    Code:
    08:01:52 [SEVERE] java.lang.NoSuchMethodError: net.minecraft.server.World.getMultiChunkData(IIIIII)[B
    08:01:52 [SEVERE]       at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
    08:01:52 [SEVERE]       at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:225)
    08:01:52 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:298)
    08:01:52 [SEVERE]       at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    08:01:52 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
    08:01:52 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    08:01:52 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    08:01:52 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    08:01:52 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    08:01:52 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    08:01:52 [SEVERE] Unexpected exception
    java.lang.NoSuchMethodError: net.minecraft.server.World.getMultiChunkData(IIIIII)[B
            at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:32)
            at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:298)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  23. Offline

    Ratchet

    what's the cause of this lag? i'm using mode 3
     
  24. Offline

    BioRage

    This looks promising, thanks a lot, will look into it!
     
  25. Offline

    TyrOvC

    I'll have more time to work on all this tomorrow. I'll make sure to fix that Engine 4 error and chests appearing as stone that shouldn't tomorrow, of course! I'll also set up a donate button for those who wanted one.

    @AriesT
    You said you're using CB 953, but then you also said you're running client version 1.6.6? Are you not using Bukkit 904 (or later)? That would be the cause of the error you're getting.

    @Ratchet
    The "lag" on blocks appearing during mining depends on the individual user's latency to the server. If they're on a bad connection, or just plain have a high latency connection to the server, it can take a noticeable amount of time for the ore to appear. I'm going to tweak it next version to where ore is sent in larger amounts at a time around the area where a player mines, so that will make it not appear as bad.
     
    tickleman and Smallie07 like this.
  26. Offline

    Donald Scott

    This is EXCELLENT! I love the mode 4 idea. :p
     
  27. Offline

    UfaRock

    Please update for CB 996 build :confused:
     
  28. Offline

    Raycrash

    So I tried xray and wanted to see if its any use.... so far it seems to be better than nothing.
    Only problem with xray is when you set it to "cave mode" usually in a cave there is some ore.
    And the other problem is that 'dungeons' (chest/spawner) arent hidden.

    oh and newest version spits out loads of errors.

    edit: wouldnt it be possible to just not sent any blocks he can't see/ which are X blocks under him ?
     
  29. Offline

    EllBristow

    Spotted a possible bug.

    Placed a chest, then placed a piston to push a block over the chest, hiding it (and obfuscating it).

    When I retract the block with the piston, the chest remains obfuscated (no block update) so my chest is stone. I can still use it obviously, but it looks like stone.

    Whilst this is actually useful to some degree (since trespassers don't see the chest) I'm pretty sure it's a bug.
     
    TyrOvC likes this.
  30. Works like a charm on CB996 with mode 3, thanks a bunch :)
     
  31. Offline

    WeaponTheyFear7

    Can you add support for mossy stone and/or monster spawners? People on my server have been using xray to located dungeons and abuse Iconomy. No other anti-xray plugins address this issue >_>
     
    Hamburger Helper likes this.

Share This Page