[MISC] Caelum Procurator v0.1 - Sun/Moon/Cloud Settings through Spout [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Dhulliath, Aug 10, 2011.

  1. Offline

    Dhulliath

    Caelum Procurator - Sun/Moon/Cloud settings though Spout:
    Version: v0.1​
    Can set, by world, sun size, moon size, star density, and cloud height, or turn all of them off. Currently settings are modified via the plugins/egtCaelumProcurator/config.yml file, offline. Requires the server to be running the Spout plugin, and the client running the Spoutcraft client.​

    By default a config file will be generated with generic environment settings. Sun and Moon scales are measured in percent. Setting cloud height to '0' will place them at the default height.

    Turns out I'm bad at testing my own code. While the options to modify stars are still there, it doesn't appear to actually do anything just yet.

    Features:
    • Modify/Remove Moon, Sun, Stars, and Clouds
    • Individual World Settings
    Requirements:

    Download:

    config.yml example
    Show Spoiler

    Code:
    worlds:
        netherworld:
            clouds:
                enabled: false
                height: 108
            moon:
                scale: 100
                enabled: false
    [S]        stars:[/S]
    [S]            enabled: false[/S]
    [S]            frequency: 100[/S]
            sun:
                scale: 100
                enabled: false
        primary:
            clouds:
                enabled: true
                height: 108
            moon:
                scale: 100
                enabled: true
            stars:
                enabled: true
                frequency: 100
            sun:
                scale: 100
                enabled: true
    

    Todo:
    • In-game settings editing.
    Changelog:

    0.1
    • Initial release.
     
    Taranis01 likes this.
  2. Offline

    Plague

    missing a post header (see guidelines) with name, short description and version
     
  3. Offline

    morizuki

    Code:
    2011-08-12 01:31:37 [SEVERE] Could not load 'plugins\egtCaelumProcurator.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/event/spout/SpoutListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        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)
        at com.bukkit.dhulliath.egtCaelumProcurator.CaelumProcuratorPlugin.<init>(CaelumProcuratorPlugin.java:22)
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.event.spout.SpoutListener
        at java.net.URLClassLoader$1.run(Unknown Source)
        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)
        ... 27 more
    getting this.. I have spout 1.0.1
     
  4. Offline

    Grrrr159

    I am getting the same error. It doesn't create a config either. :/
     
  5. Offline

    Dhulliath

    I hate to say it, the only way I was able to recreate that exact error was to remove Spout.jar from minecraft/plugins/
    Otherwise runs without a hitch for me :/
     
  6. Offline

    Grrrr159

    Lol wut? I have Spout in my plugins folder :/
     
  7. Offline

    majorcyto

    I also get the error, using the latest spout dev build. How ever im using Debian Linux, if your using a hardcoded windows type file path it wont find it for linux users.
     
  8. Offline

    Dhulliath

    I actually have it running on my Ubuntu server. I wonder if there's something with the order of loading plugins; if this is getting loaded before Spout is.

    It seems I may have been a victim of my own over-engineering. I removed the SpoutListener and the need to even have it. It tests fine for me, hopefully that fixes the problem. Recompiled .jar is up.

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

    EdTheLoon

    By the way, just in case your plugin was loading before Spout (which is quite likely) there's a way to make it load afterwards or not load at all if Spout isn't in the plugins folder. This is done in your plugins.yml file and I THINK it goes something like this:

    Code:
    soft-depend: Spout
    Maybe @SpoutDev or @Afforess could confirm this for me?
     
  10. Offline

    AgentKid

  11. Offline

    Plague

    Glad your here again, what about those changes to the post?
     
  12. Offline

    morizuki

    Code:
    2011-08-14 01:45:44 [SEVERE] Error occurred while enabling egtCaelumProcurator v0.1 (Is it up to date?): null
    java.lang.NullPointerException
        at com.bukkit.dhulliath.egtCaelumProcurator.CaelumProcuratorPlugin.loadSettings(CaelumProcuratorPlugin.java:82)
        at com.bukkit.dhulliath.egtCaelumProcurator.CaelumProcuratorPlugin.configSetup(CaelumProcuratorPlugin.java:75)
        at com.bukkit.dhulliath.egtCaelumProcurator.CaelumProcuratorPlugin.onEnable(CaelumProcuratorPlugin.java:48)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I'm getting this one..
     
  13. Offline

    Dhulliath

    This should be fixed. I made a small oversight in the config file auto-creation.

    I'm not sure what more it needs. I've listed a category, name, version, description, and Bukkit build #. What am I missing?

    Thanks! I never even looked more than plugin description/version at that file. Dependency are now listed.

    Awesome! Thank you :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  14. this should be upgraded to work alongside ambientseasons plugin

    for example, more stars in summer seasons and a bigger mon that changes accordingly!
     
  15. Offline

    morizuki

    I tried turning off the Stars.. but I can still see them..? I also tried turning off the clouds and it works, only the stars..
     
  16. Offline

    Dhulliath

    I have to admit, I only made this to raise the clouds to 128, and the rest was easy to tag along. I'm guessing it might not be fully implemented, or there's something else I'm missing. I'll edit the description.
     
  17. Offline

    EdTheLoon

    @Dhulliath I'm not sure if that line I gave you to put in plugin.yml fixed anything or not but I've just randomly come across the post I first saw it on and realised I gave you the wrong snippet.

    It's actually
    Code:
    softdepend: [Spout]
     
  18. Offline

    Plague

    I said "post header, seee guidelines" which meant that the post has to start with
    name - short description
    Version: vX.X
     
  19. Offline

    Dhulliath

    OK done, thanks.

    No worries, I looked into it before committing any changes, so I caught that. Thank you, though.
     
  20. Offline

    meizme

    is the cloud settings persistent?
     
  21. Sooo... [INACTIVE]?
     

Share This Page