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

    Timmie3054

    This works fine for me, I just have one issue, and it would be great if you cleared it up.
    The issue is, at least in my case, I have a ceiling light, and there is a redstone torch near the light about 2 blocks away. The torch causes the light to turn on. Which I do not want. The Torch is 2-3 blocks away and should not be powering the light.

    Is there away to fix this?

    I turned off rain with a plugin, I also set the Daytime to False. Manual to False, and Power to True.
     
  3. Using your plugin now!:D
    Bug: Pendants deleting them selves!
    everytime I restart my server all my pendants are gone! (looked in LAMPS.yml)
    else it works fine, day/night cycle all fine! until I restart the server:(
    and also scones they don't get deleted, they stay for some reason.
    Please fix/Tell me what to do
    because I have over 25 pendants (so far) and its a pain in the ass to redo them ALL!!!
     
  4. Offline

    toffo

    @Quantum-Sicarius
    You might be using an old version. Be sure to use either v0.5.2.1 or v0.6
     
  5. Offline

    natedogg569

    It doesn't work at all for me. I never touched a thing, all i did was install it
     
  6. Offline

    WeesoftVideo

    Bonjour, Hello

    Voici une vidéo tutoriel de ce mod en français

    Here is a video tutorial of this mod in French

     
  7. Been using this for weeks, but had a server lockup today which seems related to this plugin...

    Code:
    2011-07-18 20:37:54 [SEVERE] java.lang.NullPointerException
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.a(World.java:1647)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.a(World.java:1615)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.Chunk.a(Chunk.java:299)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.setRawTypeId(World.java:307)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.setTypeId(World.java:372)
    2011-07-18 20:37:54 [SEVERE]    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:77)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Lamps.Blocks.Bulb.forceOff(Bulb.java:37)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Lamps.Lamp.forceOff(Lamp.java:100)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Lamps.Lamp.turnOff(Lamp.java:90)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Collections.LampCollection.allOff(LampCollection.java:108)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Lamps.LampProvider.allOff(LampProvider.java:58)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Collections.BuilderCollection.allOff(BuilderCollection.java:92)
    2011-07-18 20:37:54 [SEVERE]    at de.bukkit.Ginsek.StreetLamps.Listener.SLTimeListener$1.run(SLTimeListener.java:51)
    2011-07-18 20:37:54 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-18 20:37:54 [SEVERE]    at java.lang.Thread.run(Thread.java:722)
    2011-07-18 20:37:54 [SEVERE] java.lang.NullPointerException
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.a(World.java:1647)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.a(World.java:1615)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.a(World.java:578)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.MetadataChunkBlock.a(SourceFile:104)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.World.doLighting(World.java:1602)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-18 20:37:54 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-18 20:37:54 [SEVERE] Unexpected exception
    java.lang.NullPointerException
            at net.minecraft.server.World.a(World.java:1647)
    
     
  8. Offline

    dak393

    Waiting for permissions support :) Here is a link if you need it
     
  9. Would really love to see this get multi-world support as soon as possible, love the plug-in.
    Myself and a group of friends each have our own worlds, all linked with multi-verse, and they are rather jealous of my glass becoming glowstone lights :p
    Any time/date estimate as to when you will be able to implement it?
     
  10. Offline

    sfxworks

    Update for build 1k?
     
  11. Offline

    SmolderingEgo

    [​IMG]

    Would be nice if we can get an upper globe like look
     
  12. v0.6 (inofficial) (new download) works with the new RB (1k)

    I tested v0.6 (inofficial) with Permissions (3.1.6). I did not change anything in the configuration except putting myself into "members". And I removed myself from the op list of the server.

    I don't have problems building lamps although I haven't implemented Permissions support in the current version and I don't feel like implementing it unless there are problems.

    Does the problem still occure? I assume your members are building the lamps right. Are there

    Sorry, it took quite a while to reply. I am bussy right now.
    Do you still have problems and are interested in the plugin?
    If so, WHAT exactly is your problem?

    [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.



    That might be because of the material of the powerblock. In v0.6 I filter the material to see if this reduces lag since I get an event every time redstone changes all over the world and I don't know how much this would influence the performance of the server. But I think I'll remve that again.

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

    dak393

    Cool. Do you think you could also make it require glass and glowstone to build. As in when a player right clicks with the redstone torch on the glowstone it also subtracts 1 glass block from the inventory and if they don't have glass it doesn't create that lamp. Thanks for reading :D
     
  14. Added to Todos as optional via config. Good idea.
     
  15. Offline

    dak393

    Thanks :D You're an awesome dev!
     
  16. Offline

    Forecaster

    I would like to suggest a new shape:

    [​IMG]

    This one is currently possible with the wood blocks with a power source at the top, making them ceiling lights.

    I (and my players) would really like if this was possible without the power source on top of the arc.

    It could be under the "legs" instead like with pendants.

    I would also like to see the source of your plugin if I may.

    I need to figure out how to detect changes between night and day, and since your plugin does that it'd be nice to have a look at it.
     
  17. Yeah, I would like such code, too^^
    Currently I check the worldtime every three seconds and if day/night changed I take action. I would like to have an event on day/night change from buttki :p
    I check it every 3sec because there are other mods and players who change the world time and so it won't work well if I'd check it every minute or so.
    Code:
    public void start() {
            // check daytime at startup
            long time = world.getTime();
            Lamp.setNight(time > NIGHT_START && time < NIGHT_END);
    
            plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
                @Override
                public void run() {
                    try {
                        // check daytime
                        long time = world.getTime();
                        boolean night_tmp = time > NIGHT_START && time < NIGHT_END;
                        // only take action if day/night changed during tha last check
                        if ( Lamp.isNight() != night_tmp ) {
                            Lamp.setNight(night_tmp);
                            if ( night_tmp ) {
                                builder.allOn();
                            } else {
                                builder.allOff();
                            }
                    }        } catch (Exception e) {
                        StreetLamps.onError(e);
                    }
                }}, 60L, 60L);    // 60L = 3sec
        }
    
    If you use this you have to use the server scheduler if you want to call server API because of thread safety!

    I'll add the shape to my Todo list.
     
  18. Offline

    uspata

    Could you maby think of adding a feature so I can specify indoor and outdoor lights? I really want to use this inside my massive compund as lighting for rooms, and among other things, my wheet farm as it "harvests" itself if the lights are turned off.

    But as of now I really like and wan't to use the daylight option in the config (looks really pro), so I cannot use indoor lighting toggleable.

    I LOVE your plugin! Have a [cake].

    Also, I think I found a bug you might wan't to address.

    [​IMG]

    As you can see, the redstone is not powered at the moment because I was trying to find the faulty area. But still some of my lighting was light up. The blocks right above also have redstone wires on them (witch are active, almost always as they are my main power cables for my power management room) because this is right next to my redstone canal system. Still it looks like the cable 2 blocks above the lower non-powered redstone is powering the three light where i let the redstone be, as you can see the once without redstone wires on them do not light, so the plugin itself works.

    Please tell me if you need more info.

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

    DerET

    Needs multiworld support very soon. If the world is unloaded and loaded again all lamps have to be activated again.
     
  20. Offline

    gaz492

    minedont work :(

    cb:1000
    streetlamps ver 0.6

    When it rains and its night the lights come on but if its only night time the dont come on

    config
    Code:
    Config:
        modes:
            daytime: true
            manually: false
            weather: true
            power: true
            cluster:
                enabled: true
                size: 20
        lamplist: bottom;pole;ceiling;sconce;globe;pendant;
        material:
            bulb_on: 89
            tool: 76
            bulb_off: 20
        daytime:
            night_start: 12500
            night_end: 22500
        disableOnError: false
        version: 5
    Lamps:
        pole:
            height:
                min: 1
                max: 6
        ceiling:
            height:
                min: 0
                max: 3
        pendant:
            height:
                min: 1
                max: 6
            width:
                min: 1
                max: 4
            depth:
                min: 1
                max: 2
        sconce:
            width:
                min: 0
                max: 3
        globe:
            height:
                min: 1
                max: 6
    any reason why they dont work?
     
  21. Offline

    gamemaster1494

    suggustion for the sconce. Why not have it like

    {G}{F}{F}
    {}{}{B,P}
    that way it looks like its coming out of the wall on a ledge.
     
  22. Offline

    Necrogami

    Sconce with 1 modification can be a very powerful / useful material

    If you set Daytime, Manually and weather false. but leave powered true. Can you please make it toggle the blocks when the redstone is toggled.

    It would allow a developer to use your plugin for clock face's

    Edit: Currently if you have those 3 set to false the plugin does nothing but turn glowstone to glass.
     
  23. Offline

    untergrundbiber

  24. Offline

    coffeehedake

    Seem to be having issues with this on my Multiverse server. It *does* work, but it seems to only be tracking the time in the main world. When I start a storm or change to night in the main world, the street lamps change from glass to glowstone, but if I change from day to night in one of the multiverse worlds, the lamps remain as glass. I am using the default config currently. Advice?

    EDIT:
    Just noticed multiworld support is not enabled yet. Sorry about that. I will wait patiently. ;)
     
  25. Offline

    jimbo8

    Can't hide the redstone wiring. Help please? It doesn't work when i put the redstone under the fence.
     
  26. Offline

    Th4natos

    Needs multiworld too....
     
  27. put a block under the fence and power that block

    yeah, I know :p
    PC is up again. Will work on it soon. (And on the other bugs)
     
  28. Offline

    disownedpear

    this plugin works somtimes, but sometimes when night turns to day, the glowstone doesn't switch to glass. if i reload the server they do, though.i am running craftbukkit 1000. here is the config

    Code:
    Config:
        modes:
            daytime: true
            manually: false
            weather: true
            power: false
            cluster:
                enabled: true
                size: 20
        lamplist: bottom;pole;ceiling;sconce;globe;pendant;
        material:
            bulb_on: 89
            tool: 76
            bulb_off: 20
        daytime:
            night_start: 12500
            night_end: 22500
        disableOnError: false
        version: 5
    Lamps:
        pole:
            height:
                min: 1
                max: 6
        ceiling:
            height:
                min: 0
                max: 3
        pendant:
            height:
                min: 1
                max: 6
            width:
                min: 1
                max: 4
            depth:
                min: 1
                max: 2
        sconce:
            width:
                min: 0
                max: 3
        globe:
            height:
                min: 1
                max: 6
     
  29. Offline

    elexier909

    Issue with this, I can turn the lamp OFF but not on again untill I hit it with a torch, getting no erros in the console.

    Just would like this to work as a toggle rather than automatic.

    Forgot to add...

    daytime: false
    manually: true
    weather: false
    power: true

    that all I have changed, also this may be unrelated but when I start the server up I get...

    Streelamps: No bottom was saved, no pole was saved, no globe was saved ect.

    Great plugin though exactly what I was looking for. (now for it to work properly lol.)

    Also latest bukkit build

    thanks
     
  30. Offline

    MicronicEnergix

    If you arent getting any errors and ur config file looks like that...then it basically says you have to hit it MANUALLY everytime you want it on, hense the " untill I hit it with a torch, getting no erros in the console" part. i suggest changing manual to true as well as daytime. weather is more of an opinion thing.

    Now for Ginsek1988 I love the plugin, great idea. I was hoping that you could also give this multiverse support because for the longest time i couldnt figure out mine didnt work and it was because of multiverse. Because multiverse is so popular id say incorporate it in the next few updates or some people wont want to use it. Friend wouldnt use it because didnt support multiverse. Overall great job and keep up the good work :)
     
  31. well... browser crashed and everything I wrote is gone -.-

    v0.7 is out with MultiWorld support :)

    Will work on the other issues tomorrow :)

    NOTE: Cluster is disabled for now!!! (Will be done tomorrow)
     

Share This Page