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

    If it is something that hogs up cpu then it might be intefering with how I'm dividing up the cpu load. I'm going to put in some debug logging code, so I can see what's going on.

    Edit: Done. But I also saw something weird which I removed, even though it shouldn't theoretically do anything. If it starts working now all of a sudden then that was it.

    Look forward to some performance increases, I thought that was just how non physical block updates worked and there wasn't a way around it :D

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

    Gixbit

    Is this actually safe to use on the current versions of craftbukkit with maps that are in excess of 500megs unpacked :p
     
  4. Offline

    asdaarg

    It does not work with any 1.5 version yet. I'm waiting for the first recommended build. The way it works now it should not really matter what size the map is, only how much chunks are loaded and thus it is more relevant how many players you have, and whether they all like to explore the world all at the same time in every direction. As for safety, do a backup just in case.
     
  5. Offline

    RazMaTaz

    Looks like same results as I had last night. Going to reboot and strip the server down to nothing and try again. Maybe also up the ram for java.

    Console:
    Show Spoiler
    Code:
    2011-04-24 13:03:34 [INFO] [MultiVerse] M1 - World Created as - normal
    2011-04-24 13:03:34 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-24 13:04:32 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:04:36 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:04:40 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:04:45 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:04:50 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:04:56 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:00 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:05 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:11 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:17 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:23 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:28 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:34 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:40 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:05:51 [INFO] More than 1000000 updates, aborting lighting updates
    2011-04-24 13:08:27 [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.NSCommand.Command(NSCommand.java:219)
        at com.asdaarg.bukkit.NSCommand.NSCommand$1.onPlayerCommandPreprocess(NSCommand.java:43)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:228)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java: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.OutOfMemoryError: Java heap space
    2011-04-24 13:08:27 [INFO] RazMage issued server command: axr gen M1 -98 -73 82 86
    2011-04-24 13:08:27 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-24 13:08:45 [INFO] RazMage lost connection: disconnect.endOfStream
    2011-04-24 13:08:45 [INFO] [StealthLogin] RazMage logged out secretly!
    2011-04-24 13:08:50 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-24 13:08:58 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-04-24 13:14:19 [SEVERE] Exception in thread "Thread-15" java.util.NoSuchElementException
    2011-04-24 13:14:19 [SEVERE]     at java.util.TreeMap.firstKey(TreeMap.java:1824)
    2011-04-24 13:14:19 [SEVERE]     at java.util.TreeSet.first(Unknown Source)
    2011-04-24 13:14:19 [SEVERE]     at net.minecraft.server.World.a(World.java:1492)
    2011-04-24 13:14:19 [SEVERE]     at net.minecraft.server.World.h(World.java:1405)
    2011-04-24 13:14:19 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
    2011-04-24 13:14:19 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-04-24 13:14:19 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-24 13:14:19 [SEVERE] Unexpected exception
    java.util.NoSuchElementException
        at java.util.TreeMap.firstKey(TreeMap.java:1824)
        at java.util.TreeSet.first(Unknown Source)
        at net.minecraft.server.World.a(World.java:1492)
        at net.minecraft.server.World.h(World.java:1405)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:359)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-24 13:16:11 [INFO] Stopping the server..


    Debug Attached. And no ore file at all was created. oops.. forgot to /axr on M1 I'm awake. I really am!
     

    Attached Files:

  6. Offline

    asdaarg

    Two things, are you using 0.5.13 and did you do gen on M1 or Mystic?
     
  7. Offline

    RazMaTaz

    I keep trying to redownload AXR cause it keeps saying 0.5.12. And gen on M1. I definitely have .13 now will try.
     
  8. Offline

    asdaarg

    Checked the link, says .13
     
  9. Offline

    RazMaTaz

    So far so good, in the process of an /axr off on main world. :)

    I'm doing this will all plugins removed except
    14:49:08 [INFO] Plugins: AntiXRay, ChatBukkit, MultiVerse, NSCommand, Permissions, ScrapBukkit

    I will test again with all my plugs just because. :)

    Not sure why I have the problem getting the right version. Seems like I have to download it 2-3 times before its correct, like something is cached somewhere. And d/l from you is super slow.. 2-4kb/sec sometimes faster

    Looks like it worked for the most part. Want to post some observations when I can figure a way to show you what I'm talking about.

    Thanks for all your hard work! :)

    FYI- Debug.rar.zip is really the .rar (Rar is not accepted, if you can't view it let me know)

    I have to reproduce this to be sure, but it almost looks like /axr off to restore the ore causes new chunk generation where there was no chunk before, and in those chunks there is no ore restored.
     

    Attached Files:

  10. Offline

    asdaarg

    I'm looking at the logfile and it says it doesn't find any ore during the generation phase. Are you sure you deleted the region folder? And that you did gen on M1 and not mystic? Also, I guess generation did not freeze on you this time, but just to be sure, it didn't do it right?
     
  11. Offline

    RazMaTaz

    I havn't tested this again just yet, had some things to deal with but I pretty sure I did it on the correct maps with only a level.dat in the new world folder. And you are correct no freezing and I stayed in game the entire process. I may not try this again till monday.
     
  12. Offline

    asdaarg

    Did you recover all ore, or was it just the chunks around the spawn? Seems like the freeze problem got fixed at last then, removing the code I thought wouldn't interfere.
     
  13. Offline

    RazMaTaz

    It looked like all ore was recovered except in areas that were not previously generated as it looked like new chunks were created when restoring the ore with the /axr off on the main world but no ore there. Thats why I want to do it again and make sure I am doing everything correctly and to see if it reproduces the same result or not.

    I'm in the process of getting a backup of the live world to test on. Going to use Minemapper/CartographG to check things out before/after

    Yes, new chunks generated where none existed previously when restoring ore and no ore according to CartographG

    I also don't know why no ore shows in the empty block in the upper left corner.

    In process of upping a rar file of images.. 57 megs if you want to see them.
    www.magepalace.com/Images.rar

    Edit: File is done

    I have yet to test with the rest of my plugins back on the server
     

    Attached Files:

  14. Offline

    asdaarg

    From the looks of the CartographG maps (btw that's a useful tool I could post a link up on here.) it still looks like to me that its only ore restored around spawn, and that the only ore missing in your original map is a bit larger area around your spawn, a couple of other square empty places where I suppose others logged in, while the rest of the map has got ore intact. But in addition no new ore is generated in newly generated chunks as you say which is weird.
    Edit: Also, there are sharp lines between different biomes at the borders of your original world in the new world. Something happened to your seed too?
     
  15. Offline

    NeoGriim

    Does this mod work in any of the 1.5 builds? I get 100 warnings every couple of seconds and then the server crashes... Is there a fix?
     
  16. Offline

    asdaarg

    Not yet, since I'm waiting for a recommended build. I made a fix a while ago, for the obvious problem, but have not released it yet and I'm not sure if that was all that needs to be changed.
     
  17. Offline

    RazMaTaz

    I'm not really sure. I noticed there were lines just between the nsew quadrants.

    Yes it looks like ore is only restored around the spawn. I did a /axr off on M1 and only ore around the spawn shows now.. nothing outside of that. I also noticed there is no trees outside of spawn. Its almost like the generation isn't complete missing a step somewhere.

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

    asdaarg

    Errr... It sounds like it bypassed the decoration part of chunk generation and thus both trees and ores are not there. Were there no trees outside spawn in your original backup, or did they disappear sometime during the process?
     
  19. Offline

    RazMaTaz

    I was actually looking at the newly generated M1 map. I have another theory too, that I'm currently testing.
     
  20. Offline

    asdaarg

    Well that makes more sense. If the decoration did not occur at all, then there is no ore to be registered. For me it did generate ore as well as scan it. I don't know if this is your theory but perhaps you deleted too much, and deleting the region folder would be enough as that is what I did. Not that there is much else there, a level.dat_old doesn't sound very relevant.
     
  21. Offline

    RazMaTaz

    Only Level.dat is required.

    Ok, now for my theory. Ive tested this a couple times. Everything gets generated, only when AXR is off for that world.

    I inadvertantly closed the server but what had been rendered already was all intact, ore, trees etc.

    Generating a 200x200 area takes about 5 gigs/ram/stackspace FYI

    Upped the scheduler load percentage (for faster gens) and generated a 200x200 area with axr off and everything is there.

    Changed the ore file to my main world. When doing so I also deleted the mainworld index file(just because). I then did an axr off and it now looks like all the ore is there in the main world. I left the mainworld as it was with the generated areas outside that were created by the previous restore. Now those areas also have ore. :) So it seems like to me that two axr gen runs are required, one off, one on. Also I think you could probably check for all ore not just ones that are lit to disable the light checks during those specific kinds of runs. First gen run with axr off I had no "can't keep up messages", with axr on after I hit about 20000 chunks it slowed down and started getting them. Pretty sure it worked good with this method.

    The ore file was 34.9 megs in size for a 200x200 , 40000 chunks map.
     
  22. Offline

    LucidLethargy

    Can't wait for the update to 1.5 (CB 699+) - This really sounds like an amazing plugin!
     
  23. Offline

    asdaarg

    RazMaTaz: Very thankful for your report there, I see what's going on now, and I am suspicious that the same will happen if a chunk is generated with axr on just by exploring. Bukkit/mc will not decorate the chunk even the first tick after onchunkload event is raised. For some weird reason the decoration gets cancelled though :confused:. Updated instructions now, until I figure out if I can get around this.
    Edit: What version of CB were you using? Maybe the difference is there. I've been using 677 all the time. Hope this isn't something that broke afterwards.
    Edit: I see a new recommended is out, time to update this plugin :)
     
  24. Offline

    KingPin

    Linux, CB 684, AXR 5.11?

    trying to do axr off i got the following error :

     
  25. Offline

    asdaarg

    This is probably due to server freezing due to a supposedly harmless piece of code (it was harmless in 677, at least for me.) but I removed in v0.5.13.

    In any case, updated to #733 now i.e 1.5.
     
  26. Offline

    Nader

    lol, not sure if this plugin worked on my 1.4 server or not but when one particular player entered, antixray created error logs and crashes the server each time.. gonna reinstall it and install xray tommorow =/
     
  27. Offline

    asdaarg

    0.5.14 is not compatible with 1.4, use 0.5.13 if you want to use 1.4
     
  28. Offline

    blubber

    Hi,

    since i updatet to version 0.5.14 I always get the following exceptions when i start the server

    Code:
    2011-04-26 17:08:49 [INFO] AXR: Loading/Scanning Chunks - Please Wait. This may take anything from a few seconds to several minutes depending on how many chunks are loaded
    2011-04-26 17:08:49 [SEVERE] null
    java.io.IOException: Negative seek offset
        at java.io.RandomAccessFile.seek(Native Method)
        at com.asdaarg.bukkit.antixray.AWorld.ListIndex(AWorld.java:538)
        at com.asdaarg.bukkit.antixray.AWorld.LoadInit(AWorld.java:287)
        at com.asdaarg.bukkit.antixray.AWorld.<init>(AWorld.java:92)
        at com.asdaarg.bukkit.antixray.AXR.makeWorld(AXR.java:22)
        at com.asdaarg.bukkit.antixray.AntiXRay.axr_on(AntiXRay.java:270)
        at com.asdaarg.bukkit.antixray.AntiXRay.CMD_axr_on(AntiXRay.java:209)
        at com.asdaarg.bukkit.antixray.AntiXRay.onEnable(AntiXRay.java:90)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-26 17:08:49 [SEVERE] null
    java.io.EOFException
        at java.io.RandomAccessFile.readInt(Unknown Source)
        at com.asdaarg.bukkit.antixray.AWorld.LoadIndex(AWorld.java:326)
        at com.asdaarg.bukkit.antixray.AWorld.LoadInit(AWorld.java:295)
        at com.asdaarg.bukkit.antixray.AWorld.<init>(AWorld.java:92)
        at com.asdaarg.bukkit.antixray.AXR.makeWorld(AXR.java:22)
        at com.asdaarg.bukkit.antixray.AntiXRay.axr_on(AntiXRay.java:270)
        at com.asdaarg.bukkit.antixray.AntiXRay.CMD_axr_on(AntiXRay.java:209)
        at com.asdaarg.bukkit.antixray.AntiXRay.onEnable(AntiXRay.java:90)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-26 17:08:49 [INFO] 0/625 chunks loaded
    2011-04-26 17:08:49 [INFO] 512/625 chunks loaded
    2011-04-26 17:08:49 [INFO] AXR: hidden:2256 ores in 625 chunks 0.011015625%
    2011-04-26 17:08:49 [INFO] AntiXRay 0.5.14 enabled.
    
    these expcetions are often followed by these exceptions

    Code:
    java.io.EOFException
        at java.io.RandomAccessFile.readShort(Unknown Source)
        at com.asdaarg.bukkit.antixray.AWorld.LoadChunkB(AWorld.java:397)
        at com.asdaarg.bukkit.antixray.AWorld.loadChunk(AWorld.java:485)
        at com.asdaarg.bukkit.antixray.AWorld.getBChunk(AWorld.java:504)
        at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:102)
        at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:127)
        at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:389)
        at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:321)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-04-26 17:13:01 [WARNING] Task of 'AntiXRay' generated an exception
    java.lang.NullPointerException
        at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:103)
        at com.asdaarg.bukkit.antixray.AWorld.show(AWorld.java:127)
        at com.asdaarg.bukkit.antixray.AXRUtil$2.run(AXRUtil.java:389)
        at com.asdaarg.bukkit.antixray.AXRUtil$runner.run(AXRUtil.java:321)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:358)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  29. Offline

    asdaarg

    CB version?
     
  30. Offline

    blubber

    Its build 733

    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-700-gf3ae4c3-b733jnks (MC: 1.5_02)
     
  31. Offline

    asdaarg

    Did you use a previous version of axr, and if so did you continue to use the same ore file? If so what version was it?
     

Share This Page