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 13, 2011.

     
  1. Offline

    TyrOvC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 60 times. It was last edited by TyrOvC Mar 3, 2012.
    solarox5, DaveDee, kahlilnc and 27 others like this.
  2.  
  3. Offline

    Drool

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Maybe, but if you had a cache, you could also limit new calculations in areas that only need changing - i.e. just the one block a player edits, or - if using a light-based method - only everything within 16 blocks below/above. And not the whole chunk.
  4. Offline

    morizuki

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    aww.. how did that happen :( anyway.. Ill just wait.. XD
  5. Offline

    TyrOvC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Minor update to add more blocks that should be counted as transparent (like signs). Don't have to update unless it was bothering your users.
  6. Offline

    morizuki

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    when we're upgrading do we need to update the CLASS file? or just the .jar?
  7. Offline

    Sphex

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have try with mode 1 and mode 3 and the bug is the same, but when I remove the plugin the bug are away.

    SpheX
  8. Offline

    Borch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @TyrOvC GREAT work :)
    The idea is quite straight forward and so very effective. I love you!

    Few tiny suggestions:
    1) List of transparent blocks is not complete yet. I don't know at which point the if-statement where you check the adjacent blocks gets too ugly, but you might want to consider having an array containing all block ids that should be handled as air and then use Arrays.binarySearch, like so:
    Code:
    private static final byte[] airLike = { 0, 8, 9, 10, 11, 20, 27, 28, 39, 40, 50, 55, 63, 64, 65, 66, 68, 69, 71, 75, 76, 77, 78, 79, 85, 96 }; // *Sorted* list of all block ids the player can see through
    ...
    // Now where the giant if-statement was:
    if (
    Arrays.binarySearch(airLike, abyte[checkindexup]) < 0 &&
    Arrays.binarySearch(airLike, abyte[checkindexdown]) < 0 &&
    Arrays.binarySearch(airLike, abyte[checkindexnorth]) < 0 &&
    Arrays.binarySearch(airLike, abyte[checkindexeast]) < 0 &&
    Arrays.binarySearch(airLike, abyte[checkindexsouth]) < 0 &&
    Arrays.binarySearch(airLike, abyte[checkindexwest]) < 0
    ) continue;
    Binary search should actually be faster than just checking against every id, but it adds the overhead of a function call, so dunno what's better.

    2) If you don't want to change that if-statement, you should at least change the "> 12" part to "> 11", unless you consider sand a see-through block ;)

    3) You could change
    Code:
    if (abyte[index] == 1)
    in the big triple-for-loop to
    Code:
    if (abyte[index] == 1 && original[index] != 1)
    So it does not check the adjacent blocks of EVERY stone, but only the ones that have replaced some ore.

    Didn't really test this too well, so apologizes if anything I said here is broken...
  9. Offline

    po5

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This is good, im using this instead
  10. Offline

    jaboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    why not turn it around ?!

    so everything becomes one (or many) different ores ?

    so when an xray'er comes and and look down all he sees is ore covering everything, but when he digs down after it ... it turns back into stone (or what there was before)

    this will stop every x ray mod (i think) and stop xray'er form looking down in caves and loot them (also i think it will stop them)
    opoq likes this.
  11. Offline

    Ratchet

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    that does sound like a good idea, maybe everything look like a diamond block hehe
    it will also obscure ores that are around lava etc
  12. Offline

    The_Shrike

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can this be rewritten to allow for the modification of any packets to make any block look like any other, with an on/off switch?

    I'd like to use this to create insanity effects on my server... like, suddenly, dirt turns to netherrack, water looks like lava, the air is portal blocks... and then it's gone. Or, make it so that past a settable range, the player can't see anything but darkness?

    This could be a very powerful storytelling tool.
  13. Offline

    Redyugi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I rather like this idea.
  14. Offline

    jaboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    i would not recommend turning everything into 1 block ... because then the xray mods will just filter that block out
  15. Offline

    dirkson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Wow! That's a rather epic idea there.

    Better make it many different sorts of ore, randomly selected, so that people can't just change their Xray clients to ignore that type of ore.
  16. Offline

    TyrOvC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Borch
    Good catch on those last two! Yeah, I was going to change that transparent block check to be configurable anyway, so binary search is the way to go.

    @jaboy
    That's genius! I'm going to make the new default engine do that.

    @The_Shrike
    That's a bit beyond the scope of this, but after the features for OtCO are finalized, I could make a plugin that uses the same method specifically for that!
    jaboy likes this.
  17. Offline

    Phinary

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I think adding a light detection feature would be best. That way people cant really use the light mod that comes with xray. I have had many people go around mining in pitch black... :/
  18. Offline

    Kainzo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    agreed it may be more trouble ... keeping it simple, lightweight and latency free is the thought process I assume :D
  19. Offline

    The_Shrike

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Understood. I just saw that you already had the underlying code in place and started thinking about other ways to apply it. I do love what you've done, as an elegant solution that won't harm data files; it's far superior to how I thought it would have to be done (IE, altering the packets by altering the saved data). But, if you made it more generalized and customizable (IE, give it the ability to be linked to events or commands, specify replacements), it would be an entirely new toolbox for survival servers, and make survival-horror (without loads of monsters) a viable server genre.
  20. Offline

    deadc4t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You should add yourself a paypal donate button.
  21. Offline

    Kane

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @TyrOvC The packet changes are causing a problem with lockette plugin. What is happening is when you place a block near the sign and break it when it's mounted onto the chest it breaks the sign from the chest.

    So lets say X is chest O is gap between to place a Block or a Torch

    XOXOXOX eww haha anyways place torch where the O is and break it and boom the signs pop off the chests.

    I tested with a clean build and only your plugin and lockette and 100% confirmed.
  22. Offline

    Kainzo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I Do agree with this here.
    deadc4t likes this.
  23. Offline

    deadc4t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    X-rayers also uses their mod to find hiden shelters...
    So, cant you just make every block x-rayed?
    So a x-rayer will not see any anything?
  24. Offline

    Spathizilla

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Re-mirrored.
  25. Offline

    nacs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Working great so far!

    Thanks for making this plugin as this is the first real alternative to the buggy/slow/not-updated in months AntiXray plugin.
  26. Offline

    Mike A

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Works great; I use setting three because if you use 1 or 2, it makes some chests above ground stone until you click around them, which confuses players.
  27. Offline

    TyrOvC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Big update, with the transparent blocks being moved to the configuration file, and a new engine mode. Thanks to jaboy's outside the box thinking for the idea, it sends all ores and stone as iron ore above height 20, and diamond ore below. This makes it to where all unexposed ores are impossible to single out, and even exposed iron ore over height 20, and exposed diamond ore under height 20, is impossible to distinguish from regular stone even if the x rayer filters which blocks they view.

    The Lockette chest lock removal exploit should also be fixed now. Would like confirmation from someone else on that though.

    Both the plugin file and the class need to be updated this time.
    DannieP and jaboy like this.
  28. Offline

    sukosevato

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You sir are genius! thinking out of the box!

    Tyr go get your self a donate button.

    Best plugin in ages!
  29. Offline

    jaboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @sukosevato
    this is not my plug in i dont deserver money for it :confused:
  30. Offline

    sukosevato

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I know Jaboy :p I said 'Tyr go get your self a donate button' :p Tyr = plugin author XD
  31. Offline

    Kane

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    confirmed fixed for lockette :)
  32. Offline

    jaboy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @TyrOvC
    found some bugs in mode 4

    this wall

    [IMG]

    [IMG]

    [IMG]


    Next to stairs

    [IMG]


    i dont know if this counts for all modes
    The torch (on the right) jumps off when the block is removed


    Before
    [IMG]

    after
    [IMG]


    else great job :)

Share This Page