Coder Social home page Coder Social logo

advdupe2's People

Contributors

abigailbuccaneer avatar anticept avatar aspect12 avatar astonedpenguin avatar brandonsturgeon avatar denneisk avatar divran avatar dvdvideo1234 avatar emspike avatar grocel avatar jack37 avatar kotvacya avatar matiasah avatar mattjeanes avatar mista-tea avatar mitterdoo avatar nebual avatar notaporcupine avatar python1320 avatar stepa2 avatar tbbadmofo avatar thegrb93 avatar tomylobo avatar vurv78 avatar weol avatar wrefgtzweve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advdupe2's Issues

Not work on Server(Dedicated)

I put "AdvDupe2" in Addons folder on server's ftp(as Garry's mod), but tool don`t appear in tools menu.
But in singleplayer or listen server, it appear.
Sorry fo my bad English.

Keep upright doesn't work when pasting something

[AdvDupe2NotifyPaste]    Player: [playername] Pasted File, [filename] with, 56 Entities and 84 Constraints.
[AdvDupe2Notify]    Pasting...
[AdvDupe2Notify]    ERROR, Failed to create Keepupright Constraint!
[AdvDupe2Notify]    ERROR, Failed to create Keepupright Constraint!
Warning: Unhandled usermessage 'Undone'
[AdvDupe2Notify]    Finished Pasting!

Besdes that, dupe is pasted correctly.
In the dupe there is no E2, just some simple wire.

Spawners of composite props become faulty after being duplicated themselves

When you make a spawner out of two or more props welded together and then duplicate the resulting spawner itself, very often it will be duplicated with offsets between ghosts of welded props. This applies to props produced from this duplicated spawner, they're all offset and that results in them flying at great speed somewhere at the moment of spawning. In rare cases that doesn't happen and the duplicated spawner works, but it seems to be random. Moreover, attaching the spawner to some contraption before duplication of the entire thing seems to guarantee incorrect behaviour for sure.

All this means it would be impossible to save and load contraptions with composite prop spawners in them. No custom multipart rocket launchers and whatnot.

Workflow for deployment

Now Wiremod doesn't need any hacks and workarounds to work okay with AdvDupe2, we should get it up on the Workshop.

attempt to index field 'Player' (a nil value)

AdvDupe2Notify] addons/prop protection/lua/patchprotect/server/propprotection.lua:50: attempt to index field 'Player' (a nil value)

After this is printed to my console the dupe i am trying to spawn deletes itself.

Unhandled usermessage 'Undone'

[AdvDupe2Notify] Pasting...
[AdvDupe2Notify] addons/advdupe2/lua/advdupe2/sv_clipboard.lua:757: attempt to index field 'EntityList' (a nil value)
Warning: Unhandled usermessage 'Undone'

Just downloaded the advanced duplicator 2 tool and this is the error message I get.

If I'm ranked admin or above in my server, this error doesn't happen, however, everyone else gets this issue.

Duplicator not working on server

Ok so I am running a spacebuild server and I keep getting this message everytime I try to paste something that is saved:

[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:282: Calling net.Start with unpooled message name [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. SendFileToServer - addons/advdupe2/lua/advdupe2/cl_networking.lua:282
    3. Function - addons/advdupe2/lua/advdupe2/cl_networking.lua:290
     4. unknown - lua/includes/modules/usermessage.lua:87

And I get this everytime I try to copy and paste something:

[AdvDupe2Notify]    addons/advdupe2/lua/advdupe2/sv_clipboard.lua:1029: attempt to perform arithmetic on field 'SpawnRate' (a nil value)
Warning: Unhandled usermessage 'Undone'

And after I try I try to paste something it says "Advanced Duplicator 2 is busy".
Adv Dupe 2 works on all my other servers, but I have yet to restart my other servers in ages.
The original adv dupe works fine on this server.

Issue with Spacebuild

Some people on my server get this error:
"sbep_base_docking_clamp"
Entity Class Black listed, "sbep_base_door"
I on the other hand do not. I have advdupe2 local on my client but they do not. I looked through the code but found nothing really helpful so I figured I would file a bug report.

Hoverballs pasted by AdvDupe2 remember their original Z axis location.

As I said in title- Hoverballs copied and pasted by advdupe 2 are saved with their original (at the time of copying) WorldPos Z, causing them to hump the groud after being pasted somewhere higher.

  1. Load flatgrass
  2. Go to skybox under the spawn
  3. Place an object and attach hoverballs to it
  4. Dupe the object
  5. Go on spawn, try to paste the object
  6. Well.. no profit, as the hoverballs want to go to their original location.

Allow duplicating of prop persistency state

When pasting a dupe with props that are set to persistent, I need to redo all props' persistency state again every time, because it looks like AD2 can't save that. It would be a convenient time saver if this feature was included

Request: Hook instead of print @sv_clipboard.lua#L1377-1381

I apologize for the ambiguous title.

Lines 1377 - 1381 print information about the dupe currently being spawned.

I believe it would be more beneficial to run a custom hook that allows external addons to receive and/or block this text.

For an example use-case, I currently log tool events and entities being spawned in case I need to review someone's attempts to crash my server. Since the dupe information is only printed to console, I don't currently have a way of recording what dupe a player is spawning (with GMod's logging disabled). Adding a hook call would allow external addons, like mine, to obtain this information.

It could be as simple as this:

if ( hook.Run( "AdvDupe2NotifyPaste", Player, Player.AdvDupe2.Name, #Queue.SortedEntities, #Player.AdvDupe2.Constraints ) ~= nil ) then
    print("[AdvDupe2NotifyPaste]\t Player: "..Player:Nick().." Pasted File, "..(Player.AdvDupe2.Name or "").." with "..#Queue.SortedEntities.." Entities and "..#Player.AdvDupe2.Constraints.." Constraints.")
end

1st argument is the player that is spawning the dupe.
2nd argument is the dupe's name, or nil if there is none.
3rd argument is the number of entities.
4th argument is the number of constraints

Just like the current message printed.

attempt to perform arithmetic on field 'HeadOffset' (a nil value)

This one happened when tried to spawn contraption made in single player in some server. It had no wire entities in it, just basic props. No special tools were used.

[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:113: attempt to perform arithmetic on field 'HeadOffset' (a nil value)
  1. LoadGhosts - addons/advdupe2/lua/advdupe2/cl_networking.lua:113
   2. callback - addons/advdupe2/lua/advdupe2/file_browser.lua:439
    3. Decode - addons/advdupe2/lua/advdupe2/sh_codec.lua:483
     4. DoClick - addons/advdupe2/lua/advdupe2/file_browser.lua:439
      5. OnMouseReleased - lua/vgui/dlabel.lua:206
       6. unknown - lua/vgui/dmenuoption.lua:116
[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:184: attempt to index a nil value
1. LoadGhosts - addons/advdupe2/lua/advdupe2/cl_networking.lua:184
2. callback - addons/advdupe2/lua/advdupe2/cl_networking.lua:229
3. Decode - addons/advdupe2/lua/advdupe2/sh_codec.lua:483
4. InitializeUpload - addons/advdupe2/lua/advdupe2/cl_networking.lua:229
5. DoNodeLeftClick - addons/advdupe2/lua/advdupe2/file_browser.lua:174
6. unknown - addons/advdupe2/lua/advdupe2/file_browser.lua:993 

Rearrange directory structure

The AdvDupe2 SVN project has a somewhat weird directory structure - it has the addon root in AdvDupe2/, the C++ source code in source/ and distributes C++ binaries in lua/.

Should we rearrange things so that the addon root is the git root, as it is with wiremod/wire and wiremod/advduplicator?

Possible Server Crashing Paste Bug

So I have been playing around after the last GMod update and I have noticed that ADV Dupe 2 is being quite buggy. I have noticed that many people has been crashing servers with it, which didn't happen before the GMod update.
I haven't yet tried it in Singleplayer/Listen client, but apparently, ADV Dupe 2 crashes when you try to open and then spawn a file, after undoing a previous dupe of a different file. I have tested it in many servers, from the weakest to the strongest GMod servers and all end up in the same.
There's no error log however, it's like it was functioning normally and then poof, server crashes.

I'm not really implying that's concretely the addon's fault, but just wondering if we can go into some research to stop this. It kinda prevents me from building most of times, especially when theres people on the server and try to spawn dupes either to test their contraptions, show them or use them.

Thank you for your attention and have a nice day.

Exploit makes all dynamic props invisible on preview

The duplication was posted on the DarkRP forums a while ago:

http://pastebin.com/M9WFxF0G

http://forum.darkrp.com/threads/adv-dupe-2-old-exploit.5317

They say it's an old exploit. I reckon it was initially made to crash the server, given all the citadel models. I couldn't reproduce the crash, but all dynamic props and effects (doors, physgun beams) go invisible when I so much as preview it. Depending on whether other people can see a preview, this dupe will fuck other people's clients up as well. Unloading the preview in any way will NOT resolve the problem. It's there until you rejoin.

2015-07-06_12-11-35

Exploit like this one have a huge effect on server owners' decisions to disallow dupe uploading, as can be seen in the thread link above.

Adv. dupe 2 version btw is 3585288

Workflow for integration

To facilitate efficient integration of advdupe2, we're following a simple workflow plan. Basically, we need to:

  • import advdupe2 and examine the codebase, and make sure it's worth the effort to integrate into wiremod.
  • re-license it to apache 2; the permission from the developers have already been obtained.
  • fix the codebase such that we can remove the compatibility workarounds and hacks placed into the Wiremod codebase.

Once this is done then the integration milestone will be considered complete, and this issue thread closed.

A new issue thread will then be opened for deployment, which will serve the purpose of pushing adv dupe 2 to the workshop.

Please do not use this thread for chatter or issue reporting. It exists to comment on the status of this milestone, and to determine when it is appropriate to move on to deployment.

Opening another file while pasting causes bugged 'Already opening file' error

Opening another file while pasting causes 'Already opening file' error which won't go away until a map restart.

I think the steps that happened were,

  1. Open a file and paste
  2. Before the file is finished pasting, open another file. (This file will begin ghosting)
  3. Click to attempt pasting. "Adv duplicator is busy"
  4. The previous file finished pasting.
  5. Click to try pasting my second file, but it begins pasting the first file again.
  6. Push z before the pasting finishes.
  7. Try reopening the 2nd file. "Already opening file"

AreaCopy problems with GitHub version but not the outdated Google Code version

Hello,

The title is a bit odd but essentially several players on my Sandbox server have pointed out that AdvDupe2 fails to paste their custom dupes that are over 500 props if they area copy the original paste. For example, a 625-prop Lamborghini car with SProps will paste as 625 props normally, but if they area copy it, pasting it results in only 503 props being spawned.

I had previously trying debugging the area copy functionality several months ago with a player's very large house dupe and found it did the same thing on singleplayer, so I ruled it out having to do with my server's custom systems.

Just today, however, another player brought it to my attention. I started a vanilla server with only SProps (workshop)/Wiremod (workshop)/Advdupe2 (github) and had the player try pasting, areacopying, and then pasting again. The result was the same -- only 503 props out of 625.

The player reported that they didn't have this issue in singleplayer, so he uploaded his version of AdvDupe2 to dropbox and I put it on the vanilla server.

Everything worked perfectly. Turns out the version he gave me was SVN'd so I checked the logs with TortoiseSVN and found that it came from the old GoogleCode version at https://code.google.com/p/advdupe2/, revision 174. The problem is that version hasn't been updated for nearly 2 years, and yet it seems to work perfectly.


That being said, is there any obvious reason that might cause the GitHub version's of area copy to fail with these sorts of dupes compared to the older version? I'd usually try diff'ing both versions but I don't have the time this summer.

If you'd like to have the dupe to try and replicate the issue, I can ask the player if he doesn't mind.

Already Opening File

Whenever I try to open a dupe, it spits out a lua error. Sometimes (rarely) it will work but its refusing to work.

[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:189: attempt to index a nil value
  1. LoadGhosts - addons/advdupe2/lua/advdupe2/cl_networking.lua:189
   2. callback - addons/advdupe2/lua/advdupe2/cl_networking.lua:243
    3. Decode - addons/advdupe2/lua/advdupe2/sh_codec.lua:483
     4. InitializeUpload - addons/advdupe2/lua/advdupe2/cl_networking.lua:241
      5. DoNodeLeftClick - addons/advdupe2/lua/advdupe2/file_browser.lua:174
       6. unknown - addons/advdupe2/lua/advdupe2/file_browser.lua:993

Open file while opening file lockup

Opening a file while opening a file will warn you that advance duplicator 2 is already opening a file, but it will not allow you to open a file whilst in that session any more, you need to rejoin.

Wires Randomly Breaking

When I copy something with AD2 area copy and spawn it again, random wire connections will un-wire themselves for no reason. No errors are reported via the console or anything. This is exceptionally annoying on complex contraptions; sometimes the entire thing will un-wire itself completely. Is this a known issue, and is there a fix? EDIT: Nevermind, there was a console error (stupid me). Here it is:

[AdvDupe2NotifyPaste]    Player: Perdition Pasted, 31 Entities and 10 Constraints.
[AdvDupe2Notify]    Pasting...
AD2 PostEntityPaste Error: lua/wire/server/wirelib.lua:851: attempt to index field 'OutputAliases' (a nil value)
AD2 PostEntityPaste Error: lua/wire/server/wirelib.lua:851: attempt to index field 'OutputAliases' (a nil value)
AD2 PostEntityPaste Error: lua/wire/server/wirelib.lua:851: attempt to index field 'OutputAliases' (a nil value)
AD2 PostEntityPaste Error: lua/wire/server/wirelib.lua:851: attempt to index field 'OutputAliases' (a nil value)
AD2 PostEntityPaste Error: lua/wire/server/wirelib.lua:851: attempt to index field 'OutputAliases' (a nil value)
Warning: Unhandled usermessage 'Undone'
[AdvDupe2Notify]    Finished Pasting!

Relicense as Apache2

Currently AdvDupe2 is under the MIT license, which is practically identical to Apache2 (assuming that nobody on the AdvDupe2 team patented any techniques in their code).

For the sake of consistency, we'll switch it to Apache2. According to @Anticept in #1, the permission from the original developers has already been obtained.

Allow pasting of broken contraptions

I think a feature should be added in which dupe2 doesn't remove your contraption when encountering a lua error :s.

I've had quite a few times where my contraption has been removed and becomes unusable for something as simple as a physobj, and since I don't feel like picking apart the serialization format for this tool, It becomes very difficult to fix my contraption .

This is more of a request, as failure to do this has destroyed much of my work. Could there perhaps be a setting for "safe dupe", which just wraps any constraint function in a pcall on dupe ?

Duping a prop doesn't show a ghost of it.

I was recently played Garry's Mod, and everything was fine regarding Adv Dupe 2. Next time I logged on it stopped working correctly though. When you dupe a Garry's Mod prop a ghost of it won't show up and when you dupe a prop which is from a addon like Sprops it will show up as errors for a ghost. When I load a saved dupe it shows the ghost fine though. Here is the error I get when I dupe something:

[ERROR] addons/adv dupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:1738: attempt to index local 'Phys' (a nil value)
  1. MakeGhostsFromTable - addons/adv dupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:1738
   2. fn - addons/adv dupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:1770
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

If anyone knows a fix to this problem it would be highly appreciated. (I have tried reinstalling the addon already)

Calling net.Start with unpooled message name

[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:281: Calling net.Start with unpooled message name [http://goo.gl/qcx0y]
  1. Start - [C]:-1
   2. SendFileToServer - addons/advdupe2/lua/advdupe2/cl_networking.lua:281
    3. Function - addons/advdupe2/lua/advdupe2/cl_networking.lua:289
     4. unknown - lua/includes/modules/usermessage.lua:87

Linux server

Loading Issue cl_Networking

[ERROR] addons/advdupe2/lua/advdupe2/cl_networking.lua:195: attempt to index local 'v' (a number value)
  1. LoadGhosts - addons/advdupe2/lua/advdupe2/cl_networking.lua:195
   2. callback - addons/advdupe2/lua/advdupe2/cl_networking.lua:245
    3. Decode - addons/advdupe2/lua/advdupe2/sh_codec.lua:489
     4. InitializeUpload - addons/advdupe2/lua/advdupe2/cl_networking.lua:243
      5. DoNodeLeftClick - addons/advdupe2/lua/advdupe2/file_browser.lua:174
       6. unknown - addons/advdupe2/lua/advdupe2/file_browser.lua:993

This is with specific entities and with Linux. Not sure about any other OS's
Only happens on some dupes.

Cannot duplicate Wire hydraulics

Hello, I have a contraption that uses a wire hydraulic between a wing and a ballsocketed fin. However, after duplicating the contraption, the hydraulics fail to be preserved and the following error is thrown: 'Failed to create WireHydraulic Constraint!'

Is this common?

Thanks for your time.

Area Copy Not Working

When attempting to use the are copy function, an error occurs and the console prints this:

[ERROR] addons/trunk/lua/weapons/gmod_tool/stools/advdupe2.lua:48: attempt to index field 'EntityList' (a nil value)
  1. FindInBox - addons/trunk/lua/weapons/gmod_tool/stools/advdupe2.lua:48
   2. RightClick - addons/trunk/lua/weapons/gmod_tool/stools/advdupe2.lua:228
    3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:279

This only happens after the latest update for me. Normal copy works fine, and pasting as well.

Pasting randomly breaking

After a while of playing on the same map for some people pasting will stop working. There will be a notification saying the pasting was successful but nothing is actually spawned. No errors are logged on the server and it only happens to a few clients, not the entire server.

So far i have encountered this error:

[ERROR] addons/advdupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:1805: attempt to index a nil value
  1. func - addons/advdupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:1805
  2. unknown - lua/includes/modules/net.lua:30

And one was reported by a player where in lua/advdupe2/sv_clipboard.lua line 757 EntityList is nil

A map reload fixes these errors for a while

DummyTrace error regarding Fix #18

Hello,

Regarding the fix in #18 (f062d27), trying to Area Copy now causes the following error:

 [ERROR] addons/advdupe2_git/lua/weapons/gmod_tool/stools/advdupe2.lua:47: attempt to call field 'DummyTrace' (a nil value)
  1. FindInBox - addons/advdupe2_git/lua/weapons/gmod_tool/stools/advdupe2.lua:47
   2. RightClick - addons/advdupe2_git/lua/weapons/gmod_tool/stools/advdupe2.lua:223
    3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:281

I am using the workshop version of Wiremod currently. Has the DummyTrace function not been added to the current workshop version of Wiremod?

Game permanently freezes before paste completes.

As the title states, if I open a dupe, paste it, then copy it, save it, and open the new save of it then paste it, the game more or less crashes (permanently freezes). This only occurs in singleplayer and does not effect multiplayer at all.

To be specific on how to replicate it:

  1. Open a dupe.
  2. Paste said dupe.
  3. Copy the dupe and save it as something else.
  4. Open the new save you just made.
  5. Paste it.
  6. Somewhere RIGHT before the paste is completed, the game perma-freezes.

Currently using the latest version of AdvDupe2 and have gotten a new copy while trying to fix this. Also, I haven't gotten any new addons since it started doing this and I'm fairly certain I haven't hit the addon cap.

Due to it freezing and not crashing, I don't have a log to give. If anyone happens to know how I can get a log please let me know.

Lua errors when saving

When I try to save a prop, I get this error in console:

[ERROR] addons/advdupe2-master/lua/advdupe2/sh_codec.lua:446: attempt to index local 'encodedDupe' (a nil value)
  1. Decode - addons/advdupe2-master/lua/advdupe2/sh_codec.lua:446
   2. func - addons/advdupe2-master/lua/advdupe2/cl_networking.lua:62
    3. unknown - lua/includes/modules/net.lua:32

tool wont spawn parented props sometimes

what i mean is the tool works fine with parented props 99% of the time but sometimes i can try to save something, spawn it to check it saved properly, and the spawn + the save will have a bunch of missing props
i can unparent and reparent the prop to fix it but then it will just pick a bunch of other random props to not save or it still wont work anyway

attempt to index field 'context' (a nil value)

[AdvDupe2Notify]    Pasting...
[AdvDupe2Notify]    addons/wire/lua/entities/gmod_wire_expression2/init.lua:109: attempt to index field 'context' (a nil value)
[AdvDupe2Notify]    Finished Pasting!
  1. Spawn two props and weld them together
  2. Place E2 on one of the props
  3. Change sbox_maxprops to 3

Now if you dupe the prop with the E2 on it, you will get the error after pasting, which also results in removing both props (whole contraption when there are many props). If you dupe the second prop without E2, it will spawn fine.

Basically this is happening if you hit the prop limit while pasting and the contraption has E2 in it.

Error in tool code when duplicating before C-menu has been viewed

[ERROR] addons/advdupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:2177: attempt to index field 'File' (a nil value)
  1. func - addons/advdupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:2177
   2. unknown - lua/includes/modules/net.lua:30
  1. Choose the AdvDupe2 tool
  2. Disconnect, start a new game
  3. Switch to the toolgun
  4. Duplicate something
  5. The above error shows.

As soon as the context menu for AdvDupe2 is viewed it all works fine.

Option to not draw spawner ghosts

Using area copy on something with a contraption spawner attached results in the props used to make the contraption spawner also being copied. This kinda defeats the purpose in a way. For example, I made a missile that is ~30 entities. To mount 4 of these on a 150 prop jet would mean 120 extra props (not ideal). Solution? Add 4 spawners which remove themselves after spawning said missile, theoretically only adding 4 props while retaining functionality. This is not the case right now.

I suggest the addition of a console command similar to the ones in wire which allow you to set the model of things (wire_lamp_model ). Maybe Advdupe2_spawner_model ?

Not saving Disabled Collisions setting on objects

I just tested this and confirmed the bug.

Disabling collisions on an object (either by right-clicking and choosing "disable collisions" or by right-clicking using NoCollide tool) does not save in Advanced Duplicator 2. I can disable collisions on multiple objects, save the contraption, and when I respawn the contraption the disabled collisions are re-enabled to the object's default setting (which is usually enabled collisions).

A fix would be greatly appreciated.

There's no check for spawnable or adminonly

Really?? People are spawning nukes in my server thanks to this tool.

if ( !scripted_ents.GetMember( data.Class, "Spawnable" ) ) then return end
if ( scripted_ents.GetMember( data.Class, "AdminOnly" ) ) then return end

Please

Error when duping E2s containing tables with arrays

Duplicate this E2 and save it.

Color = vec(255,98,0)

Table = table(
    array( Color ),
    array( Color )
) 

Error when saving: DEBUG CHECK: File contains EOF errors.

[ERROR] addons/advdupe2/lua/advdupe2/sh_codec.lua:120: attempt to index upvalue 'buff' (a nil value)
  1. unknown - addons/advdupe2/lua/advdupe2/sh_codec.lua:120
   2. write - addons/advdupe2/lua/advdupe2/sh_codec.lua:98
    3. serialize - addons/advdupe2/lua/advdupe2/sh_codec.lua:343
     4. Encode - addons/advdupe2/lua/advdupe2/sh_codec.lua:387
      5. unknown - addons/advdupe2/lua/weapons/gmod_tool/stools/advdupe2.lua:621
       6. unknown - lua/includes/modules/concommand.lua:69

Error when loading the saved file:

Could not open addons/advdupe2/lua/advdupe2/sh_codec.lua:237: expected value, got EOF
or
Could not open addons/advdupe2/lua/advdupe2/sh_codec.lua:368: attempt to index upvalue 'buff' (a nil value)

Removing the Table = or replacing the Color variable inside array by the vec(255,98,0) will fix the problem.

Backwards compatibility with advdupe1

One of the main reasons why I don't use advdupe2 is because I have about 500 dupes, and I fear that they might not be opened correctly with advdupe2.

Is there any backward compatibility with the original Advanced Duplicator, at least for migrating and resaving under the new format?

Crash when unfreezing parented entities

Originally from wiremod/wire#730 by @Cre8or:

Hello,

while working on an aircraft that uses ACF, I came across a reoccuring error where everytime I spawned it with Adv Dupe 2 and unfroze it using the physgun's double-R method, my server would instantly crash.

I tried to pinpoint the problem by doing some tests with a few simple props, and I came up with a step-by-step guide on how to reproduce the issue:

  • spawn any two props
  • freeze both of them
  • parent one prop to the other using the parenting tool of your choice (NOTE: make sure the tool does not add any constraints while parenting)
  • dupe both props with Adv Dupe 2 using the area copy (due to the lack of constraints) and paste a copy of them
  • using the physgun, double-tap R to unfreeze all entities

As I continued looking for the exact cause of this issue, I discovered a few bits of information that may help pinpoint the problem:

  • when unfreezing the props that were parented instead of a dupe of them, nothing bad will happen, the props will unfreeze as expected. This leads me to believe that the way Adv Dupe 2 sets up the parent relationships between the props may be the cause of this issue.
  • adding a weld constraint between both props will fix the issue, and cause the props to unfreeze normally after duping. This effectively prevents the crash, but it means every prop that is parented will need to be welded.
  • this problem can be triggered on previous dupe2 saves, even when they seem to behave fine (and can be unfrozen too). To do this, manually grab one of the parented props with the physgun and freeze it. Then double-hit R to unfreeze all and the server should crash too.
  • Adv Dupe 1 doesn't seem to have this issue, however it has its own flaws which is why I want to use Adv Dupe 2 for this project (mostly because ACF parts don't spawn correctly with Adv Dupe 1).
    this issue happens both in multiplayer and in singleplayer
  • Because of this issue I am afraid of resuming work on my jet, as I'm uncertain whether I may have to start from scratch or even scrap the entire project due to this problem. Also I am very confused by the fact that I haven't come across this issue before in the past, as I use Adv Dupe 2 a lot. Perhaps this issue could be linked to a recent GMod update?

If any further information is required, please let me know. I am very much interested in figuring this problem out (and hopefully finding a solution to it too).

Appears to ignore restrictive spawning addons (Evolve, etc)

Got this:

function PLUGIN:PlayerSpawnSENT( ply, class )
    if ( GAMEMODE.IsSandboxDerived and table.HasValue( evolve.privileges, ":" .. class ) and !ply:EV_HasPrivilege( ":" .. class ) ) then
        evolve:Notify( ply, evolve.colors.red, "You are not allowed to spawn this entity!" )
        return false
    end
end

But advdupe2 seems to ignore that completely and spawn it anyway, which means people are able to bypass entity restrictions.

Clipboard error

Seem to be getting this randomly when trying to paste anything.
This is actually preventing anything being pasted.

[ERROR] addons/advdup2/lua/advdupe2/sv_clipboard.lua:1406: attempt to call global 'LoadSents' (a nil value)
  1. unknown - addons/advdup2/lua/advdupe2/sv_clipboard.lua:1406
   2. include - [C]:-1
    3. unknown - addons/advdup2/lua/autorun/server/advdupe2_sv_init.lua:10

Dupe spawner help

Hi, firstly I know this isn't an issue, but I couldn't find any other way to look for the developers help.

I'm busy making an addon, and part of that addon requires dupes to be spawned for players, thus so they cannot cheat by spawning more advanced vehicles. I'd like to know if I have permission to use your functions in order to make this work, but mainly how would I go about using the functions in order to spawn a certain dupe file, without using a toolgun, just through lua. I've looked through the code and have seen a huge selection of functions that link together, like the selection of the file leads to the decoding of the file, which then leads to giving information to the contraption spawner function. I guess my question is, is there any quick function way of inputting the dupe file, and a position, in order to end with the end result of spawning the dupe. If not, could I possibly be given a list of clear instructions on which functions I would need to use to get this result, and what data do I have to input into the function to do it correctly.

I would gladly show you my ideas and give you a copy of the gamemode when it's done as a token of my appreciation.

Thanks,
Enyx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.