Commit Graph

4216 Commits

Author SHA1 Message Date
Denneisk
10ecf90f5f
Fix removing and readding items in EGP (#3040)
* Fix global leak

* Fix removing items definitively hopefully
Reduce additional prf cost of removing (redundant??)

* Remove label
2024-04-14 22:37:49 +00:00
Denneisk
bc746679a6
Update WireLib.GetVersion (#3032)
Add WIREVERSION and WIREVESRION_STR E2 constants
2024-04-10 16:22:22 -04:00
thecraftianman
4178d2ee37
Pod controller refactoring (#3011)
* Pod controller refactoring

* Further cleanup

* Modify output caching method

This also removes a few other sources of __index calls in the Think method and moves the Team output to occur only once upon entering the pod.
2024-04-10 16:21:22 -04:00
Denneisk
4303f798f6
Fix Friends List would limit to 4 outputted friends (#3033)
* Inline Connected to avoid calling UpdateOutputs

* Fix logic
2024-04-10 16:20:59 -04:00
Denneisk
3179a4270b
Add fallback to use typename in debugger when no format defined (#3035)
* Add fallback to use typename in debugger when no format defined
Fixed bug with table cutting off a single character
Removed ranger debugger format (was just "ranger")

* Remove redundancy
2024-04-10 16:20:46 -04:00
Denneisk
bc614debe8
Add string compression functions (#3020)
* Add compression functions

* Add throw for invalid decompression

* Add size limit
2024-04-05 14:46:27 -04:00
Denneisk
b17217125e
Add tau (#3025) 2024-04-05 14:46:11 -04:00
Denneisk
ae63083e59
More miscellaneous EGP fixes (#3022)
* Harden against case where ret can be erroneously set to false

* Avoid EGP:CreateObject mutating original object

* Fix Poly contains/GetGlobalVertices functions
+ Minor optimizations

* Remove redundant egpobject getter function(???)

* Remove debug print

* Fix egp draw again
2024-04-05 18:37:03 +00:00
Grocel
c5bbf67de0
Fixed Wire Map Interfaces not working on new maps (#3028)
* Fixed Wire Map Interfaces not working on new maps

The way GMod handles Hammer input/outputs has been changed and no longer conflicts with Wiremod's self.Output. So we can remove the override workaround.

* Removed dead code and uneeded parentheses
2024-04-04 20:16:53 -04:00
Redox
d0c4bf5c28
Use setPos/setAng directly on the entity instead of phys (#3026)
* Use setPos/setAng directly on the entity instead of phys

* Use WireLib.setAng

* Use existing locals

* Fix linting issues
2024-04-04 22:25:20 +00:00
AshleyJamesy
26323969bb
Remove player restriction from entity:setSkin(number) (#2988)
* removed player restriction from entity:setSkin(number)

* remove unnecessary checks for setSkin
2024-04-03 04:33:46 +00:00
Redox
30518024dd
Fix RT Camera OnRemove detection (#3027)
* Fix OnRemove detection

* Fix trailing whitespace
2024-04-02 23:02:22 +00:00
thegrb93
c889b71c3c
Add regex check to gates and e2 find (#3023) 2024-03-30 14:01:06 -04:00
Denneisk
6d7f570479
Fix EGP Line SetPos and Poly Movement with 3D Tracker (#3021)
* Clamp poly and line position

* Fix line didn't nil check setpos
2024-03-26 13:18:40 -04:00
stepa2
60b23aa599
RT Camera fixes and improvements (#3019)
* Added FPS limiter to RT Cameras, refactored code a bit

* Changed RT Camera FPS limiter algorithm

* Actually made good RT Camera FPS limiter

* Changed ActiveCameras to be set-like array instead of set-like table.

* Fixed undefined behavior in RT Camera ENT:SetIsObserved

* Linter pass

* Removed debug print

* Fixed undefined behavior on `ObservedCameras` iteration

* Removed debug print *again*

* Removed unused `table.SeqCount` function
2024-03-26 13:18:20 -04:00
Smiggy
1c5f5a0cb0
Update vector2 to use e2function syntax (#3013)
* Update vector2

* Remove trailing whitespace
2024-03-07 00:30:22 +00:00
thecraftianman
3d61ee677e
Reduce E2 __index calls (#3006)
* Reduce E2 __index calls

* Update name usage
2024-02-29 23:57:15 -05:00
Denneisk
2eed1c1397
Remove "self" from ModelPlug_AddToCPanel (#3007) 2024-02-29 23:57:03 -05:00
Bonyoze
41612db244
Add more CPPI functions to WireLib and Expression 2 (#2985)
* add more wirelib CPPI functions

* add e2 cppi 'e:can*' functions

* fix entity:setEditProperty not lowercasing key
2024-02-24 14:02:51 -05:00
Fasteroid
bb6346949f
Faster wire rendering (#2955)
* remove: useless list referenced nowhere

* remove more stupid bloat

* cache funcs, move blink outside render func

* remove more pointless logic

* vector optimizations, fix scroll

* use rawequal instead

Revert "use rawequal instead"

This reverts commit 67a3a5d5fd9c26c775dfa98aa424e5023e76b50d.

Revert "Revert "use rawequal instead""

This reverts commit 5be50acf2fe22e7049a1cd514bd49c2a30c8e360.

* micro optimizations and slight code cleanup

* misc fixes

* don't use rawequal

GetPos and GetAngles return new objects every time they are called.

* File extension patches (#2996)

Fix error on destruct with nil streams
Fix client to server sending

* Fix model error (#2997)

* Clamp force. Fixes: #2994 (#3000)

* Cleanup and hopefully more optimal. Need to perf test

* fix

* whitespace

* Use improved struct

---------

Co-authored-by: Denneisk <20892685+Denneisk@users.noreply.github.com>
Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-02-24 14:01:23 -05:00
thegrb93
93cd4f826b
Clamp force. Fixes: #2994 (#3000) 2024-02-12 15:17:30 -05:00
thegrb93
12186a3281
Fix model error (#2997) 2024-02-12 15:17:17 -05:00
Denneisk
4f2677a423
File extension patches (#2996)
Fix error on destruct with nil streams
Fix client to server sending
2024-02-10 23:34:12 +00:00
Denneisk
5cc3ad0f8b
Convert file extension to use netstream (#2991)
* Convert file extension to use netstream

* Fix bad ref

* Lint

* Remove redundant CRC

* Remove SP direct loading

* Increase file size limit

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-02-07 19:04:06 -05:00
Fasteroid
687bc16e10
index should be incremented here (#2990) 2024-02-07 19:02:17 -05:00
Denneisk
f34152eb63
Fix getBone not working (#2984) 2024-01-29 00:57:15 +00:00
Redox
da33312808
Move spawnmenu icons (#2980) 2024-01-21 15:01:41 -05:00
Nexeonenn
aaeb1d7187
Global to local (#2982)
Fixed a bug with inability to pick up with physgun any objects after explosion.
2024-01-21 12:53:04 -05:00
thegrb93
16e6a84a37
Fix wheel take two (#2971)
* fix wheel take two

* Unneeded code
2024-01-16 17:58:22 -05:00
Denneisk
93bb7cc4e9
Add array:indexOf (#2939)
* Update array functions
Add array:indexOf

* Remove remainder of C nots

* Update description

* Change loop
2024-01-16 22:37:47 +00:00
DerelictDrone
842f5a1e40
Sanitize CD Disk dupe information (#2978)
* Sanitize CD Disk dupe information

* Update gmod_wire_cd_disk.lua

* Update gmod_wire_cd_disk.lua
2024-01-10 11:10:35 -05:00
zynx
730d702e5a
exploit patch (#2975)
* soundemitter and soundPlay patched

* this is better + fix emitsound

* more efficient order + 260 char limit instead

* emitsound invalid character check
2024-01-08 09:36:38 -05:00
Denneisk
33fa54337a
Netstream, Networking library, and WireLib.Notify (#2932)
* Add WireLib.Net and WireLib.Notify

* The cooler trivial networking library

* Remove if SERVER

* Update new players with trivial name table
Refactored flushing
Increased update transfer size limit
Decreased flush delay to 1 tick

* Refactor Trivial net to Net.Trivial
Add WireLib.NotifyGroup

* Make notifcations more shared
Add shared WireLib.NotifyBuilder to build notifications
Made WireLib.Notify shared
Notify gets logged on server on warn/error

* Add netstream
Renamed sh_wirenet to wirenet
Bugfixes + improvements

* Rename sh_wirenet to wirenet

* Fix sending with nil and severity

* Allow notifying server with severity < 2

* Avoid inserting table into MsgC

* Change to send message length instead of using null termination
Decreased flush delay to 1 tick

* Fix reps
2024-01-08 03:15:45 -05:00
stepa2
53a70a2331
Fixed EGPs not working in modes other than 'emitter' (#2972) 2024-01-07 09:58:04 -05:00
thegrb93
a766faa2d4
Fix direction not being set after duping (#2970) 2024-01-06 17:47:20 -05:00
DerelictDrone
e1b30fb964
Prevent CD error on attempting to disable the CD's Lock (#2960)
* Prevent an error on disabling cd lock

* Fix styling issue

* Add self isvalid check too

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2024-01-04 17:02:16 -05:00
Denneisk
28ef863a27
Fix graphics tablet (#2953) 2024-01-04 16:51:16 -05:00
Vurv
9bdef925b6
Convert getregistry use to findmetatable (#2968) 2024-01-04 16:47:40 -05:00
thegrb93
aa34b0fcfd
Simplify (#2967) 2024-01-04 16:12:01 -05:00
Brandon Sturgeon
857bb81666
Reduce index calls on EGP:ValidEGP (#2962)
* Reduce index calls

* Add IsEGP and adjust the ValidEGP function

* Use GetTableinstead of GetVar

* Use Entity.IsValid instead of _G.IsValid
2024-01-04 16:07:07 -05:00
dependabot[bot]
762ee51864
Bump tj-actions/changed-files from 36 to 41 in /.github/workflows (#2966)
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 36 to 41.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v36...v41)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 14:24:57 -08:00
Redox
ac1fb76b41
Remove unused model formats (#2956) 2023-12-30 14:53:28 -05:00
Name
8eee5a7f37
Blacklist pp/copy (#2964) 2023-12-29 22:02:28 -08:00
Denneisk
85d4b694bd
Fix updating vertices on polys would break parented position (#2957)
* Fix parented polys defaulting to global position when updating vertices

* Fix global leak
2023-12-28 06:20:46 -06:00
Vurv
b66fc4e693
Fix #2958 (#2959) 2023-12-28 04:27:56 -06:00
Denneisk
aab46e3a96
printColor rewrite (#2937)
* printColor improvements
Add:
- Dynamic perf on printColor (1 op per bit sent)
- ConVar to disable warnings on printColor
Change:
- Rewrote printColor
- printColor now uses modified normal print max length to limit
- Print max length now use server's maxlength in singleplayer
- printColor warning now fires only once per session

* Optimize warn

* Change reader lookup
2023-12-24 02:20:35 -06:00
Denneisk
0653171f96
Minor bone and ragdoll E2 fixes (#2896)
* Fix GetBones would not fully set up
Fix ragdollSetPose(table, number) with 0 would not rotate properly

* E2 Descriptions

* Fix nil table count
Add dynamic perf

* Change GetBones
2023-12-23 17:41:42 -06:00
Denneisk
95de2a81cc
Process parent indexes serverside only (#2950) 2023-12-23 07:18:32 -06:00
Denneisk
3ab71d12c0
Remove contains removal on roundedboxoutline (#2954) 2023-12-23 07:15:43 -06:00
Vurv
67e3cbc8b7
Make gtables and datasignals extensions (#2948) 2023-12-20 23:57:01 -08:00