Commit Graph

348 Commits

Author SHA1 Message Date
Sparky
22b3474384
Added Advdupe2 warning error for invalid class args (#258)
* Added Advdupe2 warning error for invalid class args

* Guard the recursive copy from cyclic tables

* Move done assignment to earlier

* Change ErrorNoHalt to print. (This error happens a lot)
2019-12-28 18:02:33 -05:00
Sparky
ef095f6764
Merge pull request #259 from thegrb93/unpack-fix
Use nil instead of false in missing args
2019-12-28 17:32:23 -05:00
thegrb93
f45c5137a3 Make sure ply.AdvDupe2 exists 2019-12-03 10:32:46 -06:00
Garrett Brown
c304a57d10 Fix lua error 2019-11-18 23:04:47 -05:00
Garrett Brown
4fcf7182e3 Use nil instead of false in missing args 2019-11-06 19:25:40 -05:00
TomyLobo
1c876aefa5
Fix whitespace
Travis complained.
2019-06-16 11:48:44 +02:00
Garrett Brown
42cb82cd18 Remove unused umsg 2019-06-07 21:27:30 -04:00
thegrb93
5bfdbe1df6
Fix ghosts when paste at original location is checked
Fixes: #242
2019-06-05 14:42:05 -04:00
Garrett Brown
0f60503ef6 Patch trail exploit. Fixes: #241 2019-06-02 22:16:02 -04:00
Garrett Brown
d8dd575690 Merge branch 'area-copy-size'
# Conflicts:
#	lua/weapons/gmod_tool/stools/advdupe2.lua
2019-06-02 18:52:05 -04:00
Garrett Brown
062fee1d7f Some bugfixes 2019-06-02 03:06:53 -04:00
Garrett Brown
46aa71a0e4 Fix offset 2019-06-02 02:49:39 -04:00
Garrett Brown
cadd5125ea Increase max area copy size to map width 2019-06-02 00:51:32 -04:00
Garrett Brown
0537d3392c Merge branch 'ghost-refactor' into ghost-parent-fix 2019-06-02 00:34:23 -04:00
Garrett Brown
4405e8d617 Missed a current ghost = 1 2019-06-02 00:34:15 -04:00
Garrett Brown
52f2383184 Make ghosts no longer use setparent 2019-06-02 00:33:39 -04:00
Garrett Brown
c7e49f94ad Finished ghost bone fix 2019-06-01 23:05:05 -04:00
Garrett Brown
33fe446dda Forgot to remove these 2019-06-01 21:17:09 -04:00
Garrett Brown
162b052082 Remove badly coded feature 2019-06-01 20:51:23 -04:00
Garrett Brown
1eebb7e0d8 Refactored ghost code 2019-06-01 20:46:17 -04:00
Garrett Brown
26a47da497 Made file number have 0 prepended to fix sorting 2019-06-01 19:57:12 -04:00
Garrett Brown
072b975d36 Empty string optimize 2019-05-08 21:33:10 -04:00
Garrett Brown
7b1d24915c Fixed file naming stuff 2019-05-05 22:57:31 -04:00
Garrett Brown
30c797bfc4 Fix ghosts 2019-05-04 17:07:55 -04:00
Garrett Brown
454ca60078 Move file related stuff to their own file 2019-05-04 03:09:37 -04:00
Garrett Brown
7b67d4f329 Cleanup and fixed progress bar. Need to fix file downloading and test 2019-04-14 02:19:11 -04:00
Garrett Brown
7fe03cf7b9 Refactoring netcode 2019-04-13 04:15:01 -04:00
Garrett Brown
20063e6519 Fix constraint optimization not working on servers 2019-04-09 01:18:52 -04:00
thegrb93
f294fe2551
Merge pull request #206 from thegrb93/find-parented-props
Add parented entities to copy. Fixes: #204
2019-02-14 14:30:40 -05:00
thegrb93
01e4bccf53
Merge pull request #207 from thegrb93/add-constraint-warning
Add warning message when attempting to sort over 100 constraints
2019-02-14 14:29:01 -05:00
thegrb93
d81ad2f3d6
Merge pull request #208 from thegrb93/fix-info-not-updating-in-singleplayer
Fixed info not working in singleplayer. Fixes: #199
2019-02-14 14:28:46 -05:00
Garrett Brown
420f06e4c8 Fixed preview functionality. Fixes: #209 2019-02-11 01:46:12 -05:00
Garrett Brown
d58d2af950 Fixed info not working in singleplayer. Fixes: #199 2019-02-11 01:23:06 -05:00
Garrett Brown
c2f814200e Add warning message when attempting to sort over 100 constraints 2019-02-10 23:58:04 -05:00
Garrett Brown
69455e640c Add parented entities to copy. Fixes: #204 2019-02-10 23:42:26 -05:00
Garrett Brown
7fed519938 Made sorting by connections optional 2019-01-22 23:48:52 -05:00
Garrett Brown
af66229251 Accidentally removed a needed line 2019-01-20 02:27:10 -05:00
Garrett Brown
a8cfc1718a Improved constraint sorting more 2019-01-20 00:27:02 -05:00
Garrett Brown
c4aebd310c Improved sorting so nocollides are last. Also fixed lua error and bug with unsorted constraints. 2019-01-11 22:43:28 -05:00
Garrett Brown
1c7b67ef0c Revert "Cleanup old code and fix constraints with world not rotating correctly"
This reverts commit c4b8020fb5.
2019-01-10 19:58:02 -05:00
Garrett Brown
c4b8020fb5 Cleanup old code and fix constraints with world not rotating correctly 2019-01-10 01:14:21 -05:00
thegrb93
1d51a9f058
Merge pull request #186 from thegrb93/fix-styles
Made coloring using style system
2018-12-29 15:33:25 -06:00
thegrb93
fde269f116 Thought I deleted this 2018-12-29 02:18:54 -06:00
thegrb93
9bd7c4dc56 Made coloring using style system 2018-12-28 17:38:18 -06:00
Garrett Brown
01286154ac Made only phys_constraint_system constraints play into the sorting 2018-12-21 15:08:28 -05:00
thegrb93
b5985404b6
Merge pull request #179 from thegrb93/fix_undo_name
Fix undo name
2018-12-18 19:20:49 -05:00
Garrett
115deefc61 Fix undo name 2018-12-16 22:27:57 -05:00
thegrb93
c0e990433a
Merge pull request #177 from thegrb93/minimize-constraintsystems
Order constraints such that constraint-systems are minimized
2018-12-10 09:46:38 -05:00
Garrett
59d6f77b09 Order constraints such that constraint-systems are minimized 2018-12-09 05:58:52 -05:00
Garrett
4937a6dddd Typo fix 2018-12-07 00:37:36 -05:00
Garrett
53777ff57f Improvements 2018-12-06 02:35:09 -05:00
Garrett
b5be7b668a Remove unneeded null escaping 2018-12-03 20:50:20 -05:00
thegrb93
87be23879c
Merge pull request #168 from thegrb93/refactor-decode-error
Refactor decode error handling
2018-12-02 22:39:01 -05:00
Garrett
62db67ad38 Refactor decode error handling 2018-12-01 17:46:50 -05:00
Garrett
9db4bd69a4 Fixed lua error 2018-11-30 23:44:35 -05:00
Garrett
9d48b0b06f Add wire detection to copy 2018-11-29 23:33:37 -05:00
Garrett
25d441e233 Apply entity mods alphabetically for more consistent pasteing results 2018-11-26 02:44:10 -05:00
Garrett
f15df1ce1f Fixed another error related to using advdupe2 before menu is built 2018-11-24 21:47:17 -05:00
thegrb93
58f9acb723
Merge pull request #138 from thegrb93/newcodec2
Codec improvement
2018-11-21 01:44:22 -05:00
Garrett
f95f3e596b Fix bugs and made codec error msg user friendlier 2018-11-21 01:24:38 -05:00
thegrb93
f6f8be5912
Merge pull request #153 from thegrb93/fix-118
Add timeout for networking
2018-11-20 23:35:53 -05:00
Garrett
518897f39e Add clientside timeout too 2018-11-20 23:34:58 -05:00
thegrb93
8c297d22c3
Merge pull request #150 from thegrb93/spawn-rate
Allow greater than 1 spawnrate
2018-11-19 23:29:18 -05:00
thegrb93
5fc5bc1148
Merge pull request #128 from thegrb93/gmodanchorfix
Fixes gmod anchor weirdness
2018-11-19 23:26:47 -05:00
thegrb93
1b6dad3c11
Merge pull request #62 from thegrb93/limit_fix
Don't stop duping if a limit gets hit
2018-11-19 23:24:45 -05:00
thegrb93
81ce2e8783
Merge pull request #145 from thegrb93/fix-issue7
Fix error when getting dupe info before creating context menu
2018-11-19 23:24:28 -05:00
thegrb93
06ef976d77
Merge pull request #151 from thegrb93/fix-149
Fix file browser not deleting folders
2018-11-19 23:24:08 -05:00
thegrb93
8946e94e04
Merge pull request #154 from thegrb93/fix-152
Fix CPanel building too soon
2018-11-19 23:23:34 -05:00
Garrett
c52a7e642d Made a really stupid complex function simpler. 2018-11-01 22:26:13 -04:00
Garrett
af018f692e Fix CPanel building too soon 2018-10-27 16:31:26 -04:00
Garrett
2b1a94ad87 Add timeout for networking 2018-10-27 16:03:57 -04:00
Garrett
26fdab7a45 Fix file browser not deleting folders 2018-10-27 14:49:05 -04:00
Garrett
e7adf1cbac Cleanup 2018-10-27 14:22:16 -04:00
Garrett
53c3a0c644 Allow greater than 1 spawnrate 2018-10-27 13:19:19 -04:00
AbigailBuccaneer
579e80d376
Merge pull request #146 from thegrb93/fix-44
Fixed spawner pasting offsets
2018-10-27 17:58:42 +01:00
AbigailBuccaneer
afb4d53338
Merge pull request #147 from thegrb93/fix-23
Add option to hide drawing spawner props
2018-10-27 17:52:33 +01:00
Garrett
c76de33126 Remove unused 'LastSpawned' output 2018-10-25 22:25:02 -04:00
Garrett
2fde5bbacc Add option to hide drawing spawner props 2018-10-25 22:15:53 -04:00
Garrett
827339e40d Fixed spawner pasting offsets 2018-10-25 21:46:14 -04:00
Garrett
7235ca570b Fix error when getting dupe info before creating context menu 2018-10-24 22:42:17 -04:00
Garrett
5bc66fa367 Remove commented code 2018-09-11 21:51:50 -05:00
thegrb93
1a96ff48e8
Merge pull request #98 from thegrb93/mappaste
Some cleanup and added map paste on PostCleanupMap
2018-09-04 21:30:03 -04:00
Garrett
f0d61c5c58 Merge remote-tracking branch 'matiasah/patch-1'
# Conflicts:
#	lua/advdupe2/sv_clipboard.lua
2018-09-03 02:59:52 -05:00
Garrett
8ee88c1725 Give nil a different id 2018-06-27 22:01:46 -05:00
Garrett
463109a400 Remove at-a-distance behavior 2018-06-25 17:22:49 -05:00
Garrett
d0dc5ed1d7 Make empty string use 0 id 2018-06-25 14:04:00 -05:00
Garrett
66c7c02d69 Improve string read performance 2018-06-25 01:49:57 -05:00
Garrett
4d9070c861 Remove pointless module (Doesn't implement WriteULong). Made long strings able to have null characters without corrupting the file. 2018-06-14 02:44:53 -05:00
AbigailBuccaneer
d06b7e1f7f
Merge pull request #136 from thegrb93/saveerrorfix
Fix trying to serialize unserializable keys
2018-06-13 16:48:23 +01:00
Garrett
a5c57d5603 Fix trying to serialize unserializable keys 2018-06-13 05:55:38 -05:00
Lewis
47eeca2dfd Prevent errors/lag exploits. Occurs if a player hasn't right clicked with the tool yet. 2018-04-15 13:50:42 +01:00
Garrett Brown
6ad4caf851 Made sents that are supposed to be not solid stay that way 2018-04-03 10:36:35 -05:00
Garrett Brown
2b20b2a562 Add gmod_anchor to area copy blacklist 2018-04-03 07:58:30 -05:00
Garrett Brown
7cc1af59f8 For god's sakes don't copy the whole ent table. 2017-07-15 18:13:31 -05:00
Abigail
e1c4388877 Use correct URLs for help
For now I just commented out the forum link, as there's not an obvious replacement and the old thread is dead and irrelevant.

Fixes #107
2017-02-16 18:45:12 +00:00
Mista-Tea
48a34aa37c Make paste angles default to 0,0,0 (#104) 2016-11-11 22:16:47 +00:00
thegrb93
1c39b8ed0e Close temp file when there's an error (#103)
* Close temp file when there's an error so you don't have to wait for garbage collection of the file in order to load another dupe.
2016-10-20 10:27:11 +01:00
thegrb93
b79287b7f8 Work around error where Queue would be nil and softlock advdupe2 (#100) 2016-10-02 12:16:19 +01:00
thegrb93
699808791f Optimize entity modifier applying (#99) 2016-10-02 12:13:37 +01:00
thegrb93
5d5496da3f Some extra checks to prevent invalid entities from being copied. (#85) 2016-10-02 12:13:15 +01:00
Garrett Brown
0e75a99415 Some cleanup and added map paste on PostCleanupMap 2016-06-23 17:49:21 -05:00
thegrb93
f68c4b903c Replace undo umsg with netmessage (#92)
We mirror internal behavior of the undo module, sending messages to clients to remove items from the client's undo queue. At some point, this was changed from using a umsg to a netmessage, and this updates us to do the same.
2016-06-15 10:15:31 +01:00
Abigail
457c6d050f Merge pull request #76 from thegrb93/unused_splash
Remove unused splash screen
2016-01-15 10:40:36 +00:00
Garrett Brown
e41d41c195 Remove unused splash screen 2016-01-14 17:43:41 -06:00
Erik Rahka
005051420c Add player to AdvDupe_FinishPasting(the other one)
Would allow developers to keep track of players' advanced duplicated entities.
2015-12-07 21:51:46 +01:00
Abigail
2d3a552cfa Merge pull request #70 from thegrb93/entity_limit_fix
Have generic SENTs check the gamemode SENT limit.
2015-12-01 11:08:17 +00:00
Erik Rahka
f8abddf34e Add player to AdvDupe_FinishPasting 2015-11-27 18:14:55 +01:00
Garrett Brown
22c37b269e Fixed all limit checks. 2015-11-24 16:54:43 -06:00
Abigail
3dfc7001b6 Merge pull request #66 from thegrb93/open_while_pasting_fix
Correctly handle upload failures.
2015-11-24 13:59:46 +00:00
Garrett Brown
294a110753 Call entities' onduplicated function if it exists 2015-11-24 03:14:14 -06:00
Garrett Brown
06a8b19747 Have generic SENTs check the gamemode SENT limit. 2015-11-21 21:24:06 -06:00
Garrett Brown
115af0dbbc Fixed progress bar 2015-11-20 21:48:13 -06:00
Garrett Brown
3aa4e52f1a Fixed case when upload is rejected and the server expects data. 2015-11-15 19:18:01 -06:00
Garrett Brown
38cc3bb6b7 Fix a couple lua errors. 2015-11-14 22:50:58 -06:00
Garrett Brown
fb964753cd Fixed file upload getting stuck when server rejects the upload 2015-11-12 21:52:14 -06:00
Garrett Brown
bed6167715 Change queue fail behavior as well. 2015-11-10 16:16:23 -06:00
Garrett Brown
1c44b2f09d Add checkbox to toggle copying only your own props or not. 2015-11-06 19:22:38 -06:00
Garrett Brown
0a6d4f42a9 Merge branch 'FindInBox_fix' into world_copy 2015-11-06 18:50:38 -06:00
Garrett Brown
310ecb6934 Save a few nanoseconds 2015-11-06 18:47:08 -06:00
Garrett Brown
6d7e538b51 Added change note 2015-11-01 13:41:39 -06:00
Garrett Brown
57c6fd0bd4 Fix area copy. FindInBox can only return a max of 512 entities. 2015-11-01 11:51:14 -06:00
Garrett Brown
f0c44085fa If entity limit gets hit, the dupe will stop pasting and delete all of the paste progress. This prevents that. 2015-10-31 22:27:13 -05:00
Garrett Brown
61e1f372e0 Change invalid hook call from PlayerSpawnEntity to PlayerSpawnSENT 2015-10-31 22:25:27 -05:00
Garrett Brown
56dd25091b Don't know why this never errored before. 2015-10-01 06:56:32 -05:00
Garrett Brown
e90cb42fde Fixes lua error when undoing while pasting. 2015-08-16 02:38:03 -05:00
Garrett Brown
596e18b515 Fix discrepancy between server and client. 2015-08-15 14:01:40 -05:00
Garrett Brown
140a4a5c81 Made help text a little more descriptive 2015-08-12 12:30:22 -05:00
Garrett Brown
e5dcd348a8 Don't do tool effect when toggling area copy. Do tool effect for anything else. 2015-08-12 04:10:49 -05:00
Garrett Brown
0d5dccb7e2 Refactor copying. Add ability to clear dupe by right clicking world, also right clicking world while empty will select all owned entities. 2015-08-12 03:58:00 -05:00
Starkkz
4063542711 Temporal fix that allows you to paste damaged contraptions
[AdvDupe2Notify]	addons/advdupe2-master/lua/advdupe2/sv_clipboard.lua:503: attempt to index local 'first' (a nil value)
Warning: Unhandled usermessage 'Undone'
[AdvDupe2Notify]	Finished Pasting!
2015-08-05 10:17:22 -03:00
Grocel
071fb108ff Added the DoNotDuplicate check to the tool too. 2015-07-23 20:14:29 +02:00
Grocel
1c4e624083 Fixed https://github.com/wiremod/advdupe2/issues/31 and https://github.com/wiremod/advdupe2/issues/38
So addon coders can define entities and constraints to not to be
dupeable with `ent.DoNotDuplicate = true`.
2015-07-23 18:28:58 +02:00
Python1320
02c5a3c802 Update advdupe2_sv_init.lua
AddNetworkString can be outside of Initialize hook, will break AdvDupe2 less.
2015-02-10 01:09:51 +02:00
Jack37
c70eabb557 Fixed preserving frozen state for adv dupe 1 files
Using preserve frozen state after paste for adv dupe 1 contraptions
resulted in freezing the props that should be unfrozen, and vice versa
2015-01-28 19:23:10 +01:00
Jack37
910a01c676 Fixed opening of some AD1 files
Dupes that contained strings starting/ending with colon (on text screens for
example) could not be opened.
2015-01-28 11:28:29 +01:00
Jack37
7ee9239f0c Fixed table referencing
Changed the order of storing tables for further referencing, fixes #34
2015-01-26 16:49:35 +01:00
Abigail
93ddc8f864 Merge pull request #33 from thegrb93/master
Fix #32: Check admin-only/spawnable entities.
2015-01-08 23:31:30 +00:00
Jack37
4471b2b584 Fixed error when duplicating the keep upright constraint
fixes #15
2015-01-08 14:12:18 +01:00
Abigail
fb2f768265 Fix #25. Early-out on file read errors.
Whoops, missed a spot.
Reported at https://github.com/wiremod/advdupe2/issues/29#issuecomment-68669306
2015-01-05 14:22:49 +00:00
thegrb93
74d2de7e66 Registered duplicator entities get handled correctly now. 2014-12-26 18:31:49 -06:00
thegrb93
33ecb4de7f Check admin-only/spawnable entities.
People can spawn anything without this.
2014-12-26 16:53:15 -06:00
Abigail Buccaneer
6e2b29da7d Fix #25. Early-out on file read errors.
In cases where the file exists but we can't read it for some reason, we now display a sensible error message rather than a traceback.
2014-09-30 17:18:20 +01:00
Jack37
58cf63b971 Fixed DummyTrace error
fixes #20
2014-07-22 10:48:46 +02:00
Abigail Buccaneer
28d4bf73a8 Speed up area copy.
Use Garry's ents.FindInBox function instead of iterating over all entities in the world.
2014-07-20 09:06:17 +01:00
Abigail Buccaneer
f062d27518 Fix #18. Use CanTool instead of CPPI.
Fixes an exploit where not all prop protection addons would prevent copying other player's entities with Area Copy.
2014-07-20 08:58:55 +01:00
Abigail Buccaneer
160832fecc Fix #14. Remove further uses of EntityList
It's almost like I didn't fully test my changes before committing!
2014-07-01 10:33:39 +01:00
Abigail Buccaneer
ecdc042c06 Fix #11. Remove call to missing function. 2014-06-27 10:27:21 +01:00
Abigail Buccaneer
2fdf003211 Partially fix #13.
Fixes non-admins being unable to duplicate things in multiplayer.
2014-06-24 09:43:39 +01:00
CoreyLee Hassell
d36e61d487 Merge pull request #5 from wiremod/entity-alias-fix
Fix entity aliases not being correctly duplicated.
2014-06-06 13:47:07 -04:00
AbigailBuccaneer
4891aa707b Fix #4. Save NetworkVars in an entity's table. 2014-05-26 00:46:32 +01:00