Inactive [FIX/ADMN] NoLagg v1.88.1 - Prevent common lag causes on your server [2338]

Discussion in 'Inactive/Unsupported Plugins' started by bergerkiller, Sep 17, 2011.

  1. Offline

    bergerkiller

    I had already made this plugin before after having a major lag issue. (lots of torches being filled, turned into items, lag for 20 minutes) It also works for 1060.

    Some feature ideas are taken over from PerformanceTweaks by @LexManos so some credit goes to him. Code, however, written from scratch by me. :)

    Important:

    If you get a warning message [NoLagg TLN] followed up with a stack trace in the log, this has to do with the main thread not having responded within 10 seconds. When a plugin takes more than this time to enable, it will show that. The warning is NOT an error and is no bug, and not a bug related to NoLagg. To disable this feature, disable 'threadlocknotifier' in the config.yml. This feature is mainly intended to notify you what plugin is causing the server to freeze, may it ever happen. It is used to debug plugins in general, as they may get stuck for whatever reason.

    NoLagg's features in a nutshell

    Description

    Prevent lag caused by many items

    Every time an item gets spawned, it is buffered per chunk. For example, you spawn 30 items using Q and the maximum allowed items per chunk is 20, then the 10 remaining items are not spawned. They are spawned as soon the item count in this chunk is < 20 again.

    Read more...

    Form item stacks - fully automatically

    Whenever two or more (configurable) items or experience orbs get near each other, they form a single stack of that item type. If someone drops 64 dirt blocks on the ground using Q, it will show a single item of 64 dirt instead.

    Read more...

    Prevent lag caused by TNT

    This plugin takes over tnt ignition caused by explosions. When exploding stacks of tnt, it does not rush all tnts into a single tick, but detonate them nicely in sync. This results in pretty awesome fireworks. :)

    Read more...

    Prevent lag caused by lighting glitches

    Whenever a new chunk is generated, it's lighting information is generated and all nearby players receive the updated chunk data. If the auto-method fails, you can use /nolagg fix to do it manually. This fixing fixes, for example, dark spots in and around caves lagging the client.

    Read more...

    Set entity spawn limits

    You can set a spawn limit on virtually every entity in the game. From mobs to items to TNT. Only thing being excluded is Players, since I can't simply kick someone 'like that'. :)
    Note: It removes already spawned entities too. So, if you want to keep your animals alive, don't set mob or animal limits, or it will possibly clear your farm animals. (or you can disable the spawn limiter all together)

    I recommend finding an alternative plugin for this instead. Removing entities after they are spawned causes more lag than it prevents!

    Global auto-saver

    Since asynchronous chunk saving is now implemented internally, it is no longer a problem to save entire worlds frequently. You can set auto-save intervals in the configuration. If used with an interval higher than 400 ticks (20 seconds) it will use a scheduled task instead of the internal saver to prevent chunks never getting saved. Another benefit is that player information is also auto-saved, preventing your players losing their inventory state.

    New chunk sending mechanics

    Instead of loading chunks all around the player, the player direction is used to load the visible chunks first. This means that players can expect chunks in front of them to load quickly, while chunks on the sides take a bit longer to appear. When the player looks into another direction, the direction changes and thus the new visible chunks get loaded first. Only if all chunks ahead of the player are loaded, chunks around the player are sent. This all can be configured using a simple minimum and maximum sending rate.

    Read more...

    Examining the server tick rate

    If you encounter very low tick rates and you want to find out what plugin is causing it, you can use the examine component to find it out. It comes with a graphic viewer, which makes bug tracking the easiest thing ever.

    Read more...

    Prevent cross-thread access for events

    As it seems, some plugins don't follow the rules and use Bukkit methods in another thread. This plugin will notify you and cancel if possible whenever this happens so other plugins understand their mistake. If you encounter a lot of spam in the console, first check the stack trace for the plugin that caused the error. Report this error to the author or remove the plugin, if you have questions you are free to ask.



    Configuration (on BukkitDev)

    Commands and Permissions (on BukkitDev)

    Synchronized code accessed by another thread? (BukkitDev)



    Media



    Video by brandcool86


    FAQ

    - Help I experience missing chunks
    If you are using Spout, don't use Reloads. This is also the reason why Spout added a warning when a player tries to reload the server. Not using Spout, then it's a bug which you can report.

    - Can this plugin be used with PTweaks
    (this message was really old...) Yes, they are compatible, but if certain features overlap, make sure you disable these features in either plugin.

    - I get a warning about the async auto save and interval. Wat do?
    Change the autoSaveInterval value in the configuration to a value higher than 400, like 600. The warning is to prevent endless autosaves to occur, clogging up CPU.

    - I have experienced CPU usage
    CPU usage is not the same as lag. NoLagg uses multiple (2-3) extra threads to prevent tick and network lag. If a lot has to be done, it does this quicker, but this takes more CPU obviously.

    - I have lag when using NoLagg
    See also the FAQ above. Explain what type of lag you have: tick lag, client lag, network lag and/or 'block placement' lag. You can use /nolagg monitor to check the tick rate. If this is normal (>15), then you have network lag. Client lag is when the FPS drops. Block placement lag is lag when the tick rate is normal and other network messages, like chat, are instant.

    - WorldEdit causes lag...
    YES because it is unsafe to take over the main thread while another plugin is having hold over it. I can try fixing this, but it could ultimately lead to some serious concurrency exceptions. Don't expect this to be implemented very soon...

    - Do spawn limits interfere with mob-spawning plugins like MobArena?
    No, it does not. It only limits mobs spawned by 'nature': all custom creature spawns are ignored throughout the run of the plugin. Only after you reload will it lose track of these entities and will it remove custom-spawned mobs. If you use MobArena, be sure nothing is going on when you reload the server.

    - Does item stacking interfere with Showcase or BleedingMobs?
    It supports Showcase and ShowcaseStandalone entirely. (showcased items are completely ignored at all times) The same applies to the 'particles' created by the BleedingMobs plugin. Know of a plugin where it stacks items which should not be stacked? Post the plugin name so I can add support. You are an owner and want to add support? Only having a function in your plugin to check if an item is 'ignored' is enough.

    - Can this plugin be used with Chunk Manager
    If you want to use the Chunk Manager with Nolagg, disable the chunk sending of Nolagg first. If you don't do that, this plugin will do that by itself and send a warning in the log. Of course, compare the results first. :)

    - What are the best settings if I have a lot of RAM memory?
    This plugin does not deal with reduced RAM memory. If I could, I would, but you simply can't reduce the amount of memory Java uses. This data is locked and secured, so I can't simply throw away bits of data or write and read data from/to disk. Any plugin claiming to reduce RAM usage on a server, is probably 'garbage collecting'. This fakes having less RAM usage by removing unused data, but Java does this by itself as well once it hits a certain limit. All these plugins will do is make the Garbage Collector run in overdrive, which will only kill your tick rate and/or CPU speeds. A bad thing.

    - I get a lot of 'Synchronized code accessed from another thread' errors
    Find out what plugin is acting up by inspecting the stack trace. If the plugin that causes this is inactive, all you can do is wait for a refurnished version or someone to fix it for you, or use an alternative plugin. If it's still under development, notify the author of this, it IS an error caused by that plugin. If you can't find out the cause, PM me or post in this thread.


    Before you begin writing a lag issue

    This is very important, just posting a 'it causuz lagz und shitz' won't do, won't help and I won't be able to help you any further either. Question is if I even want to help you, if you post such a message without anything worth looking at. Things to include in your message:
    - Errors in the log if possible
    - What CB version you use and what NoLagg version you use
    - When this lag occurs. Tick rate drop in general?
    - The configuration you used when running this plugin
    - What type of lag if applicable. Options are: tick lag, client lag, network lag (see above)

    Important links

    NoLagg Download page and others at Dev Bukkit
    View the source code of NoLagg at GitHub

    Use an archive extracting program (WinRar, WinZip) to open the archive.

    TODO-list:
    - Add option to disable physics when the tick delay becomes too high

    Changelog

    Show your appreciation for my plugins by donating
    [​IMG]
     
  2. Offline

    SupaYoshi

    I use Craftbukkit 1.1 RB ;)
    The 1818 release i beleive :p
     
  3. Offline

    AndrewsPanda

    2012-01-29_11.59.11.png

    It doesn't look like this chunk error has gone away. Originally it smashed a line of chunks regenerated through my Spawn city and now this. I saw someone else post the same thing around the same time the chunks generated through my city.

    I am running RB 1.1 for Bukkit and NoLagg 1.58.8
     
  4. Offline

    bergerkiller

    AndrewsPanda do you get any errors, warning or anything in the log while these chunks got generated? I noticed that chunks were released too soon, causing them to be in the chunk provider while the data points to another chunk already.

    Please use 1.58.9 beta 3 and tell me if this is resolved. I added several safety checks, of which one which re-allocates the chunk data if the data got wiped. It also logs several warnings, such as when an unloaded chunk ends up in the chunk provider again. These messages are very important for me to find out what's wrong.
     
  5. Offline

    jbrocks28

    [SEVERE] Could not pass event org.bukkit.event.entity.ItemSpawnEvent to NoLagg
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1028)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:327)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callItemSpawnEvent(CraftEventFactory.java:312)
    at net.minecraft.server.World.addEntity(World.java:892)
    at net.minecraft.server.World.addEntity(World.java:864)
    at org.bukkit.craftbukkit.CraftWorld.dropItem(CraftWorld.java:309)
    at org.bukkit.craftbukkit.CraftWorld.dropItemNaturally(CraftWorld.java:323)
    at com.narrowtux.showcase.ShowcaseItem.<init>(ShowcaseItem.java:62)
    at com.narrowtux.showcase.Showcase.load(Showcase.java:365)
    at com.narrowtux.showcase.Showcase.onEnable(Showcase.java:153)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1059)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:343)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    ... 20 more
    Caused by: java.lang.NullPointerException
    at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.handleItemSpawn(WorldMetaData.java:184)
    at com.bergerkiller.bukkit.nolagg.NLListener.onItemSpawn(NLListener.java:85)
    ... 24 more
     
  6. Offline

    bergerkiller

    jbrocks28 fixed that, will be added in the next update. (it's not very severe and I guess it only happens when enabling)

    Use 1.58.9 beta 3, don't use 1.58.8. The newer version fixes all errors you have posted so far. ledhead900 Adrenaline

    rtcabooservb strange, maybe the getPlayer() method was not official. I'll change that to (Player) getBukkitEntity.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 2, 2019
  7. Offline

    sagethor

    bergerkiller
    Grah, this doesn't like Towny. I think it may be due to how extensive the plugin hooks onto chunks and the like; wiped all mobs and required a manual restart, throwing pages of errors.
     
  8. Offline

    bergerkiller

    sagethor I know, it doesn't really like NoLagg.

    Anyway, I recommend everyone to just disable the buffered chunk loader. It is more of a pain than that it is useful, and that small memory gain is starting to become insignificant to the amount of processing powered needed to keep everything stable...
     
  9. Offline

    rtcabooservb

    Okay, I'll test out 1.58.9 beta 3 and disable the buffered chunk loader. Let me know if you have another build up.

    bergerkiller

    CB 1841, Spout 730, Buffer Disabled, Lighting fix Disabled.

    Code:
    2012-01-29 15:45:29 [WARNING] Task of 'NoLagg' generated an exception
    java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
        at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:41)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.run(ChunkSendQueue.java:58)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:28)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:24)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:56)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1.run(ChunkSendQueue.java:56)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-01-29 15:45:29 [WARNING] Task of 'NoLagg' generated an exception
    java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
        at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:41)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.run(ChunkSendQueue.java:58)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:28)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:24)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:56)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1.run(ChunkSendQueue.java:56)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-01-29 15:45:29 [WARNING] Task of 'NoLagg' generated an exception
    java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
        at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:41)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.run(ChunkSendQueue.java:58)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:28)
        at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:24)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:56)
        at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1.run(ChunkSendQueue.java:56)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  10. Offline

    Adrenaline

    Bukkit Build: #1842
    NoLagg v.1.58.8
    PHP:
    2012-01-30 01:46:44 [WARNINGTask of 'NoLagg' generated an exception
    java
    .lang.NoSuchMethodErrornet.minecraft.server.EntityPlayer.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
        
    at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:41)
        
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.run(ChunkSendQueue.java:58)
        
    at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:28)
        
    at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:24)
        
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:56)
        
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1.run(ChunkSendQueue.java:56)
        
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
        
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  11. Offline

    ledhead900

    bergerkiller

    Getting this again, I updated to MC 1.1 R2 and used your latest changes of your 1.58.8 - Falsebook updated to 1.1R2 so I updated.
    Code:
    2012-01-30 19:52:36 [SEVERE] Could not pass event org.bukkit.event.world.ChunkLoadEvent to NoLagg
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1026)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:103)
    at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:112)
    at org.bukkit.craftbukkit.CraftWorld.getBlockAt(CraftWorld.java:76)
    at org.bukkit.craftbukkit.block.CraftBlockState.getBlock(CraftBlockState.java:102)
    at com.bukkit.gemo.FalseBook.IC.ICs.BaseIC.getICBlock(BaseIC.java:161)
    at com.bukkit.gemo.FalseBook.IC.ICs.selftriggered.MC0272.Execute(MC0272.java:88)
    at com.bukkit.gemo.FalseBook.IC.ICFactory.executeSTICs(ICFactory.java:787)
    at com.bukkit.gemo.FalseBook.IC.FalseBookICCore.run(FalseBookICCore.java:91)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$103.execute(JavaPluginLoader.java:1024)
    ... 14 more
    Caused by: java.lang.NullPointerException
    at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.add(ChunkMetaData.java:239)
    at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.<init>(ChunkMetaData.java:42)
    at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.getChunk(WorldMetaData.java:271)
    at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.get(ChunkMetaData.java:30)
    at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.get(ChunkMetaData.java:27)
    at com.bergerkiller.bukkit.nolagg.NLListener.onChunkLoad(NLListener.java:145)
    ... 18 more 
    EDIT and

    Code:
    2012-01-30 20:53:55 [SEVERE] java.lang.[NullPointerException]
    2012-01-30 20:53:55 [SEVERE] at com.bergerkiller.bukkit.nolagg.sending.ChunkCompressQueue.isAlive(ChunkCompressQueue.java:45)
    2012-01-30 20:53:55 [SEVERE] at
    Going to test this with R3 build
     
  12. Offline

    ledhead900

    Ah I did not see that one will look again thanks.

    Edit:
    bergerkiller
    New errors then on player join.

    Code:
    2012-01-30 21:41:09 [WARNING] Task of 'NoLagg' generated an exception
    java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.getPlayer()Lorg/bukkit/craftbukkit/entity/CraftPlayer;
    at com.bergerkiller.bukkit.common.Operation.doPlayers(Operation.java:41)
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.run(ChunkSendQueue.java:58)
    at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:28)
    at com.bergerkiller.bukkit.common.Operation.<init>(Operation.java:24)
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1$1.<init>(ChunkSendQueue.java:56)
    at com.bergerkiller.bukkit.nolagg.sending.ChunkSendQueue$1.run(ChunkSendQueue.java:56)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:503)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 
     
  13. Offline

    bergerkiller

    ledhead900 sigh, let me just upload a quick-changed version. Why I don't have that error is a mystery...

    EDIT

    See beta 4 on github.
     
  14. Offline

    ledhead900

    Alright but Beta 3 caused chunk corruption would not load any chunk other than 0,0 on some worlds effected both spout and vanilla client I downgraded issue resolved will try Beta 4
     
  15. Offline

    bergerkiller

    ledhead900 to be sure, disable the buffered chunk loader. I will probably have to remove the entire feature, as it is simply impossible to predict if a chunk can be 'safely' reused. Any plugin that uses the native chunk directly will fail if it doesn't handle chunk unloads properly, which is a bad thing.
     
  16. Offline

    ledhead900

    Beta 4 seems to have fixed the chunk issue.

    Well it appeared to me some time ago that the buffer was a bad idea id prefer to rely on spouts compressions to save bandwidth it does not really break very often I wish it worked with this but I don't think it ever can.

    Buffer was never really safe imo been testing everything you have uploaded and always the some sort of buffer issue your better of spending your time making the core features better and getting better compressions and other things the buffer seems to be easily broken and I don't think you can reliably control chunk reuse if other plugins are trying to get chunks that buffer is handling.

    I will do as requested tho and test BETA 3 with the buffer disabled

    EDIT

    Ok buffer disabled on Beta 3 - Same errors and same issue, it clearly was not the buffer this time

    Edit:
    Mega strange :\, Buffer:false in beta 4 actually makes the issue come back while having the buffer enabled corruption is gone. At least so far.
     
  17. Offline

    bergerkiller

    ledhead900 Not sure what caused the chunk sending issue in beta 3, there are not many changes from beta 3 to 4...as far as I know. If the issue re-appears in beta 4 please say so.
     
  18. Offline

    ledhead900

    I have

     
  19. Mm. I dont know if anyone has reported this error yet, but here it is..

    Code:
    2012-01-29 09:46:53 [SEVERE] java.lang.NullPointerException
    2012-01-29 09:46:54 [SEVERE] [NoLagg] An error occured while sending chunks:
    2012-01-29 09:46:54 [SEVERE] java.lang.NullPointerException
    2012-01-29 09:46:57 [SEVERE] [NoLagg] An error occured while sending chunks:
    2012-01-29 09:46:57 [SEVERE] java.lang.NullPointerException
    2012-01-29 09:46:58 [SEVERE] [NoLagg] An error occured while sending chunks:
    
     
  20. Offline

    bergerkiller

    Unboxermail anything else?

    Also, I am going to throw away the entire chunk buffering idea. It IS a good idea, sort of like a chunk store where the chunk can be re-used, but due to Bukkit's nature this is impossible to implement. As long as the actual chunk stays referenced across the server and it's impossible to catch someone accessing an unloaded chunk, it is impossible to implement.

    I'll push out a final 1.58.9 with fixed support for orebfuscator and this feature removed. It's simply not worth fixing if it requires a complete rewrite of the server...
     
  21. any ideas?
    i had this for 10 mins when i was in the nether, all previously explored chunks
    this is with CB 1.0.1 r1 and the nolagg for that one

    15:05:40 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -124]
    15:05:40 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -123]
    15:05:40 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -122]
    15:05:40 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -121]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -120]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -119]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -118]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -117]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -116]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -115]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -114]
    15:05:41 [WARNING] [NoLagg] Block type id was requested outside chunk bounds: [w
    orld_nether, 496, 128, -113]
     
  22. Offline

    bergerkiller

    sylergcs will be fixed in v1.58.9, you can disable the buffered chunk loader and restart to fix it.
     
  23. Offline

    sagethor

  24. Offline

    bergerkiller

    sagethor yup, but disable the buffered chunk loader.

    I am currently boosting TNT performance some more. tick rate suffer was 4 tps, now it's 12 tps. I want to bring it to 20 tps if possible. It uses a new explosion algorithm which is optimized. (it's a recursive 3D block tracing map)

    Ok uploaded the official stable 1.58.9. The buffered chunk loader is simply removed, I got tired of the impossibleness that surrounded it.

    Other than that, TNT is handled a lot faster due to a new (semi-implemented) algorithm I made for explosions.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 14, 2016
  25. yup thats fixed it no more warning msg's when i go in the nether. chears mate that was bluddy quick responce time
     
  26. Offline

    ledhead900

    So what do you think the rates should be now, do you have a rough idea how many % more fast it is over the old so that I could use this % to adjust the servers settings for tnt ?
     
  27. Offline

    bergerkiller

    ledhead900 The tick rate drop is 50% less severe; when it was 4 tps previously, it is now around 8-12. You can double the rate if you like.

    I will improve it some more to eventually have pretty much no tick rate drop. If needed I'll use multi-threading, but that is possibly too much of a problem generally.

    Right now it stores 1300 lists of 'block-by-block' tracing lines. This means that it will check the first block 1300 times, and all that surrounds it each one 400 times or so. This is not needed, so I am working on a recursive function which starts at the first block and transfers the damage taken over to all next blocks.

    I'll update CB and build and test against the new RB. Newer version will bring TNT to a whole new level, allowing you to set ridiculously high detonation rates :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 10, 2018
  28. Offline

    ogr93

    i should to do anything with this?
    11:20:18 [INFO] [NoLagg] Orebfuscation has been detected and will be used when s
    ending chunks
    11:20:18 [INFO] [NoLagg] Note that this may require you to set more threads used
    for sending!
     
  29. Offline

    bergerkiller

    ogr93 that is just a notification. If you notice that it takes too long to send the chunks (to obfuscate them), you'll need to use more threads to try and speed this process up.
     
  30. Offline

    ogr93

    11:26:02 [INFO] migueangelssj [/5.82.146.83:52937] logged in with entity id 1971
    at ([world] -470.0, 71.0, 129.0)
    11:26:02 [SEVERE] [NoLagg] An error occured in Orebfuscator: support for this pl
    ugin had to be removed!
    11:26:02 [SEVERE] java.lang.NoSuchMethodError: lishid.orebfuscator.utils.Calcula
    tions.Obfuscate(Lnet/minecraft/server/Packet51MapChunk;Lorg/bukkit/craftbukkit/e
    ntity/CraftPlayer;ZZ)V
    11:26:02 [SEVERE] at com.bergerkiller.bukkit.nolagg.sending.ChunkCompressi
    onThread.getCompressedPacket(ChunkCompressionThread.java:133)
    11:26:02 [SEVERE] at com.bergerkiller.bukkit.nolagg.sending.ChunkCompressi
    onThread.run(ChunkCompressionThread.java:171)
     
  31. Offline

    bergerkiller

    ogr93 you need to use the latest Orebfuscator and NoLagg.
     

Share This Page