Copying ammo to turrets and SAM?

is it posible to copy the ammo in the turrets ? I paste some raidable bases, with lots of turret, I can't set ammo for all turrets, it will take too much time :/

before the turret ammo where copied, but not until last wipe

i'm having the same issue, seems the wiring isn't pasting either.  I'm unable to even check or fill a turret after it's been pasted.
Same issue
Is there any word on a fix for this?  It's basically useless for me as i cant put turrets in bases used for raiding.
There was a change/opitmization with wires in the last Rust update and the way the plugin is storing wire joint positions is now causing an offset to the positions.
Is this going to be fixed in this mod as well as getting ammo to paste in turrets?  I'm having to replace each turret in the bases i paste and it's pretty time consuming.  I haven't found another mod to copy-paste yet.
please please please make an update !!!

Merged post

My server concept is broken since the ammo wasn’t copied, please make an update :(
Any news for an update, I can't paste my raidable bases since too much weeks.......
had a friend tweak mine so the turrets work again, it's a band-aid but it works for now.
Can you provide the code your friend changed? Or paste the copypast.cs here?
it should be incredible to have this code !!

So I noticed after this latest update that the bases I was pasting were missing walls. Anything higher than 1 wall was crumbling, even if I turned the stability off.  The copypaste mod updated 11/7, luckily I had a backup going and was able to retrieve my old config. So my friend tweaked our config to include the new locker update and keep the turrets working.  I am pasting it but not offering any kind of support.  You can change the amount of ammo loaded in turret under line 30 (default is 500 on mine).  This config works on my server but I can't guarantee it will work on yours.  He said it isn't the best coding but it's a temporary fix for now.  I've been using it for a month and have been ok.

Moderator edit: Please do no post random versions of plugins in forum posts.

If the moderator doesn't want to have edits to his code posted on the forums, feel free to edit your own so that it works again. Perhaps he will come out with a perm fix so that we won't have to edit it ourselves. These are the changes I made to WJ's code. 

Line 29: private ItemDefinition rifleAmmo;
Line 30: private int ammoAmount = 500;

Line 196: rifleAmmo = ItemManager.FindItemDefinition("ammo.rifle");
Line 1109: autoturret.inventory.AddItem(rifleAmmo, ammoAmount);

These changes will add 500 ammo to your turrets. I am sure you could add some for SAM too. 

The script copyright notice says we are allowed to make edits, so don't feel scared to do so. 

I hope this helps until he can find a better fix. It's a bandaid and kind of a crude fix. 

Thanks, 
TacoSauce
TacoSauce
If the moderator doesn't want to have edits to his code posted on the forums, feel free to edit your own so that it works again. Perhaps he will come out with a perm fix so that we won't have to edit it ourselves. These are the changes I made to WJ's code.

Showing the changes is fine, we just do not allow full versions posted in public forum posts. Feel free to share privately or show the edits to make as you did. Thanks.

Thanks for this temp fix! Worked perfectly! Line numbers were (for whatever reason) a little different for me, but editing the copypaste.cs file, and plopping those lines in... bingo!

For those needing more info, the first two lines go in after "public class CopyPaste : RustPlugin {" (without the quotations). Put it on a newline after the {

The third line (mentioned as 196) goes after "Dictionary<string, Dictionary<string, string>> compiledLangs = new Dictionary<string, Dictionary<string, string>>();"

The final line goes after "foreach (var userID in authorizedPlayers) {" ... at around line 1109 (again, minus the quotations)

So every base I paste in... if it has a turret.. now gets whatever ammo count is set. Saves me a heap of time.