But if I build something on server and copy it, I can paste it no problems.
When I open the server built copy, in notepad++ it is set out all nice on thousands of lines but the json from fortify is on 1 single line

Copy Paste
Copy and paste your buildings to save them or move them
Total Downloads: 21,535 - First Release: Apr 3, 2015 - Last Update: Jun 14, 2018
- 5/5, 83 likes
-
I read all your suggestions and some of them got a like. Next week I will try to continue development of the plugin, as promised.
-
@miRror Do you know why fortify isn't exporting correctly
-
@miRror , have you seen this? I didn't see any replies to it.. but its a thing happening to me also kicking all my players when I attempt to save the same way this guy did that I quoted. Can ya give it a look please.Thanks
-
i cant grant my permission it say cant be find this permission help please
-
Where do the save files reside?
-
-
There are some errors with the latest update, please fix.
Error while compiling: CopyPaste.cs(686,50): error CS1503: Argument `#1' cannot convert `System.IO.MemoryStream' expression to type `byte[]' -
Wulf Community Admin
Wulf updated Copy Paste with a new update entry:
3.3.6
-
How do I get/give permission to use this?
-
I'm getting this when I try to paste something.
Failed to call hook 'cmdChatPaste' on plugin 'CopyPaste v3.3.6' (JsonReaderException: Additional text encountered after finished reading JSON content: 0. Path '', line 49417, position 1.) -
Wulf Community Admin
-
Do I delete and reinstall then?
-
Wulf Community Admin
-
Hi All,
var vec = GetRandomVector();
Vector3 rotationCorrection = Quaternion.Euler(player.GetNetworkRotation()).ToEulerAngles();
string buildingname = "test";
var arglist = new List<string> { "deployables", "true", "autoheight", "true", "blockcollision", "true" };
var success = CopyPaste.Call("TryPasteFromVector3", vec, rotationCorrection, buildingname, arglist.ToArray());
I keep getting success as a string (a bad thing)
Any thoughts?
Hook. -
Code:
using Oxide.Core.Plugins; using System.Collections.Generic; using UnityEngine;namespace Oxide.Plugins { [Info("Test", "miRror", "0.0.1")] class Test : RustPlugin { [PluginReference] Plugin CopyPaste; [ChatCommand("test")] private void cmdChatTest(BasePlayer player, string command, string[] args) { string buildingName = "test"; List<string> options = new List<string> { "height", "0" }; var success = CopyPaste.Call("TryPasteFromVector3", player.transform.position, Quaternion.Euler(player.GetNetworkRotation()).ToEulerAngles().y /* or 0 */, buildingName, options.ToArray()); if (success is string) { SendReply(player, (string)success); return; } SendReply(player, "You've successfully bought this building"); } } }
-
miRror updated Copy Paste with a new update entry:
3.3.7
[DOUBLEPOST=1504362268][/DOUBLEPOST]
Code:grant user 76561198019784084 copypaste.paste (for user) grant group vip copypaste.paste (for group)
[DOUBLEPOST=1504362553][/DOUBLEPOST]
[DOUBLEPOST=1504362617][/DOUBLEPOST]Last edited by a moderator: Sep 2, 2017 -
Hey miRror,
Changing to your code, and it works, so something to do with the .y or the change to the option args list.
Quaternion.Euler(player.GetNetworkRotation()).ToEulerAngles().y /* or 0 */
where I used
Vector3 rotationCorrection = Quaternion.Euler(player.GetNetworkRotation()).ToEulerAngles();
or the argslist
or the var vec = GetRandomVector(); //saying var rather than Vector3 as the return type.
Either ways, thanks for the assistance so I can keep moving forward.
Hook. -