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

    Yes but only one time. If you still want to change the origin after that, you have to go to this file:
    plugins/MagnetBlock/xxx.structure/info.csv
    and edit the coords after origin: yourself
     
  2. Offline

    ssechaud

    Any chance removing the info spam from the server console and sticking into a log file?
     
  3. Offline

    Gric

    Can you make it possible to make structures via WorldEdit, because I don't want to set every stone per hand. Other programs with cuoid and fill options doesn't work, too.
     
  4. Offline

    raz235

    i just updated but now theres a new bug..
    the iron block is turning into dirt in the game and the file..
     
  5. Offline

    ImKharn

    Is it possible to all direction movement with one item instead of 2? Pushblocks was able to do this providing craftbukkit can it would be nice to not to have to switch.

    If the magnet is placed with different X,Y,Z than the object what happens when it is powered with redstone?
     
  6. Offline

    xibit1987

    hmmm, v0.1.15

    This is just one of multiple errors (same error)

    22:05:55 [SEVERE] Could not pass event PLAYER_TELEPORT to Vanish
    java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Unknown Source)
    at java.util.Timer.<init>(Unknown Source)
    at java.util.Timer.<init>(Unknown Source)
    at com.echo28.bukkit.vanish.Vanish.updateInvisibleOnTimer(Vanish.java:32
    2)
    at com.echo28.bukkit.vanish.VanishPlayerListener.onPlayerTeleport(Vanish
    PlayerListener.java:41)
    at org.bukkit.plugin.java.JavaPluginLoader$8.execute(JavaPluginLoader.ja
    va:197)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:271)
    at org.bukkit.craftbukkit.entity.CraftPlayer.teleportTo(CraftPlayer.java
    :171)
    at com.narrowtux.MagnetBlock.MagnetBlockStructure.moveTo(MagnetBlockStru
    cture.java:130)
    at com.narrowtux.MagnetBlock.StructureAnimation.run(StructureAnimation.j
    ava:40)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    22:05:55 [INFO] 0.0,1.0,0.0


    also when you delete a structure, the folder itself in the plugin folder ain't being deleted, so if you add a new structure with the same name...problems! Also if you place a magnet at the same point of a structure that you have deleted even tho i have deleted old structures folders and restarted server you get the above errors :/

    i'm using 3 magnets to create an elevator moving between top, middle and bottom floor.
     
  7. Offline

    narrowtux

    I splitted it up because it was doing up/down moves that weren't expected too often. I have the idea to offer a configuration in which you can enter the linear combination (for example [1,1,0] for x/y but no z movement) for each item. So you could also use different items to push.
    [MERGETIME="1299965079"][/MERGETIME]
    It says: java.lang.OutOfMemoryError.
    You should consider buying more memory for your server ;)
    [MERGETIME="1299965354"][/MERGETIME]
    How can you say that this creates problems? The files are being overwritten when you create a new structure with the same name.
     
  8. Offline

    xibit1987

    well it's funny becaus it's only this version causing it and when i get the error i have like 1 gig og ram left out of 1,5 gig dedicated for this server. i checked it since i already saw that error... no noob here ;) just not a programmer :p but did you read all the other things?
    [MERGETIME="1299965706"][/MERGETIME]
    i can't tell, just thinking out loud ;)
    [MERGETIME="1299966225"][/MERGETIME]
    also getting this ?
    22:42:29 [INFO] Magnet not found at Location{world=CraftWorld{name=World2}x=171.
    0y=126.0z=14.0pitch=0.0yaw=0.0}
    22:42:29 [INFO] Magnet not found at Location{world=CraftWorld{name=World2}x=171.
    0y=126.0z=14.0pitch=0.0yaw=0.0}
    22:42:29 [INFO] Magnet not found at Location{world=CraftWorld{name=World2}x=171.
    0y=125.0z=13.0pitch=0.0yaw=0.0}
    22:42:30 [INFO] 0.0,-1.0,0.0
    22:42:30 [INFO] 0.0,-1.0,0.0
    22:42:30 [INFO] Magnet not found at Location{world=CraftWorld{name=World2}x=171.
    0y=126.0z=14.0pitch=0.0yaw=0.0}
    [MERGETIME="1299966610"][/MERGETIME]
    [​IMG]

    Just to show you i'm not just whining, screenshot just taken :p
     
  9. Offline

    narrowtux

    Oh, sorry. But I can see that there is something of the Vanish Plugin above my calls. You could try to deactivate Vanish to see if that still happens.
     
  10. Offline

    raz235

    if you tryed to make the messages of the magnet not found to stop showing up then it didnt work
    thats realy annoying and making the server pretty laggy
    please fix it
     
  11. Offline

    narrowtux

    I just muted the debug messages. not error messages, because they are important. But really, I can't imagine that simple text messages could cause a server to "lag pretty"
     
  12. Offline

    raz235

    how can they be important if anyone who install this plugin gets them?
    i cant look in the console for other stuff because its keeps writing that message..
     
  13. Offline

    Dreadreaver

    my glassdoor which worked perfectly fine on 0.11, 0.12, 0.13 changed to a cobblestonedoor on 0.15 and every attempt to change the cobblestone back to glass is futile as upon activating the magnet the door changes to cobble again -.-

    wtf ..
     
  14. Offline

    narrowtux

    Sorry, there is a bug in Bukkit that does not correctly return the blocktype when it's glass. To work around this bug, I've changed the texture to cobblestone whenever the block.getTypeId() returns 0 (that means AIR). That is just to preserve the structure as whole.
     
  15. Offline

    Dreadreaver

    okay i get that but why did it work before?
     
  16. Offline

    narrowtux

    The Bukkit devs played around with the code... I don't know :(
     
  17. Offline

    ssechaud

    I am trying to make a simple lift, but when I try to move it with the magnets it is creating cobblestone, am I doing something wrong? It shows this in the log:

    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [SEVERE] Block has encountered AIR Type!
    15:42:11 [INFO] 0.0,1.0,0.0
    15:42:11 [INFO] 0.0,1.0,0.0
    15:42:11 [INFO] 0.0,1.0,0.0
    15:42:12 [INFO] 0.0,1.0,0.0
    15:42:12 [INFO] 0.0,1.0,0.0
    15:42:12 [INFO] 0.0,1.0,0.0
    15:42:12 [INFO] 0.0,1.0,0.0
    15:43:16 [INFO] 0.0,-1.0,0.0
    15:43:17 [INFO] 0.0,-1.0,0.0
    15:43:17 [INFO] 0.0,-1.0,0.0
    15:43:17 [INFO] -1.0,-1.0,0.0
     
  18. Offline

    Loose Nut

    you can make blocks.csv a read only file by using file attributes
    you would have to unlock it if you wanted to edit the structure though
    should help with the block changing to AIR
    ok dont do the above

    narrowtux,
    would it help to make it so /mbfs sets blocks.csv to a read only file by default
    and make/mbes set blocks.csv file attribute normal ?

    I dont know if java can set a file's attribute
     
  19. Offline

    narrowtux

    Of course Java is able to lock a file, but the problem is that the file also has to be rewritten when a structure is moved.
    I tried to fix the problem of block types changing to air by doing this check as rarely as possible. When it's saved to a file, it should load the blocks type and data from the file and just use that. But if you freshly placed a structure, the blocktype and data check have to be done at least one time.

    The problem is that this check is faulty, sometimes the block that I requested is not the block that is returned by the check (they haven't got the same coordinates).
     
  20. Offline

    Loose Nut

    didnt know blocks.csv gets updated when the structure moves.
    thought it was build info only.
    thank you for clarifying the reason for the problem
     
  21. Offline

    mustadont

  22. Offline

    narrowtux

    Thank you ;)
     
  23. Offline

    mustadont

    Thanks to the author.
    Sorry for my English.

    Very good plugin, with ControllerBlock can do absolutely wonderful things.

    Tried to do a lift in the water, unfortunately the elevator stops at the surface.
     
  24. Offline

    narrowtux

    The problem with water is that still water cannot be replaced without damage to the environment. I implemented that it can pass through floating lava/water that is not a source tile.
     
  25. Offline

    icomeinpieces

    i found that unless the iron block is the very first in any case it seems to cause weird glitches like two entries in the structure config file for the same iron block. when i leave the one that gets set as the first entry in the file alone and delete the other everything works fine.
     
  26. Offline

    Loose Nut

    how does /structureremovemagnet know
    what structure to remove the the magnet from ?

    or should we use /editstructure {name}
    before we use remove magnet
     
  27. Offline

    Kartus

    any thoughts about a permissions.yml where the usernames could be mentioned as allowed to use plugin until bukkit release its own permissions system?
     
  28. Offline

    narrowtux

    You tap the magnet you wish to remove after that. It looks in the Object of the Magnet to which structure it belongs.
    [MERGETIME="1300180420"][/MERGETIME]
    Would you be pleased when there would be a file admins.lst in the MagnetBlock folder in which the usernames of the people who may use it are stored?
     
  29. Offline

    Kartus

    Yes, i would =)
     
  30. Offline

    narrowtux

    Did it ;)
    Create a new file "users.lst" in the MagnetBlock folder. On each line, write one User that should be allowed to use this plugin.
     

Share This Page