[INACTIVE][FUN] SkyPlus -- moved to BukkitDev [Spout] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Activat0r, Aug 9, 2011.

  1. Offline

    Activat0r

    SkyPlus - It's your sky!



    [​IMG]

    [​IMG]

    Ever wanted to change the atmosphere of your world? Maybe some dark, stormy clouds. Or an eerie green sky over an alien terrain. Well, now you can!

    This is my first plugin, so please leave some feedback if it was useful to you. :cool:
     
  2. Offline

    fatmarley

    @Activat0r
    Is there an issue with Wormhole Extreme?

    Show Spoiler

    2011-08-16 04:00:29 [SEVERE] Could not pass event PLAYER_TELEPORT to SkyPlus
    java.lang.NullPointerException
    at me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayerManager.java:81)
    at me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerTeleport(SkyPlusPlayerListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$8.execute(JavaPluginLoader.java:293)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:216)
    at de.luricos.bukkit.WormholeXTreme.Worlds.command.Wxw.doGoWorld(Wxw.java:282)
    at de.luricos.bukkit.WormholeXTreme.Worlds.command.Wxw.onCommand(Wxw.java:867)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  3. Offline

    Sethimine

    I am using all the lateest versions of Essentials, GroupManager, HeroChat, HeroicDeath, MinecartRemover, NoIce, Pantheons, SecretDoors, SimpleGods, Spout, UVRay, Wirless redstone, World Edit and Guard, and MobDusiguise..

    (phew- So many plugins << )

    And then skyplus, v 1.1
     
  4. Offline

    Arschkrampi

    Hi!
    I just installed skyplus but whatever I set in the settings, the skycolor never changes.
    Using spout dev build
    and Spoutcraft dev build

    Edit: Seems the latest spout dev build doesn't work. using the recommendet one, I can log on to the server, see the green sky, but then i get booted of due to incompatibilities with bukkit 1060
     
  5. Offline

    Nodachi

    @Activator
    This is a great little plugin, thank you.
     
  6. Offline

    KanzenIgiari

    @Activat0r
    What sort of colour wheel should I look into using so I can get the exact colour I want?
    It would probably be handy to link us to a website that helps us with the RBG values for the colour we want.
     
  7. :D nether = toxic waste land.
     
  8. Offline

    Ubermatik

    Is this particularly server heavy, or...?

    Looks great though! Should add some awesome atmosphere to the server!
     
  9. Offline

    Activat0r

    There shouldn't be, unless WX names its worlds differently, in-code. That could possibly confuse SkyPlus.

    I have no idea where you are getting that message, then. SkyPlus doesn't check for updates.

    I'm running with bukkit #1060, Spout 1.0.2, and Spoutcraft dev #134 and it works fine for me. Try that combination.

    No problem, glad to have 'colored' someone's server. :p

    So far, this plugin should not affect your server performance dramatically. It only triggers on teleport, portal usage, respawn, and player joining, which isn't common enough to really hurt. ;)

    Good idea. Will look for a good site. ;)

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

    Nodachi

    I had a Hell of a time looking for a chart that uses the same "arithmetic" style the config uses. Eventually I just gave up and used the standard 0-255 numbers then divided by 256 to convert. That did raise a question, however, many decimal places can we use in the config?
     
  11. Offline

    chuiby

    I get this error:
    Code:
    2011-08-19 01:30:29 [SEVERE]      Could not pass event PLAYER_TELEPORT to SkyPlus
     java.lang.ClassCastException:      net.minecraft.server.NetServerHandler cannot be cast to      org.getspout.spout.SpoutNetServerHandler 
     at      org.getspout.spout.player.SpoutCraftPlayer.getNetServerHandler(SpoutCraftPlayer.java:511)      
     at      org.getspout.spout.player.SpoutCraftPlayer.sendPacket(SpoutCraftPlayer.java:528)      
     at      org.getspout.spout.player.SimpleSkyManager.setFogColor(SimpleSkyManager.java:212)      
     at      me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayerManager.java:83)      
     at      me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerTeleport(SkyPlusPlayerListener.java:22)      
     at      org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:300)      
     at      org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) 
     at      org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)      
     at      net.minecraft.server.NetServerHandler.a(NetServerHandler.java:373) 
     at      org.getspout.spout.player.SpoutCraftPlayer.resetNetServerHandler(SpoutCraftPlayer.java:619)      
     at      org.getspout.spout.Spout.onDisable(Spout.java:91) 
     at      org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128) 
     at      org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:906)      
     at      org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:294)      
     at      org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:287)      
     at      org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:173) 
     at      net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:314) 
     at      net.minecraft.server.MinecraftServer.run(MinecraftServer.java:393) 
     at      net.minecraft.server.ThreadServerApplication.run(SourceFile:422) 
    
     
  12. Offline

    PopoGenie

    what values should i set the colors to get an post apocalyptic war sky
     
  13. Offline

    Nodachi

    [​IMG]
    This one uses the following:
    Code:
        sunny:
            fog:
                red: 0.7
                green: 0.0
                blue: 0.1
            cloud:
                red: 1.0
                green: 0.0
                blue: 0.1
            sky:
                red: 0.7
                green: 0.0
                blue: 0.1
    It's set as a Nether so no Sun, Moon or clouds.
     
  14. Offline

    doomsage165

    This look's pretty nice I might try it once i get done with port forwarding.[sheep]
     
  15. Offline

    Lotos

    Could you add a creating a fog for regions ?

    For ex. i have an old town, with region defined "town" on worldguard.

    Now i want to make there a zombie game, with rounds, and want add there a fog. Could you make something like that ?
     
  16. Offline

    Activat0r

    Sorry about that, I just uploaded v1.2.1 with a fix that changes the config to use the standard RGB range.

    How exactly did you get this error? Please include all details possible. This error could be a wide variety of things, which makes my job to determine the exact error more difficult.

    Unfortunately, regional fog control isn't exactly in the area of my plugin, and I suspect it is still in the future of Spout (at least, I haven't seen anything like what you want in the javadocs). Talk with the Spout devs about that. :)

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

    Lotos

    About what excatly i should ask ?
     
  18. Offline

    Activat0r

    It depends on what exactly you want. I assume you simply want the fog to increase when a player enters a region, and decrease when he leaves. The fog you see in Spout is simply a method of making the render edge vanish smoothly into the distance; I doubt this could be applied in a cloud-like fashion. As a side thought, though, you could fake regional fog by forcing a short render distance when players enter a region and reverting when they leave. This would definitely require both Spout and Spoutcraft. Try posting a request in the Plugin Requests forum. ;)
     
  19. Offline

    chuiby

    No clue i was just playing with my console side to my game and it popped. Maybe other players triggered that error...


    Also, when non-spout players join my server, they get disconnected with the EndOfStream error message.
    I tried to uninstall every spout plugin 1 by 1 then it stopped when i disabled yours, so i re-enabled all the other plugins except skyplus and it worked. Could you fix this ?
     
  20. Offline

    Activat0r

    Hmm, I will keep my eyes open for that.

    Yes, I just noticed that. I will try to fix it as soon as I can. As a temporary fix, you could force players to have to use the Spout client to join the server.
    EDIT: With Spout 1.0.2, I found that I couldn't connect to the server, either with or without SkyPlus. This may be a Spout issue. I'll check into it.
     
  21. Offline

    Darkedge

    If you reload the server, it spits out:
    Code:
    20:56:37 [SEVERE] Could not pass event PLAYER_TELEPORT to SkyPlus
    java.lang.ClassCastException: net.minecraft.server.NetServerHandler cannot be ca
    st to org.getspout.spout.SpoutNetServerHandler
            at org.getspout.spout.player.SpoutCraftPlayer.getNetServerHandler(SpoutC
    raftPlayer.java:511)
            at org.getspout.spout.player.SpoutCraftPlayer.sendPacket(SpoutCraftPlaye
    r.java:528)
            at org.getspout.spout.player.SimpleSkyManager.setFogColor(SimpleSkyManag
    er.java:212)
            at me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayer
    Manager.java:155)
            at me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerTeleport(SkyPlusPl
    ayerListener.java:23)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:373)
            at org.getspout.spout.player.SpoutCraftPlayer.resetNetServerHandler(Spou
    tCraftPlayer.java:619)
            at org.getspout.spout.Spout.onDisable(Spout.java:91)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade
    r.java:906)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag
    er.java:294)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana
    ger.java:287)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManage
    r.java:315)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:423)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:281)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    44)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:56:37 [SEVERE] Could not pass event PLAYER_TELEPORT to SkyPlus
    java.lang.ClassCastException: net.minecraft.server.NetServerHandler cannot be ca
    st to org.getspout.spout.SpoutNetServerHandler
            at org.getspout.spout.player.SpoutCraftPlayer.getNetServerHandler(SpoutC
    raftPlayer.java:511)
            at org.getspout.spout.player.SpoutCraftPlayer.sendPacket(SpoutCraftPlaye
    r.java:528)
            at org.getspout.spout.player.SimpleSkyManager.setFogColor(SimpleSkyManag
    er.java:212)
            at me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayer
    Manager.java:155)
            at me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerTeleport(SkyPlusPl
    ayerListener.java:23)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:373)
            at org.getspout.spout.player.SpoutCraftPlayer.resetNetServerHandler(Spou
    tCraftPlayer.java:619)
            at org.getspout.spout.Spout.onDisable(Spout.java:91)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade
    r.java:906)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag
    er.java:294)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana
    ger.java:287)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManage
    r.java:315)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:423)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:281)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    44)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    20:56:37 [SEVERE] Could not pass event PLAYER_TELEPORT to SkyPlus
    java.lang.ClassCastException: net.minecraft.server.NetServerHandler cannot be ca
    st to org.getspout.spout.SpoutNetServerHandler
            at org.getspout.spout.player.SpoutCraftPlayer.getNetServerHandler(SpoutC
    raftPlayer.java:511)
            at org.getspout.spout.player.SpoutCraftPlayer.sendPacket(SpoutCraftPlaye
    r.java:528)
            at org.getspout.spout.player.SimpleSkyManager.setFogColor(SimpleSkyManag
    er.java:212)
            at me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayer
    Manager.java:155)
            at me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerTeleport(SkyPlusPl
    ayerListener.java:23)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:300)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:373)
            at org.getspout.spout.player.SpoutCraftPlayer.resetNetServerHandler(Spou
    tCraftPlayer.java:619)
            at org.getspout.spout.Spout.onDisable(Spout.java:91)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoade
    r.java:906)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManag
    er.java:294)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginMana
    ger.java:287)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManage
    r.java:315)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:423)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:281)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    44)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:489)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:468)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  22. Offline

    Activat0r

    What versions of Spout and Spoutcraft are you using? Are you running on bukkit build #1060? I can't seem to replicate your problem. I'm using Spout 1.0.2, Spoutcraft dev build #134, and Bukkit #1060.
     
  23. Offline

    Darkedge

    Bukkit #1060, Spout #134, My plugins are: Factions, Essentials, McMMO, BukkitPermissions, NoCheat, CraftBook, RuneCraft, Logores, mxAntiCheat, NaturalGiant, Tossers, Spout
     
  24. Offline

    Activat0r

    I suspect this may be a bug with Spout itself, or a incompatibility with another plugin. If more people have this issue, I'll check into it. Try removing other plugins and see if it returns the same problem by itself.
     
  25. Offline

    Afforess

    @Darkedge

    We've already noticed the error internally and fixed it in the dev builds - the good news is that it's a harmless annoyance, so you can ignore it until we update the server plugin next.
     
  26. Offline

    Activat0r

    Thanks. Saved me a lot of work. :)
     
  27. Offline

    Taranis01

  28. Offline

    Activat0r

    Noted. Sorry about that, I thought Spout handled that by itself. I guess I managed to override that. I'm uploading a bug fix.
     
    Taranis01 likes this.
  29. Offline

    Afforess

    What API call was unsafe?
     
  30. Offline

    Activat0r

    I suspect it was probably the calls to set colors in the SkyManager:
    Code:
    SkyManager sky = SpoutManager.getSkyManager();
    SpoutPlayer player = SpoutManager.getPlayer(p);
    ...
    sky.setFogColor(player, colors.get(world.getName()).get("sunny").get("fog"));
    sky.setCloudColor(player, colors.get(world.getName()).get("sunny").get("cloud"));
    EDIT: Tested by commenting out the isSpoutCraftEnabled check and removing the sky.set statements. No errors on vanilla client.
     
  31. Offline

    Afforess

    Ah, yep I see. That will be fixed next release. Sorry about that :/
     

Share This Page