Reign of Kings Copy / paste blocks

Discussion in 'Plugin Requests' started by Andrew D, Jun 25, 2015.

  1. Would be amazing if there were something like the Copy-Paste plugin for Rust.

    Link: http://oxidemod.org/plugins/copy-paste.716/

    Really just want to be able to save Admin built structures after a forced wipe so that they can be added back to the fresh map.
     
  2. I think @SweetLouHD said he was making something like this.
    Not sure.
     
  3. Gonna test @Scorpyon 's block spawning code. If it works how I want it to I want to:
    "Record" a structure being built.
    Save it to a file or database record
    "PlayBack" the recording.

    Similar to the blueprint mod in bukkit minecraft.
     
  4. You can possibly save on efficiency and speed by storing it in a variable of type: Collection<int[]>() - rather than use database handling which is fundamentally slower.
    (A collection of int arrays)

    In essence you would have:
    - Block 1
    - Block Id
    - coord x
    - coord y
    - coord z
    - Block 2
    - Block Id
    - coord x
    - coord y
    - coord z
    - Block 3
    - Block Id
    - coord x
    - coord y
    - coord z

    And so on...
     
  5. I was planning on storing it in json format, as a blob, in a single record for each build.
    But if you think a collection would be quicker I can look into it.

    This would only be for MySql of course.
     
  6. It depends if you're saving it, I suppose. (since I think it would convert it to JSON format anyway)

    And if you're having multiple recordings, then my way becomes much less efficient, I think.
     
  7. Is it possible that i can save a house with all blocks in it and place this on a new world? This would happen on the same Server. I dont want to build the arena or the market at every wipe... this is timewaste. If someone needs more informations about it write a pm i will answer as fast as i can... sorry for my bad english ^^
     
    Last edited by a moderator: Jul 12, 2015
  8. Maybe any updates here?