Commit Graph

417 Commits

Author SHA1 Message Date
Deyan Dobromirov
2c12f32a85
Entity creator is not set to player spawning the dupe (#408)
* Fixed: Creator is not set correctly when dupe is pasted

* Added: Creator update after every `ents.Create`
2023-01-11 19:37:55 -05:00
thegrb93
b83f6fd028
Add a few missing error checks. Fixes: #402 2022-10-10 09:57:21 -04:00
Deyan Dobromirov
1a9972b2a1
Increase contraption paste resolution and inset (#393)
* Fixed: Allow adv dupe 2 to have height inset just like the offset
Fixed: Increase adv dupe contraption paste resolution
Added: Default value for offsets triggered by know mouse 3

* Improved: Tooltips for the offset controls
2022-04-20 15:27:10 -04:00
CoreyLee Hassell
c87e395f85
Delete .travis.yml (#392)
We aren't using travis anymore, mainly since their free tier is gone now.

I'll have to convert this to github actions, as I'd like to also get it working once more to auto-upload to workshop.
2022-04-07 15:34:58 -04:00
thegrb93
33dfc6e034
Fix spaces not allowed in dupe name. Fixes: #379 (#381) 2022-02-02 15:38:11 -05:00
thegrb93
0877ff1bc3
No longer need nocollide sorting since they don't get added to phys_constraintsystem (#384) 2022-02-02 15:37:48 -05:00
Aspect
c95f7b65d5
Replace all usermessages with net. (#385)
* Replace all usermessages with net.

* Fix net destinations.

Oops.

* Replace Float with UInt.

* Replace more Float with UInt.
2022-02-02 15:36:09 -05:00
thegrb93
a98bad9169
Fixes undo duplicating (#378) 2021-08-07 20:38:33 -04:00
Deyan Dobromirov
41023f7e7f
Fixes #364 (#373)
* Fixes #364

* Fixed: May use invalid physobj for `localtoworld` conversion
Added: Performance optimizations
Updated: Use non-deprecated convar extractors
Updated: Utilize table.column instead of table["column"]
Updated: Improved readability
Utilize: Lua multiple assignment

* Added: Faster way to check for `*.mdl`
Utilized: Multiple assignment and scoping
Fixed: Ghosted contraption entries not moved to mouse cursor

* Added: Validation recheck for all entities in the dupe

* Update files according to code review

* Fixed: Sentences and punctuation

* Forgot to change according to first review

* Resolves rest of the conversations

* Update requests according to the last code review

* Fixed: Convars used for `UpdateGhosts` are read correctly
Fixed: Ghosted contraption does not go upwards when the game is paused

* Removed: Use of `SetUnpacked` for older Gmod versions

* Renamed: The desired local variables
2021-07-24 19:07:52 -04:00
thegrb93
e826dc5817
Add suggested boyancy modifier. Fixes: #366 (#371) 2021-07-19 14:03:56 -04:00
thegrb93
5198dfb693
Lua error fix. Fixes: #370 (#372) 2021-07-19 14:03:24 -04:00
Python1320
e4da3dc3e3
Prevent disconnected players from spawning dupes (#375)
* Prevent disconnected players from spawning dupes

* Update init.lua

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2021-07-19 14:02:59 -04:00
thegrb93
1d140c4a8e
Add concmds to convert/deconvert dupe files to/from json (#368) 2021-07-05 18:40:43 -04:00
Deyan Dobromirov
bf7323eea5
Fixed: AdvDupe2 Shows the name of the spawned contraption in the undo… (#367)
* Fixed: AdvDupe2 Shows the name of the spawned contraption in the undo list

* Update sv_clipboard.lua

* Updated: Use `finish` argument instead of calling custom undo text

* Cleaner

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2021-07-03 20:54:28 -04:00
CoreyLee Hassell
74ac8832a9
Update addon.json 2021-05-07 18:19:00 -04:00
CoreyLee Hassell
f972f8f819
Update addon.json
Added .tgas to ignore.
2021-05-07 18:17:44 -04:00
CoreyLee Hassell
c1195c7f61
Update CONTRIBUTING.md 2021-03-06 11:00:01 -05:00
CoreyLee Hassell
561d025613
Update addon.json 2021-03-06 10:48:54 -05:00
CoreyLee Hassell
7be4c37ac7
Rename readme.md to README.md 2021-03-06 10:37:37 -05:00
CoreyLee Hassell
dd4bb1584a
Rename license to LICENSE 2021-03-06 10:37:19 -05:00
thegrb93
e5040d0866
Move netstream to lua/autorun (#358) 2021-02-12 20:29:42 -05:00
Deyan Dobromirov
a928fd3206
Fixed: Typo on line 361 index by nil as wposi (#357)
* Fixed: Typo on line `361` index by `nil` as `wposi`

https://github.com/wiremod/advdupe2/pull/316/files

* Added: Brackets around `undo.Create` works same as `printf "test-string"`

* Use multiple assigment here as well

* Replace `error` with `err` local variable

Dev can call `error` in the scope of replacement. Besides, it is cleaner this way

* Convert protected call variables to locals

* Revert idx

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2021-02-10 16:34:14 -05:00
Deyan Dobromirov
f4690612e6
Update readme.md (#356)
* Update readme.md

* Added: WS link dor ADVdupe2
2021-02-09 17:33:15 -05:00
thegrb93
92442ff183
Fixed up and added back limit ghost feature (#353) 2021-01-30 04:16:54 -05:00
thegrb93
72dff27b04
Fix lua error and refactor table.count (#347)
* Fix lua error and refactor table.count

* Also replace deprecated table.GetFirstKey

* Add iscopyable function

* Fixed
2021-01-22 20:36:49 -05:00
thegrb93
756f7d6d5e
Fix the advdupe1 folder unnecessarily showing (#341) 2020-12-12 16:04:35 -05:00
thegrb93
d08a7c94eb
Fix self referential table encoding issue. Fixes: #280 Fixes: #305 (#342) 2020-12-12 16:03:24 -05:00
thegrb93
0a8417df81
Fix label colors (#332)
* Fix label colors

* Revert this

* Update file_browser.lua
2020-12-04 14:52:30 -05:00
thegrb93
0c0d55fed7
Made sorting case insensitive (#333)
* Made sorting case insensitive

* Update file_browser.lua

* Update file_browser.lua
2020-12-02 21:47:22 -05:00
thegrb93
1ff38f8939
Made height offset less limited (#336)
* Made height offset less limited

* Leave the slider alone
2020-12-02 21:45:14 -05:00
thegrb93
32a5cca72c
Makes nils pass into factory funcs instead of false (#335) 2020-12-02 21:41:05 -05:00
thegrb93
91dd4c236d
Update SavePositions to use physobject positions (#334)
* Update SavePositions to use physobject positions

* Update sv_misc.lua

* Update sv_misc.lua
2020-12-01 23:31:11 -05:00
thegrb93
6a510580b2
Fix whitespace bug in Hydraulic constraints (#329) 2020-11-30 23:05:30 -05:00
thegrb93
d416441c94
Better Error handling for file fail (#327) 2020-11-28 19:22:13 -05:00
thegrb93
28170682d7
Fixes race conditions in constraint saving due to timer (#324) 2020-11-26 14:51:04 -05:00
thegrb93
0d17fa2295
Fixes hook errors when pasting map (#325) 2020-11-25 20:55:26 -05:00
thegrb93
50e6865abf
Fix autosave minimum time being 10min (#314)
* Fix autosave minimum time being 10min

* Made the min 5 minutes

* Add some help text too

* Some bugfixes and made min time 2 min
2020-11-25 20:50:06 -05:00
thegrb93
8b80f2391b
Merge pull request #316 from dvdvideo1234/patch-2
Code cleanup sv_clipboard
2020-11-25 20:17:51 -05:00
thegrb93
855eefe1fe
Merge pull request #311 from dvdvideo1234/patch-1
Updated file browser with proper function and variable indentation
2020-11-01 15:11:04 -05:00
Deyan Dobromirov
6162228bd0
do the change request 2020-11-01 20:26:16 +02:00
Deyan Dobromirov
8821b99751 Revert the old way of indexing constraints 2020-11-01 10:08:41 +02:00
Deyan Dobromirov
dcd4f60337 Use string patterns to search instead of concatenating integer with string 2020-10-31 16:32:27 +02:00
Deyan Dobromirov
de9de4b484
Apply revieq request 2020-10-30 15:59:54 +02:00
Deyan Dobromirov
e2b33dbda8
Update sv_clipboard.lua 2020-10-16 16:45:27 +03:00
Deyan Dobromirov
8fb53f9941
Added: Table lookup instead of creating a vector for comparing 2020-10-16 16:36:33 +03:00
Deyan Dobromirov
bf5ea70797
Utilized: Hashed flags from gtSetupTable 2020-10-16 16:29:49 +03:00
Deyan Dobromirov
5e147ba80c
Update the merge version of the file 2020-10-15 19:48:54 +03:00
Deyan Dobromirov
9a3bf8b90f
Debug version of sv_clipboard.lua 2020-10-15 18:40:23 +03:00
Deyan Dobromirov
6b395949da
Fixed: Runtime error at line 377 2020-10-10 14:56:30 +03:00
Deyan Dobromirov
a5d4888128
Update file_browser.lua 2020-10-10 14:39:25 +03:00