Commit Graph

614 Commits

Author SHA1 Message Date
Kae
5bf3b20542 oops - state must be popped before writing indent
otherwise the closing } on non-empty objects is incorrectly indented
2024-04-18 08:46:48 +10:00
Kae
1587bb2409 Empty JSON objects should be printed as {}, not { \n} + fix the new Json hasher not sorting keys
[skip ci]
2024-04-18 08:42:58 +10:00
Kae
83ca73b299 Add volume and pitch to projectile sound actions
did it to some chat bubble thing too lol, why not.
2024-04-15 17:47:40 +10:00
Kae
63c9e3ec8b only round vertices if AA is on
[skip ci]
2024-04-15 17:46:44 +10:00
Kae
90f3835dae widget.getText didn't work for labels and buttons?? 2024-04-15 17:14:03 +10:00
Kae
37d7262375 Fix text wrapping bug that only happened under a specific scenario
was causing a broken string view if there was a line that had any space in it followed by a forced newline and then a line that had no spaces but was long enough to wrap. example:
A B\nThisLastLineHasNoSpacesButIsLongEnoughToWrapAnyways!!!!!!!!!!!!
2024-04-15 11:10:33 +10:00
Kae
227e60ca4c new object lighting toggle, log non-master entity render/update exceptions 2024-04-15 08:03:26 +10:00
Kae
ed8b22c472 feat: nicer Humanoid ?scalenearest rendering 2024-04-14 10:32:11 +10:00
Kae
772b0585c2 deduplicate const CollisionBlock sets
when i dumped the symbols, these two and their initializers had over 150 duplicates
2024-04-13 16:15:17 +10:00
Kae
dab179e355 add player.mode, player.setMode
removed two unnecessary (not from vanilla) functions, use root.(get/get)ConfigurationPath instead.
2024-04-13 15:49:37 +10:00
Kae
d3382e2b91 vcpkg: restore original liblzma port 2024-04-12 13:50:40 +10:00
Kae
d255328476 Humanoid: apply globalOffset *before* rotation
the globalOffset is meant to realign the sprite with the collision poly - applying it after rotating the drawables is bad! (I actually ACCIDENTALLY fixed this in StarExtensions and only noticed the difference today. quite incredible)
2024-04-11 16:27:46 +10:00
Kae
b89b8d585e oops - restore assets modification to load scripts 2024-04-08 18:10:09 +10:00
Kae
4a3ffadecb Expose assets lua callbacks to patch contexts 2024-04-08 16:12:48 +10:00
Kae
ef3dc1c60e fix: slightly jittery zoom level transitions 2024-04-08 14:34:45 +10:00
Kae
8a8a050159 2 features: multi-sample anti-aliasing & Lua patches for images 2024-04-08 14:22:22 +10:00
Kae
4458d2e85e only decline offered quests if the player explicitly pressed the decline button 2024-04-05 23:09:57 +11:00
Kae
da8e6d1aa8 Update StarTeamBar.cpp 2024-04-05 15:14:08 +11:00
Kae
12a28d5345 fix: last minor text wrapping bug 2024-04-04 15:09:40 +11:00
Kae
6c896c2ef7 Make ping updates more accurate 2024-04-04 14:35:36 +11:00
Kae
be676518f4 fix rare text wrapping bug in the chat box
also removed unnecessary leftover variables from when text wrapping used to always create a StringList
2024-04-03 12:19:55 +11:00
Kae
662f12da96 improvements to universe.sendPacket and world.sendPacket
adds necessary clientsMutex lock, and returns false if sending failed
2024-04-02 13:39:34 +11:00
ErodeesFleurs
cf93c2e9d4 oops 2024-04-02 09:42:22 +08:00
ErodeesFleurs
be571b5cd0 add world.sendPacket and fixed deadlock 2024-04-02 09:34:06 +08:00
Kae
02632b248c Fix more cases of tile collision not taking object material spaces into account
Fixes #53
2024-04-01 10:30:03 +11:00
Kae
b556f71473 vcpkg: temporary liblzma workaround during the xz fiasco 2024-04-01 08:07:17 +11:00
Kae
f00a790cb5 Fix #51 2024-03-30 14:14:24 +11:00
Kae
55cc6d793d wire interface: fetch render vars on init instead of every wire (wtf?) 2024-03-29 02:54:17 +11:00
Kae
8fee64013e don't deselect the wire after making one connection 2024-03-29 02:48:38 +11:00
Kae
53d4183ac3 Add a default brightness limit 2024-03-29 02:23:36 +11:00
Kae
0f9a200e6b fix: crafting interfaces not working with new middle-click opening 2024-03-28 04:46:07 +11:00
Kae
d76d217901 Update StarUniverseServer.cpp 2024-03-27 17:09:20 +11:00
Kae
d53c3ae0e7 Store the ship's species as a world property
prevents smorgasbord when upgrading the ship after the player changes the species of the character that owns the ship
2024-03-27 17:06:51 +11:00
Kae
1b20362583 remove redundant logMap, now that lighting is 100% asynchronous 2024-03-27 16:33:21 +11:00
Kae
f08ffe2162 Merge branch 'light-test' 2024-03-27 16:07:17 +11:00
Kae
888cde79ef feat: middle click objects in the inventory to open their interface
makes carrying around shop objects easier

might need to restrict the allowed interaction types more, as some may break due to the source entity being the player
2024-03-27 16:00:13 +11:00
ErodeesFleurs
646c444a41 Maybe fix IME support 2024-03-27 11:22:09 +08:00
ErodeesFleurs
2a116c945e add lua invoke when the client enters and leaves the planet. 2024-03-27 10:21:13 +08:00
Kae
c484fab32d experiment: auto-conversion of object spread lights to hybrid spread/point lights 2024-03-26 07:31:33 +11:00
Kae
77d7f8eb81 give logs their own directory 2024-03-25 15:23:37 +11:00
Kae
78d5561db3 Fix animated particle discrepancies vs vanilla 2024-03-25 15:01:23 +11:00
Kae
84a2d8f7f8 change fonts to woff2 2024-03-25 12:49:18 +11:00
Kae
9aaaf874e9 fix some server-side collision calls not including object collision 2024-03-25 11:20:11 +11:00
Kae
5981880a99 title changes (moved quit button away) + better compressed all the pngs 2024-03-25 08:40:02 +11:00
Kae
8899a1d270 make tech parentOffset interpolated 2024-03-25 06:29:13 +11:00
Kae
560ae08424 Add support for directly setting image assets and processing Image userdata 2024-03-25 03:46:21 +11:00
Kae
6b8c472978 nicer volume sliders 2024-03-25 01:57:55 +11:00
Kae
5da4b1a4e3 Make it clearer when the base Starbound assets are missing
until the installer can locate the user's original Starbound assets
2024-03-22 22:22:19 +11:00
Kae
4d84152609 Merge branch 'main' of https://github.com/OpenStarbound/OpenStarbound 2024-03-22 20:59:12 +11:00
Kae
c1592b079d Add readJson and writeJson for some packets 2024-03-22 20:59:02 +11:00
Kae
a08fe284d3
Merge pull request #47 from ErodeesFleurs/useful
Fix compilation error and add the 'world.id' function
2024-03-22 20:58:19 +11:00
Kae
e318098f0b Add equality operator for Directives (fixes networking bug) 2024-03-22 19:12:45 +11:00
ErodeesFleurs
443e6459b9 fix pushGlobalContext error 2024-03-22 15:56:20 +08:00
ErodeesFleurs
ec4787d78e world.id() for server 2024-03-22 15:46:30 +08:00
Kae
9b10964a3e Merge branch 'lighting' 2024-03-21 16:19:39 +11:00
ErodeesFleurs
868216a992 Add parseJson and clientWorld functions to LuaBindings 2024-03-21 10:10:22 +08:00
Kae
57ca6776e4 Lua patches 2024-03-21 00:57:49 +11:00
Kae
a096fa3ffc Update StarWorldPainter.cpp 2024-03-20 16:38:44 +11:00
Kae
bf73fbc1ad cursed point lights everywhere (but god it looks good) 2024-03-20 15:29:26 +11:00
Kae
6d76a11e25 experiment: unclamped lighting 2024-03-20 01:53:34 +11:00
ErodeesFleurs
a633070b3b oops 2024-03-19 16:50:05 +08:00
ErodeesFleurs
876cf6343d modify universe.sendPacket 2024-03-19 16:42:06 +08:00
Kae
e068172a09
Merge pull request #43 from ErodeesFleurs/sendPacket
Add the Lua function for sending packet.
2024-03-19 18:24:23 +11:00
Kae
983bb82a96 Async lighting improvements 2024-03-19 18:21:54 +11:00
ErodeesFleurs
b856377833 add sendPacket lua context 2024-03-19 12:46:50 +08:00
Kae
17ea975970 Update StarCommandProcessor.cpp 2024-03-19 14:44:21 +11:00
Kae
5ca42599ef make timescale a server command and add a tickrate command 2024-03-19 13:35:55 +11:00
Kae
5f01d2d4d7 Update StarWorldServer.cpp 2024-03-18 23:25:44 +11:00
Kae
5a48b0383a fix StepUpdate typos (oops) 2024-03-18 22:09:48 +11:00
Kae
647cd45dd5 Update StarPlayerUniverseMap.cpp 2024-03-18 17:37:43 +11:00
Kae
5d1e118a19 better UniverseMap checks 2024-03-18 17:34:02 +11:00
Kae
7d717489a9 Update StarUniverseClient.cpp 2024-03-18 17:12:42 +11:00
Kae
f15d50ec07 oops!! 2024-03-17 23:09:42 +11:00
Kae
faae6e715a fix minor interp bug 2024-03-17 18:06:12 +11:00
Kae
758a900e51 Update StarWorldServer.cpp 2024-03-17 17:37:32 +11:00
Kae
9dc1eb7312 InterpolationTracker operates on time in seconds instead of steps now 2024-03-17 17:33:31 +11:00
Kae
4e0d7598e1 omg 2024-03-17 15:56:29 +11:00
Kae
3650add73a Update CMakeLists.txt 2024-03-17 15:38:35 +11:00
Kae
68b1632b92 Update CMakeLists.txt 2024-03-17 15:36:50 +11:00
Kae
8d1d278e7b Update CMakeLists.txt 2024-03-17 15:32:05 +11:00
Kae
b98b0334a9 Update CMakeLists.txt 2024-03-17 15:29:38 +11:00
Kae
b2b6c05968 Update StarWorldServer.cpp 2024-03-17 15:12:08 +11:00
Kae
8559a46df2 fix RPATH and object material spaces from old worlds getting stuck 2024-03-17 15:11:29 +11:00
Kae
252ce113a5 add missing vars to linux and macOS CMakePresets 2024-03-17 13:45:30 +11:00
Kae
e867822a70 whoops, setMetatable call was accidentally removed 2024-03-17 13:36:30 +11:00
Kae
53c7c3775f Lua: new Image userdata (& cursor mod fix) 2024-03-17 01:53:46 +11:00
Kae
463205c09c remove unnecessary SDL2 include
[skip ci]
2024-03-17 01:52:34 +11:00
Kae
d577a98980 Lua: allow jarray and jobject to convert existing tables
[skip ci]
2024-03-17 01:52:02 +11:00
ErodeesFleurs
c6a2f4fa7d add clipboard lua binds 2024-03-16 20:00:53 +08:00
Kae
a63707cc59 Update word_count.cpp 2024-03-16 11:07:41 +11:00
Kae
78a68b6a20 postLoad scripts too 2024-03-16 00:02:51 +11:00
Kae
7eec15098e asset onLoad scripts can add and patch assets now 2024-03-15 22:47:02 +11:00
Kae
13f91aa195 Songbook search improvements 2024-03-15 21:29:14 +11:00
Kae
6fa0afd758 experimental asset load scripts 2024-03-15 21:28:11 +11:00
Kae
696abcca71 fix late aimPosition 2024-03-15 16:26:12 +11:00
Kae
658fab846e change net debug logging to kB/s 2024-03-15 16:00:56 +11:00
Kae
6208636d69 Fixes 2024-03-15 15:26:38 +11:00
Kae
662b83ff92 Initial commit of experimental zstd network compression
currently a bit buggy
2024-03-14 21:41:53 +11:00
Kae
8164e5ae6f Game window respects Windows theme setting 2024-03-14 21:17:05 +11:00
Kae
3534067801 Tile Prediction: make refunds silent 2024-03-11 17:03:09 +11:00