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

    atlem

    but i think the error is when you have bothe anticheat and antixray, , idn tho .
    you shod add anti fly to your mod also
     
  3. Offline

    asdaarg

    Is there a conflict between the two?
     
  4. Offline

    lahwran

    I'm working on something similar, but I'm going all-out - I'm changing craftbukkit to be capable of showing different blocks to different players and adding a plugin hook so plugins can filter what is sent before it is sent.
     
  5. Offline

    asdaarg

    Sounds interesting. It would allow making sure that no info about the ore gets out before its time, since bukkit at the moment doesn't seem to provide an event for chunk being fully generated, or at least not distinguish it from chunk being generated but not decorated.
     
  6. Offline

    phaed

    Hey how about an option to keep all data in memory. 50mb file is like drop on a bucket for any server, even 5x that. Its taking my server 20 minutes to reload. I'm sure there is no need to rescan all loaded chunks every single time it loads, how about keeping track of which chunks have already been scanned and skipping them?
     
  7. Offline

    Nate204

    Thanks for that. Like I said, I messed up. You're plugin is awesome~ I simply didn't pay attention :)
     
  8. Offline

    o0AzzA0o

    30 players online

    didnt work for my i7 920 12 gig ram server with 3gig allocated ramdisk for whole minecraft folder i think it could be problem with anticheat plugin .... it loaded fine took 30 seconds to generate on map thats 1.7gig large but there was problems with random lag spikes that we 10 seconds in duration.I do run alot of plugins 20ish

    This plugin is great concept .... is there way to improve store system to mysql or similar???
     
  9. Offline

    phaed

    One hour at 100% CPU, the world wont load. To the point where my whole 8GB of ram is taken up and the log file flies to 150MB in size:

    16:28:27 [SEVERE] Exception in thread "process reaper"
    16:28:30 [SEVERE] java.lang.OutOfMemoryError: Java heap space

    Going to have to restore from backup.
     
  10. Offline

    RazMaTaz

    Just installed newest version. Will see what happens. My server isn't very large, 5 players at most. World is only 88Megs in size.
    Debug is on this time.. :)

    The machine is a little less than alot of other servers. Plain Core2Duo 2.4Ghz, Windows 7 64 bit, 4 gigs ram. Running in 1 Gig Ram Drive. CB runs wayyy better on Windows7 on same machine than XP. Was like night/day. !:)
     
  11. Offline

    asdaarg

    I've been thinking about adding an option for that. The chunks are not rescanned, but the ore data is loaded from the file, when a chunk is loaded, and its on avg 450 bytes per chunk and 60 microseconds to load. Scanning however can take 4 or more milliseconds.
    I've gotten that error a few times when my ore files were corrupt and it started allocating huge chunks of memory or tried to, and that's probably what happened to you too. Do you still have the world.index.txt file(s)? world being the name of your world(s). Also you were running what version?

    Mysql is very slow in my experience. It would probably lead to not having to worry about file corruption, though. I might consider it.

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

    phaed

    Restored 1 day old backup, yea still have that file in case you need it for something. Dunno what version but I imagine it was the latest, I downloaded it yesterday. My world is 3Gb size.
     
  13. Offline

    asdaarg

    Yes, I would like to see it as that file may reveal whether it got corrupted or not. It is a debug listing of the chunk index of the ore file, and if there are big numbers on the ore count then that's the case. I really should put version numbers in those files too.
     
  14. Offline

    RazMaTaz

    Results of short test. Tried to log in, got a disconnected stream error. Took a bit longer than normal. TP / Walked around, Used WorldEdit compass (/jumpto) 100 block limit. Mined a little bit of ore, I could see that stone was changing to ore on the revealed block. Mining seemed pretty snappy. Only person on server too.

    My Plugins:
    2011-04-13 18:00:47 [INFO] Plugins: AutoPlant, AutoRepair, BackupPlugin, BorderGuard, ChatBukkit, CraftBukkitUpToDate, DiscoSheep, DropBonus, dynmap, FenceStack, Growbie, iZone, LogBlock, LoginMessage, LyTreeHelper, MobRider, MultipleHomes, MyHome, NoCheat, NoExplode, NSCommand, Permissions, PlugMan, PumpkinDiver, ScrapBukkit, Stats, StealthLogin, Tombstone, Uptime, Vanish, WorldEdit, xrayDetector, Achievements

    Console Error.
    Show Spoiler
    Code:
    17:41:08 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 33
    17:41:08 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.
    java:223)
    17:41:08 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.
    java:386)
    17:41:08 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(An
    tiXRay.java:254)
    17:41:08 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.jav
    a:263)
    17:41:08 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:33)
    17:41:08 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:46:24 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 146
    17:46:24 [SEVERE]       at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java
    :151)
    17:46:24 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.
    java:225)
    17:46:24 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.
    java:386)
    17:46:24 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(An
    tiXRay.java:247)
    17:46:24 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.jav
    a:263)
    17:46:24 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:33)
    17:46:24 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:46:26 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 146
    17:46:26 [SEVERE]       at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java
    :151)
    17:46:26 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.
    java:225)
    17:46:26 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.
    java:386)
    17:46:26 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(An
    tiXRay.java:251)
    17:46:26 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.jav
    a:263)
    17:46:26 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:33)
    17:46:26 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    17:46:28 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 106
    17:46:28 [SEVERE]       at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java
    :151)
    17:46:28 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.
    java:225)
    17:46:28 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.
    java:386)
    17:46:28 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(An
    tiXRay.java:254)
    17:46:28 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.jav
    a:263)
    17:46:28 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:33)
    17:46:28 [SEVERE]       at java.lang.Thread.run(Unknown Source)


    Debug Log Attached:(Renamed .txt)(zipped)

    I did not keep a copy of index.txt before I did a /axr off (sorry)
    And then removed the plugin.

    Looking at the index.txt afterwords has alot of this..
    Show Spoiler
    Code:
    room for:3182 chunks found...3182 chunks:
     chunk:0@1940028   (1,-5)@309925[590338,WTFException
    ]
     chunk:1@1940040   (-70,55)@694458[786689,WTFException
    ]
     chunk:2@1940052   (-31,14)@1357136[917761,WTFException
    ]
     chunk:3@1940064   (-74,54)@699721[262401,WTFException
    ]
     chunk:4@1940076   (-3,-2)@359181[32512,WTFException
    ]
     chunk:5@1940088   (-8,-6)@305768[32512,WTFException
    ]
     chunk:6@1940100   (-47,51)@1837109[32512,WTFException
    ]
     chunk:7@1940112   (22,19)@631424[32512,WTFException
    ]
     chunk:8@1940124   (-13,1)@22895[1245698,WTFException
    ]
     chunk:9@1940136   (-31,28)@1500062[32512,WTFException
    ]
     chunk:10@1940148   (6,-7)@287532[32512,WTFException
    ]
     

    Attached Files:

  15. Offline

    asdaarg

    Thanks for the bugreport. And really I should thank everybody who has sent them, they've been really helpful in trying to get this thing working. For one thing here, I immediately spotted an error I made causing the error at 223, so that's at least fixed now.
    Edit: second error bug fixed too now.
     
  16. Offline

    bakon balázs

    Hmmm! Very nice! I tested on my local server :)
    Propably the problem is with my machine, but disconnecting me, when i turning on the AXR.
    But i think my PC is old :)

    Im testing this in next week on a Dedicated Server..
     
  17. Offline

    asdaarg

    Bugfix update coming up, so I suggest you take that one instead :)
     
  18. Offline

    KingPin

    nice, waiting for this bugfix release :)
     
  19. Offline

    Lanuk

    I don't know if others had errors like this but...

    I kept generating new maps for the server, and with each one the time to start up got longer and longer until it took a minute or two to happen. Also, ores started appearing above ground after my thirdish map... On top of this it gave my lag (or so I think). I did not have any errors and my cb version matched. It would be nice if you could fix some of these errors (sorry if they were already said), but otherwise, keep up the good work!
     
  20. Offline

    RazMaTaz

    Did you delete the ore file/index with each map generation out of curiosity? Or /axr off and then regenerate?
     
  21. Offline

    asdaarg

    Above ground ore appears if you use an old ore file with a new map, as RazMaTaz probably found out too.
     
  22. Offline

    goldseed

    Code:
    19:10:53 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    19:11:09 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 15
    19:11:09 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.cut(BChunk.java:223)
    19:11:09 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.java:265)
    19:11:09 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.java:386)
    19:11:09 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(AntiXRay.java:242)
    19:11:09 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.java:255)
    19:11:09 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    19:11:09 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    >19:10:53 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: -1
    19:11:12 [INFO] Unknown console command. Type "help" for help.
    >19:10:53 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.cut(BChunk.java:221)
    19:11:12 [INFO] Unknown console command. Type "help" for help.
    >19:10:53 [SEVERE]       at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.java:265)
    >19:10:53 [SEVERE]       at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.java:386)
    19:11:12 [INFO] Unknown console command. Type "help" for help.
    19:11:12 [INFO] Unknown console command. Type "help" for help.
    >19:10:53 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(AntiXRay.java:242)
    >19:10:53 [SEVERE]       at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.java:255)
    >19:10:53 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    >19:10:53 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
     
  23. Offline

    Donny

    Can someone confirm or deny that this causes lag? Maybe a cpu/memory usage before and after?
     
  24. Offline

    asdaarg

    Fixed.
     
  25. Offline

    Juze

    I'd like to know if this still has lag issues or anything important to note.
     
  26. Offline

    asdaarg

    It may or may not cause lag depending on circumstances. It does not for me, but if you have a lot of players it could, and exploring new areas for the first time may cause lag because it will scan for ores which takes time.
     
  27. Offline

    Jorrdan

    Wow smart idea, i love it. I will test this on my server when i am done using World Edit for the new city area.
     
  28. Offline

    Pythros

    Is NSCommand required for the new updates?
     
  29. Offline

    asdaarg

    Yes. It used to be part of it but it is now a separate plugin.

    I'm adding two chunk regeneration commands, one that will regenerate a chunk to its original state and one that will merely regenerate ore and remove extra ore if there is such.

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

    link2110

    Getting this error a lot when the server runs:
    Code:
    2011-04-14 10:25:47 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 56
    2011-04-14 10:25:47 [SEVERE] 	at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java:151)
    2011-04-14 10:25:47 [SEVERE] 	at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.java:225)
    2011-04-14 10:25:47 [SEVERE] 	at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.java:386)
    2011-04-14 10:25:47 [SEVERE] 	at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(AntiXRay.java:248)
    2011-04-14 10:25:47 [SEVERE] 	at com.asdaarg.bukkit.antixray.AntiXRay.run(AntiXRay.java:261)
    2011-04-14 10:25:47 [SEVERE] 	at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-14 10:25:47 [SEVERE] 	at java.lang.Thread.run(Unknown Source)
    2011-04-14 10:25:49 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 56
    2011-04-14 10:25:49 [SEVERE] 	at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java:151)
    2011-04-14 10:25:49 [SEVERE] 	at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.java:225)
    2011-04-14 10:25:49 [SEVERE] 	at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.java:386)
    2011-04-14 10:25:49 [SEVERE] 	at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(AntiXRay.java:248)
    2011-04-14 10:25:49 [SEVERE] 	at com.asdaarg.bukkit.antixray.AntiXRay$1$DelayTorch.run(AntiXRay.java:84)
    2011-04-14 10:25:49 [SEVERE] 	at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-04-14 10:25:49 [SEVERE] 	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    2011-04-14 10:25:49 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-14 10:25:49 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-14 10:25:49 [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException: 56
    	at com.asdaarg.bukkit.antixray.AChunk.expose(AChunk.java:151)
    	at com.asdaarg.bukkit.antixray.BChunk.BandExpose(BChunk.java:225)
    	at com.asdaarg.bukkit.antixray.AWorld.BandExpose(AWorld.java:386)
    	at com.asdaarg.bukkit.antixray.AntiXRay.Expose9Chunks(AntiXRay.java:248)
    	at com.asdaarg.bukkit.antixray.AntiXRay$1$DelayTorch.run(AntiXRay.java:84)
    	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-14 10:26:43 [INFO] Read timed out
    2011-04-14 10:26:51 [INFO] Read timed out
    2011-04-14 10:27:10 [INFO] Read timed out
    
    and a bunch of these as well
    Code:
    2011-04-14 10:19:59 [SEVERE] java.lang.ArrayIndexOutOfBoundsException
    2011-04-14 10:20:04 [SEVERE] java.lang.ArrayIndexOutOfBoundsException
    2011-04-14 10:20:05 [SEVERE] java.lang.ArrayIndexOutOfBoundsException
    2011-04-14 10:20:05 [SEVERE] Unexpected exception
    java.lang.ArrayIndexOutOfBoundsException
    
    CB674, I think im running 0.2.5, but its the newest version as of 3 or 4 hours ago. It ran fine on my test server, and as soon as i copied the plugins to my main server, it started doing that. Evenutally people timed out, and the server got kinda laggy. Then it crashed.

    Also NSCommand, does that have to be configured or can you just stick the jar in the plugins folder and leave it
     
  31. Offline

    asdaarg

    Check the version, it says it at startup. I think I fixed that error in 0.2.5. NSCommand does not need to be configured, just stick it into plugins folder.

    Although chunk regeneration works, trees and ores change places when you do :confused:

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

Share This Page