Commit graph

19,552 commits

Author SHA1 Message Date
Marcus Minhorst
0909e12d62 Expose m_simpleoptions_view cvar to menus 2025-07-17 23:26:54 -03:00
Dileep V. Reddy
f6481b2876 Stacked-sector portal and reflective flat stencils rewrite to address rendering bug with stencil cap. 2025-07-17 23:26:25 -03:00
Ricardo Luís Vaz Silva
385c8db2cc fix window showing with norun 2025-07-17 04:21:46 -03:00
Boondorl
a44632f41b Fixed EFX enum 2025-07-17 03:19:52 -03:00
Boondorl
73445f6f6a Fixed arithmetic state jumps going out-of-bounds 2025-07-17 03:19:52 -03:00
Ricardo Luís Vaz Silva
99ffd8727b rewrite array codegen for field access
fixes major codegen bug
2025-07-17 03:19:12 -03:00
Wohlstand
ee7e913e1a Added gaining factor for OPL Synth Emulation too
Also, fixed default gaining values at libADL and libOPN (they should be 1.0, not 0.5)
2025-07-15 17:17:47 -04:00
Wohlstand
c461ecf19b ADLMIDI: Added support for GENMIDI as a custom bank
Now, libADLMIDI can use GENMIDI bank too as the "OPL Synth Emulation"
2025-07-15 17:17:47 -04:00
Wohlstand
798ceddea6 Added gain for libADLMIDI and for libOPNMIDI 2025-07-15 17:17:47 -04:00
Wohlstand
8954463f0e Added new libADLMIDI and libOPNMIDI options
Not yet translated
2025-07-15 17:17:47 -04:00
Boondorl
b23f050b88 c_cvars.cpp: d_protocol.h -> i_protocol.h 2025-07-15 00:16:34 -03:00
Boondorl
f513e3de99 Moved stream reading/writing protocol to common
Allow this to be used anywhere within the engine, especially for internal network handling.
2025-07-15 00:16:34 -03:00
Marcus Minhorst
32cf838ecf Added Home/End menu binds 2025-07-12 22:33:02 -03:00
Boondorl
c284aa366d Use TArrayView instead of TArray for ClearNativePointerFields 2025-07-10 14:12:31 -03:00
Boondorl
269689703d Clear references to map data on level change
These shouldn't be left as they'll now point towards potentially invalid memory and also cause errors with serializing. Arrays and maps holding them are cleared. Also unlinks and relinks inventory items correctly from the hashmap on traveling.
2025-07-10 14:12:31 -03:00
Ricardo Luís Vaz Silva
29b2253bdb TArray list constructor 2025-07-10 14:12:31 -03:00
Chris Cowan
ab7b1642bc Prevent buffer overflows when using streams 2025-07-10 14:11:08 -03:00
Chris Cowan
13a8b0e5ba Fixed incorrect buffer grow calls
Fixes minor mistake introduced in 94be307225.
2025-07-10 14:11:08 -03:00
Boondorl
42a3ca3d56 Move OnLoad to after everything is done serializing
Makes behavior much more consistent and safer.
2025-07-09 22:08:54 -04:00
Marcus Minhorst
5bd8c7f3be Unified name capitalization: *menu -> *Menu 2025-07-08 16:30:17 -03:00
Boondorl
ca98f33f42 Added support for client-side VisualThinkers 2025-07-08 16:28:40 -03:00
Boondorl
7e90f3a0f3 Fixed teleporters breaking view interpolation 2025-07-08 16:28:16 -03:00
Boondorl
a73d9f6e8f Added support for client-side Behaviors 2025-07-08 11:34:04 -03:00
Boondorl
17f1c90d4a Always back up players even in singleplayer
This way client-side actions will be consistent between multiplayer and singleplayer.
2025-07-08 11:32:15 -03:00
Boondorl
ccf178577d Updated client-side ACS handling
Moved to a new ownership system. Only clients that own the activators will be allowed to call truly client-side scripts. Server objects that attempt to do this will instead run on the server.
2025-07-08 11:32:15 -03:00
Marcus Minhorst
d7bb21e2e3 Implemented sdl stubs and improved controller reconnection 2025-07-08 10:11:28 -03:00
Marcus Minhorst
4340c6df0b Implemeted cocoa stubs 2025-07-08 10:11:28 -03:00
Marcus Minhorst
e9dbf55f2e Implemented dinput stubs 2025-07-08 10:11:28 -03:00
Marcus Minhorst
a41ced099c Implemented rawps2 stubs 2025-07-08 10:11:28 -03:00
Marcus Minhorst
bac24118c2 Implemented xinput stubs 2025-07-08 10:11:28 -03:00
Marcus Minhorst
8c12037ef4 Unified gamepad settings 2025-07-08 10:11:28 -03:00
Marcus Minhorst
33b22d99da Implemented saving, ccmd, and options menu 2025-07-08 10:11:28 -03:00
Marcus Minhorst
92e66479fc Added stubs and helper functions 2025-07-08 10:11:28 -03:00
Marcus Minhorst
d75d3aacf9 SDL2 GameController API utilized 2025-07-08 10:11:28 -03:00
Marcus Minhorst
6ec17f28eb Cleanup: Alignment, long lines, Replace 0 with SDLK_UNKNOWN 2025-07-08 10:11:28 -03:00
Marcus Minhorst
6a126e616d Enable gamepad by default 2025-07-08 10:11:28 -03:00
Marcus Minhorst
1bbd6c136f Only block keydown 2025-07-08 10:11:28 -03:00
Marcus Minhorst
0f72a671fc Revert "Gamepad Improvements"
This reverts commit 2a5cce543b.
2025-07-06 20:40:03 -03:00
Boondorl
17f58f514f Fixed missing multiplayer tab localization 2025-07-05 18:12:21 -03:00
Boondorl
9701bfaa5c Added multiplayer tab for launcher + backend improvements
Adds a multiplayer tab to allow hosting and joining games from within the GZDoom launcher rather than needed to use the command line. This has its own set of defaults independent from the main play page which necessitated rewriting how this information is passed and stored in the backend. A startup info struct is now passed back which has its defaults set from the cvars and then propagates any changes to it back to the defaults after selection is complete, making it much simpler to interface with the engine defaults.
2025-07-05 18:12:21 -03:00
Boondorl
6756c850e7 Disable autoloading mods when playing online
Any mods when hosting and joining should have to be explicitly labeled, this way extra mods aren't accidentally making their way into the lists.
2025-07-05 18:12:03 -03:00
Marcus Minhorst
2a5cce543b
Gamepad Improvements
* Cleanup: Alignment, long lines, Replace 0 with SDLK_UNKNOWN

* Gamecontroller api analogue input

* Added some button handling

* Added mapping for other buttons

* Added trigger events

* Added force_joystick flag

* Removed force_joystick flag

Rationale:
1. It was actually broken lol
2. I cannot think of a case where enabling this would be a useful thing for
gzdoom. If the user is using a gamecontroller, it is pointless. If they are
not using a gamecontroller, it will just default to using the joystick api.
If they are not using a gamecontroller, but SDL thinks they are, it is an
SDL bug, and will be reported and fixed

* Modified default mapping

* Added analogue to digital threshold

* Added analogue response curve

* Per axis settings

* Fixed controller reconnect

* Added threshold and curve to IJoystickConfig
Enabled saving of settings

* Added stubs

* Cleanup

Constants are no longer defines.
Constants are mostly shared between backends.
Moved some logic to m_joy

* Implemented xinput stubs

* Implemented dinput stubs

* Implemented ps2 stubs (untested)

* Fixed inclusive check

* Implemented osx stubs (untested)

* Fixed curve implementation

No longer savable, I screwed the curve function up.
I though it needed 2 control points, but it needs 4.
Need to re-do controller settings :(

* Now using CubicBezier struct

* Fixed SetDefaultConfig to match xinput behavior

* Expanded gamepad CCMD

* Rename enum JoyResponseCurve to EJoyCurve

* Initial menu implementation

* Fixed SDL controller setting saving

* SDL gamepads can now actually be disabled

* Fixed initial controller connect of some versions of SDL

* Spelling error

* Enable gamepad by default

* Fixed segfault on some versions of SDL

* Only block keydown
2025-07-05 17:41:40 -03:00
Boondorl
672a21f533 Fixed bad VisualThinker nodes getting into the render list
Relink on loading instead of serializing since order doesn't matter here.
2025-07-05 08:21:21 -04:00
Cacodemon345
a2450e1195 Add mechanism for Prosperity Rune-like powerups
Also add a flag to use Zandronum/Skulltag semantics for BasicArmorPickup
2025-07-04 09:25:28 -03:00
Boondorl
9a111931cf Fix for WorldPaused
Also consider the console rising to be unpaused.
2025-07-04 09:24:57 -03:00
Boondorl
a1a3be1046 Clean up console commands
Improve functionality of network console commands and make displaying of who is who clearer.
2025-07-04 09:24:50 -03:00
Boondorl
1e1ab58ee2 Fixed startup music being cancelled
This seems to happen from one of the music cvar callbacks wiping it, but I'm ensure of which (possibly music volume?). Move it to after cvar initializing until a proper fix can be found.
2025-07-04 01:18:32 -04:00
Boondorl
2de0480147 Clamp max number of commands generated
Only allow half the host's buffer to be filled at any time.
2025-07-02 21:19:15 -03:00
Boondorl
492c83cf2c Improve stability in packet-server mode
Use buffers reported by clients so they can better check their own conditions when determining how to stabilize when outpacing the host.
2025-07-02 21:19:15 -03:00
Boondorl
0e23b900bb Added dynamic tic stabilization
Attempts to balance periods of rough traffic by putting in an artificial delay, smoothing playback but further increasing input delay. This can be disabled with net_ticbalance.
2025-07-02 21:19:15 -03:00