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

AdvDupe Timer Error #14

Closed LindenCX closed 12 years ago

LindenCX commented 12 years ago

To reproduce with the latest version, spawn a few props, weld them together, save the file of them to the server, download it, then delete it from the server, reupload it, and it will give you this error when trying to spawn it.

This does not happen when just saving it to the server and reopening it.

AdvDupe Timer Error: lua/includes/extensions/string.lua:45: bad argument #1 to 'string_gmatch' (string expected, got nil) AdvDupe: Sending this ErrorMsg to Player [1][|SG| rokrox]

Thank you.

Nebual commented 12 years ago

Thanks a lot for the detailed steps!

It appears downloading any advdupe files frequently results in missing chunks of the file, which of course causes a multitude of errors later on. Uploading appears fine.

I shall port advdupe's upload/download protocols to the new net library, that should clear this up.

Edit: Yeah I think I see a for loop where the iterator isn't actually being used, that was probably how this started. Doesn't matter, net library'll mean I rewrite the whole section :P