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!!!


    Connecting lamps to a button or lever
    woodzy, kahlilnc and SPACEDUDE360000 like this.
  2. Creating a lamp does not depent on weather or time, only on power if power mode is enabled.
    What happens when you turn off power mode? You should be able to register lamps without powering them initially.
    The lamp might become a ceiling instead of a pendant since this is the first pattern your lamp matches without the powercheck. That's the problem with similar patterns.

    Please post your serverlog(including server start) and the plugin configuration.

    I compiled the new versions with java 1.7. I think they should work with java 1.6 just fine. Does someone know the opposite?
    bug: You can't turn ceilings on, even if not using power mode.
    With all those bugs it will take some time to release v1.0 -.-
  3. Offline

    King Pyro

    please let me know when this is coming out because i want to have my power plant supply the power to the cities lamps.
  4. Offline


    my lights work using current bukkit build and the current streetlight however i cannot get all the patterns to work. so far only the bottom and pole pattern work for me. i was hoping to pendant and globe patterns :(
  5. That's the latest inofficial build... wait ... I forgot to link that in the top post -.-
    latest inofficial

    I'm glad they work, but I wonder why the others don't. Is the current StreetLamps the one above? I uploaded it 08.23.2011 at 16:51
  6. Offline


    Is it possible to make it so just that every lightstone attached to a fence, will turn to glass when daytime, and lighstone when night falls? maybe have an option for this for extra simplicity!

    EDIT: Then I'd get this plugin :p
  7. I thought of having such an option. PureBulb mode or somthing like that^^
    Hitting Glowstone with a torch should register a bulb. What do you think? Using every Glowstone that's attached to a fence would work aswell, but since the material for on/off is configurable that would be a bad idea :p I think users would be mad at me if I "turn off" half their towns at night xD
  8. Offline


    just make it a sub-option for me :> haha i'm no programmer i have NO idea whats possible xD 'cause i use a lazyroad to make all my roads and i think it'd be awesome if all the lightstone automatically switched to glass :p i haev ALOT of roads, to just go around and hit all the lamps with torch
  9. Everything is possible :p For you I'll add a command to register all bulbs attached to a ... wait, I would have to bruteforce the whole world, wouldn't I? Ähm... I'll think about it^^
  10. Offline


    lol thanks k :p get back to me :p just msg me a secret version of this :p hahaa
  11. Offline

    King Pyro

    EXACTLY my situation lolz i used lazy roads the Simple3 one and i have lightning for my town and i wanted to hook it up to a "power station" lol
    message me one to

    the inofficial build u gave me.......WORKED thanks sooo much i can now changing my town to have powerlines :D thanks again
  12. Sometimes my lamps stop working and I don't know why. Calling "/streetlamps update" helps most of the time.

    The PureBulbs Diary
    Day 1
    trollolol major lag incomming xD
    bruteforcing through all loaded chunks wasn't a good idea
    I think I'll need a scheduler and check a chunk each second when the command is called.

    Day 2
    done with the scheduler... server is still running the loop oO
    I should give him the deth blow.

    Day 3
    the loop finally ended :D
    :( (open)

    2011-08-24 19:35:27 [SEVERE] null
    Unhandled exception executing command 'streetlamps' in plugin StreetLamps v0.7.2
    at org.bukkit.command.PluginCommand.execute(
    	at org.bukkit.command.SimpleCommandMap.dispatch(
    	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    	at net.minecraft.server.NetServerHandler.handleCommand(
    at net.minecraft.server.NetServerHandler.a(
    	at net.minecraft.server.Packet3Chat.a(
    	at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
    Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
    at org.bukkit.craftbukkit.CraftChunk.getBlock(
    at de.bukkit.Ginsek.StreetLamps.Lamps.PureBulb.create(
    at de.bukkit.Ginsek.StreetLamps.CommandHandler.createPureBulbs(
    at de.bukkit.Ginsek.StreetLamps.CommandHandler.onCommand(
    	at de.bukkit.Ginsek.StreetLamps.StreetLamps.onCommand(
    at org.bukkit.command.PluginCommand.execute(
    	... 12 more

    Day 4
    The scheduler seems to work.
    Processing 625 chunks and getting just 15 "Can't keep up!". I'm riding a minecart to put some pressure on the server.
    There are about a 100 chunks left and it starts lagging and disconnecting. I guess 1 chunk/sec is still to fast.

    Day 5
    Set the rate to 0.5chunks/sec and building a poweredrail-lag-detector with a cow in it (testing is boring).
    200/600 and it's still working fine, 2 "Can't keep up!" so far
    300/600 and it's still working fine, 3 "Can't keep up!" so far
    400/600 and it's still working fine, 5 "Can't keep up!" so far, had a server save...
    420/600 ... and a disconnect, 5 "Can't keep up!" so far
    300/600 and it's working fine again, 8 "Can't keep up!" so far
    600/600 and it started bruteforcing my other worlds -.-

    Day 6
    I killed the plugin again and added an option which world to process.
    It seems to work fine but takes quite some time.
    And God saw everything that He had made, and indeed it was very good.

    The command only creates PureBulbs out of on/off material if there is a fence attached to it.
    And only chunks that are loaded when you execute the command will be checked. If a chunk unloads when it is not yet bruteforced, the plugin will not bruteforce it.
    It's possible that this will create unwanted bulbs!
    When it is done you should perform "/streetlamps save".

    start it with this

    /streetlamps bruteforce <worldname> [ silent ]
    If you don't use silent it broadcasts a lot of messages to the whole server.
    If you forgot to start it in silent mode you can toggle it using this
    /streetlamps bruteforce silent
    I'll add more options in the next release.

    *edit* I noticed an other bug in ceiling and sconce when not using powermode.
    And yes, I know thare are bugs concerning weather and daytime mode.
    Will fix this in the next upload.

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

    King Pyro

    im gridding up all my redstone get back to you when im done 1 STREET :D

    i did a street :p looks awesome i made it so they turn on slowly and turn off slowly from power cut lol also what does brute forcing mean?
    one other bug prob not ur plugin that if ur not in the chunk the redstone current doesnt continue when u enter the chunk and it just freezes untill u rmeove a peice of redstone/repeater then the current unfreezes and continues though this is a pain. anyway you could fix that or have a solution for me? thanks in advanced. :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  14. It may unfreeze if it receives a physics update. This happens everytime you place/destroy a block next or above/below it or change the power it receives. I don't know the internals.

    I literally test each block in a chunk if it is a bulb. That are 32.768Blocks per chunk and I got ~600 loaded chunks on my own which are about 19.660.800Blocks. Bruteforce is a very cpu expensive way, but the only one, since the api does not provide any solution to getting all glass blocks or whatever.

    *edit* can't destroy PureBulbs :p fixing it
  15. Offline

    King Pyro

    no doesnt work i have to remove the redstone/repeater then it continues there a way to have optional to update all chunks that have a streetlamp in it? thought this prob cost som RAM resources and/or cpu resources but it would bee nice if i could do that so i can finally close the underground area lol :p

    EDIT: but then the redstone would still be the same...and it wouldnt come on unless the power hits it.... -.- well that sucks
  16. The repeater bugs sucks xD It can't be helped
    I recoded a lot and the plugin was not working. I noticed that I suppressed error messages in the log... With the new version they might help again ^^

    New version is up. Recoded some stuff.
  17. Offline

    King Pyro

    whats this new pattern "tube"? it doesnt seem to be on ur drawing list lol
  18. Oh damn, it's in the code for some time xD (even the last official one) but I forgot to update the pattern.
    Actually I lost the exel-file for the pattern and only have the image xD
    [fence]                                 [fence]
    [fence]                                 [fence]
    [base]                                  [base]
    Power both bases and hit one of the outer glowstones next to a fence. If you are not using power mode the bulb will turn into a sconce or a ceiling. I think the pattern detection actually works best with powermode enabled.
  19. Offline


    Hey I was wondering if you could add this to the shapes:

    Attached Files:

  20. ... you meen the pendant I added like two months ago? take a lokk at the pattern
  21. Offline


    Doesnt seem to work for me, im copying the shape right...
  22. [HOWTO] Bugreport
    I assume that you run the latest version of StreetLamps with the corresponding RB.
    I need to know a few things to understand the problem:
    1. A short description of the issue.
    2. Which modes are used? <<<
    3. What time is it? (day/night)
    4. Is it raining when the issue occures?
    5. If it's a problem with the bulbs: What happens when day/night changes?
    If you have any logged errors, post them. <<<
  23. Offline


    Well Im trying the pendant, the others seem to work for me, I have them in the floor, and the posts work. Nothing in the log :(
  24. Ah, ok, the others work. Are you using the inoficial build? I just uploaded a new one a minute ago.

    I might add that I changed the toggling of the lamps.
    If you want to toggle them, right click (use) them. You can target any any fence or bulb of a lamp.

    If you want lamps that react to time and weather and ones that do not at the same time I suggest you use power,daytime and weather mode. Every lamp that should react to daytime and weather should be powered. But the ones you don't want to react to daytime/weather you remove the power. These can be toggled by the player using right click.
    I use this for lamps inside my house.
  25. Offline

    King Pyro

    think u could post a picture of your house or schematic because i dont see how the wireing would fit in
  26. In my house I have no wirering at all. I removed them after creation.
    How you wire lamps can be seen in the videos or on other videos on youtube that are from users.
  27. Offline


    The plugin didn't work at all! It didn't have any errors it just when i put power to it and hit it it never worked!!
    Im on CB1060 and like 20 plugins.
  28. The inofficial build?

    The inofficial build?

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


  30. Offline


    nothing to do with what I said..

Share This Page