Copy Paste

Copy and paste your buildings to save them or move them

Total Downloads: 21,550 - First Release: Apr 3, 2015 - Last Update: Jun 14, 2018

5/5, 83 likes
  1. anybody????
     
  2. server.stability false
     
  3. Anyone having event arena's copied which he/she would like to share ?
     
  4. Code:
    [07/14/2016 23:16:51] [Oxide] 23:16 [Error] Error while compiling CopyPaste.cs(827,79): error CS1503: Argument `#1' cannot convert `byte[]' expression to type `System.IO.MemoryStream'
    Doesn't work after update.
     
  5. Please fix for update, my whole town is gone lol.

    Gyazo - d19f77f40ab4ca4b8d0c4859b610289a.jpg

    42 CopyPaste - Failed to compile: CopyPaste.cs(827,79): error CS1503: Argument `#1' cannot convert `byte[]' expression to type `System.IO.MemoryStream'
     
    Last edited by a moderator: Jul 14, 2016
  6. same thing
     
  7. Trying to set permissions. When setting the perms it says "permission not found"
     
  8. Hopefully someone posts an update that allows you to use old save files as they did before.
     
  9. I have a fix, but it bugs out on anything with signs in it right now
     
  10. I fixed both versions.

    2nd is for old json files.
     

    Attached Files:

  11. Left one worked for all but one of my buildings... of course the most important one lol. Pasted half the building with this console error:

    Assertion failed: Storing 0 size memorystream
    [Oxide] 20:31 [Error] Failed to call hook 'cmdChatPaste' on plugin 'CopyPaste v3.0.8' (Exception: sq
    l error: NOT NULL constraint failed: data.data)
     
  12. Try this edit (2nd/right is for old json)
     

    Attached Files:

  13. Just FYI: This is the error I get when I try to paste a large building .. this is with the last cs you just posted


    Code:
    (22:04:08) | [Oxide] 21:01 [Error] Failed to call hook 'cmdChatPaste' on plugin 'CopyPaste v3.0.8' (Exception: sql error: NOT NULL constraint failed: data.data)
    (22:04:08) | [Oxide] 21:01 [Debug]   at Facepunch.SQLite.Insert (System.String query, System.Object[] keys) [0x00000] in <filename unknown>:0
      at FileStorage.Store (System.IO.MemoryStream ms, Type type, UInt32 entityID, UInt32 numID) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CopyPaste.Paste (System.Collections.Generic.List`1 entities, Vector3 startPos, .BasePlayer player, Boolean checkPlaced) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CopyPaste.TryPaste (Vector3 startPos, System.String filename, .BasePlayer player, Single RotationCorrection, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CopyPaste.TryPasteFromPlayer (.BasePlayer player, System.String filename, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CopyPaste.cmdChatPaste (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CopyPaste.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. I have made some patches to the code and am using this on my server until an official fix is published.
     

    Attached Files:

    Last edited by a moderator: Jul 15, 2016
  15. update please
     
  16. yea having same issue again they updated and the mod isnt working same issue i had before the commands arent found????
     
  17. Some saved buildings are working some not, signs are bugged... the first one is duplicated on every other.

    But thank you.
    Was able to copy 3 Buildings already with your fix ;)
     
  18. I noticed with the last one, it didn't copy any foundations that were /buildup :( but all good. Maybe just a note for the future patches :) or maybe just me.