I tried myself to fix deployables to save including code locks etc and get this:
- I'm first time trying to do something in csharp at all, so almost nothing know about it. Actually i spend almost whole day of trying to do something with it...
- I successfully restore deployables saving, but probably in really shit way.
- I'm still fail to save lock/codelock, it i tried few combinations and all fail, i can spawn codelock itself, but it not connected to door...
- I have tested around and if not copy really big constructions (that crashes server if paste) - it works fine with stability enabled.
You can try my version for tests, but please don't really use it on normal server because i can't give any guaranties that it will not break something (and will be needed wipe).
And i hope this plugin will be normally fixed later (including locks)

Copy Paste
Copy and paste your buildings to save them or move them
Total Downloads: 21,515 - First Release: Apr 3, 2015 - Last Update: Jun 14, 2018
- 5/5, 83 likes
-
Attached Files:
-
-
And regarding deployables, this used to be a part of the plugin but at some point Reneb removed (commented) all the code that involves handling deployable items and I just haven't had the time yet to look into it. -
Hi! Is there anyway to use this plugins WHITOUTH server.stability false?
because I want to have it whiouth it, or only with my pasted structures, not all server!
thanks! -
-
What I need to do? add "stability.true" in some line or something?
Little guide appreciated, thanks ! -
The file attached to this post http://oxidemod.org/threads/copy-paste.5981/page-10#post-72877 has disabled the disabling of the stability so if you'd use that one it should be "working" without disabling stability.
-
hello all ) when i do /past "name" , i have "unknow command" what's wrong?
-
Wulf Community Admin
-
server.stability false
Paste the building
server.stability true -
Mughisi updated Copy-Paste with a new update entry:
Update by Reneb
-
In my data folder are now many copypaste-***.json
Is it possible to manage the List of the Files with the plugin ?
I mean with commends like /cplist , /cpdelete, /cprename
that would be very helpful ! -
-
just check the ones that are empty (with the file size) or the ones you don't want a delete them.
-
It seems since the latest update that the plugin is now turning off stabilty, pasting, and then turning it back on again. Is this correct?
1 thing, when we do /placeback we our seeing the buildings face the wrong way sometimes? -
-
@Mughisi any ability to save lock/code lock? Even without saving keys/code itself, just spawn new one. Really need this for one thing what i'm doing. I have failed to connect code lock with door, have no idea how to do this. -
-
When you copy, removeall, placeback, everything is fine it faces correctly.
But when you restart the server or wipe the server it seems to not face the correct place ...
Maybe it's a saving bug (value doesn't get saved in the file correctly and when it's called back it shows a fucked up value?) -
Thanks for this plugin. It's really cool.
I was looking at the code and I noticed one thing that was a little odd. It's in line 294:
Code:var returncopy = CopyBuilding(player.transform.position, currentRot.ToEulerAngles().y, buildingblock, out rawStructure, out rawDeployables, out rawStorages);
As a result the very same building /copy has different position and rotation values in the saved file ... depending on the view rotation of the player. That seems to go against the apparent intention of the rest of the code (to normalize positions and rotations relative to the initial block).
So I tried substituting the player rotation with the initial block rotation: buildingblock.transform.rotation.ToEulerAngles().y
Code:var returncopy = CopyBuilding(player.transform.position, buildingblock.transform.rotation.ToEulerAngles().y, buildingblock, out rawStructure, out rawDeployables, out rawStorages);
With this change the saved file always has the same values for position and rotation (when starting with the same initial block). It doesn't matter what direction the player is facing when they type the /copy command.
It's possible this could help you troubleshoot the /placeback rotate bug as well (mentioned above).
Cheers. -
It's normal that it's from the player view.
Because when you copy it you when it to paste the exact same way that you copied it (from the same angle)
Using the initial block Will just make it random so you might paste it 90* 180* etc (exept if you place it back)
So this would just fix the /placeback, but bug the /paste ^^