RealFluids

Discussion in 'WIP and Development Status' started by mindless728, Feb 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    mindless728

    yeah, i need to get the api for this plugin done first so we can integrate the 2 together
     
  2. Offline

    Maeyanie

    The snow does sound like a neat addition. I've seen a number of mods doing oil as well, so will be nice to be able to just write a little plugin and have that flow too. Definitely looking forward to this, even more now. :)

    That seems like it should work pretty well. Lets the fluids flow as fast as the CPU allows (up to their flow rate, at least) with relatively minimal locking delays as the main thread checks for updates.

    You could probably do notification-only events using a ConcurrentLinkedQueue; have the fluid threads put them on the top, and the main thread poll it then fire them out. But couldn't modify or cancel the event, since it'd be already too late by the time it fires.
     
  3. Offline

    mindless728

    the amount of events would probably bog the server even as notifications, so i will probably stay away from that
     
  4. Offline

    Maeyanie

    Yeah, true. Would be a fair cost for relatively low benefit.
     
  5. Offline

    mindless728

    considering i already have to do the block type change in a synchronized method to so nothing goes wrong, that will slow this down enough
     
  6. Offline

    Oxygene

    Hmm I loved the old version, used it often, but for some reason installing this one today doesnt work. First no fluid will flow now unless already doing so. Secondly i get logblock consumer queue overloaded errors :( any idea what could be causing it?

    Fixed it :)

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

    mindless728

    what was the fix? i am interested
     
  8. Offline

    Oxygene

    I remembered it from when I first installed the plugin. The text file RealFluids.txt had the last two lines with no variables:
    WaterOverwriteList:
    LavaOverwriteList:
    So I added 0 False to them both like in your examples and it worked fine!
    Unfortunately I've been forced to remove the plugin by a grumpy op cause it broke his mob trap :/
     
  9. Offline

    Maeyanie

    Yeah, it tends to do that... one of the reasons I like it actually. ;)
     
  10. Offline

    Oxygene

    Same, personally I love the plugin. Had so much fun last time I had it installed making pump pipes out of glass and wool in strange shapes. I only uninstalled it last time cause wool didnt save state between resets lol. But this time it does!
     
  11. Offline

    Goomboss

    How come everyone can run this and I get an error in my config? even with the pregenerated one and it doesnt matter on which system. is this x64 compatible? does it need java 7? someone please elaborate cause I realy want to use this wonderful plugin
    also copied the one posted here and pasted it in the config, still error:
    Code:
    151 recipes
    16 achievements
    13:07:48 [INFO] Starting minecraft server version Beta 1.7.3
    13:07:48 [INFO] Loading properties
    13:07:48 [INFO] Starting Minecraft server on *:25565
    13:07:48 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-
    g73697a4-b1000jnks (MC: 1.7.3)
    13:07:48 [INFO] BlockStorage version 1.3 installed
    13:07:48 [INFO] Preparing level "world"
    13:07:48 [INFO] Preparing start region for level 0 (Seed: -7985959623297866139)
    13:07:49 [INFO] Preparing start region for level 1 (Seed: -7985959623297866139)
    13:07:49 [INFO] Preparing spawn area: 8%
    13:07:50 [INFO] FluidPumps version demo-snapshot-0.5 enabled
    13:07:50 [INFO] *** RealFluids: Error in configuration file ***
    13:07:50 [INFO] RealFluids version demo-snapshot-0.7 enabled
    13:07:50 [INFO] Server permissions file permissions.yml is empty, ignoring it
    13:07:50 [INFO] Done (0,182s)! For help, type "help" or "?"
    >

    Can someone email me a working config?
     

    Attached Files:

  12. Offline

    Tster

    Hey guys, I''ve made Moresnow, snow that piles, up and when it gets too high, I'm going to(hopefully) use his api to cause an avalanche, btw it was me who requested :p
    Check out more snow in my sig

    BTW Mindless, do you want to help work on MoreSnow(soon to be bettersnow), and you can help add avalanches etc, for 50 50 partnership

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

    mindless728

    as for 32bit/64bit compatible, it shouldn't matter as i am not running any native code as everything is done by the JVM, as far as java version, i have been testing it in 6 and 7, have not run into any problems like this so far (ie i can't replicate it)

    I am still working on the api (hit a few snags on performance), and once i make a general RealFluid base, making snow should be as easy as just stating what block material it uses
     
  14. Offline

    smickles

    I just noticed that I get this error, yet the plugin works fine for me...
     
  15. Offline

    Tster

    So you wana partner :p?
     
  16. Offline

    mindless728

    hmmm weird

    well let me finish the api and get a good foot hold on the RealFluid base (which is what water, lava, and now snow will be extended from), there are some locking issues with the current version i just finished so i have to come up with a way to not lock objects as often
     
  17. Offline

    Goomboss

    well on my systems it freezes the water, because the config cant be read. Is it doable to make it a .yml file instead of a .txt file? those seem more reliable to me and might just fix it for me
     
  18. Offline

    smickles

    Here's my RealFluids.txt
    Code:
    WaterStartLevel: 200
    LavaStartLevel: 100
    MinimumDifferenceLevelFraction: 0.05
    RepeatRate: 4
    MaxFlowTimePerRepeat: 600000
    SimsPerRepeatFraction: 0.5
    FlowDownFraction: 0.5
    ChunkCacheSize: 256
    WaterOverwriteList: 0 False 50 True 75 True 76 True
    LavaOverwriteList: 0 False 02 False 03 False 05 False 06 False 12 False 13 False 17 False 18 False 20 False 23 False 25 False 26 False 27 False 28 False 29 False 31 False 32 False 33 False 34 False 35 False 36 False 37 False 38 False 39 False 40 False 47 False 50 False 52 False 53 False 54 False 55 False 58 False 59 False 60 Fales 61 False 62 False 63 False 64 False 65 False 66 False 68 False 69 False 72 False 75 False 76 False 77 False 78 False 58 False 81 False 83 False 84 False 85 False 86 False 91 False 92 False 93 False 94 False 95 False 96 False
    I've tweaked some numbers so that fluids will flow a lot slower out of concern for safety.
    (edit for spelling/grammar)
     
  19. Offline

    Goomboss

    as far as I can read, scary lava. as far as I can see, ***error in config*** ingame static liquids.
    testing on:
    windows server edition 2 (something) java version 6 64 bit
    windows 7 both 64 and 32 bit with java 6, 7 ran in 32 bit
    with bukkit build 1000

    Isnt there something I have forgotten then? Did I have to install something more. I have the blockstorage and the realfluids plugin. Any aditional config that needs to be done? Understand me I do not wish to annoy you guys I just want to find out what causes this and why all of you guys can infact use it while all my efforts are in vain so far

    edit:
    Hardcoded the config file inside the .jar and now it works yet without config.

    ok next issue, magenta wool added to a fluid pump crashes the plugin:

    Code:
    2011-08-04 16:49:20 [WARNING] Task of 'FluidPumps' generated an exception
    java.lang.NullPointerException
    at mindless728.FluidPumps.FluidPumps.getPumpId(FluidPumps.java:105)
    at mindless728.FluidPumps.FluidPumps.pumpFluids(FluidPumps.java:172)
    at mindless728.FluidPumps.FluidPumps.pumpNorth(FluidPumps.java:192)
    at mindless728.FluidPumps.FluidPumps.run(FluidPumps.java:239)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  20. Offline

    mindless728

    yeah.....FluidPumps probably needs a rewrite, as i haven't been testing it with updates to the RealFluids code
     
  21. Offline

    Airo101

    Damn it!Config error every time,if i just place any edit in Water or Lava Overwrite!
    I really like classic water and want this plugin,but error annoying me.
    I am using Java 7 and Craftbukkit 1000.
     
  22. Offline

    Goomboss

    if you want I could send you a hardcoded version without config, it will work yet without you being able to easily change stuff. working on a different config version.

    @mindless728 I will send you the code bit when I change the config reading so you can just copy paste it and dont have to spend too much time on that small issue.

    edit:
    this file contains the jar with the basic setup hardcoded in it for anyone with the config error. note that it will create a config but wont read it!
     

    Attached Files:

  23. Offline

    Airo101

    Thanks,this one is working well.
    :)
     
  24. Offline

    Goomboss

    Glad it helped, working on implementing a different config system now, wont take too long
     
  25. Offline

    mindless728

    cool, i do what i did because my main concern is the plugin itself not the config

    thought keep in mind that this system is getting completely re-written, just solidifying the API to make a fluid, then i should be starting work on the RealFluids part of the code (RealWater and RealLava)
     
  26. Offline

    z00100100

    hay my server neeeds this and it will not work ive thried everything my brother is makeind the resident evil mansion and we need it for a trap my server says this every time

    151 recipes
    16 achievements
    00:48:00 [INFO] Starting minecraft server version Beta 1.7.3
    00:48:00 [INFO] Loading properties
    00:48:00 [INFO] Starting Minecraft server on 10.0.0.3:25566
    00:48:00 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    00:48:00 [INFO] BlockStorage version 1.3 installed
    00:48:00 [INFO] Preparing level "defaltland"
    00:48:00 [INFO] Preparing start region for level 0 (Seed: 81)
    00:48:01 [INFO] Could not grab a storage object, disabling...
    00:48:01 [INFO] RealFluids version demo-snapshot-0.7 disabled
    00:48:01 [INFO] Could not grab a storage object, disabling...
    00:48:01 [INFO] RealFluids version demo-snapshot-0.7 disabled
    00:48:01 [INFO] Server permissions file permissions.yml is empty, ignoring it
    00:48:01 [INFO] Done (0.047s)! For help, type "help" or "?"

    anything you can do will b much appreciated
     
  27. Offline

    Maeyanie

    That's a known, non-reproducible problem with no known cause. Some of us have have been able to fix it by recompiling BlockStorage from source on our own system, you can try that... if not... sorry, can't help you, nobody really knows what causes it.
     
    smickles likes this.
  28. Offline

    z00100100

    ok thank you
    [​IMG]

    and if you wouldnt mind can u post a upload of the file u edited because i have no clue how to do that im just now learning how to write plugins so im still a noob at code but i'm a fost learner :)


    and thanks for any help you can provide
     
  29. Offline

    Goomboss

    I know about the re write, you are doing a great job mindless728 keep at it. also as long as you keep your source file open I will try to help with these small issues so you can focus on the hard part ^^

    also no idea about the blockstorage bug, but it seems it can already be fixed.
     
  30. Offline

    mindless728

    both of these bugs bother me as i can't recreate them, though maybe the problem with BlockStorage is the cache size in the RealFluids config, try lowering it to 64 or so
     
Thread Status:
Not open for further replies.

Share This Page