wiremod / advduplicator

Garry's Mod add-on that allows a player to save and load contraptions
http://www.wiremod.com
Apache License 2.0
67 stars 43 forks source link

Wirelinked Damage Detector #27

Closed Lambda217 closed 11 years ago

Lambda217 commented 11 years ago

Attempting to copy a contraption with a Damage Detector wirelinked to an E2 returns:

[ERROR] addons/wire/lua/entities/gmod_wire_damage_detector.lua:279: bad argument #1 to 'GetByIndex' (number expected, got nil)

  1. GetByIndex - [C]:-1
    1. BuildDupeInfo - addons/wire/lua/entities/gmod_wire_damage_detector.lua:279
    2. PreEntityCopy - addons/wire/lua/entities/base_wire_entity/init.lua:43
      1. GetSaveableEntity - addons/adv duplicator/lua/autorun/server/advdupe.lua:512
      2. Copy - addons/adv duplicator/lua/autorun/server/advdupe.lua:717
      3. Copy - addons/adv duplicator/lua/autorun/server/advdupe.lua:726
      4. Copy - addons/adv duplicator/lua/autorun/server/advdupe.lua:726
        1. Copy - addons/adv duplicator/lua/autorun/server/advdupe.lua:726
        2. RightClick - ...plicator/lua/weapons/gmod_tool/stools/adv_duplicator.lua:150
        3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:276
TomyLobo commented 11 years ago

does this also happen without the wirelink? cause i dont see wirelink in that stack trace. to me it looks as if the entity that it was linked to either got removed, didnt get conveyed in the dupe or failed to instantiate

Lambda217 commented 11 years ago

you're correct, seems the damage detector was saving an invalid ent for some raisin. sorry for troubling you, and thanks for your help