Inactive [MECH] MagnetBlock v0.4.7 - Movable Structures controlled by Redstone [1060]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Mar 2, 2011.

  1. Offline

    narrowtux

    @mze9412 are there any error messages in the console? Which other plugins do you have installed? This doesn't happen normally.
     
  2. Offline

    mze9412

    No error messages aside of "19:43:03 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?".

    CB740
    MinecartMania 1.1.Something (current one)
    TombStone
    Craftbook
    WorldEdit
    iConomy 5
     
  3. Offline

    narrowtux

    Weird...
    If that are all plugins, it can't come from them.
    Gotta have to test this on my server.
     
  4. Offline

    mze9412

    Oh, forgot one: Nethrar :)
     
  5. Offline

    FrankieJTKP

    Awesome update. thanks for doing that. I was just wondering if there was a maximum speed that a magnetblock structure is able to move? I made a config file and was messing around with different values. I noticed that with a max speed value of 1 it took my train about 57sec to travel 200meters, but when I increased it to values of 5, 10 and 50 it took about 50sec. It seems that for any value above 1 the speed does increase, but they are all the same speed. Is this a bug? Or maybe I did not configure it correctly, etc? I appreciate all of your help.

    Hey, finally managed to get some video of my monorail, check it out. Let me know what you guys think. This is just a short test track, but I have ideas on how to incorporate height changes, rail switching, and automatic movement. This is going to be awesome. Keep up the good work man, I am looking forward to seeing what you come up with next. Let me know about the speed thing.



    PS- The actual shot of me riding it begins at around 1:00, then after that it is just shots of me showing off the wiring. Comments appreciated!

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

    narrowtux

    @FrankieJTKP
    Video is great, I'll add this to the video section ;)
    The problem is that the structure gets stuck sometimes, especially if you don't place the magnet directly in one line with the origin point. When the structure wants to move 10 blocks into the direction of the magnet, it will actually go maybe 7 on x-axis and 3 on y-axis, if the magnet is below the rail.
    I will try to separate the movement as I can to make this possible without stucks.
     
  7. Offline

    belfedia

    With CB#740, 766
    I use clay for magnetic (For i hope no problem with other plugins)
    All work good but when i restart server, files structure is empty with air block... cause strutures disappear.
    Code:
    my plugins :
    AppleTreePlugin.jar
    AuthDB.jar
    BedHealAdvanced.jar
    BlocksOnGlass.jar
    bukkitPiston.jar
    CanSpawn.jar
    ChickenHunter.0.5.jar
    ChopTree.jar
    CopyCat.jar
    DeathSigns.jar
    DiscoSheep.jar
    DungeonGenerator.jar
    dynmap.jar
    EveryEgg-0.2.jar
    FenceDoorV2.5.jar
    FenceStack.jar
    FireFix.jar
    HeroicDeath.jar
    InfiniteLava.jar
    iOP.jar
    ItemId.jar
    iZone.jar
    Landmarks.jar
    LightLevel.jar
    LightSwitch.jar
    LoginMessage.jar
    MagnetBlock.jar
    mobSpawner.jar
    MusicCraft.jar
    Nethrar.jar
    NoAFK.jar
    NoCheat.jar
    NoFarm-0.1.1.jar
    NSCommand.jar
    OpenInv.jar
    OutputHandler_normal.jar
    PerformanceTweaks-0.01.jar
    PickBoat.jar
    playerList.jar
    PorteCoulissante.jar
    PureHomes.jar
    quickbelt.jar
    RedRemote.jar
    RetractableBridge.jar
    runecraft2.6.1.jar
    SaddleBack.jar
    Seasons.jar
    Seats.jar
    SecretDoors.jar
    SimpleGodMode.jar
    SimpleSave.jar
    SleepAnnounce.jar
    StairDrop.jar
    TeleportX.jar
    ThisBiome.jar
    ThunderJoin.jar
    WorldBorder.jar
    WorldEdit.jar
    WorldWarp02.jar
    What do you think about it ? :)
     
  8. Offline

    insaneume

    i too am still getting the cobble stone error

    was using CB 677 so i tested 640 just incase same thing

    i done /mbsave before shut down
    i ve tried both console stop command and simply closing the server console with out the command

    before server shut down the block file was fine with all block types correct
    after all block types AIR

    I made a point of having the structure in its start possition before shutting down, but that didnt help

    wheni start the server up none of the structures apear since they are built out of AIR

    powering a magnet will list
    [SEVERE] Block has encountered AIR Type!
    for each block in the structure

    and the structure is then rendered in cobble stone


    plugins use:
    dynmap
    Commandbook
    ControlerBlock
    Magic carpet
    MagnetBlock
    Permissions
    WorldEdit
    VoxelSniper

    the only work around ive found sofar is before shut down with structures in start possition
    back up the MagnetBlock folder
    shut down the server
    then over write the MagnetBlock folder before start up
     
  9. Offline

    narrowtux

  10. Offline

    belfedia

    Mhhh i use 0.4.3 that the problem i think... sorry
    I try with 0.4.4 now and i think that work
    In 0.4.3, snow can stop structure !!! need to remove snow for moving again
    Have you repair that also ? :)

    edit: Same bug in 0.4.4 when i stop server, structures files are randomly filled with air...
     
  11. Offline

    insaneume

    im on 0.4.4 rigth now
     
  12. Offline

    narrowtux

    I already tried to fix the bug with the air. the problem is that Bukkit (or even the vanilla mincraft server) won't tell the right block-id's sometimes. I don't know what to do about it.
     
  13. Offline

    belfedia

    Mhh ? perhaps make a copy of structure file when player make a /mbfs
    and check all files struct at plugin start ! If block = air restore file from copy
    I make that by hand and i don't lose my structures...
     
  14. Offline

    Kiro_Dragoon

    Hello, Im sorry if you already posted a response to a problem like this, but I have a slight problem with this amazingly awsome plugin...

    When i restart my server, all the structures are missing, but if i type /mbch (structure name) they become visable again... but they are made entirely of cobblestone, where before they had wood... it changes all the parts to cobblestone. I use cuboid to fix it, but its sort of a bother to fix seven structures on every server restart... any ideas on what could cause this?
     
  15. Offline

    narrowtux

    Does this only happen after you restarted the server? This is a common problem and is caused by bukkit lying about the block-types.
     
  16. Offline

    Kiro_Dragoon

    well now i am also getting the error with it becoming air, its also happening when i restart the plugin... cuboid is no longer fixing the blocks for some reason, and editing the structure only states "AIR added to structure!" I tried editing the file that retains the block info but upon restarting the plugin it went back to "AIR"...

    I havent added any plugins since i installed yours, if you want me to list all the plugins I will... its a long list ^.^;
     
  17. Offline

    Painvp

    hey , i am having a problem , i create a structure , and then i put2 magnets with redstone connected to it.
    But when i thouch the pressure plate , absolutley nothing happens.
     
  18. Offline

    valdark

    What about, instead of searching for the block-id's on startup, you just load from the file and have it overwrite anything in it's way? If bukkit is returning air type you shouldn't end with any duplicated structures by doing this.
     
  19. Offline

    narrowtux

    I now know the cause of this, rejoice :D
    I will fix it this day.
     
  20. Offline

    monolar

    Yay! Good to hear
     
  21. Offline

    valdark

    That is great to hear. Hope my input helped. I have been following this plugin for a while now and the only reason I don't continue to use it is that I get that nasty Air/Cobble bug when my server restarts.

    I look forward to being able to build some of the structures I have been planning since I first read this thread.
     
  22. Offline

    narrowtux

    Release v0.4.5
    • Fixed cobblestone problem while saving structures
     
  23. Offline

    valdark

    Will test as soon as possible. Fingers crossed.....
     
  24. Offline

    narrowtux

    Please note, the problem occurred when the structures were saved. So if you've got a file with AIR-blocks in it, you've first got to fix that before you start your server ;)
     
  25. Offline

    valdark

    Understood. I always start with a fresh test structure when using this plugin just to make sure it's not a bug started by a previous version.

    Unfortunately still receiving the error. I'm not certain why it would still alter the file on restart if you did a force load without the check on startup.

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

    narrowtux

    When the file is corrupted, this is caused by the saving-algorithm which has used a bad method of the bukkit-api. It won't happen that it saves AIR-Structures to disk because the saving-algorithm now uses the correct method which doesn't lie about the block-type.
     
  27. Offline

    valdark

    Well they are saving properly. That's not the issue.

    I am able to place blocks and it reads the correct information. I then save (used both save-all command and mbsave options both independently and together). When I open the file it shows the correct blocks even after movement and re-saving.

    Then I restart the server and it's all AIR. This version is not restoring the structures to cobblestone just air.

    If I stop the server it and open the file it reads correctly. When the server starts again then it reads air again.

    I made multiple attempts to confirm. I am running tonight's version of MagnetBlock on bukkit 766.
     
  28. Offline

    narrowtux

    Release v0.4.6
    • Disabled Structure-Restore on startup by default. If you still want it, set "restoreonstartup=true" in your configuration file.
    I hope that helps, @valdark
     
  29. Offline

    belfedia

    I Have same problem than Valdark.
    Each time i'm starting server all blocks are all AIR
    in 0.4.6 , restoreonstartup=true or restoreonstartup=false change anything...
    ps: when i start the server all blocks.csv are good, after start no more
    ----------------------------------------------------------------------------------------------------
    In 0.4.4 the problem is, sometimes, when i stop server, i have all structure files filled by air block
    and if i use magnet-block, next server restart, structure files filled by cobblestone block...
     
  30. Offline

    insaneume

    tested out the latest build and ... it doesnt seam to be saving anything into the block file

    my old structure appeared in correct form rather than cobblestone but would not move. done /reload all still wouldnt move. so I looked inside the block file from the structure and it was empty also using /mblist im told that it has 0 magnets

    i tried building a new structure maybe the problem was that the file was not compatable
    when using /mbfs i get the confirmation Finished editing! followed by An internal error occoured while attempting to perform this command

    the structure moved correctly i check the blockfile for the new structure and it too was empty

    tried /mbsave and i got An internal error occoured while attempting to perform this command

    stopped the server and started it again teh structure is still inplace but now it wont move so i think it was fine in memory but just didnt save to storage im pasting teh error from the server console as well

    also a small not i noted that when i place a block in the structure the line editstructure appear twice in the server console and in teh client console the line 'x' added to Structure. appear twice per block


    so far ive tested and got the same result both with and with out the config file

    Code:
    09:09:21 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'mbfs' in plugin MagnetBlock v0.4.6
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoSuchMethodError: com.narrowtux.MagnetBlock.BlockPosition.getType()Lorg/bukkit/Material;
            at com.narrowtux.MagnetBlock.MagnetBlock.save(MagnetBlock.java:356)
            at com.narrowtux.MagnetBlock.MagnetBlock.onCommand(MagnetBlock.java:147)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    ]just to see if this is a mix up from my end im gonna try it ona clean server with just Magnet block but ive not changed anything from the 0.4.4 build but you never know
     

Share This Page