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

Adv.Dupe Timer Error #59

Closed InstantMix closed 10 years ago

InstantMix commented 10 years ago

Bit different to the other timer error I looked up, I keep on getting this whenever I try to load one of my duped contraptions. Right clicking the contraption and adv.duping it works fine, however saving it as a file and trying to load it causes this error to spew up at 80%. No idea why this is.

Console contents:

AdvDupe Timer Error: lua/includes/extensions/table.lua:78: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: in function 'pairs'
    lua/includes/extensions/table.lua:78: in function 'Merge'
    lua/autorun/serialiser.lua:233: in function 'DeserialiseBlock'
    lua/autorun/serialiser.lua:365: in function <lua/autorun/serialiser.lua:363>
    [C]: in function 'xpcall'
    lua/autorun/server/advdupe.lua:1738: in function 'v'
    lua/includes/modules/hook.lua:84: in function <lua/includes/modules/hook.lua:67>
AdvDupe: Sending this ErrorMsg to Player [1][InstantMix]
AdvDupe-ERROR: "Failed Loading file"
jakeevans2014 commented 10 years ago

this too has been a problem I think its to do with garrys updates as on our servers all new dupes we create, we can save, but on loading we get those types of errors regarding "table nil value" and getting failed loading files!

Pantho commented 10 years ago

Confirmed, getting it on my servers since the update as well.

Computer600 commented 10 years ago

It seems for me only new dupes after the update have this loading problem so I think it might have something to do how the dupe it saved?

InstantMix commented 10 years ago

Computer, I made a complex contraption and then slowly removed parts of it retrying to save & load it in dupe. It appears ANY Wiremod component seems to screw it up quite badly. Wireless contraptions work fine.

Computer600 commented 10 years ago

Ahh I see, most of my contraptions use wiremod so that could be it

Pantho commented 10 years ago

Hmm, just got the error again after testing with the updated. The file was saved yesterday, was it saving that's broken or loading?

Same error that InstaMix posted.

Divran commented 10 years ago

Saving was broken. Files saved before the error are fine. Files saved while the error was there are fucked forever. You have to make new files.

InstantMix commented 10 years ago

How long will this take to be updated on the workshop version of dupe as I consider this a fairly major bug, many other users are experiencing the same problems.

Divran commented 10 years ago

all we have to do is pull this https://github.com/wiremod/advduplicator/pull/60 and it'll be on workshop

Anticept commented 10 years ago

It's pulled and workshop updated.