Commit Graph

150 Commits

Author SHA1 Message Date
Kai Blaschke
d0099a6d79
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
2024-02-19 23:44:59 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.

99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.

Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.

Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
Kai Blaschke
c731eedeaf
Use memmove instead of memcpy as the blocks overlap. 2024-02-19 14:13:33 +01:00
Kae
ddc64fb14c Fix up and add options menu slider 2024-01-03 20:08:57 +11:00
Bottinator22
91cf2d8251 Add fork changes (move instruments to their own audio group) 2024-01-02 23:08:51 -08:00
WereTech
6294e9ed1c add camera panning speed setting
- adds a setting that changes the speed of the camera when panning with the CameraShift keybind.
- fixes what I assume is a typo in the zoom slider that referenced the resolution list size instead of the zoom list size
2023-11-28 11:04:45 -06:00
Kae
994b0fe3cf Fix TestUniverse 2023-11-24 20:35:45 +11:00
Kae
86f41b8450 Fix crash right clicking empty item slots with no swap item 2023-11-02 16:30:34 +11:00
Kae
0497048b44 Add input.mousePosition 2023-11-02 08:12:21 +11:00
Zithia Satazaki
00eeb4a809 displayRegisteredPane 2023-10-31 00:31:53 -04:00
Kae
8122cc3e7f Update StarMainInterface.cpp 2023-10-31 08:53:18 +11:00
Kae
51d6e63dfe Only do spatial logging when spatial log is observed 2023-08-31 04:55:36 +10:00
Kae
edbee201ee Command to adjust global timescale 2023-08-20 23:51:43 +10:00
Kae
f6f91b18e8 Various improvements
You can now right click empty slots to insert one from swap.
Added unique sounds for the swap slot count incrementing/decrementing.
Material placement now plays sounds.
2023-08-18 23:14:53 +10:00
Kae
994c533a0f Improve planet name title
They began showing during the warp cinematic and their fade-out timing was wrong.
2023-08-02 19:29:21 +10:00
Kae
df83b02f1d move interface item messages when bottomActionBar is enabled 2023-07-31 15:43:04 +10:00
Kae
31f5816e8a Update StarBaseScriptPane.cpp 2023-07-30 01:28:43 +10:00
Kae
ffd1507f72 ScriptPanes can specify paneLayer and interactive 2023-07-30 00:41:38 +10:00
Kae
057f3727de Bottom Action Bar 2023-07-30 00:11:16 +10:00
Kae
224ad2c2c0 Reset script panes on character swap 2023-07-29 02:12:03 +10:00
Kae
f2afd91d0f Fix Teams not functioning as swapped character 2023-07-26 19:02:33 +10:00
Kae
4c636e911c Add default crafting config values 2023-07-24 22:11:45 +10:00
Kae
c127b50303 Fix discrepancy in voice saving 2023-07-24 20:58:32 +10:00
Kae
0aee45a117 Cache certain item generation calls from interfaces
Helps a little with the lag from recipes when having crafting interfaces open, but it's still noticeable.
Also micro-optimized Root maintenance by unlocking the Root mutexes for their respective shared_ptrs earlier once we have our own shared_ptr.
2023-07-23 22:44:02 +10:00
Kae
cb19eef701 Add character swapping (no GUI yet) 2023-07-22 22:31:04 +10:00
Kae
4fbd67dacc Fix Inventory::update not calling base Pane update 2023-07-22 21:35:00 +10:00
Kae
4b0bc220e4 Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
2023-07-21 00:58:49 +10:00
Kae
043db1841e Voice: Minor options menu fixes, fix decibel level freezing on muted speakers 2023-07-20 14:55:38 +10:00
Kae
db3d004d30 Fix decibel level being 0 when under threshold 2023-07-19 23:30:04 +10:00
Kae
7ad1671e0d Fix residual voice data not clearing 2023-07-19 23:28:13 +10:00
Kae
f2bc9adc36 Minor fixes 2023-07-19 23:25:16 +10:00
Kae
1f038540a5 Port in the voice settings menu 2023-07-19 23:16:59 +10:00
Kae
d682b164aa more Lua voice callbacks 2023-07-19 21:12:14 +10:00
Kae
0c1c3611b1 Save loopback setting 2023-07-19 19:06:53 +10:00
Kae
620c23e70a Schedule voice config save when updating settings from Lua 2023-07-19 19:04:31 +10:00
Kae
35b1c36b17 Add loopback, fix mono and leak 2023-07-19 18:59:35 +10:00
Kae
3cdbf8bf01 Lua functions for updating Voice settings, improve loudness visualization 2023-07-19 18:15:49 +10:00
Kae
a9dac1b2df Detect setting changes loading Voice JSON 2023-07-19 01:16:47 +10:00
Kae
e1645f37fc Support for player entity message commands 2023-07-19 01:16:22 +10:00
Kae
770314fd7e Unused alternate blending for stereo 2023-07-18 18:18:02 +10:00
Kae
6e1d29fe86 Provide speaker info to HUD indicators 2023-07-18 17:36:51 +10:00
Kae
34bb0b5422 Initial voice HUD indicator setup 2023-07-17 22:20:39 +10:00
Kae
848b11399f Get SE-compatible voice transmission working 2023-07-16 23:04:09 +10:00
Kae
da098c7b48 Support receiving SE voice data, resample per-speaker again because of positional delay 2023-07-16 20:44:15 +10:00
Kae
4e44a4ed75 Get transmission working 2023-07-15 14:01:44 +10:00
Kae
91cd6182d8 Fix mono 2023-07-15 00:39:10 +10:00
Kae
b4a53e0706 Only resample during mix, store samples a simpler way
Still need a better resampler, I think
2023-07-15 00:35:23 +10:00
Kae
73c5a17746 Move Opus encoding off-thread because of SDL
SDL gives its audio threads a very small stack size and it was making Opus fuck up
2023-07-14 22:47:49 +10:00
Kae
52ba6fa7f7 Ensure NONTHREADSAFE_PSUEDOSTACK is never used 2023-07-14 21:44:13 +10:00
Kae
8ff5d9f82b Update StarVoice.cpp 2023-07-14 19:54:56 +10:00
Kae
77e14b5941 cleanup 2023-07-14 18:29:36 +10:00
Kae
3b38825b34 more voice stuff 2023-07-14 13:13:19 +10:00
Kae
f14f77724d more voice work!!! 2023-07-13 20:47:53 +10:00
Kae
28f4204b09 more Voice work 2023-07-13 19:12:55 +10:00
Kae
f9e8b5badf more work on Voice 2023-07-13 15:01:07 +10:00
Kae
40223a5090 Initial work 2023-07-12 22:16:12 +10:00
Kae
fe4cc19618 Change pure string format calls to use fmt::to_string 2023-07-06 19:26:28 +10:00
Kae
f75d1f0b5a Wire rendering improvements 2023-07-05 21:33:15 +10:00
Kae
54dfd900ca interface.bindCanvas uses interface scale by default 2023-07-05 18:25:16 +10:00
Kae
c923f4f13b pane lua stuff 2023-07-04 22:36:27 +10:00
Kae
e3461e9053 Start of Interface callbacks, starting with a bindCanvas function for the whole screen 2023-07-04 19:27:16 +10:00
Kae
c343a7dfaf Add toggle for debug HUD 2023-07-04 04:42:16 +10:00
Kae
11e00a8ded Change debug render time logging to use microseconds 2023-07-03 16:04:17 +10:00
Kae
8ee9c97f54 Tweak debug font 2023-07-03 14:48:42 +10:00
Kae
d018957b09 Fix font glyph generation to work correctly with other fonts 2023-07-03 14:21:51 +10:00
Kae
2386a95342 Input Binding support 2023-07-02 17:19:54 +10:00
Kae
c48a61bb03 Update StarNameplatePainter.cpp 2023-07-01 07:55:22 +10:00
Kae
ee2e134bbf Title music fades in/out 2023-06-30 12:02:00 +10:00
Kae
33b980dacb Change default menu logo 2023-06-30 11:45:26 +10:00
Kae
204d449dda Change how the game renders the world backdrops 2023-06-30 08:37:27 +10:00
Kae
d5fbd2001b RenderPrimitive micro-optimizations 2023-06-30 04:34:10 +10:00
Kae
7fc9260829 Add extra checks to the char creation pane to prevent crashes when the player is not using an extension mod with extra species 2023-06-29 22:02:35 +10:00
Kae
624c7aaaf1 Move lighting calculation to separate thread 2023-06-29 10:11:19 +10:00
Kae
1e213aac5f Decimal zoom with lerp 2023-06-29 07:05:01 +10:00
Kae
fb0ab85089 Lua: player.* identity getters and setters 2023-06-29 05:58:24 +10:00
Kae
4c006afc94 Add unused support for using the actual humanoid for armor preview 2023-06-28 01:34:37 +10:00
Kae
59ab7dabe6 Misc internal UI fixes 2023-06-28 01:07:55 +10:00
Kae
efa3872396 Don't do spatial logging on the server 2023-06-28 00:50:47 +10:00
Kae
152af87655 Fix broken regex, make game timestep non-const 2023-06-28 00:20:22 +10:00
Kae
332983c97b The Formatting String Catastrophe 2023-06-27 20:23:44 +10:00
LDA
c9e889723b resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
2023-06-26 11:58:35 -07:00
Kae
4585c9cafa Lazy-loading of ImageOperation inside Directives
also fixed cases of drawables not staying centered after adding directives that scale
2023-06-27 03:38:57 +10:00
Kae
14e23a17cc fix ErrorScreen pane never coming back after closing the first error 2023-06-27 01:22:09 +10:00
Kae
4e6e342169 Improve AssetPath::split
also fixed a bug with the cursor changes
2023-06-27 01:04:58 +10:00
Kae
63b68b3a55 Nameplate and chat bubble improvements
They should stack much better now. I also hooked up the true mouth position to the name-tag, but it's too shaky on chat bubbles.
2023-06-27 00:42:07 +10:00
Kae
14ef69c0f6 Move error screen over title 2023-06-26 20:40:32 +10:00
Kae
68d20787cf The camera is now also an audio listener 2023-06-26 19:25:37 +10:00
Kae
4b9b02783f HD Cursor 2023-06-26 18:39:40 +10:00
Kae
13a74602bd Upgrade to C++17 2023-06-25 20:01:32 +10:00
Kae
7783fc7310 Fix font issues
it's 1:30 AM again :(
2023-06-25 01:34:29 +10:00
Kae
008bd6d3df more!! more!!!! 2023-06-25 01:16:40 +10:00
Kae
7eb010d4a1 Pretty much working now 2023-06-24 22:49:47 +10:00
Kae
e64aabfcf1 add Nametag Directives 2023-06-23 20:24:40 +10:00
Kae
02c2696134 Hide the hardware cursor when in a cinematic 2023-06-23 19:01:22 +10:00
Kae
176c79bada Hardware Cursor support
Updated SDL2 for this, so lib\ is no longer gitignored
2023-06-23 18:13:26 +10:00
Kae
87163147b3 fix crash when disconnecting with inventory open
additionally, fix humanoid identity being constantly sent by the server even when unchanged
2023-06-22 13:29:42 +10:00
Kae
f0fec34dc9 The Fontpocalypse
I hate it
2023-06-21 22:29:40 +10:00
Kae
bd783d3195 make the chat really pretty!!
also slightly optimized text shadow rendering, made sure glyphs with directives stay centered and added two extra Lua arguments to canvas.drawText
2023-06-21 00:59:41 +10:00
Kae
a330802d37 fix chat text being 50% transparent for no good reason
y'all lived like this??
2023-06-20 22:41:36 +10:00
Kae
6352e8e319 everything everywhere
all at once
2023-06-20 14:33:09 +10:00