Commit Graph

404 Commits

Author SHA1 Message Date
march
3092b77b7a
Make browser loading faster (#467)
- Change names to remove dashes
- Add FOLDER:Clear() and FOLDER:LoadDataFolder(folderPath) to replace PurgeFiles
- Make loading folder/file nodes non-blocking
2024-08-21 23:06:31 -04:00
thegrb93
282f7607ac
Make netstream timeout 30. Gmod apparently struggles sending 20kb in under 10s sometimes (#474) 2024-08-10 16:54:43 -04:00
thegrb93
b9984fcea1
Rewrote netstream (#472)
* Rewrote netstream

* Only add timer when queue empty

* Only update activitytimeout if queue is empty too

* Move activity timeout reset into successful write

* Move net read before return
2024-06-09 17:08:08 -04:00
thegrb93
238d02d289
Add max size for advdupe2 dupes (#470) 2024-05-31 22:06:15 -04:00
Redox
0c1d194c52
Account for no menu binding (#468) 2024-05-30 15:32:57 -04:00
Brandon Sturgeon
94c6f4a4dd
Fix AreaCopy when used with the CopyOutside param (#466)
* Fix AreaCopy when used with the CopyOutside param

* Adjust param order

* Fix call parameters
2024-04-25 16:11:14 -04:00
thegrb93
19eb2221a1
Add CPPICanTool to advdupe2 copy (#465) 2024-04-11 22:33:59 -04:00
aStonedPenguin
6fe9bc86ea
Use ents.Iterator in place of ents.GetAll (#464)
* Use ents.Iterator in place of ents.GetAll

* syntax

* Update advdupe2.lua

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-04-05 18:11:29 -04:00
Porky
0c6f311f3a
Fixed a crash exploit (#462)
* Fixed a crash exploit

Spawning props with model scale set to 0 crashes dedicated servers.

* Update lua/advdupe2/sv_clipboard.lua

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-03-28 15:18:27 -04:00
stepa2
f2936d5315
Add AdvDupe2_PreCreateEntity hook. (#458)
I need it to fix model path change in my model pack.
2024-01-22 15:43:17 -05:00
stepa2
ddd8b76af5
Fixes reportmodel using AdvDupe2_ReportClass netmessage (#457) 2024-01-19 12:09:58 -05:00
Deyan Dobromirov
c46ca53f0f
Changed: !,||,&& to not,or,and (#455)
Changed: Some long lines
Changed: Use condition-less assignment
Changed: Reduce 4 vector creation to 2 at line 764
2024-01-09 18:12:18 -05:00
kotvacya
284bd4d598
Make traceback actually useful (#452) 2024-01-08 17:13:18 -05:00
Deyan Dobromirov
9a751cf616
Changed: Localize ply.AdvDupe2 as dupe = ply.AdvDupe2 (#450)
* Changed: Localize `ply.AdvDupe2` as  `dupe = ply.AdvDupe2`
Reduced: Length of some long identifier lines

* Updated; `TOOL:Deploy()`

* Updated: Code review

* Added: Requests from code review 2
Changed: Align some identifiers
2024-01-08 13:14:07 -05:00
Deyan Dobromirov
ad80512575
Changed: Using tab["pos"] is the same as tab.pos (#446) 2023-12-01 17:46:12 -05:00
Deyan Dobromirov
e7db6e0161
Cleanup: Brackets with double quotes to include structures ( like wirem… (#445)
* Added: Brackets with double quotes to include structures ( like wiremod )
Converted: Global `constraints` and `serializable` to real globals

* Update: Shove control stricture in the global setup table

* Order by length and reduce spaces
2023-11-08 11:31:49 -05:00
Garrett Brown
e4a0d9d80b Use old revision var 2023-10-31 02:08:12 -04:00
Denneisk
db5fd6b439
Fix broken duping when not having loaded a file previously (#444)
* Fix broken duping when not having loaded a file previously
Expose codec revision in AdvDupe2.CODEC_REVISION

* Assign Revision on copy
2023-10-30 19:35:00 -04:00
Denneisk
7f061801bf
Track revision in Queue to avoid bad backwards compat (#442)
* Track revision in Queue to avoid bad backwards compat

* Remove revision parameter
2023-10-30 14:25:00 -04:00
Deyan Dobromirov
9d2d43c908
Create table only when needed (#440)
* Create table only when needed

* Equalize tabs
2023-10-28 20:25:01 -04:00
Matt Jeanes
4295fd95cc
patch copying special "Data" attribute (#439) 2023-10-23 19:56:23 -04:00
Redox
a7adb33ef8
Hide classarg prints behind convar (#437)
* Hide classarg prints behind convar

* Tabs instead of spaces

* Group defines and move includes to be done last

* Cleanup spawnrate code

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2023-08-26 16:50:05 -04:00
Vurv
e58e15fb6d
Merge pull request #436 from wrefgtzweve/master-1
Remove unneeded newline
2023-08-06 16:51:55 -07:00
Redox
ee8074e6da
Remove unneeded newline 2023-08-07 00:48:52 +01:00
aStonedPenguin
5d7db74761
fix language strings (#434) 2023-07-27 15:09:32 -04:00
Vurv
32492a57a1
Merge pull request #433 from Vurv78/auto-workshop-deploy
Add workshop deployment action
2023-07-14 16:02:24 -07:00
Vurv
b0d3462b65 Add workshop deployment action 2023-07-13 22:02:19 -07:00
Vurv
6895075b8b
Merge pull request #430 from Vurv78/new-readme
New `README.md`
2023-06-26 13:21:35 -07:00
Vurv
f43fc8edc1 Update README.md 2023-06-26 12:58:15 -07:00
Vurv
392432070a
Remove WireLib.dummytrace dependency (#428)
* Remove `WireLib.dummytrace` dependency

Think returning just `{ Entity = ent }` is fine.

Doubt it would cause errors, I don't think servers with only advdupe2 and not wiremod are uncommon.

* Copy code from wiremod
2023-06-15 11:07:32 -04:00
Deyan Dobromirov
8b30c2bc5e
Fixed: Last YAW value being reset when user requests a small change (#425)
* Fixed: Last YAW value being reset when user requests a small change
Fixed: Progress bar pixel-perfect aliment
Fixed: Tool screen HUD use boolean state instead of a number
Updated: Pitch-roll dupe control via MouseMiddle
Updated: Tool screen shows P,Y,R and height
Added: E+Shift+MouseMiddle resets offsets
Removed: Heuristics for proper angle handling
Optimized: Tool screen avoid creating color objects every frame

* Added: Local variable for player and fail-save conversion values

* Fixed: P/R offests relative to player's aim vector

* Fixed: Sign of P/R usage according to the axis used

* Removed Base world angle

* Account for YAW value when calculation P/R
2023-06-01 10:58:44 -04:00
Vurv
2618c37624
Pass ply to GetDupeAngleOffset 2023-05-15 14:56:29 -07:00
Deyan Dobromirov
426808476a
Improved: Angle and elevation handling fail-safe (#421) 2023-05-15 10:50:46 -04:00
Redox
f1de4bf087
Make sure Constraints table exist (#418)
* Make sure Constraints table exist

* Use tab indentation

* Use AdvDupe2.CheckValidDupe instead
2023-04-24 11:32:42 -04:00
Redox
3b969bac9f
Fix possible arg count error (#417)
* Don't spawn entity if arg counts don't match up

* Style

* Use tab indentation

* Delete last created entity instead

* Use SafeRemoveEntity instead

* Move remove down

* Support multiple created entities

* Style fix

* Fix print grammar

* Apply feedback
2023-04-18 19:52:08 -04:00
aStonedPenguin
df12047d51
check PLAYER.CPPIGetOwner instead of CPPI global (#414)
Fixes partial implementations of CPPI and is more consistent with the rest of the code base
2023-03-01 13:37:09 -05:00
thegrb93
c78decb8be
Fix ghosts not getting cleaned up (#412) 2023-01-25 17:10:25 -05:00
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