Inactive [SEC] AntiXRay v0.6.10 - protecting ore from XRay mod and transparent texturepacks [1000]

Discussion in 'Inactive/Unsupported Plugins' started by asdaarg, Apr 11, 2011.

  1. Offline

    asdaarg

    AntiXRay
    Version:v0.6.10

    Reporting Errors the follow things have to be mentioned:
    • CB Version and AXR version
    • Whether you started the AXR version with a fresh ore file or not (doing /axr off before upgrade)
    • If not, since what version you've been using the same ore file.
    • If you get any errors in console, check the debug.log for "Error"s and "Warning"s. and post those.

    Upcoming features for 0.7:
    - AXR Chest chest hiding feature developed by MrSelfDestrukt
    - New advanced visibility test (almost done, only need to test it now and decide whether its going to replace or be an alternative to the original light based test) Details here and here



    Description:

    AntiXRay hides ores from players by turning them into stone until they have been exposed, thus making it impossible for any client side hacks to detect them, as their location is not sent to the client.

    Backup your world(s) I cannot guarantee that ore doesn't disappear from them due to this plugin. Even if you did not backup, there is a foolproof solution here. If you decide to uninstall, type /axr off, and not delete the ore data file before your ore is restored unless your intention is to strip your worlds from ore.



    Downloads:
    If you upgrade from 0.5.21 it is recommended that you do /axr off first flush out errors from the ore file. If you do not have enough RAM, you can do this in steps using 0.6.9 but you need to set lenient=true in the config file to allow the file to be loaded
    NSCommand <-- Required
    AntiXRay
    Source and old versions

    Features:
    - Specify what ores to hide(works with non ore blocks too as long as they don't use data values or extra data such as chests and signs (use some chest locking plugin for keeping your chests from xrayers)
    - Multi world support
    - Permissions support
    - Stores ore data in binary files (one per world) and only keeps data about loaded chunks in physical memory. It is on average 400 bytes per chunk in and guesstimatedly around 450 in physical memory, so it is reasonably small, but some people might play on huge worlds and want to conserve memory.
    - Saves data about chunks immediately on any changes (they are assumed to be by far sufficciently rare that any performance is won by buffering is neglible. As such it also prevents potential ore duplication on server crashes)
    - chunk and world statistics
    - ingame map of loaded chunks
    - background processes that does not freeze the server
    - dump ore statistics into file and compare them to see the changes in ore content.
    - lots of configuration options

    Ores will become visible under any of these circumstances:
    - A surrounding block is lit by torch and player is within the chunk or adjacent chunk and within 16 blocks to player on Y axis.
    - A surrounding block is lit by a third block broken falling or removed by explosion and player is within the chunk or adjacent chunk and within 16 blocks to player on Y axis (occurs once every 2 seconds, but configurable).
    - A surrounding block is broken or falls or removed by explosion
    - A surrounding block is changed by another plugin (can be cpu intensive if you worldedit a big area for instance - might do a workaround for this)

    Current Limitations:
    - Ores at light level above pitch black on chunk generation will not be hidden e.g. near lava or surface cave entrances.
    - Ores will not be found exploring caves in pitch black (who does that anyway?) These two limitations was to allow a light based visibility test that relies on a test already built into the server, thus avoiding extra performance overhead as well as headache of coding it myself. Despite these limitations, AntiXRay should make it far beyond pointless to search for ores using XRay or transparent textures.
    - Gravel and sand dropping on chunk generation may expose ore. This is assumed to be rare enough to have neglible effect.
    - The data file will not repack itself. The ratio between generated ore and mined ore is assumed to be very high, and the file size is considerably small but nonetheless, should you want to "repack" it, just turn axr off and on and the new file will be smaller excluding the gaps between chunk entries. But again, do some basic math and count the amount of ore blocks mined in total, multiply that by 2 bytes. After a month of mining 10000 ore blocks, you shaved 20k off that 3M file.
    - If you place a torch there is a tiny delay as seen in the video due to client side prediction and lag between the time the info of the ore to get back to the client from the server. This can seem unnatural so I might make a better vision test later that doesn't rely on light. However it would be more expensive in terms of cpu cycles.
    - If you have a slow server or a lot of players, you might want to remove coal from the config list. It speeds it up at least 200%. There are some optimizations I can do that I might add later that will speed up things further.

    Commands:

    /axr on - hides all unlit ore
    /axr off - reveals all hidden ore (and deletes the data file!)
    /axr on <world> - hides all unlit ore in specified world
    /axr off <world> - restores ore in specified world
    /axr worlds - world statistics
    /axr chunk - chunk statistics at chunk player is on
    /axr chunk <x> <z> - chunk statistics at specified chunk
    /axr map -shows map of loaded chunks in current world
    /axr map <world> -shows map of loaded chunks in specific world
    /axr map <zoom>
    /axr map <world> <zoom>
    /axr map <x> <z>
    /axr map <world> <x> <z>
    /axr map <zoom> <x> <z>
    /axr map <world> <zoom> <x> <z>
    /axr show
    /axr show <world>
    /axr hide
    /axr hide <world>
    /axr dump <world> <file>
    /axr diff <filein1> <filein2> <fileout>
    /axr gen <world> <x1> <z1> <x2> <z2> command for generating a rectangular area of chunks
    /axr gen copy <world1> <world2> command for generating all the chunks in world2 that are registered in world1
    /axr pack <world> - removes dead space in ore file (not that there is much from just mining but the axr chest will create significant amount of dead space.
    Auto-backup, that will backup your ore file on startup
    /axr backup <world> - backs up the ore file of the world if and only if the file passes the corruption test
    /axr test <world> - test the ore file and memory for errors for a specific world
    /axr test - test the ore file and memory for errors for all worlds
    /axr mirrorworld <world1> <world2> - creates a world world2 with the same seed as world1.
    These functions are not recommended for use unless you know what you're doing: (they can be destructive of tile entites)
    /axr chunk regen - regenerate chunk (to as it was when world was initially generated)
    /axr chunk regen <x> <z> - same but for specified chunk
    /axr chunk regen <x1> <z1> <x2> <z2> - same but for axis aligned rectangular area
    /axr chunk regen ore - only regenerate ores in chunk at player position
    /axr chunk regen ore <x> <z> - same but for specified chunk
    /axr chunk regen ore <x1> <z1> <x2> <z2> - same but for axis aligned rectangular area

    Note about regeneration: ores, trees, flowers and mushrooms are random each time and not tied to world seed (bukkit/mc issue)

    permissions:

    antixray.axr.on
    antixray.axr.off
    antixray.axr.worlds
    antixray.axr.chunk
    antixray.axr.chunk.regen
    antixray.axr.chunk.regen.ore
    antixray.axr.map
    antixray.axr.show
    antixray.axr.hide
    antixray.axr.dump
    antixray.axr.diff
    antixray.axr.gen
    antixray.axr.gen.copy
    antixray.axr.test
    antixray.axr.pack
    antixray.axr.backup
    antixray.axr.mirrorworld
    config.txt:

    timerms - the time between light check by broken third block in milliseconds.
    maxdep - buffer size for number of ores that can occur in a chunk - don't change unless you have another plugin that adds tons of ore.
    maxheight - is the number of Y-levels in your map.
    ChunkFileBuffer - sets how much is buffered for new chunks to be stored until the index is rewritten (at the end of the file.)
    Materials - what ores you want to hide. (has to have same number of elements as maxys)
    maxys - the first Y level from bottom they cannot occur at. (has to have same number of elements as Materials)
    worlds - what worlds are loaded at startup (comma separated)
    autostart=all (normal) worlds are loaded at startup (unless CFGworlds is set)
    nounload = keeps all ore data in physical memory
    debug - turning on writes to a debug file keeping track of important info that may be needed to solve bugs or figure out why lag occurs
    fileindexdebug - turning on debug file needed as a quick check of the consistency of your ore file
    mapcol - the chatcode colour of each type of block in ascending order, shown in /axr map
    mapwidth - the width of the map shown in /axr map
    mapheight - the height of the map shown in /axr map
    schedulerload - 0-100 percentage of time going to execute any background process.
    schedulerstatustimer - time in millisecs between each status report of a background process
    filterorenotinstone - filters ore upon exposition that is not in stone (can be used to restore ore from a backupped ore file or ore file generated from a fresh world with same seed)
    autorepack - pack ore files automatically at startup - on by default
    autobackup - backup ore files automatically at startup(requires autorepack) - on by default
    maxfaces - specify max amount of exposed faces per chunk before error occurs
    lenient - ignore lindex errors when loading file (useful if you have them from before and want to filter them out)
    All CMD_... options are for redefining the commands so you can type something else.


    changelog:
    v0.6.10
    • Fixed Array index out of bounds in listindex accessing materials that has not been loaded yet.
    v0.6.9
    • Added /axr mirrorworld <world> <mirrorworld> command
    v0.6.8
    • Fixed NPE when trying to expose ores in world hole.
    v0.6.7
    • checking whether wrong file exist during repack.
    v0.6.5
    v0.6.6
    • fixed NPEs in some commands that can occur if you use it and the world is off.
    v0.6.5
    • fixed open file pointers during repack.
    v0.6.4
    • fixed NPE during repack when load fails.
    v0.6.3
    • fixed NPE when running test on all worlds and not all worlds are on
    • added various memory checks and chunk data entry overwrite checks
    v0.6.2
    • fixed NPE when trying to flush the debug file when debug file is turned off.
    v0.6.1
    • added lenient config option to ignore lindex errors when loading file (useful if you have them from before and want to filter them out)
    • added more information on error when loading from file
    • added config option maxfaces to specify max amount of exposed faces per chunk before error occurs
    v0.6
    • /axr off now gradually unregisters chunks - as a workaround to what appears to be a problem with chunks not getting fully removed from memory despite trying both unloadchunk calls through bukkit. This allows one to shut down the server and continue restoration after a restart if one does not have enough RAM
    • /axr pack <world> - removes dead space in ore file (not that there is much from just mining but the axr chest will create significant amount of dead space.
    • /axr backup <world> - backs up the ore file of the world if and only if the file passes the corruption test, also packs the new file.
    • /axr test <world> - test the ore file and memory for errors for a specific world
    • /axr test - test the ore file and memory for errors for all worlds
    • autorepack config option - pack ore files automatically at startup (if and only if the file passes the corruption test) - on by default
    • autobackup config option - backup ore files automatically at startup(if and only if the file passes the corruption test, and also requires autorepack) - on by default
    • new .ore extension for ore files (rename your old files)
    • removed glowing redstone ore from default ore list (never occurs naturally anyway)
    • fixed faulty scanning issue
    • fixed hopefully last exposed ore face index error
    • fixed false positive in memory check
    • debug.log flushed when error occurs (it is otherwise flushed once in a period of time)
    • more details in debug log when error occurs
    • removed lindex spam in debug log until lindex error occurs
    v0.5.21
    • Fixed /axr gen not triggering scan anymore
    • Fixed /axr gen not unloading chunks
    • Fixed (workaround) huge memory leak during /axr off /axr show /axr hide and /axr gen caused by bukkit's unloadchunk function
    v0.5.20
    • Additional file corruption checks that will make noise as soon as something goes wrong
    v0.5.19
    • Fixed another potential index derangement bug.
    v0.5.18
    • Fixed array out of bounds exception during previous fix
    v0.5.17
    • Fixed a couple of bugs offsetting exposed ore face indicies when mining adjacent block potentially causing array out of bounds exceptions at a later stage and the revealing of wrong ores when exposed to light.
    • Added debug logging of exposed ore face indices when found, as well as fault intolerant check that will warn you about any corruption of the indices after the event.
    v0.5.16
    • fixed half of ore not being hidden when a chunk is generated on load.
    • removed various unnecessary details to be logged in debug.log
    v0.5.15
    • fixed bug restoring ore, hiding and showing in wrong world
    • revert hack to set block material of a chunk to physical updates due to lacking javadocs to figure out what function to call
    v0.5.14
    • Switched to non physics updating block material setting hack
    • Updated to #733
    v0.5.13
    • Added detailed debug logging of background processes.
    • removed logging of filepointer
    v0.5.12
    • fixed failed scan after /axr gen unloading chunks that were originally not loaded, consequently also /axr gen causing server to freeze and timeouts on clients.
    v0.5.11
    • fixed /axr gen not unloading chunks that were originally not loaded
    v0.5.10
    • /axr gen and /axr gen copy now actually usable
    v0.5.9
    • ore in stone filter now also applies to /axr off and /axr show (not just when it is found by light detection)
    v0.5.8
    • added /axr gen command for generating a rectangular area of chunks
    • added /axr gen copy command for generating all chunks that are registered in another world
    v0.5.7
    • Configuration option CFGfilterorenotinstone implemented, that allows filtering of ores not in stone (can be useful in recovering lost ore from a world with the same seed)
    v0.5.6
    • fixed ore regen not working when axr is off in that world
    • removed physics lock spam
    v0.5.5
    • fixed more concurrency errors during background processes (hopefully for the last time)
    v0.5.3
    • fixed more concurrency errors during background processes
    v0.5.2
    • fixed concurrency errors during background processes
    v0.5.1
    • fixed debug off in config file causing unable to start (again! although different place now)
    v0.5
    • ore stats dump - listing all chunks ore counts into a text file
    • ore stats diff - showing difference between two ore stats dump files (these two tools are useful if you are worried that your ores might disappear)
    • show command - reveals the ore but does not unregister them or delete the file
    • hide command - hides again ore that was revealed with show.
    • show, hide and ore stat dump are background processes that does not freeze the server.
    • axr off is now a background process
    • load percentage of background processes can be configured
    • specify map zoom and center
    v0.4.1
    • Fixed file index debug listing not showing
    • file index debug listing can be turned off in config.txt (fileindexdebug)
    • area regeneration functions now tolerate any two coorner in rectangle in any order.
    • fixed debug off in config file causing unable to start
    v0.4
    • added axr map command for showing map of loaded chunks
    • fixed light expose unmapped material (probably why you got grass/smooth stones)
    • fixed light expose restored block being block at exposed face
    • fixed light expose no chunk location offset (why you got it at spawn)
    • fixed exposed face location wrong axis (probably floating blocks)
    • removed unnecessary cacheing of chunks at startup by not using chunks as keys for file index(probably solve memory problems for large worlds)
    • bypassing unnecessary cacheing of blocks using minecraft hackery.
    • revised scan algorithm, bypassing bukkit wrapcode resulting in at 5-10 times faster scanning.
    • fixed queries on unloaded sidechunks during scan resulting in loading and even generation of chunks that on top of it due to eventlock get ignored by onChunkLoad, thus leaving chunks of unhidden ore.
    • fixed light expose filling 0s after removed index
    • probably more bug fixes, can't remember them all
    v0.3.3
    • world statistics: type axr world - shows also what worlds are on/off
    • chunk statistics when axr is off no longer causes world to be registered without any chunks being loaded
    • axr on doesn't show NaN when there is nothing to hide
    • proper colouring
    • empty chunks are no longer ignored.
    v0.3.2
    • Fixed potential ore type shift bug
    • Moved listindex before file is loaded so debug info can be displayed even if it crashes while loading.
    • added rectangular area regen functions
    v0.3.1
    • Fixed silly nullpointer exceptions
    v0.3
    • Specify what worlds to turn on and off
    • Specify what worlds to load at startup
    • option to keep all ore data in memory
    • chunk statistics (useful for checking that your ore doesn't disappear or duplicate)
    • chunk regenertaion (restore a chunk to state at world generation)
    • chunk ore regenertaion (restore only ore)
    v0.2.5
    • Fixed some other bugs related to exposed-face-to-ore index
    • Index debug file working again (it was still expecting 0.1.5 files)
    • Added potential ore file corruption warnings to debug file output
    v0.2.4
    • Fixed bug locating exposed-face-to-ore index elements having no array bounds check.
    v0.2.3
    • Fixed bug exposed-face-to-ore index elements not being removed
    v0.2.2
    • Fixed bug exposed-face-to-ore index not being updated when ores are recovered and removed from hidden ore list (new bug in 0.2)
    • Fixed bug at y levels above 128-16 looking for ores above the map
    v0.2.1
    • Uses NSCommand now (it did right from the start but its now a separate plugin)
    • auto-creation of config files
    • defaults to ops only when permissions is not present
    v0.2
    • Light detection optimization based on a separate list of faces exposed to nonsolid materials (this might not work with all materials yet such as stairs and singlesteps, but its not like the world generator puts them in the caves anyway) resulting in at least 10 times faster execution of light checks. This should reduce all lag that's not due to scanning new chunks for ore.
    • Once again more detailed debug log
    v0.1.5
    • Fixed bug in ore restoring function causing large veins of ore to be generated out of nothing
    • More detailed debug log
    v0.1.4
    • Removed file corruption check that's hogging up some cpu cycles during file load and write events (the latter occured during scan event) - so this should speed up scan events.
    • pseudo error "load error 1" moved to debug log.
    • Added 1 tick delay of scan in onload event since it appears bukkit fires it before the chunk is populated with ore. This fixed the bug of ore appearing if you teleport or walk far away from initially scanned chunks.
    • removed physics event logging since it appears to always be neglible.
    • Added message at startup informing you about the waiting time of scanning all loaded chunks may take a while.
    v0.1.3
    • Fixed bug starting server without plugin data folder causing it unable to write debug file
    • Added more debug file details (when its scanning, loading from file, or just loading from memory when neither is shown)
    • Those who who don't hide coal, should experience faster chunk scanning now
    v0.1.2
    • Fixed bug due to player location being null for some weird reason
    • Added debug logging of time spent on the main time consuming procedures.
    v0.1.1
    • Fixed config file not loading properly
    • Removed wtfexception spam
    v0.1
    • Initial Release
    Donate (Not necessary but appreciated)
     
  2. Offline

    asdaarg

    axr regen ore -250 -250 250 250
    although now with 0.4.1 these works too:
    axr regen ore -250 250 250 -250
    axr regen ore 250 -250 -250 250
    axr regen ore 250 250 -250 -250
     
  3. Offline

    RazMaTaz

    Looks like cpu usage has dropped at least for me. Although I still get an immediate disconnection stream error when first logging in. Would it be possible to scan chunks where players are on server start? would that help?

    Going to let this one run awhile and see what happens. Not using the ram option yet, but we will see.

    Using 0.4.1
     
  4. Offline

    asdaarg

    Hmm, I think wherever you log out would be scanned so that could happen only when you run AXR on a map for the first time. I don't have access to the player info through bukkit, its too much of a bother trying to figure out the file format for the players. I could put in a background chunk scan though.

    Edit: Btw go ahead and load it all in physical memory, the memory problems were due to bukkits/mc chunk and block cacheing system.
     
  5. Offline

    The PC Tech Guy

    Sorry, the error I reported below still exists with debug=false.
     
  6. Offline

    asdaarg

    Fixed. This time there's no more of them, I hope :)
     
  7. Offline

    RazMaTaz

    First login after install of 5, I also got the stream error disconnection. *I did not upgrade* I have been doing /axr off every plugin version update. On 4.1 I got disconnected stream error when doing the /axr off.
    Will see what happens with .5, also CraftBukkitUpToDate keeps saying new version on this .5 not sure why that is.

    Lol- Looks like you were updating it! :) hah!

    /axr off (*version .5) showing various status along the way, but no finished message? Oh.. got disconnected, time out this time.

    ooooohh.. Crashed the server (Was able to stop at console, but could no longer login with the client)

    Show Spoiler
    Code:
    2011-04-17 20:48:42 [INFO] RazMage issued server command: /axr off
    2011-04-17 20:48:54 [SEVERE] java.util.ConcurrentModificationException
    2011-04-17 20:48:54 [SEVERE]     at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
    2011-04-17 20:48:54 [SEVERE]     at java.util.HashMap$KeyIterator.next(HashMap.java:883)
    2011-04-17 20:48:54 [SEVERE]     at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:363)
    2011-04-17 20:48:54 [SEVERE]     at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:308)
    2011-04-17 20:48:54 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-17 20:48:54 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-17 20:48:54 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-17 20:48:54 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 20:48:54 [SEVERE] Unexpected exception
    java.util.ConcurrentModificationException
        at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
        at java.util.HashMap$KeyIterator.next(HashMap.java:883)
        at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:363)
        at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:308)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 20:51:23 [INFO] Read timed out


    On to verions 0.5.1
     
  8. Offline

    The PC Tech Guy

    No more. Thanks!
    Also, I've been looking for a plugin like this, however only another plugin that relies on baiting xray mod users in order to combat xray-ers when using the search term "anti xray." (Now it may come up since I used it with a space in this post :)). I told the developer of the NoCheat plugin to include yours in the OP for combating xrayers...
     
  9. Offline

    asdaarg

    Hrmmm... I'm off to sleep, too tired now, will reply tomorrow. That concurrent thing escaped my mind. I have to lock the index while its being worked on by a background process.
     
  10. Offline

    RazMaTaz

    Get some rest. :)

    Last two runs of a fresh start(0.5.1), did not disconnect me on first login. A little jumpy but I got in. :)

    /axr off worked both times as well. Should this be remembered between server starts?

    Keep up the good work, and I'll keep posting my observations! :)
     
  11. Offline

    asdaarg

    How does the debug.log look like at the point you get disconnected?
    Fixed now in 0.5.2 :)

    That plugin I think relies on xray mod sending a particular command to the server, and that sort of thing is easy to remove with a simple hack. Yeah if that guy includes the diamond found reporting plugin, I would think this would be included too since its far better, thanks for spreading the word about this plugin :)

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

    Pythros

    Hello... it's me again ;)
    (v 0.5.2|CB 670)I was watching the console after updating a few plugins and AXR kept sending this....
    Code:
    19:36:47 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 36
    19:36:47 [SEVERE]       at com.asdaarg.bukkit.antixray.AChunk.getBlock(AChunk.ja
    va:23)
    19:36:47 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.
    java:554)
    19:36:47 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.
    java:448)
    19:36:47 [SEVERE]       at com.asdaarg.bukkit.antixray.AXR.Expose9Chunks(AXR.jav
    a:50)
    19:36:47 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay$1.run(AntiXRay.j
    ava:71)
    19:36:47 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:33)
    19:36:47 [SEVERE]       at java.lang.Thread.run(Thread.java:722)
    
    Went to turn /axr off and got the below with the server crashing...
    Code:
    19:36:49 [SEVERE] java.util.ConcurrentModificationException
    19:36:49 [SEVERE]       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
    19:36:49 [SEVERE]       at java.util.HashMap$KeyIterator.next(HashMap.java:841)
    19:36:49 [SEVERE]       at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:366)
    19:36:49 [SEVERE]       at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:308)
    19:36:49 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    19:36:49 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    19:36:49 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    19:36:49 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    19:36:49 [SEVERE] Unexpected exception
    java.util.ConcurrentModificationException
            at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
            at java.util.HashMap$KeyIterator.next(HashMap.java:841)
            at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:366)
            at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:308)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    19:36:50 [INFO] Connection reset
    19:37:28 [INFO] Read timed out
     
  13. Offline

    asdaarg

    Fixed the latter, I think. The former is very problematic. Are you using a fresh ore file or an old one, because there has been some bugs prior to 0.5 that can cause face indices to corrupt.
     
  14. Offline

    Pythros

    I don't know about the ore file because I can never find that anywhere. Where should it be located?
     
  15. Offline

    PiO3k

    if i turn off axr, the ores in squere about 1000x1000 can't be restored. why ?
    how to restore debug file at all ? they have about 283 MB
     
  16. Offline

    asdaarg

    It is located in AntiXRay folder under plugins. If you used any version prior to 0.5 and didn't restore the ore before using 0.5, it might contain face index errors.

    Not sure what you mean here.

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

    PiO3k

    i mean i have a debug.log file on the server they have about 283 MB, and i want to restore all ores from that file because if i turn off axr they don't restoring all ores. all ores from squrer about 1000x1000 disappear.
     
  18. Offline

    asdaarg

    debug.log does not contain ore. /axr off should do it. Are you getting any errors doing so?
     
  19. Offline

    Pythros

    I have "world", "world.index.txt". "nether", and "nether.index.txt". Are those it?
     
  20. Offline

    PiO3k

    so what if the /axr off don't restore ores and what for is the debug.log file ?
     
  21. Offline

    asdaarg

    Actually those errors were fixed in 0.4. How old is your world file?

    Does it give you any errors?

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

    nozoki

    One of my players just reported a somewhat odd bug.
    He was leveling an area and placing smooth stone. Some coal showed on the layer he was on, so he mined it, then replaced the hole with smooth stone. When he placed that stone, some of the stone near it became more coal. He wasn't sure if he duplicated the coal blocks, or if only more poped up as if they were spreading.
    I think it was more of a light check not working 100%, so the hidden ore only showed when some changes were made around them. Kinda.

    Version 0.5.2 craftbukkit build 677
     
  23. Offline

    RazMaTaz

    In response to your requestd information. AntiXray 0.5 btw, since upgraded to 0.5.1 Will do .2 later.

    CB677 Console
    Show Spoiler
    Code:
    2011-04-17 20:44:18 [INFO] RazMage [/*edit*:58272] logged in with entity id 66
    2011-04-17 20:44:18 [INFO] CraftPlayer{name=RazMage} logged in with entity id66
    2011-04-17 20:44:18 [INFO] [StealthLogin] RazMage logged in secretly!
    2011-04-17 20:44:23 [INFO] RazMage lost connection: disconnect.overflow
    2011-04-17 20:44:23 [INFO] Connection reset
    2011-04-17 20:44:23 [INFO] [StealthLogin] RazMage logged out secretly!
    2011-04-17 20:44:23 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-17 20:44:39 [INFO] RazMage [/*edit*:58277] logged in with entity id 181


    Debug.log
    PasteBin Link
    http://pastebin.com/D0D6LRXA


    Edit: I'm feeling dejavu for some reason...

    0.5.3 is really scaring me.. LOL

    Show Spoiler
    Code:
    18:29:48 [SEVERE] java.util.ConcurrentModificationException
    18:29:48 [SEVERE]       at java.util.HashMap$HashIterator.nextEntry(HashMap.java
    :848)
    18:29:48 [SEVERE]       at java.util.HashMap$KeyIterator.next(HashMap.java:883)
    18:29:48 [SEVERE]       at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.jav
    a:369)
    18:29:48 [SEVERE]       at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUti
    l.java:308)
    18:29:48 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainT
    hreadHeartbeat(CraftScheduler.java:122)
    18:29:48 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:356)
    18:29:48 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:283)
    18:29:48 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:375)
    18:29:48 [SEVERE] Unexpected exception
    java.util.ConcurrentModificationException
            at java.util.HashMap$HashIterator.nextEntry(HashMap.java:848)
            at java.util.HashMap$KeyIterator.next(HashMap.java:883)
            at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:369)
            at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:308)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:122)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    >


    More this than that error:
    Code:
    18:32:23 [INFO] AXR: Loading/Scanning Chunks - Please Wait. This may take anythi
    ng from a few seconds to several minutes depending on how many chunks are loaded
    
    18:32:24 [INFO] 0/625 chunks loaded
    18:32:24 [INFO] 512/625 chunks loaded
    18:32:24 [INFO] AXR: hidden:0 ores in 625 chunks 0.0%
    18:32:24 [INFO] AntiXRay 0.5.3 enabled.
    yes.. 0.5.3 seems totally broken for me

    And somewhere along the line, ore's were not restored as I thought they were.
     
  24. Offline

    asdaarg

    Hmm... I think I have to change strategy here. There's something else going on and these bugreports don't tell me anything about it. I'm going to temporarily drop background processes and go back to the way it was in 0.4 until I figure out how to do it best.

    Edit: never mind, think I rooted them out this time.
     
  25. Offline

    RazMaTaz

    Whats the best way for me to see what my chunk ranges are to try and regen ore?

    Using minecraft x-ray 2.7 I can definately tell that there is tons of missing ore..
    I have tons of backups but maybe not with ore intact.. hehe..

    Do I have the wrong version of something? with 0.5.2 and 0.2 NSCommand I get this when doing /axr chunk regen ore (-73,55)
    Show Spoiler
    Code:
    19:20:48 [INFO] RazMage issued server command: axr chunk regen ore
    19:21:06 [SEVERE] null
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at com.asdaarg.bukkit.NSCommand.NSCmdCatNode.call(NSCmdCatNode.java:48)
            at com.asdaarg.bukkit.NSCommand.NSCmdCatNode.call(NSCmdCatNode.java:63)
            at com.asdaarg.bukkit.NSCommand.NSCmdCatNode.call(NSCmdCatNode.java:63)
            at com.asdaarg.bukkit.NSCommand.NSCmdCatNode.call(NSCmdCatNode.java:63)
            at com.asdaarg.bukkit.NSCommand.NSCmdCatNode.call(NSCmdCatNode.java:63)
            at com.asdaarg.bukkit.NSCommand.NSCommand.Command(NSCommand.java:219)
            at com.asdaarg.bukkit.NSCommand.NSCommand$1.onPlayerCommandPreprocess(NS
    Command.java:43)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.ja
    va:228)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:618)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:589)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:583)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NullPointerException
            at com.asdaarg.bukkit.antixray.AXRUtil.regenOreChunk(AXRUtil.java:33)
            at com.asdaarg.bukkit.antixray.AntiXRay.CMD_axr_chunk_regen_ore(AntiXRay
    .java:404)
            ... 24 more
     
  26. Offline

    asdaarg

    Apparently theres a bug when you run it and axr is off on that world, because it gets the materials from there. Will be fixed, so it uses the default materials from the config file instead.

    Edit: Fixed and uploaded.
    Edit2: regarding what ore ranges you should try to regen, that's a bit of difficult question. You could use the map but it only shows the loaded chunks, which is not all registered chunks upon startup as in some past versions of axr. I could add a feature that shows that a chunk is registered too, in the map.
     
  27. Offline

    Pythros

    Sometime between beta 1.2 and 1.3.
     
  28. Offline

    link2110

    I havent tried a new version, i'm still using 0.4.x, is there anyway to change the ore files from an old version to a new version without doing /axr off? When i do that it disconnects everybody, goes on for about a half hour and then i log on to find ore floating in any loaded chunks.
     
  29. Offline

    zlavik

    2011-04-18 19:35:29 [SEVERE] java.lang.NegativeArraySizeException
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AWorld.LoadChunkB(AWorld.java:396)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AWorld.loadChunk(AWorld.java:479)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AWorld.getBChunk(AWorld.java:498)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:102)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:123)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:384)
    2011-04-18 19:35:29 [SEVERE] at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:320)
    2011-04-18 19:35:29 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-18 19:35:29 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-18 19:35:29 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-18 19:35:29 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-18 19:35:29 [SEVERE] Unexpected exception
    java.lang.NegativeArraySizeException
    at com.asdaarg.bukkit.antixray.AWorld.LoadChunkB(AWorld.java:396)
    at com.asdaarg.bukkit.antixray.AWorld.loadChunk(AWorld.java:479)
    at com.asdaarg.bukkit.antixray.AWorld.getBChunk(AWorld.java:498)
    at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:102)
    at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:123)
    at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:384)
    at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:320)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375
    )
    670 and recent version
     
  30. Offline

    RazMaTaz

    I think I've decided I will regenerate all my ore with NBToolkit (On Minecraft Forum) Unless you come up with a ore regen for all chunks.. loaded or not.. :)
    With NBToolkit I set all ore to stone first and then, generate ore's. (have to run several commands in a bat file) but its very nice. I looked through my map afterwards with Minecraft X-Ray and am pretty happy. I don't know if NBToolkit is anything like regen based on seed or not or its own forumala

    I really hope all is not in vein. Ohh.. Bad Pun! :)
     
  31. Offline

    panderiz

    Unless for some particular reason the last three red stone ore blocks I've encountered are by them selves(I don't recall this ever happening...) after I did /axr show and let the complete then stopped my server so I could disable the plugin, all the ore in my world is missing. Am I doing something wrong with disabling this? Do I have to do /axr off to get my ore back?

    Running /axr off right now... Sadly it takes quite a while for this to finish(12K chunks is a lot I guess)

    Edit: Well... I ran it and still no ore appearing. It says it restore 2 million ore but I'm not finding any ore behind blocks while mining everything is just the exposed ore blocks... Am I just having really bad luck atm or am I really stripped of all ore on my server now?
     

Share This Page