[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

    Grrrr159

    First! Gives me error: Bad packet ID #63
     
  3. Offline

    Activat0r

    Ok, first, make sure you have the dev builds of both Spout (server-side) and Spoutcraft (client-side). I tested this with Spout dev build 69 and Spoutcraft dev build 100 (dev builds required for the sky/fog/cloud color api).
     
  4. Offline

    captainawesome7

    Why not a yml config?
     
  5. Offline

    Activat0r

    Yeah, I figure I should transition--I didn't quite understand the system before, but I think I'm starting to understand your standard configuration tutorial now. :p I'm trying to decide how to setup a multiworld configuration; it would have to support a list of custom world names, and organize the color data for each world in a manner that would be easy to import into the plugin.
     
  6. well this has to be one of the best plugins i have seen in a while for RPG servers with multiple worlds shame it dont have multiworld support yet and with the addition of the UVray damage plugin will allow for some very cool worlds to be made
     
  7. Offline

    Zarius

    Wow - looks great :)
     
  8. Offline

    Pencil

    Great idea! Might use this :D
     
  9. Offline

    Grrrr159

    Checked again, and yes, I was using both Spout dev build (from your link) and dev build from client.
    Here was my config:
    Code:
    # Colors must be in form: greenvalue,redvalue,bluevalue
    # Values range 0.0 - 1.0
    fogcolor:50.0,0.0,0.8
    cloudcolor:10.8,0.8,0.8
    skycolor:0.0,0.0,0.3
     
  10. Offline

    Activat0r

    @DrakeBD, Zarius, & Pencil:

    Thanks :)


    Values range 0.0 - 1.0
    That is, each number between the commas must be a number from 0.0 to 1.0. So your 50.0 for fog and 10.8 for cloud won't work.

    The config will be improved, once I finish some details for v1.1. ;)
     
  11. Offline

    fatmarley

    Buikkit 1000
    Spout: yes

    This issue came up on first run with the regular config.

    Show Spoiler

    2011-08-11 10:08:55 [INFO] [SkyPlus] Loading config...
    2011-08-11 10:08:55 [SEVERE] Could not load 'plugins\SkyPlus.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:207)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:130)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:97)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: org/getspout/spoutapi/gui/Color
    at me.Activat0r.SkyPlus.SkyPlusPlayerListener.loadConfig(SkyPlusPlayerListener.java:28)
    at me.Activat0r.SkyPlus.SkyPlusPlayerListener.<init>(SkyPlusPlayerListener.java:81)
    at me.Activat0r.SkyPlus.SkyPlus.<init>(SkyPlus.java:13)
    ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.gui.Color
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 16 more


    Notes: Waiting on multiworld support and think this was a brilliant idea.
     
  12. Offline

    Activat0r

    Do you have the Spout dev version installed on both client and server? That can be easy to forget at times--I can't wait for Spout 1.0.5 to be released, then I won't need to require a dev build (at least, not at first). :)

    v1.1 almost done, with multiworld support. Just figuring out a few bugs before releasing. ;)
     
  13. Offline

    fatmarley

    Yes of course.
     
  14. Offline

    Grrrr159

    I changed the config to 1.0 for green on all and it seems that SpoutCraft came out with an update and it seems to have broke the plugin. Confirmed it worked before the update.
     
  15. Offline

    Activat0r

    v1.1 released and tested with latest builds (Spout #81, Spoutcraft #122). Try now. The config should be a lot easier to deal with now.
     
  16. Offline

    fatmarley

    New build is loading without errors...but there is a but, there is always a but, but i think this but can be fixed.

    Show Spoiler

    2011-08-11 13:23:20 [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)
     
  17. Offline

    Activat0r

    Yeah, that is one error that I haven't completely covered. Make sure the world name(s) in the config match EXACTLY to your world(s) on the server. And you can't leave out any worlds, at least not yet. Just set loadDefaultColors to true on the worlds you don't want affected. :)
     
  18. Offline

    ohmydoddtv

    Just thinking...water is blue because the sky is blue...shouldn't it change the water colour as well? ;)
     
  19. Offline

    Activat0r

    Indeed; however, I don't think I can change the color of water just yet with plain code. I'll have to check with the SpoutDev team to see if they might incorporate it in the future. For now, I suspect you would need to change the color in a texturepack. You could use something like SpoutEssentials to set a texturepack per world for effect. ;)
     
  20. Offline

    fatmarley

    @ActivatOr I set up all the worlds, but sadly there is still a problem

    Show Spoiler

    2011-08-12 05:16:14 [SEVERE] Could not pass event PLAYER_JOIN to SkyPlus
    java.lang.NullPointerException
    at me.Activat0r.SkyPlus.SkyPlusPlayerManager.loadPlayerSky(SkyPlusPlayerManager.java:81)
    at me.Activat0r.SkyPlus.SkyPlusPlayerListener.onPlayerJoin(SkyPlusPlayerListener.java:18)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    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)
    2011-08-12 05:16:14 [INFO] [MultiInv] Shared worlds loaded with no errors
    2011-08-12 05:16:14 [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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:374)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:98)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    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)
     
  21. Offline

    Activat0r

    For some reason it can't find a node in your config. Can you post it, along with a list of your worlds?
     
  22. Offline

    Grrrr159

    Works Great! [​IMG]
    Here's pic
    BUG: If you have a custom cloud cover during rain, when it turns to night the clouds don't switch to night, making it look brighter than it should
     
  23. Offline

    fatmarley

    @Activat0r
    Show Spoiler

    Code:
    ocean:
        useDefaultColors: false
        sunny:
            fog:
                red: 0.5
                green: 0.5
                blue: 0.8
            cloud:
                red: 0.9
                green: 0.9
                blue: 0.9
            sky:
                red: 0.0
                green: 0.0
                blue: 0.6
        raining:
            fog:
                red: 0.2
                green: 0.2
                blue: 0.2
            cloud:
                red: 0.1
                green: 0.1
                blue: 0.1
            sky:
                red: 0.0
                green: 0.0
                blue: 0.0
    fire:
        useDefaultColors: true
    
    sky:
        useDefaultColors: true
    
    TerraVerse:
        useDefaultColors: true
    
    TerraFirma:
        useDefaultColors: true
    
    earth:
        useDefaultColors: true
    
    Gamehub:
        useDefaultColors: true
    
     
  24. Offline

    Activat0r

    Yeah, I noticed that. I'm working on a solution.


    Ok, it's complaining about the missing nodes. I'll have it ignore missing nodes in the next version.
     
  25. Works great except I have encountered a minor bug:
    Show Spoiler

    I have the latest dev version of spout server and client.
     
  26. Offline

    bloisjo013

    Any chance of this not using spout?
     
  27. Offline

    Activat0r

    What exactly is the minor bug? The sky color?

    Unfortunately, no. Spout is the only way to modify client-side settings like sky colors, etc. As a result, it is a requirement if you want to see any changes.
     
  28. I have set the sky to be red.
     
  29. Offline

    Sethimine

    When I try to start the server, it says I need to download the latest version of SkyPLus, and well- I just downloaded it -.-
     
  30. Offline

    Activat0r

    Ok, yes, this is one thing I have noticed about Spout. The sky color setting doesn't seem to do anything obvious (at least during the day, I haven't tested to see if it shows up at night). I suspect it sets the color of the skybox itself. You can't see it normally because of the fog in the way, which overrides it. Just set your fog color to whatever you want the sky to be.

    I have no idea how you are getting that message. SkyPlus does not check for updates. What other plugins are you using?
     

Share This Page