Inactive [MISC] Streetlamps v0.8 - redstone controlled street-lamps [1185]

Discussion in 'Inactive/Unsupported Plugins' started by Ginsek1988, Jun 26, 2011.

  1. Streetlamps - redstone controlled StreetLamps:
    PluginVersion v0.8
    ServerVersion /version: git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)
    Download StreetLamps v0.8.2

    Players can build street-lamps for their towns and remote controle them by redstone and other events (daytime, weather, manually).

    For a more detailed description visit me on dev.bukkit!

    If the plugin is not working for you, please respond to this thread: [README] It's not working!!!

    Media




    Connecting lamps to a button or lever
     
    woodzy, kahlilnc and SPACEDUDE360000 like this.
  2. Offline

    Jumpingbit

    Werde dir mal auf Deutsch antworten da mein Englisch nicht das wahre ist. ;D
    Ist auf jeden Fall ein sehr geniales Plugin, ich hab eigentlich null Ahnung von Redstone und dem ganzen Gedöns, aber nach 10 Minuten rumprobieren konnte ich mir soweit alles selbst zusammenreimen.
    Also Kurz gesagt: Gute Sache, einfach zu bedienen, weiter so. ;)

    Läuft übrigens mit diversen Plugins ohne das sich da was in die Quere kommt (ca. 30 andere).
     
  3. Das hört man doch gerne :)

    Hm well, ... Have you tried the advice of the log?^^

    I wanted to release a new version today but I've got problems with redstone powering.
    It seams that block.isBlockPowered() does not work with repeaters that well.
    When combining block.isBlockPowered() and block.isBlockIndirectlyPowered() I do not get the result I want so I let it as it is right now.
    The problem is, that some polelamps are recognized as bottoms.
    So... I'll probably release it tomorrow or later this day just with the issue since it does not affect existing lamps and it's not that serious.

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

    fatmarley

    This happened about 20 minutes ago.

    Show Spoiler

    2011-07-09 00:58:51 [SEVERE] Could not pass event BLOCK_PHYSICS to StreetLamps
    java.lang.NullPointerException
    at net.minecraft.server.World.a(World.java:1630)
    at net.minecraft.server.World.a(World.java:1604)
    at net.minecraft.server.Chunk.a(Chunk.java:299)
    at net.minecraft.server.World.setRawTypeId(World.java:305)
    at net.minecraft.server.World.setTypeId(World.java:370)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.update(SuperLamp.java:118)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.update(LampCollection.java:155)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.update(SuperProvider.java:47)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.update(BuilderCollection.java:75)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLBlockListener.onBlockPhysics(SLBlockListener.java:88)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:427)
    at net.minecraft.server.World.update(World.java:399)
    at net.minecraft.server.World.setTypeId(World.java:371)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.update(SuperLamp.java:118)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.update(LampCollection.java:155)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.update(SuperProvider.java:47)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.update(BuilderCollection.java:75)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLBlockListener.onBlockPhysics(SLBlockListener.java:88)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:427)
    at net.minecraft.server.World.update(World.java:399)
    at net.minecraft.server.World.setTypeId(World.java:371)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.update(SuperLamp.java:118)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.update(LampCollection.java:155)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.update(SuperProvider.java:47)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.update(BuilderCollection.java:75)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLBlockListener.onBlockPhysics(SLBlockListener.java:88)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:427)
    at net.minecraft.server.World.update(World.java:399)
    at net.minecraft.server.World.setTypeId(World.java:371)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.update(SuperLamp.java:118)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.update(LampCollection.java:155)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.update(SuperProvider.java:47)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.update(BuilderCollection.java:75)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLBlockListener.onBlockPhysics(SLBlockListener.java:88)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:427)
    at net.minecraft.server.World.update(World.java:399)
    at net.minecraft.server.World.setTypeId(World.java:371)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.update(SuperLamp.java:118)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.update(LampCollection.java:155)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.update(SuperProvider.java:47)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.update(BuilderCollection.java:75)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLBlockListener.onBlockPhysics(SLBlockListener.java:88)
    at org.bukkit.plugin.java.JavaPluginLoader$25.execute(JavaPluginLoader.java:413)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.World.k(World.java:443)
    at net.minecraft.server.World.applyPhysics(World.java:427)
    at net.minecraft.server.World.update(World.java:399)
    at net.minecraft.server.World.setTypeId(World.java:371)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.turnOn(SuperLamp.java:91)
    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.allOn(LampCollection.java:83)
    at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.allOn(SuperProvider.java:53)
    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.allOn(BuilderCollection.java:81)
    at de.bukkit.Ginsek.StreetLamps.Listener.SLTimeListener.run(SLTimeListener.java:68)
    at java.lang.Thread.run(Unknown Source)
    2011-07-09 00:58:51 [SEVERE] java.lang.NullPointerException
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.a(World.java:1630)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.a(World.java:1604)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.a(World.java:576)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.MetadataChunkBlock.a(SourceFile:103)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.doLighting(World.java:1592)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-09 00:58:51 [SEVERE] Exception in thread "SLTimerListener_Thread"
    2011-07-09 00:58:51 [SEVERE] Unexpected exception
    java.lang.NullPointerException
    at net.minecraft.server.World.a(World.java:1630)
    at net.minecraft.server.World.a(World.java:1604)
    at net.minecraft.server.World.a(World.java:576)
    at net.minecraft.server.MetadataChunkBlock.a(SourceFile:103)
    at net.minecraft.server.World.doLighting(World.java:1592)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-09 00:58:51 [SEVERE] java.lang.NullPointerException
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.a(World.java:1630)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.a(World.java:1604)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.Chunk.a(Chunk.java:298)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.setRawTypeId(World.java:305)
    2011-07-09 00:58:51 [SEVERE] at net.minecraft.server.World.setTypeId(World.java:370)
    2011-07-09 00:58:51 [SEVERE] at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOn(Bulb.java:30)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.forceOn(SuperLamp.java:103)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.SuperLamp.turnOn(SuperLamp.java:91)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.allOn(LampCollection.java:83)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.Provider.SuperProvider.allOn(SuperProvider.java:53)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.allOn(BuilderCollection.java:81)
    2011-07-09 00:58:51 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Listener.SLTimeListener.run(SLTimeListener.java:68)
    2011-07-09 00:58:51 [SEVERE] at java.lang.Thread.run(Unknown Source)
     
  5. http://forums.bukkit.org/threads/thread-safety.4027/
    this might solve the problem :)
    was looking for this quite some time but "bukkit thread safe" was too obvious
     
  6. Offline

    DerET

    My "bulb-off-material" is obsidian (49), but if I deactivate a lamp it's glass(20). Why?

    config.yml (open)
    # # #
    # version of this config (can't touch this)
    version: 1

    # # #
    # defines when the Lamps turn off/on
    # manually - when hit with a REDSTONETORCH (turns off everything else)
    # daytime - depending on daytime
    # power - the Block underneath the Lamp has to be powered to turn it on
    modes: power

    # # #
    # shall the Lamps react to weather?
    weather: false

    # # #
    # bulb material
    on: 89
    off: 49

    # # #
    # the tool you use to build lamps
    tool: 76
     
  7. because I'm a fool^^

    new version up in 5min :) this should work
     
  8. Offline

    DerET

    Sounds great (that it wasn't my fault for one time :D)
     
  9. no, usually it's me xD

    Version v0.5
    • added new pattern: bottom
    • added new pattern: sconce
    • moved lamplist to config.yml
    • added more options in the config
    • thread safety, yeha :) (untested ^^, the error occured randomly)
    • pendants now can be extended :) (up to four bulbs)
    Note: You will have to reconfigure the materials in the config
     
  10. Offline

    DerET

  11. Offline

    DerET

    But it was created by the new version. I tried it again after I made the video. (I deleted the plugin and the folder, reinstalled the plugin and built a new lamp.)
     
  12. Take a look in your serverlog please.
    Which version is enabled?

    Should look like this
    Code:
    2011-07-09 16:52:45 [INFO] [StreetLamps] extracted default config.yml <<<<<<<<
    2011-07-09 16:52:45 [INFO] [StreetLamps] MATERIAL_ON: 89 (DataValue)
    2011-07-09 16:52:45 [INFO] [StreetLamps] MATERIAL_OFF: 20 (DataValue)
    2011-07-09 16:52:45 [INFO] [StreetLamps] TOOL: 76 (DataValue)
    2011-07-09 16:52:45 [INFO] [StreetLamps] POWER enabled
    2011-07-09 16:52:45 [INFO] [StreetLamps] DAYTIME enabled
    2011-07-09 16:52:45 [INFO] [StreetLamps] WEATHER enabled
    2011-07-09 16:52:45 [INFO] [StreetLamps] registered bottom
    2011-07-09 16:52:45 [INFO] [StreetLamps] registered pole
    2011-07-09 16:52:45 [INFO] [StreetLamps] registered ceiling
    2011-07-09 16:52:45 [INFO] [StreetLamps] registered sconce
    2011-07-09 16:52:45 [INFO] [StreetLamps] registered pendant
    2011-07-09 16:52:45 [INFO] [StreetLamps] No bottom was saved.
    2011-07-09 16:52:45 [INFO] [StreetLamps] No pole was saved.
    2011-07-09 16:52:45 [INFO] [StreetLamps] loaded 2/2 ceiling
    2011-07-09 16:52:45 [INFO] [StreetLamps] No sconce was saved.
    2011-07-09 16:52:45 [INFO] [StreetLamps] No pendant was saved.
    2011-07-09 16:52:45 [INFO] StreetLamps 0.5 is enabled <<<<<<<<<<<<
    
    Maybe the old jar was cached, since the link from the first post works for me.

    -> Direktlink(nonstatic) http://streetlamps.isfoolish.net/StreetLamps_v0.5.jar
    when you download this you have to rename it I suggest
     
  13. Offline

    DerET

    Well, that's not good. Maybe Chrome copies the downloaded plugin from cache to my download folder because of the same file name. I'll try it again with my installed Internet Explorer...
     
  14. use this one and rename it
     
  15. Offline

    DerET

    I downloaded it again with Microsoft's browser and it works :D
    So thank you for finding the mistake :)
     
  16. Offline

    toffo

    It's a little shaky, but! I love it.. I'm getting used to what's needed to do and when I do it correctly it seems to work really well! :)

    One thing I noticed is that if daytime is on you can't disable the lamps with redstone "power".
    Would it be possible to perhaps have it separate somehow for like every lamp?

    So that you could make daytime lamps outside of buildings and power lamps inside buildings.
     
  17. Offline

    thecoolreaver

    Code:
    2011-07-09 20:50:00 [INFO] Forcing save..
    2011-07-09 20:50:00 [INFO] Save complete.
    2011-07-09 20:50:00 [INFO] <*Console*>: Save Complete
    2011-07-09 20:51:44 [SEVERE] java.lang.NullPointerException
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.World.a(World.java:1630)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.World.a(World.java:1604)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.World.a(World.java:576)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.MetadataChunkBlock.a(SourceFile:103)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.World.doLighting(World.java:1592)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-09 20:51:44 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-09 20:51:44 [SEVERE] Unexpected exception
    2011-07-09 20:51:44 [SEVERE] java.lang.NullPointerException
    2011-07-09 20:51:45 [SEVERE] at net.minecraft.server.World.a(World.java:1630)
    2011-07-09 20:51:45 [SEVERE] at net.minecraft.server.World.a(World.java:1604)
    2011-07-09 20:51:45 [SEVERE] at net.minecraft.server.Chunk.a(Chunk.java:299)
    2011-07-09 20:51:45 [SEVERE] at net.minecraft.server.World.setRawTypeId(World.java:305)
    2011-07-09 20:51:45 [SEVERE] at net.minecraft.server.World.setTypeId(World.java:370)
    2011-07-09 20:51:45 [SEVERE] at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:127)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOff(Bulb.java:37)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.Lamp.forceOff(Lamp.java:100)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.Lamp.turnOff(Lamp.java:90)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.allOff(LampCollection.java:108)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Lamps.LampProvider.allOff(LampProvider.java:58)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.allOff(BuilderCollection.java:92)
    2011-07-09 20:51:45 [SEVERE] at de.bukkit.Ginsek.StreetLamps.Listener.SLTimeListener$1.run(SLTimeListener.java:51)
    2011-07-09 20:51:45 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-09 20:51:45 [SEVERE] at java.lang.Thread.run(Thread.java:636)
    2011-07-09 20:55:00 [INFO] <*Console*>: Saving world data. Expect lag for a short while.
    2011-07-09 20:55:00 [INFO] Forcing save..
    

    got this error and the server lags out and i have to restart the server to fix it, currently using the 0.5 version
     
  18. If DAYTIME is on (without POWER) it does not react to powerchanges. If both are on it reacts to both.
    If it's day it will turn off no matter what (except WEATHER is on but let's forget this for now) . If it's night it will turn all lamps on except for the ones the are NOT powered.
    Seperating both modes sounds tricky for now although I could add another tool with which you could turn off DAYTIME for a lamp.
    I might add the LIGHTdetect mode but I think there's a problem:
    I would check the lightlevel on top of the bulb, problem is that if it turns on because it's dark, it won't be and it would turn off, a moment later it's dark and so on.

    I also could check if the lamp has a block above it (within a specified height) and set those lamps to "indoors" (which could be another mode). That would work aswell. But you could not place lamps under eaves(didn't know that there was such a word oO) anymore.

    Hm... I think I have to ask for help in the forum since this does not seem to be solved by using the time scheduler. But first I take a look at it myself again.

    *edit* I used scheduleAsyncRepeatingTask() instead of scheduleSyncRepeatingTask()
    Hopefully It was just this.

    Say, how many lamps did you build?

    ---------
    I will implement a database to store the lamps since I think powermode will lag the game if there are too many lamps since I have to check for each updated block if it belongs to a lamp.

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

    Th4natos

    verry nice Plugin but can you do it for -> multiworld?
     
  20. I'll change the saving of the lamps from yml-file to sqlite and will add multiworld after or at the same time.
     
  21. Offline

    thecoolreaver

    uhm, heheh.... :)

    i am only a 1/4 done building my city's "power grid" of redstone to power the street lamps (street lamps are only 1/8 put in)

    Code:
    StreetLamps: MATERIAL_ON: 89 (DataValue)
    StreetLamps: MATERIAL_OFF: 20 (DataValue)
    StreetLamps: TOOL: 76 (DataValue)
    StreetLamps: POWER enabled
    StreetLamps: DAYTIME enabled
    StreetLamps: WEATHER enabled
    StreetLamps: registered bottom
    StreetLamps: registered pole
    StreetLamps: registered ceiling
    StreetLamps: registered sconce
    StreetLamps: registered pendant
    StreetLamps: No bottom was saved.
    StreetLamps: loaded 190/190 pole
    StreetLamps: No ceiling was saved.
    StreetLamps: No sconce was saved.
    StreetLamps: loaded 16/16 pendant
    CONSOLE: StreetLamps 0.5 is enabled
     
  22. v0.5.1 is out. Hopefully that fixes the issue now. I can't really test/debug this since it occures randomly/I can't reproduce it.
    Since you seem to build a lot of lamps (1k+ when done) let me know if your server is lagging when the plugin is enabled but it does not if disabled. With powermode enabled there is a lot of lookup involved.
     
  23. Offline

    thecoolreaver

    i got the update, i grabbed that text before i did a restart to find how many lamps i have

    it does lag with it goes from day mode to night, so i have to remove the redstone torch that powers all the lamps when building and power them in sections (about 10-20 at a time)
     
  24. It lags when it turns night and the lamps go on? Oh, that's unexpected^^
    Does the server really lag, or does it just take a few seconds until the lamps are turned on? It should take up to 3 seconds to turn off/on on timechange. They will not turn off instantly if you type "/time night" or whatever.
     
  25. Offline

    thecoolreaver

    well currently it does lag for about 5-10 secs before you see a change, i have a simple command "/ping" that the server responds with a "pong" so you can guess if your still connected or not and i have timed it from that

    i have left it with normal time change (world changing time on its own) and people notice it lag for the time

    isnt there a way that you have it process about 10-20 lights to change every tick or two ticks to allow the change to be a little less stressful...?

    EDIT:
    i also notice the CPU spike for a small moment when they turn on also
     
  26. Turning them on in packs is a good idea to deal with this. But first I'll take a look at my code and see if I can optimize it in another way. Afterwards I'll consider your suggestion.
    I wonder why this is such a burden to the server.
     
  27. Offline

    toffo

    This happens on both 0.5 and 0.5.1

    I think I've found a bug in this wonderful plugin, check out the following error;
    A little stack overflow error..
    http://pastebin.com/xx1Db4VP

    Sorry for the pastebin, but the error is so huge that the bukkit forums spits errors on me :D

    The following lamps.yml causes the error, as well as loading somewhere over at least 49 pendants.
    http://pastebin.com/CN7SJGn5

    As the following lamps.yml works without problems;
    http://pastebin.com/8p5PmKy6



    Well that should work, I mean, the block under the power block on ceiling lamps must be a solid block anyway, so that sounds like something that could work, right?

    This don't seem to work properly. You mean that if we set daytime and power to true in the config, it should react to both. Meaning if the world turns to day all the lamps should power off, right? No problem.. But during daytime, if you apply power to a lamp it should power on? That doesn't seem to work, if that's the case.


    Also, when the error I've posted comes up, it removes all lamps on the pendant line.. Clearing it out.. Kind of frustrating ;) hehe


    Any news on the sqlite support? Shouldn't that ease the pressure off the CPU as well?
    Really looking forward to the contiued development of this awesome plugin! Keep up the great work! :)
     
  28. Offline

    whileloop

    COOL YOU should put it in the Fun section too.
     
  29. I think the 16kb String just crashes the Regex :p
    Pastebin is no problem at all :)
    *fixing*

    If you enable power and daytime the lamp only turns on during night and only if it's powered.
    On day it will only turn on if weathermode is enabled, but only if it's powered ( if powermode is enabled)... sounds strange^^

    No news on sqlite.

    Please try again with the new version.
    And sorry to everyone who lost lamps to this bug :oops:

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

    toffo

    I tried the 0.5.2 version and it works perfectly with this lamps.yml that I posted in my previous post;
    http://pastebin.com/CN7SJGn5

    However, I can see the lag as well now. It takes about 10-15 seconds for all the pendants to change. (they are all connected)
    According to StreetLamps when it loads, it's 264 pendants.. :D I'm only using the power setting right now.

    That pretty much explains it, I totally understand the workings now ;) And that's kind of cool, I like it :)
    But it would be great if you could turn the lamps on during daytime as well, like.. Like a maintenance mode, to check if any bulbs
    are broken ;)


    Together with this plugin, my sewer system and something like industrialcraft and buildcraft built into the server, you couldn't ask for anything more on a Minecraft server that tries to resemble IRL. I really hope this plugin continues to live forever! And that someone could make industrial-buildcraft available for SMP with bukkit.

    Guys like you are the greatest :D
     

Share This Page