Commit Graph

334 Commits

Author SHA1 Message Date
Kae
af74a2f491 Rename global WorldTimestep var to more appropriate name 2023-08-15 13:38:40 +10:00
Kae
2a204b384f Add optional alpha threshold option for fonts 2023-08-04 23:47:52 +10:00
Kae
65bacddc67 Log missing scripts 2023-08-04 23:47:39 +10:00
Kae
1e9690b433 the unbridled whimsy within me: 2023-08-04 14:28:43 +10:00
Kae
dcc15a8103 Add new smooth Hobo font 2023-08-04 00:21:24 +10:00
Kae
722488a9ab Fix racial liquid descriptions not being used 2023-08-03 16:25:04 +10:00
Kae
6afba048ec More default fonts
barcode is Libre Barcode
2023-08-03 01:17:08 +10:00
Kae
37d4abd60f Update StarPlayerStorage.cpp 2023-08-02 23:05:30 +10:00
Kae
6abad768a6 Backups are now placed in their own directory 2023-08-02 22:56:36 +10:00
Kae
b2cabc7567 Game can now load players with non-uuid filenames 2023-08-02 22:25:20 +10:00
Kae
98949574a8 SwimIdle tech parent state 2023-08-02 22:02:21 +10:00
Kae
32e6eab069 Player: Make interaction radius scriptable 2023-08-02 21:59:07 +10:00
Kae
c80b2d2dbc Add loading icon when swapping character 2023-08-02 21:28:37 +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
856e93be3f Skip packet compression on Voice packets
cause 99% of the data is already compressed by Opus
2023-08-02 14:43:49 +10:00
Kae
b318e981e3 Windows: Use SRW locks for non-recursive mutex (it's faster!) 2023-08-02 13:07:14 +10:00
Kae
c46b8f43d8 Update StarLogging.cpp 2023-08-02 12:32:57 +10:00
Kae
b4b2219aed Log file path in libpng errors & warnings properly 2023-08-01 20:23:48 +10:00
Kae
678a461904 Logger: Do string formatting before lock and only if LogLevel is loggable 2023-08-01 20:23:05 +10:00
Kae
9ba734ea14 Ensure debug symbols on Clang and GCC 2023-08-01 18:14:27 +10:00
Kae
4af22dd1fa Update StarNpc.cpp 2023-08-01 17:51:58 +10:00
Kae
b7aa185070 Update StarNpc.cpp 2023-08-01 17:05:43 +10:00
Kae
0ef8807539 Changes to support modifying networking while maintaining legacy support 2023-07-31 20:22:09 +10:00
Kae
2dc10fa5ad Tile Prediction improvements
each tile modification is now validated and then added to prediction one-by-one
2023-07-31 17:31:02 +10:00
Kae
72e33fdef5 fix last aim being held when unequipping MaterialItem while holding fire 2023-07-31 16:41:12 +10:00
Kae
830d4deb7b Tile placement improvements
Placing materials is now done in a line to fix gaps at low framerates
2023-07-31 16:00:19 +10:00
Kae
df83b02f1d move interface item messages when bottomActionBar is enabled 2023-07-31 15:43:04 +10:00
Kae
f575bad5e1 fix broken LiquidItem preview (LOL) 2023-07-31 15:00:17 +10:00
Kae
f4ff9dcc49 better debug logMapping for predicted tiles 2023-07-31 14:59:38 +10:00
Kae
610dc72c6d Tile Prediction 2023-07-31 02:40:06 +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
40a2fe57e0 Update StarNpc.cpp 2023-07-29 12:14:11 +10:00
Kae
224ad2c2c0 Reset script panes on character swap 2023-07-29 02:12:03 +10:00
Kae
35fc2679de Allow desired entity ID to be specified in addEntity 2023-07-29 00:52:56 +10:00
Kae
b17b935c10 Fix net identity not updating after swapping character 2023-07-29 00:51:44 +10:00
Kae
5c650d7809 Make client-side NPC collisionPoly override opt-in 2023-07-29 00:49:38 +10:00
Kae
f2afd91d0f Fix Teams not functioning as swapped character 2023-07-26 19:02:33 +10:00
Kae
ddab1db73f Server: Log TCP error and carry on
Fixes the Singleplayer server thread locking up forever and leaving us in an eternal loading screen if the TCP socket fails to bind. Something on my PC is hogging the default server port, which is what made me encounter this.
2023-07-26 18:47:23 +10:00
Kae
c090b935ac Update StarNpc.cpp 2023-07-26 16:48:14 +10:00
Kae
aa220e7947 client-side NPCs 2023-07-26 16:45:01 +10:00
Kae
76f78c4b20 Update StarLua.hpp 2023-07-25 17:37:32 +10:00
Kae
d07baefaaa Update StarLuaConverters.hpp 2023-07-25 00:57:35 +10:00
Kae
ea084165bf Optimize entityPortrait: Drawable > LuaTable instead of Drawable > Json > LuaTable 2023-07-25 00:49:20 +10:00
Kae
8547c56ba4 Proper LuaString <-> String handling
Null-terminator usage is opt-in
2023-07-24 23:37:55 +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
7b4ae73647 add sb.jsonParse
also rolled up some rand functions into ternary statements
2023-07-24 19:17:17 +10:00
Kae
5a6c27dd9a whoops 2023-07-24 18:43:50 +10:00
Kae
af31bde032 Handle world creation error when sending world messages, add active world callbacks 2023-07-24 18:42:55 +10:00
Kae
a2d901bd66 Fix ToolUser exception when swapping player
Also made /swap by name exclude the current player when searching
2023-07-24 17:54:31 +10:00
Kae
c6a1d9880f Add DanceDatabase fallback
fixes being crashed when another player uses a modded dance
2023-07-23 22:54:34 +10:00
Kae
3b8ea95d61 Move MainInterface destruction on disconnect to fix Lua binding crash 2023-07-23 22:49:23 +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
121d27446b world.callScriptContext 2023-07-23 13:49:34 +10:00
Kae
d93b026829 Add WorldServer script contexts 2023-07-23 13:11:22 +10:00
Kae
5fa97741e5 experimental universe.sendWorldMessage function 2023-07-23 01:01:23 +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
1a2f143f88 debug: tile_dungeon_id is red if dungeon ID is protected 2023-07-22 17:37:47 +10:00
Kae
30dd83aa02 Fix rare backwards compatibility issue with optimized directives in object "color" 2023-07-21 17:52:10 +10:00
Kae
643e8b15a1 Fixes for other compilers 2023-07-21 12:22:26 +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
607be74945 Fix server hang while looking for starter world 2023-07-20 19:10:41 +10:00
Kae
d0307e7aa7 Add celestial callbacks to UniverseClient scripts 2023-07-20 17:53:57 +10:00
Kae
5f86e0f027 Hopefully fix server hang while finding a random starter world 2023-07-20 17:53:17 +10:00
Kae
b964668a38 Let players use tools in lounges 2023-07-20 15:27:28 +10:00
Kae
c1ae238086 Merge branch 'voice' 2023-07-20 15:00:59 +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
3aa45ab799 Add voice muting, add input key and mouse functions 2023-07-20 12:52:08 +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
9d66acde2a Update gtests 2023-07-14 21:45:11 +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
212de6b876 Merge branch 'main' into voice 2023-07-13 19:21:07 +10:00
Kae
49afa899a8 Make server tickrate configurable 2023-07-13 19:20:58 +10:00
Kae
28f4204b09 more Voice work 2023-07-13 19:12:55 +10:00