Commit Graph

84 Commits

Author SHA1 Message Date
Astralcircle
f182ffdc69
Don't use resource.AddFile for font (#3265) 2025-02-13 19:38:45 -05:00
thegrb93
0322687974
Make netstream timeout 30. Gmod apparently struggles sending 20kb in under 10s sometimes (#3117) 2024-08-10 16:54:51 -04:00
Viter Zakhar
e587aec654
sentSpawn functionality (#3086)
* sentSpawn functionality

* Comply with linter

* Move castings to E2/Wire lib

Moved casting and typeIdToString to E2Lib and WireLib.

Fixed major bug, where registered sents didn't check for prop protection, when creating constrains.

Changed comments a bit

* Update sents_default_params.lua

* Update prop.lua

* Moved sents_default_params.lua

Moved sents_default_params.lua
Renamed sents_default_params.lua
Changed the way to block sents, and renamed whitelist to registry, to reinforce reusability for thirdparty addons

* gmod_wire_value bug fixes

* remove whitespace -_-

* WireLib.SentSpawn.Unregister table removal fix
2024-06-27 01:32:17 -04:00
thegrb93
fc1e6f1c2f
Rewrote netstream (#3081)
* 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-13 18:32:58 -04:00
Denneisk
9b600edb6c
Make Wiremod use Canary version for load (#3074)
Remove UWSVN code
Change Wiremod version print to use fancy string
2024-05-22 17:06:48 -04: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
Vurv
6e2aba39f4 Undo gpulib removal
This is why we need automated tests
2023-07-12 08:57:36 -07:00
Vurv
21b8efa24c
Fixes for cpu migration (#2673) 2023-07-11 16:20:50 -07:00
Fasteroid
6893cb4504
more models + modelplug cleanup (#2563)
* refactor this terribleness

like actually who wrote this

* add epic led model

* less redundant file-exists checks

* minor syntax error

* cursed model

* more leds!

* I'm a huge fan!

(add computer fan model)

* remove big LED

(this was way too large)

* inductor model :)

* pick one damn it

tabs OR spaces, NOT BOTH!

* unspaghetti this crap

data plug has been missing models for years!

* more antispaghetti shennanigans

* several things

add usb-c plug and socket
fix bugs from unspaghetti commit
plugs play confirmation sound when linked

* shared modelplug

* improve lua autorefresh compatibility

* finally remove redundant angle offset code

* SD card & socket

* microusb :)

* all lint fixes

* more lint fixes
2023-07-10 16:58:10 -04:00
relt-1
f7a9706627
Added more screens. (#2551)
* Add files via upload

* Add files via upload

* Lots more monitors

* Add files via upload

* Add character lcd

* Update init.lua

* More console/lcd special characters

* New font, and hi res screens.

Github dif broke
changed files:
textscreen cl_init
consolescreen cl_init
digitalscreen cl_init
oscilloscope entity
egp cl_init
wiremonitors.lua
gpulib

increased RT size to 1024
added a font from https://mdileo.tripod.com/utilities.html

This may break some things.

* LCD models by fasteroid ! !

* More lcd models

16x4
40x4

* Use matrices instead of looping through an array

* One more because i felt like it

20x4 added

* Update cl_init.lua

* Update cl_init.lua

* Interactive props

* Update cl_init.lua

* Make digital screen better

* Fix tabs

Changed tabs into double spaces.

* FIx tabs (again)

* Refactor

* Fix potential issue

* Make only certain values floor

* Made cursor drawing independent of rest of drawing

* Some fixes

---------

Co-authored-by: thegrb93 <grbrown93@sbcglobal.net>
2023-05-30 10:51:15 -04:00
March Cain
147b817eb5
Extend validation menu (#2453)
* Add Issue Viewer component

* Add issue viewer to wire load

* Implemented into E2/CPU editor

* Make nodes with no line/char data not set the caret

* typed a space by accident

* Cache IssuesView's background color

* Fixed a couple of UI issues I missed
2022-10-19 17:25:27 -07: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
100PXSquared
ec99005dd4
E2 View Requests System (#2157)
* Add E2 view requests system

* Prevent prop protection stopping view requests

* Perform CanTool check if chip owner is invalid

* Refactor checks in TOOL:Think

* Add SteamID whitelist convar to view requests

* Fix request answer netmsg validation

* Add EoF newline

* Refactor E2 view requests

* Replace bypass list with bypass mode convar

* Implement allow always

* Replace checks in remote updater code request

* Fix copy paste induced bug
2021-06-23 03:01:26 -04:00
CaptainPRICE
3bfdc5c9bd Remove beam netvars (leftover from #969), because it is completely unused. 2019-04-08 12:38:03 +02:00
Garrett Brown
6f4557c610 Revert "Revert "NetworkedBeams are still needed""
This reverts commit 0f573e41c4.
2017-01-12 12:41:26 -06:00
Garrett Brown
0f573e41c4 Revert "NetworkedBeams are still needed"
This reverts commit 70dded021e.
2016-11-25 15:42:41 -06:00
Garrett Brown
70dded021e NetworkedBeams are still needed 2016-11-23 20:51:21 -06:00
Garrett Brown
31e92ea921 Finished killing beams. Fixes #969 2016-11-23 12:32:37 -06:00
Garrett Brown
17b7d7ef1c Merge remote-tracking branch 'wire/wire-paths' into wire_beams_optimize 2016-11-21 18:39:14 -06:00
Abigail
88cd413c87 Move E2/CPU-specific editor stuff to its own files 2015-12-22 12:41:56 +00:00
Abigail
a78e67151d Move text editor files to their own subdirectory 2015-12-21 15:37:21 +00:00
Abigail
f93a7f2f8d Add a GUI for enabling/disabling E2 extensions
Fixes #1012
2015-12-06 10:17:23 +00:00
Abigail
20de2ce309 Add library for syncing wire paths
It performs incremental syncing much like the old beam vars library.
However, given the amount of bandwidth saved by not using usermessages and
an ugly key-value format, this may be overkill, and it might be nicer to
just immediately sync paths as soon as they're added.
2015-09-21 21:16:45 +01:00
Divran
3fef717666 forgot to addcsluafile von 2015-01-21 19:04:28 +01:00
Divran
0d3cd48933 Update wire_load.lua
part 2 of fixing von error
2015-01-20 18:55:44 +01:00
Divran
37979e17da Rename lua/autorun/von.lua to lua/wire/von.lua
part 1 of fixing von error
2015-01-20 18:55:22 +01:00
Divran
29d027481a Moved von to WireLib
Because it's an old version of von, so it might conflict with new
versions of von installed by other addons. We can't update because the
latest version of von isn't backwards compatible (yet).
2015-01-18 00:14:19 +01:00
Divran
d305163fdf Custom wire tool menu 2014-05-31 03:12:05 +02:00
Python1320
8dc5728a10 Removed OnEntityCreated "temporary" workaround
"Nothing is more permanent than a temporary solution."
2014-04-19 14:44:10 +03:00
Grocel
1adfbc5abd Improved the Sound browser and added new outputs to the Sound Emitter 2014-04-14 02:18:03 +02:00
Nebual
10a01a956a Added a Version Checker on startup and concmd 'wireversion'
Concommand works clientside (prints the server's version)
Can detect Workshop, Git, and SVN (at least TortoiseSVN)
The partial git hash works in https://github.com/wiremod/wire/commit/f3a4ac3
2013-09-09 23:48:23 -07:00
Nebual
8930ec9edd Removed client/toolscreen.lua: It is no longer used in Gmod13
This code appears to be exactly what is now present in Garrys cl_viewscreen.lua
Which we switched to using in the Gmod13 transition.
2013-08-11 03:02:28 -07:00
AbigailBuccaneer
c1fe96578b Rewrote gmod_wire_cameracontroller.
* Moved FLIR out to a separate file
* Removed the velocity input, which didn't make any sense at all
  (and required the entity to have a physobject)
* Fixed a whole bunch of subtle bugs
* Modified the cam controller tool to use SetupLinking
2013-08-10 14:57:11 +01:00
Nebual
ef37a6d1f6 Added Convar: wire_force_workshop, forces clients to DL wire
Closes #336
2013-08-03 20:37:54 -07:00
Nebual
81be533089 Thruster/VThruster: Standardized effects into thrusterlib.lua
Over 4 years ago, WeltEnSTurm optimized the thruster's effects, limiting it to
just 1 shared ParticleEmitter, instead of a new one every client frame, and
fixing a bug where source wouldn't create any more ParticleEmitters.
This, among other fixes, never got into vthrusters.
Also, tidied up both cl_inits
2013-07-31 22:42:23 -07:00
AbigailBuccaneer
03972803dd Normalize line endings. 2013-07-28 15:51:47 +01:00
Nebual
612a3a0079 Fixed missing E2 Editor textures
Deleted some legacy texture files in favour of their modern equivalents
Fixes #337
2013-07-24 03:07:52 -07:00
Nebual
38192af021 Debugger: Moved the formatPort global to its own file
Sometimes lua is loaded in a different order, usually stools load before SENTs
but occasionally E2 extensions load before the Debugger, causing an error when
they try to register types. Now formatPort is loaded very early on.
Fixes http://errors.garrysmod.com/error/447498603/
2013-07-22 12:55:07 -07:00
Nebual
e3393b3327 wire_load: Lowercased all lua file references 2013-07-22 12:16:25 -07:00
Nebual
efe065dea8 Renamed all files to lowercase, for Workshop compatibility 2013-07-12 00:55:14 -07:00
Nebual
dc23a0a8cb License: Changed from GPL3 to Apache2
With an addendum at the end of LICENSE that old contributors can contact us
if they're unhappy with the change
As discussed in #303, #306, #307
2013-07-10 12:06:08 -07:00
Nebual
7120d8aec6 Added a system to write all the data/*.txt files from lua
This is for Steam Workshop compatibility, as it does not permit .txt files
This should mostly deal with #307, unless theres other whitelist problems
2013-07-10 02:16:00 -07:00
Nebual
d347ddaf6e Bandaiding a VERSION check bug some users are experiencing
Fixes #290
2013-06-16 13:52:07 -07:00
Nebual
20e7c15635 Updated vON. We're now using the version with Gmod types
Thus Vectors/Angles/Entities/Players are now supported
Fixes #259
2013-03-30 19:56:11 -07:00
Grocel
30fe042740 - Replaced the sound browser by a completely new one.
- It's much faster and has more features.
  - It got a favourite manager added
- Added wire_filebrowser and wire_listeditor VGUIs.
- Adjusted the wire_expression2_browser to use GMod 13's docking.
Added some functions (for sound browser's favourite manager).
2013-03-31 01:19:02 +01:00
Nebual
d8cc487b43 Fixed some aspects of UWSVN not loading
Fixes #244
Was removed by Jetbeard's 278fc78408
but the reason UWSVN was loaded by Wire was to ensure Wire loaded first
2013-03-03 15:12:52 -08:00
Nebual
dc4842e473 Removed WireGPU_RT_x.txts, they are no longer required 2013-01-14 17:58:43 -08:00
Nebual
18f5b42e33 Temporary workaround while OnEntityCreated isn't working...
Fixes E2 editor not ever asking for functions
2012-11-01 23:16:25 -07:00
Nebual
427cd151ac Gmod13 Release updates
Renamed info.txt to addon.txt to conform to Gmod13
Changed references of VERSION >= 151 to VERSION >= 143, as Gmod13 release has a lower version number than Gmod beta had
Removed code sections for VERSION < 151
2012-10-24 13:34:12 -07:00
Jetbeard
a2a89eadc4 Removed update check and welcome menu until somebody fixes them. 2012-10-15 14:12:26 +01:00