Commit Graph

3698 Commits

Author SHA1 Message Date
shadow7483147
778a8197b9
Update .gitignore (#2362)
Adds sublime project files to the gitignore
2022-07-07 18:04:14 -04:00
thegrb93
e115f4bec5
Revert "Add non-ASCII character support to Expression 2 Editor (#2237)" (#2357)
This reverts commit 328b5329ea.
2022-07-04 14:08:35 -04:00
thegrb93
58d6c01517
Add baseclass onremove call to radio 2022-07-04 11:13:24 -04:00
thegrb93
fd34f605e5
Lower gate string limit. Fixes: #2351 2022-07-02 18:14:58 -04:00
stepa2
328b5329ea
Add non-ASCII character support to Expression 2 Editor (#2237)
* Improved RT Cameras ignoreme

* Initial UTF-8 support for Expression 2 Editor

* Fixed search in Expression 2 Editor

* Expression 2 Editor: bugfixes

* Refactored EDITOR:PaintLine(row) of Expression2Editor panel

* Implemented non-monospaced font handling in E2 Editor
Currently there are bugs when caret is near the end of line

* added xm4:toAngle() and xm4:rotationMatrix() (#2236)

* added xm4:toAngle() and xm4:rotationMatrix()

* changed toEulerZYX signature

Co-authored-by: Nimeji <yimeji@gmail.com>

* Implemented non-monospaced font-aware mouse selection for E2 Editor

* E2 Editor: re-enabled culling text in the line number area

* E2 editor: fixed caret and selection position, attempt to fix infinitive loop bug

* E2 editor: fixed game freeze due to matching brackets highlighting

* E2 editor: fixed highlight drawing with offset

* E2 editor: fixed scrolling bug

* E2 Editor: optimized bracket highlighting a bit

* E2 Editor: optimized function autocompletion

* E2 Editor: matching brackets highlighting error

* E2 Editor: rewrited and fixed matching bracket highlighting

* E2 Editor: converted tabs to spaces

* E2 Editor: code linting

* E2 Editor: bugfixes

* E2 Editor: fixed RowLength being not updated sometimes

* E2 Editor: fixed highlighting-related bugs

* E2 Editor: fixed last character selection bug

* E2 Editor: "fixed" syntax highlighting
Just reenabled hack for fixing cache errors

* E2 Editor: linting pass

* Refactoring double-clicking
Added FindAllWords debug print

* [E2 Editor] :SkipPattern and :NextPattern non-ASCII text handling fix, double-click selection over non-ASCII text fixed
- Refactored E2 :SyntaxColorLine

* [E2 Editor] Fixed string and comment rendering/highlighting, broken after refactoring; fixed :SkipPattern and :NextPattern with pattern without capture groups

* [E2 Editor] Disabled debug messages

* [E2 Editor] Fixed possible newline autoindent bug

* [E2 Editor] Removed debug messages (2)

* [E2 Editor] Converted spaces to tabs

* [E2 Editor] Disabled hacky .PaintRows cache error fix
No errors were observed
- When removing text from middle of the line to middle of other line including several full lines
- When removing text from start of the line to end of the other line
- When pasting multiline text into the middle of the line
- When pasting multiline text into the beginning of the line

Co-authored-by: nimeji <50079816+nimeji@users.noreply.github.com>
Co-authored-by: Nimeji <yimeji@gmail.com>
2022-07-02 18:08:04 -04:00
Vurv
e8e73b6338
Separate concmd/convar permissions (#2348)
* Separate concmd/convar permissions

* Only check IsConCommandBlocked when validating concmds (not convars)
* Convars have their own whitelist and toggle now (Open for discussion on whether to remove this and have no whitelist, or share concmd's whitelist.
* Better ``@strict`` error messages

Fixes #2346

* Update console.lua

* Update console.lua

* Fix typo

Luckily found this glancing over the pr

* Fix lua error

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2022-07-02 17:39:43 -04:00
Fasteroid
5a48482b90
Bone stuff (#2347)
* @strict fixes

* holoBonePos and holoBoneAng

getters only, no setters cuz I'm lazy + they have abuse potential (especially position)
2022-07-02 16:28:22 -04:00
Vurv
292a60b067
Add variadic user functions (#2344)
* Add variadic user functions

* Enforce values fit in array

* Remove debug print

* Fix misplaced '.' in args error

This shouldn't cause problems in the future but should probably keep this in mind.

Now the example @scriptis gave works. (With a little tweaks)

* Support methods

GetMethod and GetFunction are separate :p

* Don't allow overriding variadic functions

Since the signature is different from lua variadic functions you were able to essentially override stuff like ``print(...)`` which definitely shouldn't be possible.

* Add variadic table support

* Support stringcall variadics

* Fix table bugs

* Fixed oversight w/ not setting table size
* Fixed offsetting table types wrong because methodType is never nil (it's instead just an empty string)
2022-07-02 16:27:02 -04:00
thegrb93
2f5cf685b1
Add base onremove call. Fixes: #2342 (#2343) 2022-06-20 15:57:04 -04:00
TwistedTail
5fdeb01a1f
Fixed AdvBallsocket not using the proper argument for local offset (#2340)
* Added ballsocket(evevvvv) and ballsocket(evevvvvn)

- Added two ballsocket E2 functions that will take advantage of both local vector arguments from `constraints.AdvBallsocket`

* Removed new functions, switched use of LPos2 on AdvBallsocket

- Removed new functions as requested.
- All functions using AdvBallsocket constraints will now properly use the `LPos1` argument instead of `LPos2` for the offset.
2022-06-13 01:33:50 -04:00
thegrb93
810b15680d
Add buffer check. Fixes: #2334 2022-05-23 12:10:44 -04:00
thegrb93
0ce10763e5
Add another valid check. Fixes: #2335 2022-05-23 12:04:59 -04:00
Divran
28e929e5c2
Update issue templates 2022-05-22 03:08:32 +02:00
thegrb93
571fd03d71
Fix lua error. Fixes: #2332 2022-05-21 14:23:13 -04:00
thegrb93
ef22f19b45
Fix lua error. Fixes: #2329 2022-05-14 21:26:44 -04:00
thegrb93
3ffcfc0780
Update gmod_wire_cd_disk.lua (#2327)
* Update gmod_wire_cd_disk.lua

* Update gmod_wire_cd_disk.lua

* Revert back to integer math

* Update gmod_wire_cd_disk.lua
2022-05-14 02:00:46 -04:00
thegrb93
6b21309863
Fix lua error. Fixes: #2328 2022-05-13 00:25:50 -04:00
thegrb93
8a02009e40
Fix hydraulic length input ignored on dupe. Fixes: #2322 (#2325)
* Fix hydraulic length input ignored on dupe. Fixes: #2322

* Probably don't want 0 checks here

* Combine setRope and setConstraint
2022-05-09 20:17:41 -04:00
Divran
61bc1f3a58
Replace equality operator with rawequal (#2326)
Fixes lookup table growing indefinitely when comparing gmod's `Angle` or `Vector` types with each other
2022-05-09 13:18:48 -04:00
thegrb93
2be3bbc713
Fix null entity outputs. Fixes: #1662 (#2324) 2022-05-07 19:17:15 -04:00
TangentDelta
07fb444ccf
Fix Wired CD Reporting Wrong Number of Tracks (#2323)
The Wire CD reports the wrong number of usable tracks. At the moment, the medium CD model (models/venompapa/wirecd_medium.mdl) reports 8 tracks and 172 total sectors. There is no entry for track 8 in the entity's TrackSectors table which causes the CD Ray to give an erroneous sector index when attempting to read from it.

This change corrects this problem by reducing the total number of tracks on the disk by 1.
2022-05-05 21:48:58 -04:00
Dr4iv3rNope
633129e02a
Fixed typo in function entity:npcRelationship (#2321)
Expression 2: entities/gmod_wire_expression2/core/npc.lua:136: attempt to index global 'npc_disp_str' (a nil value)
2022-05-03 15:30:08 -04:00
Python1320
f12a2f6fb3
Add checkregex from E2/SF to text receiver (#2319)
* Add checkregex from E2/SF to text receiver

* Move function to library

* Fix varname

* Remove whitespace

Co-authored-by: Garrett Brown <grbrown93@sbcglobal.net>
2022-04-28 02:20:26 -04:00
thegrb93
ed80133976
Fix flir not working when 2d sky
Fixes: #2317
2022-04-24 17:22:52 -04:00
thegrb93
b0bf1fe05d
Increase RT cache. Fixes: #997 2022-04-22 17:28:52 -04:00
thegrb93
f640285fe4
Make math types trigger on modify (#2315) 2022-04-20 17:16:15 -04:00
lokachop
997310f36c
Fix a few exploits (#2318)
* clamp ram sizes to avoid advdupe encoder crashes

* frame save lag fix

* god im dumb

* non table.Count framesave crash fix

* networkstring overflow fix, allow using previously saved frames if over limit

* removed useless local value
2022-04-20 15:26:19 -04:00
Stooberton
386a603826
Fix wirelinks getting removed by WireLib.AdjustOutputs (#2314) 2022-04-15 12:20:03 -05:00
kerbalcadet
ce8531220f
Better(er) FLIR rendering (#2308)
* Fixed FLIR behavior and improved performance

* Reverted stencil->material to fix fog, setlightingmode(1)->mat_fullbright 1

* Moved Color() outside of hook, added colormod and suppressenginelighting

* added sun to TODO

* revert all prop_ entities to just prop_physics, render translucent props with dark texture to help with brightness

* lowered FLIR.col values to show texture

* raise flir.col slightly

* commented setcolormodulation since it's 1 now, fixed NPCs drawing after death

* Added client cvar for FLIR gain, so I don't decide the brightness for everyone

* removed unnecessary color call

* added check to make sure ents are actually removed on callonremove

* simplified rendering loop

* ipairs

* default gain 2 -> 2.2, translucent material changed to be less dark

* changed trans texture again because I used a CS texture...

* IsValid(ent) -> ent:IsValid(), removed CallOnRemove
2022-04-08 03:04:34 -04:00
CoreyLee Hassell
b31dbdea11
Delete .travis.yml (#2316)
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:35:04 -04:00
thegrb93
0bdd598253
Fix lua error. Fixes: #2313 2022-04-05 20:04:47 -04:00
thegrb93
34fbb07329
Fix exit point not linking. Fixes: #2284 2022-03-26 01:33:20 -04:00
thegrb93
59484405a3
Fix lua error. Fixes: #2310 2022-03-25 11:34:00 -04:00
thegrb93
7afcd27ce7
Fix lua error. Fixes: #2309 2022-03-24 18:04:32 -04:00
thegrb93
67d873e7ed
Fix nasty holo owner code (#2293)
* Fix nasty holo owner code

* Move into if block

* Fix invalid player case

* Improved to use steamid and DTVar

* Make it work

* More cleanup

* Made client get steamid instead of server sending it

* Use auth hook for hologram owner retention
2022-03-20 19:15:38 -04:00
thegrb93
d339983e2e
Fix error when socket weld is broken with invalid plug. Fixes: #2299 (#2300)
* Fix error when socket weld is broken with invalid plug. Fixes: #2299

* Use DTVars instead of NWVars
2022-03-20 19:14:42 -04:00
thegrb93
a8dbdc10cf
Fix lua error. Fixes: #2294 2022-03-19 21:02:28 -04:00
thegrb93
66184c3e89
Fix lua error 2022-03-18 22:11:27 -04:00
thegrb93
46b5d6016d
Radio refactor. Fixes: #1840 Fixes: #1841 Fixes: #1847 Fixes: #2148 (#2297)
* Radio refactor. Fixes: #1840 Fixes: #1841 Fixes: #1847 Fixes: #2148

* More cleanup

* Make sure receives are within range

* One more small cleanup
2022-03-18 22:05:50 -04:00
thegrb93
f8f4b7bb42
Fix lua error. Fixes: #2302 2022-03-16 17:12:48 -04:00
Divran
1a3297fd43
Merge pull request #2301 from Aws0mee/master
optimizations
2022-03-16 20:48:08 +01:00
Aws0me
e6462d5e7f moved hook to screens file 2022-03-15 04:51:06 -04:00
Aws0me
64b2352a85 changed pairs to ipairs 2022-03-15 04:30:04 -04:00
Aws0me
8da0962a80 optimized pods 2022-03-15 04:09:58 -04:00
Aws0me
e42f787dbf fix 2022-03-15 04:06:10 -04:00
Aws0me
d6afc4269b optimize rt cameras serverside 2022-03-15 04:01:54 -04:00
thegrb93
d67a4bde1d
Default name to (generic) 2022-03-13 20:57:44 -04:00
thegrb93
f382ae2c61
Fix lua error. Fixes: #2298 2022-03-13 20:55:46 -04:00
thegrb93
726419d218
Fix lua error. Fixes: #2295 2022-03-11 20:43:22 -05:00
thegrb93
f5c907cfde
Refactor entity indexing. Fixes: #1152 (#2291)
* Refactor entity indexing. Fixes: #1152

* Made it persist on entities

* Forgot to delete this

* Update entity.lua

* Missed these

* Fix missing paren
2022-03-11 11:46:20 -05:00